-
+
+
+
Blogg
diff --git a/wp-content/themes/studio13/functions.php b/wp-content/themes/studio13/functions.php
index 60bbb7a..5a05ee2 100644
--- a/wp-content/themes/studio13/functions.php
+++ b/wp-content/themes/studio13/functions.php
@@ -53,4 +53,50 @@ function new_excerpt_more($more) {
}
add_filter('excerpt_more', 'new_excerpt_more');
+/* post type */
+// Register Custom Post Type
+function studio_artists_post_type() {
+ $labels = array(
+ 'name' => _x( 'Artists', 'Post Type General Name', 'studio' ),
+ 'singular_name' => _x( 'Artist', 'Post Type Singular Name', 'studio' ),
+ 'menu_name' => __( 'Artist', 'studio' ),
+ 'parent_item_colon' => __( 'Parent Artist:', 'studio' ),
+ 'all_items' => __( 'All Artists', 'studio' ),
+ 'view_item' => __( 'View Artist', 'studio' ),
+ 'add_new_item' => __( 'Add New Artist', 'studio' ),
+ 'add_new' => __( 'New Artist', 'studio' ),
+ 'edit_item' => __( 'Edit Artist', 'studio' ),
+ 'update_item' => __( 'Update Artist', 'studio' ),
+ 'search_items' => __( 'Search Artists', 'studio' ),
+ 'not_found' => __( 'No artists found', 'studio' ),
+ 'not_found_in_trash' => __( 'No artists found in Trash', 'studio' ),
+ );
+
+ $args = array(
+ 'label' => __( 'artist', 'studio' ),
+ 'description' => __( 'Artist information pagews', 'studio' ),
+ 'labels' => $labels,
+ 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ),
+ 'taxonomies' => array( 'post_tag' ),
+ 'hierarchical' => false,
+ 'public' => true,
+ 'show_ui' => true,
+ 'show_in_menu' => true,
+ 'show_in_nav_menus' => true,
+ 'show_in_admin_bar' => true,
+ 'menu_position' => 5,
+ //'menu_icon' => '',
+ 'can_export' => true,
+ 'has_archive' => true,
+ 'exclude_from_search' => false,
+ 'publicly_queryable' => true,
+ 'capability_type' => 'page',
+ );
+
+ register_post_type( 'artist', $args );
+}
+
+// Hook into the 'init' action
+add_action( 'init', 'studio_artists_post_type', 0 );
+
?>
diff --git a/wp-content/themes/studio13/js/main.js b/wp-content/themes/studio13/js/main.js
index c983135..d64d704 100644
--- a/wp-content/themes/studio13/js/main.js
+++ b/wp-content/themes/studio13/js/main.js
@@ -4,25 +4,6 @@ function format_image(img) {
jQuery(document).foundation();
jQuery(function($) {
- /* Twitter feed */
- //var feed = "http://search.twitter.com/search.json?q=studiofestivalen&result_type=recent&callback=?";
- var feed = "http://search.twitter.com/search.json?q=studio2012&result_type=recent&callback=?";
- $.getJSON(feed, function(results) {
- $.each(results, function(i) {
- console.log(results[i]);
- var id = results[i].id_str;
-
- /* relative tweet time */
- var time = time_str.slice(4); // without weekday
- moment.lang('en'); // parse english month name
- var when = moment(time, "DD MMM YYYY HH:mm:ss Z");
- moment.lang('nb'); // format in norwegian locale
- var rel_when = when.fromNow();
-
- /* Format tweet */
- $('.twitter-feed').append('
');
- });
- });
/* Instagram feed
* Ref: http://instafeedjs.com/ */
diff --git a/wp-content/themes/studio13/sass/app.scss b/wp-content/themes/studio13/sass/app.scss
index 7222897..f43e148 100644
--- a/wp-content/themes/studio13/sass/app.scss
+++ b/wp-content/themes/studio13/sass/app.scss
@@ -439,3 +439,13 @@ article {
width: 1000px;
max-width: 1000px;
}
+/* Template styles */
+.template-artists {
+
+ .artists {
+ font-size: 1.5em;
+ text-transform: uppercase;
+
+ }
+
+}
diff --git a/wp-content/themes/studio13/sidebar.php b/wp-content/themes/studio13/sidebar.php
index dd42547..52f9860 100644
--- a/wp-content/themes/studio13/sidebar.php
+++ b/wp-content/themes/studio13/sidebar.php
@@ -1,55 +1,30 @@
diff --git a/wp-content/themes/studio13/template-artists.php b/wp-content/themes/studio13/template-artists.php
new file mode 100644
index 0000000..72859e7
--- /dev/null
+++ b/wp-content/themes/studio13/template-artists.php
@@ -0,0 +1,38 @@
+
+
+
+