Archived
randomfix and lol
This commit is contained in:
1 parent
86aee8ac24
commit
1090ead830
3 files changed
+21
-24
No files matched your search
@@ -112,8 +112,8 @@ Create the fields the post type should have
|
||||
|
||||
foreach ($events as $event) {
|
||||
if ($event->post_title != '' ){
|
||||
echo '<option value="'.$event->guid.'"';
|
||||
if($event->guid == $artist_event)
|
||||
echo '<option value="'.$event->ID.'"';
|
||||
if($event->ID == $artist_event)
|
||||
echo ' selected="selected"';
|
||||
echo '>'.$event->post_title.'</option>';
|
||||
}
|
||||
|
||||
@@ -2,19 +2,21 @@
|
||||
add_theme_support('nav-menus');
|
||||
add_theme_support( 'automatic-feed-links' ); //automatic_feed_links();
|
||||
add_theme_support( 'post-thumbnails' ); // Makes it easier with image-links :D
|
||||
set_post_thumbnail_size(250,250,false);
|
||||
set_post_thumbnail_size(200,200,false);
|
||||
add_image_size('firstpost', 540, 999, false);
|
||||
register_nav_menus( array('header-menu' => 'Header Menu' ) );
|
||||
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
|
||||
// Custom background :)
|
||||
add_custom_background();
|
||||
|
||||
if ( !is_admin() ) {
|
||||
function studio2012_enqueue_scripts() {
|
||||
wp_deregister_script('jquery');
|
||||
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"), false);
|
||||
wp_enqueue_script('jquery');
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', 'studio2012_enqueue_scripts');
|
||||
|
||||
if (function_exists('register_sidebar')) {
|
||||
register_sidebar(array(
|
||||
'name' => 'Sidebar Widgets',
|
||||
@@ -79,10 +81,7 @@ class Artist_Widget extends WP_Widget {
|
||||
// event-lenka
|
||||
$event = get_post_meta($post->ID, 'studio_artist_event', true);
|
||||
// ekstern lenke for artisten
|
||||
if (get_post_meta($post->ID, 'studio_artist_link', true))
|
||||
$link = ' <a href="'.get_post_meta($post->ID, 'studio_artist_link', true).'">ekst</a>';
|
||||
else $link = "";
|
||||
echo '<p class="artist '.get_post_meta($post->ID, 'studio_artist_type', true).'"><a href="' . $event . '">' . get_the_title() . '</a>'.$link.'</p>';
|
||||
echo '<p class="artist '.get_post_meta($post->ID, 'studio_artist_font', true).' '.get_post_meta($event, 'neuf_events_type', true)."\"><a href=\"" . get_post($event)->guid . "\">" . get_the_title() . '</a></p>';
|
||||
|
||||
}
|
||||
} echo "<hr />";
|
||||
|
||||
@@ -138,28 +138,26 @@ hr { width: 60%; }
|
||||
}
|
||||
|
||||
.widget .artist a {
|
||||
font-size: 30px;
|
||||
font-family: 'Lobster', cursive;
|
||||
text-decoration: none;
|
||||
}
|
||||
.widget .artist :hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.widget .liten a {
|
||||
color: #000;
|
||||
}
|
||||
.widget .normalliten a {
|
||||
color: #333;
|
||||
}
|
||||
.widget .normalstor a {
|
||||
color: #666;
|
||||
}
|
||||
.widget .stor a {
|
||||
color: #999;
|
||||
}
|
||||
.widget .mega a {
|
||||
color: #CCC;
|
||||
}
|
||||
.widget .liten a { font-size: 18px;}
|
||||
.widget .normalliten a { font-size: 21px; }
|
||||
.widget .normalstor a { font-size: 24px; }
|
||||
.widget .stor a { font-size: 27px; }
|
||||
.widget .mega a { font-size: 30px; }
|
||||
.widget .Konsert a { color: blue; }
|
||||
.widget .Annet a { color: red; }
|
||||
.widget .Foredrag a { color: yellow; }
|
||||
.widget .Klub a { color: green; }
|
||||
.widget .Quiz a { color: purple; }
|
||||
.widget .Stand-up a { color: pink; }
|
||||
.widget .Konkurranse a { color: cyan; }
|
||||
.widget .Lyntale a { color: magenta; }
|
||||
|
||||
|
||||
.post, .event {
|
||||
padding: 1em 2em 0 2em;
|
||||
|
||||
Reference in new issue
Block a user