diff --git a/wp-content/plugins/englishblog.php b/wp-content/plugins/englishblog.php new file mode 100755 index 0000000..d34be4f --- /dev/null +++ b/wp-content/plugins/englishblog.php @@ -0,0 +1,70 @@ + + + array( + 'name' => __( 'English' ), + 'singular_name' => __( 'English' ), + 'add_new' => __( 'Legg til ny post' ), + 'add_new_item' => __( 'Legg til ny post' ), + 'edit_item' => __( 'Rediger post' ), + 'new_item' => __( 'Legg til ny post' ), + 'view_item' => __( 'Vis post' ), + 'search_items' => __( 'Søk etter post' ), + 'not_found' => __( 'ingen posts funnet' ), + 'not_found_in_trash' => __( 'ingen posts funnet i søppel' ) + ), + 'menu_position' => 9, + 'public' => true, + 'publicly_queryable' => true, + 'show-ui' => true, + 'rewrite' => array( + 'slug' => 'english', + 'with_front' => false), + 'query_var' => 'englishpost', + 'capability_type' => 'post', + 'map_meta_cap' => true, + 'supports' => array( + 'title', + 'editor', + 'author', + 'thumbnail', + 'administrator' + ), + ) + ); + } + } + } +} + +if (class_exists("StudioEnglish")) { + $studio_english_object = new StudioEnglish(); +} + +if ( isset($studio_english_object)){ + add_action( 'init', 'studio_blog_english_type', 0); + add_action( 'save_post', 'studio_blog_english_save'); +} + +?> diff --git a/wp-content/themes/studio12/english.php b/wp-content/themes/studio12/english.php new file mode 100644 index 0000000..40e4a77 --- /dev/null +++ b/wp-content/themes/studio12/english.php @@ -0,0 +1,80 @@ +/* + Template Name: english +*/ + + + + + $type, + 'post_status' => 'publish', + 'paged' => $paged, + 'ignore_sticky_posts'=> 1 + ); +$temp = $wp_query; // assign orginal query to temp variable for later use +$wp_query = null; +$wp_query = new WP_Query($args); +?> +
+ + + +
id="post-"> +
+ + + + +
+

+ +
+ +
+
+
+ +
id="post-"> +
+ + +
+

+ + +
+
+
+
+ + + + + + + +

Not Found

+ + + +
+ + + diff --git a/wp-content/themes/studio12/sidebar-right.php b/wp-content/themes/studio12/sidebar-right.php index b608e00..bf5905e 100644 --- a/wp-content/themes/studio12/sidebar-right.php +++ b/wp-content/themes/studio12/sidebar-right.php @@ -1,4 +1,7 @@