Archived
kveldens lol
This commit is contained in:
1 parent
fd7c55aa5d
commit
9edaf25705
8 files changed
+71
-36
No files matched your search
@@ -9,6 +9,7 @@ Author: Sjur Hernes
|
||||
Author URI:
|
||||
*/
|
||||
|
||||
|
||||
//include_once './studio-blimed-admin.php';
|
||||
register_activation_hook( __FILE__, 'studio_blimed_install' );
|
||||
register_deactivation_hook( __FILE__, 'studio_blimed_uninstall' );
|
||||
@@ -50,6 +51,12 @@ function studio_blimed_install() {
|
||||
* Shows form and inserts on _POST
|
||||
*/
|
||||
function blimed_form( ) {
|
||||
|
||||
/*
|
||||
Template Name: blimed
|
||||
*/
|
||||
|
||||
|
||||
global $wpdb;
|
||||
$table_name = $wpdb->prefix . 'studio_blimed_table';
|
||||
$backspinn = '';
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<?php
|
||||
|
||||
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);
|
||||
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() ) {
|
||||
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');
|
||||
}
|
||||
// Custom background :)
|
||||
add_custom_background();
|
||||
|
||||
if (function_exists('register_sidebar')) {
|
||||
register_sidebar(array(
|
||||
@@ -92,6 +93,8 @@ class Artist_Widget extends WP_Widget {
|
||||
register_widget('Program_Widget');
|
||||
register_widget('Artist_Widget');
|
||||
|
||||
|
||||
function custom_excerpt_length( $length ) {
|
||||
return 25;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -19,7 +19,7 @@
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<div id="page-wrap">
|
||||
<div id="header">
|
||||
|
||||
@@ -1,25 +1,34 @@
|
||||
<?php get_header(); ?>
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_sidebar("right"); ?>
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
|
||||
<div id="main-content">
|
||||
<?php if (have_posts()) :
|
||||
$post = $posts[0]; $c=0;
|
||||
while (have_posts()) : the_post();
|
||||
$c++; ?>
|
||||
|
||||
<?php if($c == 1) : ?>
|
||||
<article <?php post_class("firstpostindex") ?> id="post-<?php the_ID(); ?>">
|
||||
<?php the_post_thumbnail("firstpost"); ?>
|
||||
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
|
||||
|
||||
<div class="postinfo"> <?php the_time('F jS, Y'); ?> </div>
|
||||
<hr \>
|
||||
<?php the_post_thumbnail(); ?>
|
||||
<div class="entry">
|
||||
<?php the_excerpt(); ?>
|
||||
<?php the_excerpt(25); ?>
|
||||
</div>
|
||||
|
||||
<footer class="postmetadata">
|
||||
<?php the_tags('Tags: ', ', ', '<br />'); ?>
|
||||
Posted in <?php the_category(', ') ?>
|
||||
</footer>
|
||||
|
||||
<hr />
|
||||
</article>
|
||||
<?php else : ?>
|
||||
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
|
||||
<?php the_post_thumbnail(); ?>
|
||||
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
|
||||
<div class="entry">
|
||||
<?php the_excerpt(25); ?>
|
||||
</div>
|
||||
<div style="clear:both;"> </div>
|
||||
<hr />
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
@@ -29,7 +38,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</div>
|
||||
<?php get_footer(); ?>
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
<div id="main-content">
|
||||
<article class="post page <?php the_title(); ?>" id="post-<?php the_ID(); ?>">
|
||||
|
||||
<h2><?php the_title(); ?></h2>
|
||||
@@ -18,10 +19,9 @@
|
||||
|
||||
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<?php //comments_template(); ?>
|
||||
|
||||
<?php endwhile; endif; ?>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
@@ -1,8 +1,9 @@
|
||||
|
||||
<div id="sidebar-left" class="sidebar transparent">
|
||||
|
||||
|
||||
<a href="<?php echo get_page_by_title('Bli Frivillig!')->guid; ?>">
|
||||
<img id="frivilligknapp" src="<?php echo get_template_directory_uri(); ?>/images/frivilliglol.png" alt="blimed" />
|
||||
|
||||
</a>
|
||||
|
||||
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Widgets')) : else : ?>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<?php get_sidebar("right"); ?>
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
<div id="main-content">
|
||||
<article <?php post_class("event") ?> id="post-<?php the_ID(); ?>">
|
||||
|
||||
<h2><?php the_title(); ?></h2>
|
||||
@@ -42,6 +42,7 @@ if ($post->post_type == "event") {
|
||||
|
||||
<?php edit_post_link('Edit this entry','','.'); ?>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<?php endwhile; endif; ?>
|
||||
|
||||
@@ -62,7 +62,18 @@ body {
|
||||
}
|
||||
|
||||
article {
|
||||
background-color: #FFF;
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
article img {
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.attachment-post-thumbnail {
|
||||
width: 40px:
|
||||
height: 20px:
|
||||
}
|
||||
|
||||
/* Text and links */
|
||||
@@ -146,14 +157,23 @@ hr { width: 60%; }
|
||||
}
|
||||
|
||||
.post, .event {
|
||||
width: 40%;
|
||||
padding: 1em 2em 0 2em;
|
||||
}
|
||||
|
||||
#main-content {
|
||||
background-color: #FFF;
|
||||
width: 50%;
|
||||
float: center;
|
||||
margin: 1em 1em 1em 28.5%;
|
||||
padding: 1em 1em 1em 1em;
|
||||
margin: 1em 0 0 25%;
|
||||
}
|
||||
|
||||
#main-content hr {
|
||||
width: 100%;
|
||||
color: #e4156f;
|
||||
}
|
||||
|
||||
.post h2 {
|
||||
text-align: center;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -222,9 +242,3 @@ input#saveForm {
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.post img {
|
||||
width: 100px:
|
||||
height: 150px:
|
||||
}
|
||||
.post
|
||||
|
||||
Reference in new issue
Block a user