first commit

This commit is contained in:
alazhar
2020-01-02 23:15:16 +07:00
commit eda9661806
3433 changed files with 595883 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
get_header();
get_template_part('format', 'no-results');
get_footer();
?>

View File

@ -0,0 +1,124 @@
<?php
get_header();
global $grid;
$grid = pk_get_option('portfolio_grid_layout', 'normal');
$columns = pk_get_option('portfolio_layout', '4');
$rows = pk_get_option('portfolio_layout_rows', '3');
$columns_class = str_replace(array('1', '2', '3', '4'), array('pk_full_width', 'pk_one_half', 'pk_one_third', 'pk_one_fourth'), $columns);
if (pk_get_option('portfolio_show_categories_filter', 'true') == 'false') remove_action('pk_portfolio_categories', 'pk_portfolio_categories_filter');
$temp_query = $wp_query;
$check_paged = (is_front_page() && !is_home()) ? 'page' : 'paged';
$paged = (get_query_var($check_paged)) ? get_query_var($check_paged) : 1;
$posts_per_page = $columns * $rows;
$query_args['post_type'] = 'portfolio';
$query_args['posts_per_page'] = $posts_per_page;
$query_args['orderby'] = 'menu_order';
$query_args['order'] = 'ASC';
$query_args['paged'] = $paged;
$wp_query = new WP_Query($query_args);
do_action('pk_before_portfolio');
do_action('pk_portfolio_categories');
if (have_posts() && $columns == 1) :
while (have_posts()) :
the_post();
$c++;
if ($columns > 1) : get_template_part('format', 'grid-item'); else : $post_meta = get_post_custom(get_the_ID()); get_template_part('format', 'blog-'.str_replace(array('gallery', 'slider'), array('image', 'gallery'), ((isset($post_meta['_work_format'][0])) ? $post_meta['_work_format'][0] : 'standard'))); endif;
endwhile;
elseif (have_posts() && $columns > 1 && $grid == 'normal') :
$c = 0;
while (have_posts()) :
$c++;
the_post();
?>
<div class="<?php echo $columns_class; ?> pk_fixed<?php if ($c == $columns) : ?> pk_last<?php endif; ?>">
<?php
get_template_part('format', 'grid-item');
?>
</div>
<?php
if ($c == $columns) :
$c = 0;
?>
<span class="pk_clear_both"></span>
<?php
endif;
endwhile;
elseif (have_posts() && $columns > 1 && $grid == 'special') :
for ($x = 1; $x <= $columns; $x++) : $i = 0;
?>
<div class="<?php echo $columns_class; ?> pk_fixed<?php if ($x == $columns) : ?> pk_last<?php endif; ?>">
<?php
while (have_posts()) :
the_post();
if ($i < ($rows * $x) && $i >= (($x - 1) * $rows)) :
get_template_part('format', 'grid-item');
endif;
$i++;
endwhile;
rewind_posts();
?>
</div>
<?php
endfor;
?>
<span class="pk_clear_both"></span>
<?php
else :
get_template_part('format', 'no-results');
endif;
if ($wp_query -> max_num_pages > 1) :
?>
<!-- pk start pagination -->
<div class="pk_pagination">
<?php $check_paged = (is_front_page() && !is_home()) ? 'page' : 'paged'; $paged = (get_query_var($check_paged)) ? get_query_var($check_paged) : 1; pk_pagination($wp_query -> max_num_pages, $paged, 2); ?>
</div>
<!-- pk end pagination -->
<?php
endif;
$wp_query = $temp_query;
wp_reset_query();
do_action('pk_after_portfolio');
get_footer();
?>

View File

@ -0,0 +1,127 @@
<?php
get_header();
global $grid;
$grid = pk_get_option('blog_grid_layout', 'normal');
$columns = pk_get_option('blog_layout', '1');
$rows = pk_get_option('blog_layout_rows', '10');
$columns_class = str_replace(array('1', '2', '3', '4'), array('pk_full_width', 'pk_one_half', 'pk_one_third', 'pk_one_fourth'), $columns);
do_action('pk_before_author');
if (have_posts() && $columns == 1) :
while (have_posts()) :
the_post();
switch (get_post_type()) :
case 'post' :
(!get_post_format()) ? get_template_part('format', 'blog-standard') : get_template_part('format', 'blog-'.get_post_format());
break;
case 'page' :
$post_meta = get_post_custom(get_the_ID());
get_template_part('format', 'blog-'.str_replace(array('gallery', 'slider'), array('image', 'gallery'), ((isset($post_meta['_page_format'][0])) ? $post_meta['_page_format'][0] : 'standard')));
break;
case 'portfolio' :
$post_meta = get_post_custom(get_the_ID());
get_template_part('format', 'blog-'.str_replace(array('gallery', 'slider'), array('image', 'gallery'), ((isset($post_meta['_work_format'][0])) ? $post_meta['_work_format'][0] : 'standard')));
break;
default:
get_template_part('format', 'blog-standard');
endswitch;
endwhile;
elseif (have_posts() && $columns > 1 && $grid == 'normal') :
$c = 0;
while (have_posts()) :
$c++;
the_post();
?>
<div class="<?php echo $columns_class; ?> pk_fixed<?php if ($c == $columns) : ?> pk_last<?php endif; ?>">
<?php
get_template_part('format', 'grid-item');
?>
</div>
<?php
if ($c == $columns) :
$c = 0;
?>
<span class="pk_clear_both"></span>
<?php
endif;
endwhile;
elseif (have_posts() && $columns > 1 && $grid == 'special') :
for ($x = 1; $x <= $columns; $x++) : $i = 0;
?>
<div class="<?php echo $columns_class; ?> pk_fixed<?php if ($x == $columns) : ?> pk_last<?php endif; ?>">
<?php
while (have_posts()) :
the_post();
if ($i < ($rows * $x) && $i >= (($x - 1) * $rows)) :
get_template_part('format', 'grid-item');
endif;
$i++;
endwhile;
rewind_posts();
?>
</div>
<?php
endfor;
?>
<span class="pk_clear_both"></span>
<?php
else :
get_template_part('format', 'no-results');
endif;
if ($wp_query -> max_num_pages > 1) :
?>
<!-- pk start pagination -->
<div class="pk_pagination">
<?php $pk_check_paged = (is_front_page() && !is_home()) ? 'page' : 'paged'; $pk_paged = (get_query_var($pk_check_paged)) ? get_query_var($pk_check_paged) : 1; pk_pagination($wp_query -> max_num_pages, $pk_paged, 2); ?>
</div>
<!-- pk end pagination -->
<?php
endif;
do_action('pk_after_author');
get_footer();
?>

View File

@ -0,0 +1,17 @@
<?php
get_header();
while (have_posts()) :
the_post();
do_action('pk_before_bbpress_page_content');
get_template_part('format', 'page-standard');
do_action('pk_after_bbpress_page_content');
endwhile;
get_footer();
?>

View File

@ -0,0 +1,143 @@
CHANGELOG:
########
V 1.0.0:
########
- Release
########
V 1.1.0:
########
- UPDATE: WooCommerce now supported. Replace the whole theme folder on your server via ftp.
########
V 1.1.1:
########
- EDITED: css/pk_jigoshop.css
- EDITED: css/pk_skin_custom.php
- EDITED: css/pk_skin_dark.css
- EDITED: css/pk_skin_light.css
- EDITED: css/pk_style.css
- EDITED: css/pk_woocommerce.css
########
V 1.1.2:
########
- EDITED: format-blog-gallery.php
- EDITED: format-blog-image.php
- EDITED: format-page-gallery.php
- EDITED: format-page-slider.php
- EDITED: format-portfolio-gallery.php
- EDITED: format-portfolio-slider.php
- EDITED: framework/pk_filters.php
- EDITED: framework/pk_images.php
########
V 1.1.3:
########
- EDITED: header.php
- EDITED: index.php
- REMOVED: js/html5.js
########
V 2.0.0:
########
- UPDATE: BBpress forum now supported. Replace the whole theme folder on your server via ftp.
########
V 2.0.1:
########
- EDITED: header.php
- EDITED: translate/pk_translate.po
########
V 2.0.2:
########
- EDITED: framework/widgets/pk_widgets_twitter.php
########
V 2.0.3:
########
- EDITED: footer.php
- EDITED: page-blog.php
- EDITED: framework/pk_faq.php
- EDITED: framework/pk_sidebars.php
########
V 2.0.4:
########
- EDITED: framework/pk_filters.php
- EDITED: framework/pk_functions.php
- EDITED: framework/pk_metaboxes.php
- EDITED: framework/pk_setup.php
########
V 2.0.5:
########
- EDITED: framework/shortcodes/pk_shortcodes.php
########
V 2.0.6:
########
- EDITED: translate/pk_translate.po
- EDITED: framework/docs/pk_docs.php
- EDITED: framework/pk_options.php
- EDITED: page-home-agency.php
- EDITED: page-home-freelance.php
- EDITED: page-home-jigoshop.php
- EDITED: page-home-standard.php
- EDITED: page-home-woocommerce.php
########
V 2.0.7:
########
- ADDED: single-faq.php
- ADDED: images/social_networks_icons/behance.png
- ADDED: images/social_networks_icons/friendsfeed.png
- ADDED: images/social_networks_icons/squidoo.png
- EDITED: translate/pk_translate.po
- EDITED: comments.php
- EDITED: header.php
- EDITED: footer-social-networks.php
- EDITED: page-home-business.php
- EDITED: framework/docs/pk_docs.php
- EDITED: framework/pk_filters.php
- EDITED: framework/pk_functions.php
- EDITED: framework/pk_images.php
- EDITED: framework/pk_options.php
- EDITED: framework/pk_setup.php
########
V 2.0.8:
########
- EDITED: header.php
- EDITED: css/pk_widgets.css
- EDITED: css/pk_style.css
########
V 2.0.9:
########
- EDITED: css/pk_jigoshop.css
- EDITED: css/pk_reset.css
- EDITED: css/pk_style.css
- EDITED: css/pk_woocommerce.css
- EDITED: header.php
- EDITED: footer.php

View File

@ -0,0 +1,196 @@
<?php
function pk_comments_navigation($navigation) {
if (!$navigation) return;
$button_prev = (get_previous_comments_link(__('&laquo;', 'pk_translate'))) ? str_replace('<a', '<a class="pk_button_prev"', get_previous_comments_link(__('&laquo;', 'pk_translate'))) : '<span class="pk_button_prev"></span>';
$button_next = (get_next_comments_link(__('&raquo;', 'pk_translate'))) ? str_replace('<a', '<a class="pk_button_next"', get_next_comments_link(__('&raquo;', 'pk_translate'))) : '<span class="pk_button_next"></span>';
?>
<!-- pk start comments pagination -->
<div class="pk_pagination pk_pagination_comments">
<?php
echo $button_prev;
for ($i = 0; $i < count($navigation); $i++) {
echo str_replace('current', 'pk_current_page', $navigation[$i]);
}
echo $button_next;
?>
</div>
<!-- pk end comments pagination -->
<?php
}
function pk_comments_list($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
if (get_comment_type() != 'comment') :
pk_trackbacks_list($comment, $args, $depth);
else :
?>
<!-- pk start comment -->
<li id="li-comment-<?php comment_ID(); ?>" <?php comment_class('pk_comment'); ?>>
<div id="comment-<?php comment_ID(); ?>" class="pk_message pk_boxed">
<?php if (get_avatar($comment, '40')) : ?>
<div class="pk_gravatar">
<?php echo get_avatar($comment, '40'); ?>
</div>
<?php endif; ?>
<div class="pk_comment_content">
<div class="pk_comment_meta">
<p class="pk_comment_author"><?php _e('By: ', 'pk_translate'); comment_author_link(); ?></p>
<p class="pk_comment_date"><span><?php printf(__('on: %s', 'pk_translate'), get_comment_date()); ?></span> . <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'pk_translate'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?></p>
</div>
<div class="pk_comment_text">
<?php
if ($comment -> comment_approved == 0) :
?>
<p><em><?php _e('Your comment is awaiting moderation.', 'pk_translate'); ?></em></p>
<?php
else :
comment_text();
endif;
?>
</div>
</div>
</div>
<?php
endif;
}
function pk_trackbacks_list($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<!-- pk start trackback comment -->
<li id="li-trackback-comment-<?php comment_ID(); ?>" <?php comment_class('pk_comment'); ?>>
<div id="trackback-comment-<?php comment_ID(); ?>" class="pk_message pk_boxed">
<div class="pk_comment_meta"></div>
<div class="pk_comment_text">
<p><?php _e('Pingback: ', 'pk_translate'); comment_author_link(); ?></p>
</div>
</div>
<?php
}
function pk_check_referrer() {
if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == '') {
wp_die('Please enable referrers in your browser!');
}
}
add_action('check_comment_flood', 'pk_check_referrer');
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die('Please do not load this page directly. Thanks!');
if (post_password_required()) :
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view and post comments.', 'pk_translate'); ?></p>
<?php
return;
endif;
if (comments_open() && get_comments_number() > 0) :
?>
<!-- pk start comments -->
<div id="comments" class="pk_clearfix">
<!-- pk start pk_comments -->
<div class="pk_comments pk_clearfix">
<!-- pk start comments rss link -->
<a class="pk_comments_rss" href="<?php echo get_post_comments_feed_link(); ?>" title="<?php _e('Subscribe to Comments via RSS', 'pk_translate'); ?>"><?php _e('RSS', 'pk_translate'); ?></a>
<!-- pk end comments rss link -->
<!-- pk start comments title -->
<h4 class="pk_heading_uppercase"><?php printf(_n('One Comment', '%1$s Comments', get_comments_number(), 'pk_translate'), number_format_i18n(get_comments_number())); ?></h4>
<!-- pk end comments title -->
<!-- pk start comments list -->
<ol class="comment_list">
<?php
wp_list_comments(array('callback' => 'pk_comments_list'));
?>
</ol>
<!-- pk end comments list -->
<?php
pk_comments_navigation(paginate_comments_links('prev_next=0&show_all=1&echo=0&type=array'));
?>
</div>
<!-- pk end pk_comments -->
</div>
<!-- pk end comments -->
<?php
endif;
if (comments_open()) :
?>
<!-- pk start comments form -->
<?php
$commenter = wp_get_current_commenter();
$req = get_option('require_name_email');
$aria_req = ($req ? " aria-required='true'" : '');
$fields = array(
'author' => '<p class="comment-form-author">'.'<label for="author">'.__('Name', 'pk_translate').'</label> '.($req ? '<span class="required">*</span>' : '').'<input id="author" name="author" type="text" value="'.esc_attr($commenter['comment_author']).'" size="30"'.$aria_req.' /></p>',
'email' => '<p class="comment-form-email"><label for="email">'.__('Email', 'pk_translate').'</label> '.($req ? '<span class="required">*</span>' : '').'<input id="email" name="email" type="text" value="'.esc_attr($commenter['comment_author_email']).'" size="30"'.$aria_req.' /></p>',
'url' => '<p class="comment-form-url"><label for="url">'.__('Website', 'pk_translate').'</label>'.'<input id="url" name="url" type="text" value="'.esc_attr($commenter['comment_author_url']).'" size="30" /></p>',
);
$args = array(
'fields' => $fields,
'comment_notes_before' => '',
'comment_notes_after' => '',
'title_reply' => __('Reply', 'pk_translate'),
'title_reply_to' => __('Leave a Reply to %s', 'pk_translate'),
'cancel_reply_link' => __('Cancel Reply', 'pk_translate'),
'label_submit' => __('Post Comment', 'pk_translate'),
'comment_field' => '<p class="comment-form-comment"><label for="comment">'.__('Comment', 'pk_translate').'</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
'must_log_in' => '<p class="must-log-in">'.sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'pk_translate'), wp_login_url(apply_filters('the_permalink', get_permalink()))).'</p>',
'logged_in_as' => '<p class="logged-in-as">'.sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'pk_translate'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))).'</p>'
);
function minify_form($buffer) {
return str_replace(array("\t", "\n", "\r"), '', $buffer);
}
ob_start('minify_form');
comment_form($args);
ob_end_flush();
?>
<!-- pk end comments form -->
<?php
endif;
?>

View File

@ -0,0 +1,50 @@
<?php
header("Content-type: text/css; charset: UTF-8");
header("Cache-Control: max-age=".(60 * 60 * 24 * 7).", must-revalidate");
header("Expires: ".gmdate("D, d M Y H:i:s", time() + (60 * 60 * 24 * 7))." GMT");
$skin = $_GET['skin'];
$ecommerce = $_GET['ecommerce'];
$bbpress = $_GET['bbpress'];
function minify($buffer) {
require_once('../framework/includes/minify/cssmin.php');
$buffer = str_replace('../images/prettyPhoto/', '../prettyPhoto/images/prettyPhoto/', $buffer);
return CssMin::minify($buffer);
}
ob_start('minify');
require_once('pk_reset.css');
if ($ecommerce == 'jigoshop') {
require_once('pk_jigoshop.css');
require_once('pk_jigoshop_widgets.css');
} else {
require_once('pk_woocommerce.css');
require_once('pk_woocommerce_widgets.css');
}
if ($bbpress == 'yes') {
require_once('pk_bbpress.css');
require_once('pk_bbpress_widgets.css');
}
require_once('pk_shortcodes.css');
require_once('pk_widgets.css');
require_once('pk_style.css');
if ($skin != 'custom') require_once('pk_skin_'.$skin.'.css');
if ($skin == 'custom') require_once('pk_skin_'.$skin.'.php');
require_once('../prettyPhoto/css/prettyPhoto.css');
require_once('../style.css');
ob_end_flush();
?>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,83 @@
/*
GLOBAL
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_display_replies img {
display: inline;
margin: 0 4px -4px 0;
width: 15px;
height: 15px;
}
/*
LOGIN
-------------------------------------------------------------------------------------------------------------------------------------*/
.bbp_widget_login .bbp-login-form .bbp-username,
.bbp_widget_login .bbp-login-form .bbp-email,
.bbp_widget_login .bbp-login-form .bbp-password {
float: none;
margin-bottom: 0 !important;
width: 100%;
}
.bbp_widget_login .bbp-login-form fieldset,
.bbp_widget_login .bbp-logged-in {
padding: 15px;
border: none !important;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.bbp_widget_login .bbp-login-form fieldset legend { display: none; }
.bbp_widget_login .bbp-login-form .bbp-username input,
.bbp_widget_login .bbp-login-form .bbp-email input,
.bbp_widget_login .bbp-login-form .bbp-password input {
margin: 0;
width: 100%;
}
.bbp_widget_login .bbp-login-form label {
width: 140px;
display: inline-block;
}
.bbp_widget_login .bbp-login-form .bbp-username,
.bbp_widget_login .bbp-login-form .bbp-email,
.bbp_widget_login .bbp-login-form .bbp-password,
.bbp_widget_login .bbp-login-form .bbp-remember-me,
.bbp_widget_login .bbp-login-form .bbp-submit-wrapper {
margin-top: 10px;
}
.bbp_widget_login .bbp-login-form .bbp-remember-me input {
margin: -2px 3px 0 0;
}
.bbp_widget_login .bbp-login-form .bbp-submit-wrapper { text-align: right; }
.bbp_widget_login .bbp-login-form .bbp-login-links a {
float: left;
clear: left;
}
.bbp_widget_login .bbp-logged-in { overflow: hidden; }
.bbp_widget_login .bbp-logged-in h4 { display: none; }
.bbp_widget_login .bbp-logged-in img.avatar {
float: left;
margin: 0 15px 0 0;
max-width: 32px;
}
.bbp_widget_login .bbp-logged-in .button {
float: left;
margin: -1px 0 0 0;
padding: 0 22px;
height: 32px;
font-size: 13px;
line-height: 32px;
cursor: pointer;
text-decoration: none;
border: none;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
-webkit-transition: none;
-moz-transition: none;
-ms-transition: none;
-o-transition: none;
transition: none;
}
.bbp_widget_login .bbp-logged-in .button:hover{ background-position: 0 -82px; }

View File

@ -0,0 +1,10 @@
/*
HIDE
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_business_tabs .pk_tab,
.pk_tabs .pk_tab,
.pk_slider .pk_slider_item,
.pk_slider .pk_slider_item_info,
.woocommerce_ordering{ display: none; }
.pk_content_slider .pk_slider_item_media img{ visibility : hidden; }

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,280 @@
/*
GLOBAL
-------------------------------------------------------------------------------------------------------------------------------------*/
ul.cart_list, ul.product_list_widget {
overflow: hidden;
margin: 0;
padding: 0 0 5px 0;
font-size: 12px;
list-style: none;
}
ul.cart_list li, ul.product_list_widget li {
margin: 0;
padding: 4px 0;
background-image: none !important;
}
ul.cart_list li a, ul.product_list_widget li a{ display: block; }
ul.cart_list li img, ul.product_list_widget li img {
float: left;
margin: 4px 15px 0 0;
width: 50px;
max-width: 50px;
height: auto;
-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;
}
ul.cart_list .js_widget_product_title, ul.product_list_widget .js_widget_product_title{ font-size: 14px; }
ul.cart_list li .js_widget_product_price ins, ul.product_list_widget .js_widget_product_price ins{ border: none !important; }
/* Cart List Only */
ul.cart_list .js_widget_product_price del{ font-size: 10px; }
ul.cart_list {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
ul.cart_list li{ padding: 10px 15px; }
/* Product List Widget Only */
ul.product_list_widget li {
overflow: hidden;
margin-bottom: 15px;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
ul.product_list_widget li:last-child{ margin: 0; }
ul.product_list_widget .js_widget_product_price{ overflow: hidden; }
ul.product_list_widget .js_widget_product_price del, ul.product_list_widget .js_widget_product_price .from {
float: left;
margin: 0 5px 0 0;
font-size: 10px;
}
/*
RECENT REVIEWS - TOP RATED PRODUCTS
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_recent_reviews ul.product_list_widget li, .widget_top_rated ul.product_list_widget li {
position: relative;
padding-bottom: 40px;
}
.widget_recent_reviews .star-rating, .widget_top_rated ul.product_list_widget .star-rating {
position: absolute;
left: 80px;
bottom: 15px;
}
/*
CART
-------------------------------------------------------------------------------------------------------------------------------------*/
span.empty {
display: block;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget p.total {
margin: 0;
padding: 10px 15px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget p.buttons {
overflow: hidden;
margin: 0;
padding: 15px;
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget p.buttons .checkout{ float: right; }
/*
PRODUCT SEARCH
-------------------------------------------------------------------------------------------------------------------------------------*/
.jigoshop_product_search {
position:relative;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.jigoshop_product_search h4,
.jigoshop_product_search h5{ display: none; }
/*
LAYERED NAV
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_layered_nav .layerd_nav_clear {
position: absolute;
top: -2px;
right: 0;
padding: 1px 10px;
font-size: 12px;
-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;
}
.ie8 .widget_layered_nav .layerd_nav_clear{ padding: 0 10px 2px 10px; }
.widget_layered_nav ul {
margin: 0;
padding: 0;
list-style: none;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_layered_nav ul li {
overflow: hidden;
padding: 4px 15px;
}
.widget_layered_nav ul li:last-child{ border: none !important; }
.widget_layered_nav ul li a, .widget_layered_nav ul li span {
float: left;
padding: 1px 0;
}
.widget_layered_nav ul li.chosen{ padding-left: 40px; }
.widget_layered_nav ul small.count {
float: right;
margin-left: 15px;
padding: 0 10px;
font-size: 11px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget.widget_layered_nav ul li,
#pk_widgets_area .pk_widget.widget_layered_nav ul li{ background: none; }
/*
LOGIN
-------------------------------------------------------------------------------------------------------------------------------------*/
.jigoshop_login_widget {
padding: 15px;
font-size: 12px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.jigoshop_login_widget p {
display: block;
overflow: hidden;
margin: 0;
padding-bottom: 5px;
width: 100%;
}
.jigoshop_login_widget p:nth-child(3){ margin-bottom: 20px; }
.jigoshop_login_widget .forgot {
float: left;
margin: 8px 0 0 15px;
}
.jigoshop_login_widget label {
display: block;
margin-bottom: 3px;
font-size: 12px;
}
.jigoshop_login_widget input[type=text], .jigoshop_login_widget input[type=password]{ width: 100%; }
/*
PRICE FILTER
-------------------------------------------------------------------------------------------------------------------------------------*/
.jigoshop_price_filter .price_slider_wrapper {
padding: 15px 15px 10px 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.jigoshop_price_filter .price_slider_wrapper .price_slider{ margin: 1px 0 15px 0; }
.jigoshop_price_filter .price_slider_wrapper .price_slider_amount {
overflow: hidden;
margin-top: 5px;
padding: 7px 0 5px 0;
font-size: 12px;
}
.jigoshop_price_filter .price_slider_wrapper .button {
float: right;
margin: -7px 0 0 0;
}
/* Interaction states */
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { font-weight: normal; border: none; color: #555555; }
.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: none; font-weight: normal; }
.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: none; }
.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: none; background: #000; 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: #000; 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: 1; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: 1; filter:Alpha(Opacity=35); background-image: none; }
/* Slider */
.ui-corner-all { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.ui-slider { position: relative; text-align: left; }
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 18px; height: 18px; cursor: default; }
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.price_slider_wrapper .ui-widget-content { border: none; color: #222222;
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.18); -webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.18); box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.18);
}
.price_slider_wrapper .ui-widget-header { border: none; color: font-weight: bold; #222222; }
.ui-slider-horizontal { height: 7px; }
.ui-slider-horizontal .ui-slider-handle { top: -5px; margin-left: -.6em; }
.ui-slider-horizontal .ui-slider-range { top: 1px; height: 5px; }
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
/*
QUERIES
-------------------------------------------------------------------------------------------------------------------------------------*/
/* Tablet (portrait and landscape) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
.pk_widget p.buttons .button{ float: right; margin-bottom: 15px; margin-left: 15px; }
.pk_widget p.buttons .checkout{ margin-bottom: 0; }
}
/* Mobile */
@media screen and (max-width: 767px) {
.pk_widget p.buttons .button{ float: right; margin-bottom: 15px; margin-left: 15px; }
.pk_widget p.buttons .checkout{ margin-bottom: 0; }
}
/* Mobile Landscape */
@media only screen and (min-width: 480px) and (max-width: 767px) {
.pk_widget p.buttons .button{ float: left; margin-bottom: 0; margin-left: 0; }
.pk_widget p.buttons .checkout{ float: right; }
}

View File

@ -0,0 +1,17 @@
/*
NOSCRIPT
-------------------------------------------------------------------------------------------------------------------------------------*/
nav ul li:hover ul ul, nav ul li:hover ul ul ul, nav ul li:hover ul ul ul ul{ display: none; }
nav ul li:hover ul, nav ul li li:hover ul, nav ul li li li:hover ul, nav ul li li li li:hover ul{ display: block; }
.pk_option_nav #pk_search_form{ width: auto; }
.pk_page {
margin-top: 10px;
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
}
.pk_call_to_action_content .pk_call_to_action_news ul{ margin-bottom: 20px; }
.pk_slider .pk_slider_content{ margin-bottom: 0; }
.pk_slider .pk_slider_item_info{ display: none; }
#myatu_bgm_top{ display: none; }

View File

@ -0,0 +1,73 @@
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
-------------------------------------------------------------------------------------------------------------------------------------*/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
font-weight: normal;
vertical-align: baseline;
background: transparent;
-webkit-text-size-adjust: none;
}
html{ -webkit-font-smoothing: antialiased; }
body{ line-height:1; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section{ display: block; }
img{ margin: 0; }
nav ul{ list-style: none; }
blockquote, q{ quotes: none; }
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
a {
margin: 0;
padding: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
/* change colours to suit your needs */
ins {
background: none;
text-decoration: none;
}
/* change colours to suit your needs */
mark {
background: none;
font-style: italic;
font-weight: bold;
}
del{ text-decoration: line-through; }
abbr[title], dfn[title] {
border-bottom: 1px dotted;
cursor: help;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* change border colour to suit your needs */
hr {
display: block;
padding: 0;
height: 1px;
border: 0;
border-top: 1px solid #cccccc;
}
input, select{ vertical-align: middle; }
input:not([type="radio"]):not([type="checkbox"]), button, textarea{ -webkit-appearance: none; }

View File

@ -0,0 +1,919 @@
/*
COLUMNS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_one_half,
.pk_one_third,
.pk_one_fourth,
.pk_one_fifth,
.pk_one_sixth,
.pk_two_third,
.pk_two_fourth,
.pk_two_fifth,
.pk_two_sixth,
.pk_three_fourth,
.pk_three_fifth,
.pk_three_sixth,
.pk_four_fifth,
.pk_four_sixth,
.pk_five_sixth {
display: block;
position: relative;
float: left;
margin-right: 3.9%;
}
.pk_full_width{ width:100%; }
.pk_one_half{ width: 48%; }
.pk_one_third{ width: 30.6%; }
.pk_one_fourth{ width: 22%; }
.pk_one_fifth{ width: 16.7%; }
.pk_one_sixth{ width: 13.3%; }
.pk_two_third{ width: 65.3%; }
.pk_two_fourth{ width: 48%; }
.pk_two_fifth{ width: 37.6%; }
.pk_two_sixth{ width: 30.6%; }
.pk_three_fourth{ width: 74%; }
.pk_three_fifth{ width: 58.4%; }
.pk_three_sixth{ width: 47.9%; }
.pk_four_fifth{ width: 79.2%; }
.pk_four_sixth{ width: 65.3%; }
.pk_five_sixth{ width: 82.6%; }
.pk_last {
float: right;
margin-right: 0;
}
/*
HEADINGS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_heading_uppercase {
margin-bottom: 18px;
padding-bottom: 5px;
font-size: 15px;
line-height: 20px;
letter-spacing: .05em;
text-transform: uppercase;
}
.pk_heading_underline {
display: block;
margin-bottom: 25px;
padding-bottom: 5px;
}
.pk_heading_background {
display: inline-block;
padding: 7px 10px 6px 10px;
width: auto;
}
.ie7 .pk_heading_background {
display: inline;
padding-bottom: 6px;
}
/*
LISTS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_arrow_list, .pk_arrow_list ul,
.pk_check_list, .pk_check_list ul,
.pk_clear_list, .pk_clear_list ul{ margin-left: 0; list-style: none !important; }
.pk_arrow_list li, .pk_check_list li, .pk_clear_list li{ margin-left: 0; }
.pk_arrow_list li{ padding-left: 13px !important; }
.pk_check_list li{ padding-left: 22px !important; }
/*
HIGHLIGHTS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_highlight{ padding:3px 6px; }
.pk_highlight.pk_rounded{ -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; }
/*
DROP CAPS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_drop_cap_1, .pk_drop_cap_2{ font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, Lucida Grande, sans-serif; }
.pk_drop_cap_1 {
float: left;
margin: 0 10px 0 0;
font-size: 45px;
line-height: 40px;
}
.pk_drop_cap_2 {
float: left;
margin: 0 10px 0 -2px;
padding: 0;
width: 43px;
height: 45px;
font-size: 21px;
line-height: 42px;
text-align: center;
background: transparent url('../images/shortcodes/dropcaps/drop_cap_2.png') no-repeat 0 0;
}
/* Drop Caps Variations */
.pk_drop_cap_2.pk_drop_cap_white{ color: #888e90; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-position: 0 0; }
.pk_drop_cap_2.pk_drop_cap_grey{ color: #eeeded; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-position: 0 -45px; }
.pk_drop_cap_2.pk_drop_cap_black{ color: #a7a6a6; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33); background-position:0 -90px; }
.pk_drop_cap_2.pk_drop_cap_orange{ color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-position: 0 -135px; }
.pk_drop_cap_2.pk_drop_cap_yellow{ color: #8d8133; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-position: 0 -180px; }
.pk_drop_cap_2.pk_drop_cap_lime{ color: #889534; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-position: 0 -225px; }
.pk_drop_cap_2.pk_drop_cap_green{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-position: 0 -270px; }
.pk_drop_cap_2.pk_drop_cap_blue{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-position: 0 -315px; }
.pk_drop_cap_2.pk_drop_cap_purple{ color: #ebe7f1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-position: 0 -360px; }
.pk_drop_cap_2.pk_drop_cap_red{ color: #f0e7e7; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-position: 0 -405px; }
/*
BUTTONS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_button_mini {
/*display: block; float: left;*/
display: inline-block;
margin-bottom: 10px;
padding-left: 15px;
height: 28px;
border: none;
font-size: 11px;
cursor: pointer;
white-space: nowrap;
background: url('../images/shortcodes/buttons/mini/buttons_left_sprite.png') no-repeat 0 0;
}
.pk_button_mini span {
display: block;
float: left;
padding: 0 15px 0 0;
height: 28px;
line-height: 25px;
background-position: right 0;
}
.pk_button_mini:hover, .pk_button_mini:hover span{ border: none; }
.pk_button_mini.pk_button_with_icon{ padding-left: 27px; }
.pk_button_mini.pk_button_with_icon span{ padding-right: 12px; }
.pk_button_small {
/*display: block; float: left;*/
display: inline-block;
margin: 0 0 10px -2px;
padding-left: 22px;
height: 35px;
border: none;
font-size: 12px;
cursor: pointer;
white-space: nowrap;
background: url('../images/shortcodes/buttons/small/buttons_left_sprite.png') no-repeat 0 0;
}
.pk_button_small span {
/*display: block; float: left;*/
display: inline-block;
padding: 0 22px 0 0;
height: 35px;
text-align: center;
line-height: 31px;
background-position: right 0;
}
.pk_button_small:hover, .pk_button_small:hover span{ border: none; }
.pk_button_small.pk_button_with_icon{ padding-left: 35px; }
.pk_button_small.pk_button_with_icon span{ padding-right: 18px; }
.pk_button_medium {
/*display: block; float: left;*/
display: inline-block;
margin: 0 0 10px -3px;
padding-left: 28px;
height: 47px;
border: none;
font-size: 15px;
cursor: pointer;
white-space: nowrap;
background: url('../images/shortcodes/buttons/medium/buttons_left_sprite.png') no-repeat 0 0;
}
.pk_button_medium span {
display: block;
float: left;
padding: 0 28px 0 0;
height: 47px;
text-align: center;
line-height: 43px;
background-position: right 0;
}
.pk_button_medium:hover, .pk_button_medium:hover span{ border: none; }
.pk_button_medium.pk_button_with_icon{ padding-left: 45px; }
.pk_button_medium.pk_button_with_icon span{ padding-right: 22px; }
.pk_button_big {
/*display: block; float: left;*/
display: inline-block;
margin: 0 0 10px -5px;
padding-left: 33px;
height: 57px;
border: none;
font-size: 21px;
cursor: pointer;
white-space: nowrap;
background: url('../images/shortcodes/buttons/big/buttons_left_sprite.png') no-repeat 0 0;
}
.pk_button_big span {
display: block;
float: left;
padding: 0 33px 0 0;
height: 57px;
text-align: center;
line-height: 53px;
background-position: right 0;
}
.pk_button_big:hover, .pk_button_big:hover span{ border: none; }
.pk_button_big.pk_button_with_icon{ padding-left: 55px; }
.pk_button_big.pk_button_with_icon span{ padding-right: 23px; }
/* Buttons Mini Variations */
.pk_button_mini.pk_button_white{ background-position: 0 0; }
.pk_button_mini.pk_button_white span{ color: #605e5e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/mini/button_white_right.png'); }
.pk_button_mini.pk_button_white:hover{ background-position: 0 -28px; }
.pk_button_mini.pk_button_white:hover span{ color: #605e5e; background-position: right -28px; }
.pk_button_mini.pk_button_grey{ background-position: 0 -56px; }
.pk_button_mini.pk_button_grey span{ color: #eeeded; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/mini/button_grey_right.png'); }
.pk_button_mini.pk_button_grey:hover{ background-position: 0 -84px; }
.pk_button_mini.pk_button_grey:hover span{ color: #eeeded; background-position: right -28px; }
.pk_button_mini.pk_button_black{ background-position: 0 -112px }
.pk_button_mini.pk_button_black span{ color: #a7a6a6; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33); background-image: url('../images/shortcodes/buttons/mini/button_black_right.png'); }
.pk_button_mini.pk_button_black:hover{ background-position: 0 -140px; }
.pk_button_mini.pk_button_black:hover span{ color: #a7a6a6; background-position: right -28px; }
.pk_button_mini.pk_button_orange{ background-position: 0 -168px; }
.pk_button_mini.pk_button_orange span{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/mini/button_orange_right.png'); }
.pk_button_mini.pk_button_orange:hover{ background-position: 0 -196px; }
.pk_button_mini.pk_button_orange:hover span{ color: #fff; background-position: right -28px; }
.pk_button_mini.pk_button_yellow{ background-position: 0 -224px; }
.pk_button_mini.pk_button_yellow span{ color: #8d8133; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/mini/button_yellow_right.png'); }
.pk_button_mini.pk_button_yellow:hover{ background-position: 0 -252px; }
.pk_button_mini.pk_button_yellow:hover span{ color: #8d8133; background-position: right -28px; }
.pk_button_mini.pk_button_lime{ background-position: 0 -280px; }
.pk_button_mini.pk_button_lime span{ color: #889534; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/mini/button_lime_right.png'); }
.pk_button_mini.pk_button_lime:hover{ background-position: 0 -308px; }
.pk_button_mini.pk_button_lime:hover span{ color: #889534; background-position: right -28px; }
.pk_button_mini.pk_button_green{ background-position: 0 -336px; }
.pk_button_mini.pk_button_green span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/mini/button_green_right.png'); }
.pk_button_mini.pk_button_green:hover{ background-position: 0 -364px; }
.pk_button_mini.pk_button_green:hover span{ color: #fafafa; background-position: right -28px; }
.pk_button_mini.pk_button_blue{ background-position: 0 -392px; }
.pk_button_mini.pk_button_blue span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/mini/button_blue_right.png'); }
.pk_button_mini.pk_button_blue:hover{ background-position: 0 -420px; }
.pk_button_mini.pk_button_blue:hover span{ color: #fafafa; background-position: right -28px; }
.pk_button_mini.pk_button_purple{ background-position: 0 -448px; }
.pk_button_mini.pk_button_purple span{ color: #ebe7f1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/mini/button_purple_right.png'); }
.pk_button_mini.pk_button_purple:hover{ background-position: 0 -476px; }
.pk_button_mini.pk_button_purple:hover span{ color: #ebe7f1; background-position: right -28px; }
.pk_button_mini.pk_button_red{ background-position: 0 -504px; }
.pk_button_mini.pk_button_red span{ color: #f0e7e7; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/mini/button_red_right.png'); }
.pk_button_mini.pk_button_red:hover{ background-position: 0 -532px; }
.pk_button_mini.pk_button_red:hover span{ color: #f0e7e7; background-position: right -28px; }
.pk_button_mini.pk_button_with_icon{ background-image: url('../images/shortcodes/buttons/mini/icons_sprite.png'); }
/* Buttons Small Variations */
.pk_button_small.pk_button_white{ background-position: 0 0; }
.pk_button_small.pk_button_white span{ color: #605e5e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/small/button_white_right.png'); }
.pk_button_small.pk_button_white:hover{ background-position: 0 -35px; }
.pk_button_small.pk_button_white:hover span{ color: #605e5e; background-position: right -35px; }
.pk_button_small.pk_button_grey{ background-position: 0 -70px; }
.pk_button_small.pk_button_grey span{ color: #eeeded; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/small/button_grey_right.png'); }
.pk_button_small.pk_button_grey:hover{ background-position: 0 -105px; }
.pk_button_small.pk_button_grey:hover span{ color: #eeeded; background-position: right -35px; }
.pk_button_small.pk_button_black{ background-position: 0 -140px }
.pk_button_small.pk_button_black span{ color: #a7a6a6; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33); background-image: url('../images/shortcodes/buttons/small/button_black_right.png'); }
.pk_button_small.pk_button_black:hover{ background-position: 0 -175px; }
.pk_button_small.pk_button_black:hover span{ color:#a7a6a6; background-position:right -35px; }
.pk_button_small.pk_button_orange{ background-position: 0 -210px; }
.pk_button_small.pk_button_orange span{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/small/button_orange_right.png'); }
.pk_button_small.pk_button_orange:hover{ background-position: 0 -245px; }
.pk_button_small.pk_button_orange:hover span{ color:#fff; background-position:right -35px; }
.pk_button_small.pk_button_yellow{ background-position: 0 -280px; }
.pk_button_small.pk_button_yellow span{ color: #8d8133; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/small/button_yellow_right.png'); }
.pk_button_small.pk_button_yellow:hover{ background-position: 0 -315px; }
.pk_button_small.pk_button_yellow:hover span{ color: #8d8133; background-position: right -35px; }
.pk_button_small.pk_button_lime{ background-position: 0 -350px; }
.pk_button_small.pk_button_lime span{ color:#889534; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/small/button_lime_right.png'); }
.pk_button_small.pk_button_lime:hover{ background-position: 0px -385px; }
.pk_button_small.pk_button_lime:hover span{ color: #889534; background-position: right -35px; }
.pk_button_small.pk_button_green{ background-position: 0 -420px; }
.pk_button_small.pk_button_green span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/small/button_green_right.png'); }
.pk_button_small.pk_button_green:hover{ background-position: 0 -455px; }
.pk_button_small.pk_button_green:hover span{ color: #fafafa; background-position: right -35px; }
.pk_button_small.pk_button_blue{ background-position: 0 -490px; }
.pk_button_small.pk_button_blue span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/small/button_blue_right.png'); }
.pk_button_small.pk_button_blue:hover{ background-position: 0 -525px; }
.pk_button_small.pk_button_blue:hover span{ color:#fafafa; background-position:right -35px; }
.pk_button_small.pk_button_purple{ background-position: 0 -560px; }
.pk_button_small.pk_button_purple span{ color: #ebe7f1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/small/button_purple_right.png'); }
.pk_button_small.pk_button_purple:hover{ background-position: 0 -595px; }
.pk_button_small.pk_button_purple:hover span{ color: #ebe7f1; background-position: right -35px; }
.pk_button_small.pk_button_red{ background-position: 0 -630px; }
.pk_button_small.pk_button_red span{ color: #f0e7e7; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/small/button_red_right.png'); }
.pk_button_small.pk_button_red:hover{ background-position: 0 -665px; }
.pk_button_small.pk_button_red:hover span{ color: #f0e7e7; background-position: right -35px; }
.pk_button_small.pk_arrow_icon{ background-image: url('../images/shortcodes/buttons/small/arrow_icons_sprite.png'); }
.pk_button_small.pk_mini_arrow_icon{ background-image: url('../images/shortcodes/buttons/small/mini_arrow_icons_sprite.png'); }
.pk_button_small.pk_download_icon{ background-image: url('../images/shortcodes/buttons/small/download_icons_sprite.png'); }
.pk_button_small.pk_mail_icon{ background-image: url('../images/shortcodes/buttons/small/mail_icons_sprite.png'); }
.pk_button_small.pk_home_icon{ background-image: url('../images/shortcodes/buttons/small/home_icons_sprite.png'); }
.pk_button_small.pk_zoom_icon{ background-image: url('../images/shortcodes/buttons/small/zoom_icons_sprite.png'); }
/* Buttons Medium Variations */
.pk_button_medium.pk_button_white{ background-position: 0 0; }
.pk_button_medium.pk_button_white span{ color: #605e5e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/medium/button_white_right.png'); }
.pk_button_medium.pk_button_white:hover{ background-position: 0 -47px; }
.pk_button_medium.pk_button_white:hover span{ color: #605e5e; background-position: right -47px; }
.pk_button_medium.pk_button_grey{ background-position: 0 -94px; }
.pk_button_medium.pk_button_grey span{ color: #eeeded; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/medium/button_grey_right.png'); }
.pk_button_medium.pk_button_grey:hover{ background-position: 0 -141px; }
.pk_button_medium.pk_button_grey:hover span{ color: #eeeded; background-position: right -47px; }
.pk_button_medium.pk_button_black{ background-position: 0px -188px }
.pk_button_medium.pk_button_black span{ color: #a7a6a6; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33); background-image: url('../images/shortcodes/buttons/medium/button_black_right.png'); }
.pk_button_medium.pk_button_black:hover{ background-position: 0 -235px; }
.pk_button_medium.pk_button_black:hover span{ color: #a7a6a6; background-position: right -47px; }
.pk_button_medium.pk_button_orange{ background-position: 0 -282px; }
.pk_button_medium.pk_button_orange span{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/medium/button_orange_right.png'); }
.pk_button_medium.pk_button_orange:hover{ background-position: 0 -329px; }
.pk_button_medium.pk_button_orange:hover span{ color: #fff; background-position: right -47px; }
.pk_button_medium.pk_button_yellow{ background-position: 0px -376px; }
.pk_button_medium.pk_button_yellow span{ color: #8d8133; text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/medium/button_yellow_right.png'); }
.pk_button_medium.pk_button_yellow:hover{ background-position: 0px -423px; }
.pk_button_medium.pk_button_yellow:hover span{ color: #8d8133; background-position: right -47px; }
.pk_button_medium.pk_button_lime{ background-position: 0 -470px; }
.pk_button_medium.pk_button_lime span{ color: #889534; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/medium/button_lime_right.png'); }
.pk_button_medium.pk_button_lime:hover{ background-position: 0 -517px; }
.pk_button_medium.pk_button_lime:hover span{ color: #889534; background-position: right -47px; }
.pk_button_medium.pk_button_green{ background-position: 0 -564px; }
.pk_button_medium.pk_button_green span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/medium/button_green_right.png'); }
.pk_button_medium.pk_button_green:hover{ background-position: 0 -611px; }
.pk_button_medium.pk_button_green:hover span{ color: #fafafa; background-position: right -47px; }
.pk_button_medium.pk_button_blue{ background-position: 0 -658px; }
.pk_button_medium.pk_button_blue span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/medium/button_blue_right.png'); }
.pk_button_medium.pk_button_blue:hover{ background-position: 0 -705px; }
.pk_button_medium.pk_button_blue:hover span{ color: #fafafa; background-position: right -47px; }
.pk_button_medium.pk_button_purple{ background-position: 0 -752px; }
.pk_button_medium.pk_button_purple span{ color: #ebe7f1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/medium/button_purple_right.png'); }
.pk_button_medium.pk_button_purple:hover{ background-position: 0 -799px; }
.pk_button_medium.pk_button_purple:hover span { color: #ebe7f1; background-position: right -47px; }
.pk_button_medium.pk_button_red{ background-position: 0 -846px; }
.pk_button_medium.pk_button_red span{ color: #f0e7e7; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/medium/button_red_right.png'); }
.pk_button_medium.pk_button_red:hover{ background-position: 0 -893px; }
.pk_button_medium.pk_button_red:hover span{ color: #f0e7e7; background-position: right -47px; }
.pk_button_medium.pk_arrow_icon{ background-image:url('../images/shortcodes/buttons/medium/arrow_icons_sprite.png'); }
.pk_button_medium.pk_mini_arrow_icon{ background-image:url('../images/shortcodes/buttons/medium/mini_arrow_icons_sprite.png'); }
.pk_button_medium.pk_download_icon{ background-image:url('../images/shortcodes/buttons/medium/download_icons_sprite.png'); }
.pk_button_medium.pk_mail_icon{ background-image:url('../images/shortcodes/buttons/medium/mail_icons_sprite.png'); }
.pk_button_medium.pk_home_icon{ background-image:url('../images/shortcodes/buttons/medium/home_icons_sprite.png'); }
.pk_button_medium.pk_zoom_icon{ background-image:url('../images/shortcodes/buttons/medium/zoom_icons_sprite.png'); }
/* Buttons Big Variations */
.pk_button_big.pk_button_white{ background-position: 0 0; }
.pk_button_big.pk_button_white span{ color: #605e5e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/big/button_white_right.png'); }
.pk_button_big.pk_button_white:hover{ background-position: 0 -57px; }
.pk_button_big.pk_button_white:hover span{ color: #605e5e; background-position: right -57px; }
.pk_button_big.pk_button_grey{ background-position: 0 -114px; }
.pk_button_big.pk_button_grey span{ color: #eeeded; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/big/button_grey_right.png'); }
.pk_button_big.pk_button_grey:hover{ background-position: 0 -171px; }
.pk_button_big.pk_button_grey:hover span{ color: #eeeded; background-position: right -57px; }
.pk_button_big.pk_button_black{ background-position: 0 -228px }
.pk_button_big.pk_button_black span{ color: #a7a6a6; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33); background-image: url('../images/shortcodes/buttons/big/button_black_right.png'); }
.pk_button_big.pk_button_black:hover{ background-position: 0 -285px; }
.pk_button_big.pk_button_black:hover span{ color: #a7a6a6; background-position: right -57px; }
.pk_button_big.pk_button_orange{ background-position: 0px -342px; }
.pk_button_big.pk_button_orange span{ color: #fff; text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/big/button_orange_right.png'); }
.pk_button_big.pk_button_orange:hover{ background-position: 0px -399px; }
.pk_button_big.pk_button_orange:hover span{ color: #fff; background-position: right -57px; }
.pk_button_big.pk_button_yellow{ background-position: 0 -456px; }
.pk_button_big.pk_button_yellow span{ color: #8d8133; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/big/button_yellow_right.png'); }
.pk_button_big.pk_button_yellow:hover{ background-position: 0 -513px; }
.pk_button_big.pk_button_yellow:hover span{ color: #8d8133; background-position: right -57px; }
.pk_button_big.pk_button_lime{ background-position: 0 -570px; }
.pk_button_big.pk_button_lime span{ color: #889534; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-image: url('../images/shortcodes/buttons/big/button_lime_right.png'); }
.pk_button_big.pk_button_lime:hover{ background-position: 0 -627px; }
.pk_button_big.pk_button_lime:hover span{ color: #889534; background-position: right -57px; }
.pk_button_big.pk_button_green{ background-position: 0px -684px; }
.pk_button_big.pk_button_green span{ color: #fafafa; text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/big/button_green_right.png'); }
.pk_button_big.pk_button_green:hover{ background-position: 0px -741px; }
.pk_button_big.pk_button_green:hover span{ color: #fafafa; background-position: right -57px; }
.pk_button_big.pk_button_blue{ background-position: 0 -798px; }
.pk_button_big.pk_button_blue span{ color: #fafafa; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/big/button_blue_right.png'); }
.pk_button_big.pk_button_blue:hover{ background-position: 0 -855px; }
.pk_button_big.pk_button_blue:hover span{ color: #fafafa; background-position: right -57px; }
.pk_button_big.pk_button_purple{ background-position: 0 -912px; }
.pk_button_big.pk_button_purple span{ color: #ebe7f1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/big/button_purple_right.png'); }
.pk_button_big.pk_button_purple:hover{ background-position: 0 -969px; }
.pk_button_big.pk_button_purple:hover span { color: #ebe7f1; background-position: right -57px; }
.pk_button_big.pk_button_red{ background-position: 0 -1026px; }
.pk_button_big.pk_button_red span{ color: #f0e7e7; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18); background-image: url('../images/shortcodes/buttons/big/button_red_right.png'); }
.pk_button_big.pk_button_red:hover{ background-position: 0 -1083px; }
.pk_button_big.pk_button_red:hover span{ color: #f0e7e7; background-position: right -57px; }
.pk_button_big.pk_arrow_icon{ background-image:url('../images/shortcodes/buttons/big/arrow_icons_sprite.png'); }
.pk_button_big.pk_mini_arrow_icon{ background-image:url('../images/shortcodes/buttons/big/mini_arrow_icons_sprite.png'); }
.pk_button_big.pk_download_icon{ background-image:url('../images/shortcodes/buttons/big/download_icons_sprite.png'); }
.pk_button_big.pk_mail_icon{ background-image:url('../images/shortcodes/buttons/big/mail_icons_sprite.png'); }
.pk_button_big.pk_home_icon{ background-image:url('../images/shortcodes/buttons/big/home_icons_sprite.png'); }
.pk_button_big.pk_zoom_icon{ background-image:url('../images/shortcodes/buttons/big/zoom_icons_sprite.png'); }
/*
STYLED BOXES
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_box {
overflow: hidden;
margin: 0 0 30px 0;
padding: 0;
width: 100%;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_box_content {
overflow: hidden;
padding: 15px;
}
.pk_box_content p{ margin: 15px 0 0 0; }
.pk_box, .pk_box .pk_box_content_wrapper, .pk_box .pk_box_content{ -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.pk_message_box {
overflow: hidden;
margin: 0 0 20px 0;
padding: 0;
width: 100%;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_message_box_content_wrapper, .pk_message_box_content{ -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.pk_message_box_content {
overflow: hidden;
padding: 15px;
}
.pk_message_box_content p, .pk_message_box_content ul{ margin-bottom: 0; }
.pk_info_box .pk_message_box_content,
.pk_note_box .pk_message_box_content,
.pk_success_box .pk_message_box_content,
.pk_error_box .pk_message_box_content,
.pk_warning_box .pk_message_box_content,
.pk_important_box .pk_message_box_content,
.pk_help_box .pk_message_box_content{ padding-left: 60px; }
/* Message Box Variations */
.pk_info_box .pk_message_box_content_wrapper{ color: #236cc7; background: #b2c9e6 url('../images/shortcodes/message_boxes/info.png') no-repeat 14px center; }
.pk_note_box .pk_message_box_content_wrapper{ color: #43412a; background: #fff4c0 url('../images/shortcodes/message_boxes/note.png') no-repeat 14px center; }
.pk_success_box .pk_message_box_content_wrapper{ color: #44802a; background: #c9f0b8 url('../images/shortcodes/message_boxes/success.png') no-repeat 14px center; }
.pk_error_box .pk_message_box_content_wrapper{ color: #af3017; background: #f1bbb0 url('../images/shortcodes/message_boxes/error.png') no-repeat 14px center; }
.pk_warning_box .pk_message_box_content_wrapper{ color: #705213; background: #ffd987 url('../images/shortcodes/message_boxes/warning.png') no-repeat 14px center; }
.pk_important_box .pk_message_box_content_wrapper{ color: #59330d; background: #f8ac61 url('../images/shortcodes/message_boxes/important.png') no-repeat 14px center; }
.pk_help_box .pk_message_box_content_wrapper { color: #353e5f; background: #b2bde6 url('../images/shortcodes/message_boxes/help.png') no-repeat 14px center; }
/*
PRICING TABLES
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_pricing_table {
position: relative;
margin: 0 0 20px 0;
width: 100%;
font-size: 12px;
text-align: center;
}
.pk_pricing_table .pk_column {
position: relative;
z-index: 2;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_pricing_table .pk_one_half, .pk_pricing_table .pk_one_third, .pk_pricing_table .pk_one_fourth, .pk_pricing_table .pk_one_fifth{ margin: 0; }
.pk_pricing_with_highlight{ margin: 35px 0 40px 0; }
.pk_pricing_table header, .pk_pricing_table footer{ overflow: hidden; }
.pk_pricing_table header .pk_type {
margin: 0 !important;
padding: 0 !important;
font-size: 14px;
border-right: solid 1px transparent;
}
.pk_pricing_table header .pk_type span {
display: block;
margin: 1px 1px 0 1px;
padding: 11px 0 0 0;
height: 31px;
border-top: solid 1px transparent;
}
.pk_pricing_table header .pk_price {
margin: 0 !important;
padding: 15px 0;
font: 37px/27px "Myriad Pro", "Helvetica Neue", Helvetica, Arial, Lucida Grande, sans-serif;
border-right: solid 1px transparent;
}
.pk_pricing_table header .pk_price sup {
margin-left: -5px;
padding-top: 5px;
font-size: 55%;
}
.pk_pricing_table header .pk_price span {
display: block;
font: 11px/20px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
}
.pk_pricing_table .pk_first {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
}
.pk_pricing_table .pk_last {
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
}
.pk_pricing_table .pk_first header,
.pk_pricing_table .pk_first header .pk_type span {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
}
.pk_pricing_table .pk_first header .pk_type span {
border-left: solid 1px transparent;
}
.pk_pricing_table .pk_last{ float: left; }
.pk_pricing_table .pk_last header,
.pk_pricing_table .pk_last header .pk_type span {
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
}
.pk_pricing_table .pk_last header .pk_type span {
border-right: solid 1px transparent;
}
.pk_pricing_table ul {
margin: 0 !important;
padding: 0 !important;
list-style: none;
border-right: solid 1px transparent;
}
.pk_pricing_table ul li {
margin: 0 !important;
padding: 5px 0 !important;
font-style: italic;
}
.pk_pricing_table ul li strong{ font-style: normal; }
.pk_pricing_table footer {
overflow: hidden;
margin: 0 !important;
padding: 15px 0;
height: 35px;
text-align: center;
border-right: solid 1px transparent;
}
.pk_pricing_table footer .pk_button_wrapper {
display: inline-block;
float: none !important;
overflow: hidden;
margin: 0 auto;
}
.pk_pricing_table footer .pk_button_small{ margin: 0; }
.pk_pricing_table .pk_first footer{ -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
.pk_pricing_table .pk_last footer{ -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
.pk_pricing_table .pk_last header .pk_type,
.pk_pricing_table .pk_last header .pk_price,
.pk_pricing_table .pk_last ul,
.pk_pricing_table .pk_last footer{ border: none; }
/* Highlight Column */
.pk_pricing_table .pk_highlight_column {
margin: -16px 0 -16px -1px;
z-index: 10;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
.pk_pricing_table .pk_highlight_column .pk_price, .pk_pricing_table .pk_highlight_column footer{ padding: 23px 0; }
.pk_pricing_table .pk_highlight_column header,
.pk_pricing_table .pk_highlight_column header .pk_type span {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
}
.pk_pricing_table .pk_highlight_column header .pk_type span {
border: solid 1px transparent;
border-bottom: none !important;
}
.pk_pricing_table .pk_highlight_column footer {
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
}
.pk_pricing_table .pk_highlight_column header .pk_type,
.pk_pricing_table .pk_highlight_column header .pk_price,
.pk_pricing_table .pk_highlight_column ul,
.pk_pricing_table .pk_highlight_column footer{ border: none; }
/* Columns Dimension */
.pk_pricing_two_columns .pk_one_half,
.pk_pricing_two_columns .pk_highlight_column{ width: 50%; }
.pk_pricing_three_columns .pk_one_third,
.pk_pricing_three_columns .pk_highlight_column{ width: 33.33%; }
.pk_pricing_four_columns .pk_one_fourth,
.pk_pricing_four_columns .pk_highlight_column{ width: 25%; }
.pk_pricing_five_columns .pk_one_fifth,
.pk_pricing_five_columns .pk_highlight_column{ width: 20%; }
/* Pricing Table Variations */
.pk_highlight_white .pk_highlight_column header{ background-color: #f7f6f6; }
.pk_highlight_white .pk_highlight_column header .pk_type span{ color: #605e5e; border-color: #fff !important; }
.pk_highlight_white .pk_highlight_column header .pk_price{ color: #454545; background-color: #f1f0f0; }
.pk_highlight_black .pk_highlight_column header .pk_price sup{ color: #454545; }
.pk_highlight_white .pk_highlight_column header .pk_price span{ color: #888e90; }
.pk_highlight_grey .pk_highlight_column header{ background-color: #a7a6a6; }
.pk_highlight_grey .pk_highlight_column header .pk_type span{ color: #eeeded; border-color: #bcbbbb !important; }
.pk_highlight_grey .pk_highlight_column header .pk_price{ color: #444343; background-color: #cbcaca; }
.pk_highlight_grey .pk_highlight_column header .pk_price sup{ color: #444343; }
.pk_highlight_grey .pk_highlight_column header .pk_price span{ color: #747373; }
.pk_highlight_black .pk_highlight_column header{ background-color: #302f2f; }
.pk_highlight_black .pk_highlight_column header .pk_type span{ color: #a7a6a6; border-color: #434343 !important; }
.pk_highlight_black .pk_highlight_column header .pk_price{ color: #f0eaea; background-color: #525050; }
.pk_highlight_black .pk_highlight_column header .pk_price sup{ color: #f0eaea; }
.pk_highlight_black .pk_highlight_column header .pk_price span{ color: #a5a1a1; }
.pk_highlight_orange .pk_highlight_column header{ background-color: #f3a826; }
.pk_highlight_orange .pk_highlight_column header .pk_type span{ color: #fff; border-color: #f6bf5e !important; }
.pk_highlight_orange .pk_highlight_column header .pk_price{ color: #463e31; background-color: #ffd48a; }
.pk_highlight_orange .pk_highlight_column header .pk_price sup{ color: #463e31; }
.pk_highlight_orange .pk_highlight_column header .pk_price span{ color: #74716e; }
.pk_highlight_yellow .pk_highlight_column header{ background-color: #f1dc51; }
.pk_highlight_yellow .pk_highlight_column header .pk_type span{ color: #8d8133; border-color: #f5e788 !important; }
.pk_highlight_yellow .pk_highlight_column header .pk_price{ color: #45443b; background-color: #fff6b9; }
.pk_highlight_yellow .pk_highlight_column header .pk_price sup{ color: #45443b; }
.pk_highlight_yellow .pk_highlight_column header .pk_price span{ color: #747264; }
.pk_highlight_lime .pk_highlight_column header{ background-color: #e0f456; }
.pk_highlight_lime .pk_highlight_column header .pk_type span{ color: #889534; border-color: #ecf896 !important; }
.pk_highlight_lime .pk_highlight_column header .pk_price{ color: #45463c; background-color: #f8ffc6; }
.pk_highlight_lime .pk_highlight_column header .pk_price sup{ color: #45463c; }
.pk_highlight_lime .pk_highlight_column header .pk_price span{ color:#747667; }
.pk_highlight_green .pk_highlight_column header{ background-color: #a9c929; }
.pk_highlight_green .pk_highlight_column header .pk_type span{ color: #fafafa; border-color: #c2d866 !important; }
.pk_highlight_green .pk_highlight_column header .pk_price{ color: #45463f; background-color: #e0ebb6; }
.pk_highlight_green .pk_highlight_column header .pk_price sup{ color: #45463f; }
.pk_highlight_green .pk_highlight_column header .pk_price span{ color: #74776b; }
.pk_highlight_blue .pk_highlight_column header{ background-color: #7cb5d6; }
.pk_highlight_blue .pk_highlight_column header .pk_type span{ color: #fafafa; border-color: #9ec8e1 !important; }
.pk_highlight_blue .pk_highlight_column header .pk_price{ color: #454d52; background-color: #d0e9f6; }
.pk_highlight_blue .pk_highlight_column header .pk_price sup{ color: #454d52; }
.pk_highlight_blue .pk_highlight_column header .pk_price span{ color: #748087; }
.pk_highlight_purple .pk_highlight_column header{ background-color: #a67cd6; }
.pk_highlight_purple .pk_highlight_column header .pk_type span{ color: #ebe7f1; border-color: #bb9be0 !important; }
.pk_highlight_purple .pk_highlight_column header .pk_price{ color: #453f4d; background-color: #decbf5; }
.pk_highlight_purple .pk_highlight_column header .pk_price sup{ color: #453f4d; }
.pk_highlight_purple .pk_highlight_column header .pk_price span{ color: #746980; }
.pk_highlight_red .pk_highlight_column header{ background-color: #b82323; }
.pk_highlight_red .pk_highlight_column header .pk_type span{ color: #f0e7e7; border-color: #c95757 !important; }
.pk_highlight_red .pk_highlight_column header .pk_price{ color: #453a3a; background-color: #f3cece; }
.pk_highlight_red .pk_highlight_column header .pk_price sup{ color: #453a3a; }
.pk_highlight_red .pk_highlight_column header .pk_price span{ color: #746262; }
/*
TABS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_tabs {
position: relative;
margin-bottom: 30px;
width: 100%;
min-height: 39px;
}
.pk_tabs .pk_tabs_label {
display: none;
position: absolute;
top: 0;
margin: 8px 0 0 0;
text-transform: uppercase;
}
.pk_tabs .pk_tabs_navigation {
display: none;
position: absolute;
margin: 0;
padding: 0;
list-style: none;
z-index: 10;
}
.pk_tabs .pk_tabs_navigation li {
float: left;
margin: 0 -1px 0 0;
padding: 0;
background-image: none !important;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_tabs .pk_tabs_navigation li:first-child{ -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
.pk_tabs .pk_tabs_navigation li:last-child{ -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
.pk_tabs .pk_tabs_navigation li.pk_active_tab{ border-bottom: none; }
.pk_tabs .pk_tabs_navigation a {
display: block;
margin: 0;
padding: 10px 15px 11px 15px;
height: 28px;
}
.pk_tabs .pk_tabs_content {
position: relative;
min-height: 20px;
z-index: 11;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-border-radius-topright: 0; -webkit-border-top-right-radius: 0; border-top-right-radius: 0;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_tabs .pk_tabs_content .pk_tab {
overflow: hidden;
padding: 20px 15px 0 15px;
}
.pk_tabs .pk_tabs_content .pk_tab p{ margin-bottom: 20px !important; }
/*
TOGGLES
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_toggles{ margin-bottom: 30px; }
.pk_toggles .pk_toggle {
display: block;
margin: 0 0 10px 0;
padding: 0;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_toggles .pk_toggle_button {
display: block;
overflow: hidden;
margin: 0 !important;
padding: 12px 0 12px 42px;
font-size: 15px;
line-height: 22px;
cursor: pointer;
}
.pk_toggles .pk_toggle_content_wrapper {
position: relative;
overflow: hidden;
width: 100%;
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
}
.pk_toggles .pk_toggle_content {
overflow: hidden;
padding: 15px 15px 0 15px;
}
.pk_toggles .pk_toggle_content p{ margin-bottom: 15px !important; }
/*
DIVIDERS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_divider {
display: block;
position: relative;
clear: both;
margin: 0 0 20px 0;
padding: 0;
height: 10px;
}
.pk_divider hr {
width: 100%;
border: none;
}
.pk_divider.pk_top{ padding: 5px 0; }
.pk_divider.pk_top hr {
position: absolute;
margin-left: 0;
width: 96.5%;
border: none;
}
.pk_divider.pk_top a {
position: absolute;
top: -1px;
right: 0;
padding: 0 0 0 10px;
width: 20px;
font-size: 9px;
text-align: right;
}
.pk_clear_both {
display: block;
clear: both;
width: 100%;
height: 0;
}
.pk_empty_space {
display: block;
position: relative;
clear: both;
height: 20px;
}
.ie7 .pk_divider.pk_top a{ top: -8px; }
/*
QUERIES
-------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 767px) {
.pk_one_half,
.pk_one_third,
.pk_one_fourth,
.pk_one_fifth,
.pk_one_sixth,
.pk_two_third,
.pk_two_fourth,
.pk_two_fifth,
.pk_two_sixth,
.pk_three_fourth,
.pk_three_fifth,
.pk_three_sixth,
.pk_four_fifth,
.pk_four_sixth,
.pk_five_sixth {
margin-right: 0;
width: 100% !important;
}
.pk_pricing_table .pk_column{ clear: both; margin-top: 5px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.pk_pricing_table .pk_first{ margin-top: 0; }
.pk_pricing_table .pk_column header {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
}
.pk_pricing_table .pk_column footer {
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
}
.pk_pricing_table .pk_highlight_column{ margin: 5px 0 0 0; -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); }
.pk_tabs .pk_tabs_label{ display: none !important; }
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,36 @@
li.pk_admin_sortable_default {
height: 82px;
padding: 5px;
background-color: #f5f5f5;
border: 1px solid #ddd;
cursor: move;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
li.pk_admin_sortable_placeholder {
height: 82px;
padding: 5px;
background-color: #fffddd;
border: 1px solid #ddd;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
a.pk_admin_sort_titles{ text-decoration: none; }
p.pk_admin_class_taxonomies{ margin-bottom: 0; }
img.pk_admin_sort_thumb {
float: left;
margin-right: 10px;
}
span.pk_admin_sort_no_img {
width: 80px;
height: 80px;
float: left;
background-color: #fff;
border: 1px solid #ddd;
margin-right: 10px;
}
#pk_admin_saving_sorting{ display: none; }
#pk_admin_success_sorting{ display: none; }
#pk_admin_error_sorting{ display: none; }

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,535 @@
/*
GLOBAL
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_widget {
clear: both;
position: relative;
}
#pk_sidebar .pk_widget{ font-size: 12px; }
.pk_widget ul, .pk_widget ol {
margin: 0;
list-style: none;
}
.pk_widget li {
margin-left: 0;
padding-left: 13px;
}
.pk_widget li:last-child{ margin: 0; }
.pk_widget{ margin-top: 40px; }
#pk_featured_text .pk_widget:first-child{ margin-top: 0; }
.widget_dribbble li,
.widget_featured_posts li,
.widget_featured_works li,
.widget_popular_posts li,
.widget_popular_works li,
.widget_recent_posts li,
.widget_recent_works li,
.widget_related_posts li,
.widget_related_works li,
.widget_twitter li {
margin-bottom: 15px;
padding: 0;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
/*
ADVERTISING
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_advertising_125_125 {
overflow: hidden;
margin-left: -20px;
padding-bottom: 5px;
}
.widget_advertising_125_125 h4,
.widget_advertising_125_125 h5{ margin: 0 0 0 20px; }
.widget_advertising_125_125 a {
float: left;
margin: 20px 0 0 20px;
padding: 7px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_advertising_125_125 a img {
display: block;
margin: 0;
width: 125px;
max-width: 125px;
}
.widget_advertising_300_250 a img{ -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); }
/*
TESTIMONIALS
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_testimonials {
overflow: hidden;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
#pk_sidebar .pk_testimonials{ margin-bottom: 0; }
.pk_testimonials ul {
margin: 0;
list-style: none;
}
.pk_testimonials li {
display: block;
overflow: hidden;
padding: 0;
background-image: none !important;
}
.pk_testimonials li:last-child{ margin-bottom: 0; }
.pk_testimonials img {
position: absolute;
max-width: 100px;
margin: 15px 0 0 15px;
}
.pk_testimonials blockquote {
float: right;
overflow: hidden;
margin: 0 0 0 130px;
padding: 15px 15px 15px 0;
background: none;
font-size: 14px;
background: none !important;
}
.pk_testimonials blockquote p {
margin: 0;
padding: 0;
}
.pk_testimonials cite {
margin: 5px 0 -5px 0;
font-size: 11px;
text-align: right;
}
.pk_testimonials .pk_arrow {
display: block;
position: absolute;
top: 30px;
left: 108px;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}
.pk_testimonials .pk_no_thumbnail blockquote{
margin: 0;
padding: 15px;
}
.pk_testimonials .pk_no_thumbnail blockquote cite{ text-align: left; }
.pk_testimonials .pk_no_thumbnail .pk_arrow{ display: none; }
/*
DRIBBBLE
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_dribbble li {
padding: 0 0 15px 0;
background-image: none !important;
}
.widget_dribbble li img {
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-top-right-radius: 3px;
}
.widget_dribbble li h5 {
margin: 0 15px;
line-height: 15px;
}
.widget_dribbble li small{ margin: 0 15px; }
/*
POSTS - WORKS - TWITTER
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_featured_posts li,
.widget_featured_works li,
.widget_popular_posts li,
.widget_popular_works li,
.widget_recent_posts li,
.widget_recent_works li,
.widget_related_posts li,
.widget_related_works li{
padding: 15px;
background-image: none !important;
}
.widget_featured_posts li h5,
.widget_featured_works li h5,
.widget_popular_posts li h5,
.widget_popular_works li h5,
.widget_recent_posts li h5,
.widget_recent_works li h5,
.widget_related_posts li h5,
.widget_related_works li h5{ margin-bottom: 7px; }
.widget_featured_posts img,
.widget_featured_works img,
.widget_popular_posts img,
.widget_popular_works img,
.widget_recent_posts img,
.widget_recent_works img,
.widget_related_posts img,
.widget_related_works img {
display: block;
float: left;
margin-right: 15px !important;
}
.widget_featured_posts div,
.widget_featured_works div,
.widget_popular_posts div,
.widget_popular_works div,
.widget_recent_posts div,
.widget_recent_works div,
.widget_related_posts div,
.widget_related_works div{ overflow: hidden; }
.widget_featured_posts p,
.widget_featured_works p,
.widget_popular_posts p,
.widget_popular_works p,
.widget_recent_posts p,
.widget_recent_works p,
.widget_related_posts p,
.widget_related_works p{ margin-bottom: 0 !important; }
.pk_no_thumbnail div{ margin-left: 0; }
.widget_twitter li{ padding: 15px 15px 15px 45px; }
.widget_twitter li small {
display: block;
margin-top: 15px;
}
/*
FLICKR
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_flickr div {
overflow: hidden;
padding: 15px 0 8px 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_flickr a {
float: left;
margin: 0 7px 7px 0;
}
.widget_flickr a img {
margin: 0;
width: 48px;
height: auto;
}
/*
GOOGLE MAP
-------------------------------------------------------------------------------------------------------------------------------------*/
.pk_widget_google_maps {
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget_google_maps iframe {
display: block;
margin: 0;
padding: 0;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
}
/*
WP SEARCH - WP CALENDAR - WP RSS
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_search {
position:relative;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_search h4, .widget_search h5{ margin-bottom: 10px; }
#searchform {
overflow: hidden;
padding: 5px;
height: 24px;
-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
.ie8 #searchform{ height: 21px; }
#searchform div{ margin-right: 90px; }
.ie8 #searchform div, .ie9 #searchform div{ margin-right: 85px; }
#searchform label{ display: none; }
#searchform input[type=text] {
margin: 0;
padding: 0;
width: 100%;
height: 25px;
font-size: 13px;
background: none !important;
-moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
}
.ie8 #searchform input[type=text]{ border: none !important; }
#searchform #searchsubmit {
position: absolute;
bottom: 18px;
right: 18px;
margin-top: 3px;
padding: 0 15px 1px 15px;
height: 27px;
font-size: 12px;
line-height: 26px;
cursor: pointer;
text-decoration: none;
border: none;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
-webkit-transition: none;
-moz-transition: none;
-ms-transition: none;
-o-transition: none;
transition: none;
}
.ie9 #searchform #searchsubmit {
bottom: 19px;
right: 19px;
padding: 1px 15px 0 15px;
}
#searchform #searchsubmit:hover{ background-position: 0 -82px; }
.ie7 #searchform #searchform #searchsubmit {
display: block;
font-size: 0;
line-height: 0;
}
#calendar_wrap {
border-bottom: none !important;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
#calendar_wrap tr th:first-child, #calendar_wrap tr td:first-child{ border-left: none !important; }
#calendar_wrap tr th:last-child, #calendar_wrap tr td:last-child{ border-right: none !important; }
#calendar_wrap table{ margin: 0; }
#calendar_wrap caption {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
}
#calendar_wrap th, #calendar_wrap td{ padding: 4px; }
.rsswidget img {
float: left;
margin: 2px 10px 0 0;
padding: 0;
}
.rss-date {
display: block;
margin: 10px 0 0 0;
font-size: 11px;
}
.rssSummary{ margin-bottom: 10px; }
/*
CATEGORIES - BLOGROLL
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_categories a, .widget_portfolio_categories a, .blogroll a { margin-right: 10px; }
/*
WPML - QTRANSLATE
-------------------------------------------------------------------------------------------------------------------------------------*/
#lang_sel, #lang_sel_list {
position: relative;
z-index: 99;
}
#lang_sel ul, #lang_sel li, #lang_sel_list ul, #lang_sel_list li {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
background-image: none;
}
#lang_sel li:before, #lang_sel_list li:before{ content: '' !important; }
#lang_sel li, #lang_sel_list li{
position: relative;
clear: both;
margin: 0;
background-image: none !important;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
#lang_sel a, #lang_sel a:visited, #lang_sel_list ul a, #lang_sel_list_list ul a:visited {
display: block;
padding: 10px 15px;
}
/* style the table so that it takes no ppart in the layout - required for IE to work */
#lang_sel table, #lang_sel_list table {
position: absolute;
top: 0;
left: 0;
border-collapse: collapse;
}
/* make the second level visible when hover on first level list OR link */
#lang_sel ul li:hover ul,
#lang_sel ul a:hover ul,
#lang_sel_list ul li:hover ul,
#lang_sel_list ul a:hover ul{ visibility: visible; }
#lang_sel img.iclflag, #lang_sel_list img.iclflag, .widget_nav_menu img.iclflag {
display: inline;
margin: 5px 6px 0 0;
width: 18px;
height: 12px;
}
#lang_sel_list li:first-child a,
#lang_sel_footer ul li:last-child { border: none !important; }
/* Dropdown */
#lang_sel ul ul {
visibility: hidden;
position: absolute;
top: 40px;
left: 0;
width: 100%;
height: 0;
}
#lang_sel ul ul li{ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; }
#lang_sel ul ul li:last-child {
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
}
#lang_sel ul ul a, #lang_sel ul ul a:visited,
#pk_widgets_area #lang_sel ul ul a, #pk_widgets_area #lang_sel ul ul a:visited {
overflow: hidden;
padding: 10px 15px;
background-image: none;
}
#lang_sel a:hover, #lang_sel ul ul a:hover{ }
#lang_sel :hover > a, #lang_sel ul ul :hover > a{ }
/* List */
#lang_sel_list {
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
#lang_sel_list ul li {
-moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
background: none;
}
#lang_sel_list a.lang_sel_sel:hover span{ }
#lang_sel.icl_rtl {
text-align: right;
direction: rtl;
}
#lang_sel.icl_rtl .lang_sel_sel{ padding-right: 14px; }
/* Footer */
#lang_sel_footer {
overflow: hidden;
clear: both;
margin: 0 auto 18px auto;
padding: 10px 0;
width: 980px;
font-size: 11px;
text-align: center;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
#lang_sel_footer ul {
margin: 0;
padding: 0;
}
#lang_sel_footer ul li {
position: relative;
display: inline;
margin: 0 6px 0 0;
padding: 0 8px 0 22px;
}
#lang_sel_footer ul li img {
position: absolute;
top: 1px;
left: 0;
width: 18px;
height: 12px;
}
#lang_sel_footer ul li a, #lang_sel_footer ul li a:visited{ text-decoration: none; }
#lang_sel_footer ul li a:hover, #lang_sel_footer ul li a:active{}
#wpml_credit_footer {
margin: 0 auto 18px auto;
padding: 0;
width: 980px;
text-align: center;
font-size: 11px;
}
/* qTranslate */
.qtrans_language_chooser {
overflow: hidden;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.qtrans_language_chooser li {
float: left;
margin: 0 8px 0 0;
padding: 0 8px 0 0;
background-image: none !important;
}
.qtrans_language_chooser li a{ background-position: 0 center !important; }
.qtrans_language_chooser li a span{ margin-left: 7px; }
/*
QUERIES
-------------------------------------------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {
.widget_advertising_125_125, .widget_advertising_125_125 h5{ margin-left: 0; }
.widget_advertising_125_125 a{ display: block; margin: 20px 0 0 0; padding: 7px 0; width: 100%; }
.widget_advertising_125_125 a img{ margin: 0 auto; }
.pk_testimonials img{ max-width: 50px; }
.pk_testimonials blockquote{ margin-left: 80px; }
.pk_testimonials .pk_arrow{ top: 25px; left: 59px; }
}
/* Tablet (portrait and landscape) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
#lang_sel_footer, #wpml_credit_footer{ width: 718px; }
}
/* Mobile */
@media screen and (max-width: 767px) {
#lang_sel_footer, #wpml_credit_footer{ width: 300px; }
}
/* Mobile Landscape */
@media only screen and (min-width: 480px) and (max-width: 767px) {
#lang_sel_footer, #wpml_credit_footer{ width: 460px; }
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,298 @@
/*
GLOBAL
-------------------------------------------------------------------------------------------------------------------------------------*/
ul.cart_list, ul.product_list_widget {
overflow: hidden;
margin: 0;
padding: 0 0 5px 0;
font-size: 12px;
list-style: none;
}
ul.cart_list li, ul.product_list_widget li {
margin: 0;
padding: 4px 0;
background-image: none !important;
}
ul.cart_list li a, ul.product_list_widget li a{ display: block; }
ul.cart_list li img, ul.product_list_widget li img {
float: left;
margin: 4px 15px 0 0;
width: 50px;
max-width: 50px;
height: auto;
-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;
}
ul.cart_list .js_widget_product_title, ul.product_list_widget .js_widget_product_title{ font-size: 14px; }
ul.cart_list li .js_widget_product_price ins, ul.product_list_widget .js_widget_product_price ins{ border: none !important; }
/* Cart List Only */
ul.cart_list .js_widget_product_price del{ font-size: 10px; }
ul.cart_list {
-moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px;
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
ul.cart_list li{ padding: 10px 15px; }
/* Product List Widget Only */
ul.product_list_widget li {
overflow: hidden;
margin-bottom: 15px;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
ul.product_list_widget li:last-child{ margin: 0; }
ul.product_list_widget .js_widget_product_price{ overflow: hidden; }
ul.product_list_widget .js_widget_product_price del, ul.product_list_widget .js_widget_product_price .from,
ul.product_list_widget del, ul.product_list_widget ins, ul.product_list_widget .from {
float: left;
margin: 0 5px 0 0;
font-size: 10px;
border: none !important;
}
ul.product_list_widget .quantity{ border: none !important; }
/*
RECENT REVIEWS - TOP RATED PRODUCTS
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_recent_reviews li, .widget_top_rated_products li {
position: relative;
padding-bottom: 40px !important;
}
.widget_recent_reviews .star-rating, .widget_top_rated_products .star-rating {
position: absolute;
left: 80px;
bottom: 15px;
}
/*
CART
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_shopping_cart ul {
margin: 0;
padding: 0;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
}
.widget_shopping_cart ul li {
margin: 0;
background: none !important;
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
-moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
}
.widget_shopping_cart ul li span {
background: none !important;
-moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
}
.widget_shopping_cart ul li.empty{ border: none !important; }
.pk_widget p.total {
margin: 0;
padding: 10px 15px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget p.buttons {
overflow: hidden;
margin: 0;
padding: 15px;
-moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget p.buttons .checkout{ float: right; }
/*
PRODUCT SEARCH
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_product_search {
position:relative;
padding: 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_product_search h4,
.widget_product_search h5{ display: none; }
/*
LAYERED NAV
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_layered_nav .layerd_nav_clear {
position: absolute;
top: -2px;
right: 0;
padding: 1px 10px;
font-size: 12px;
-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;
}
.ie8 .widget_layered_nav .layerd_nav_clear{ padding: 0 10px 2px 10px; }
.widget_layered_nav ul {
margin: 0;
padding: 0;
list-style: none;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_layered_nav ul li {
overflow: hidden;
padding: 4px 15px;
}
.widget_layered_nav ul li:last-child{ border: none !important; }
.widget_layered_nav ul li a, .widget_layered_nav ul li span {
float: left;
padding: 1px 0;
}
.widget_layered_nav ul li.chosen{ padding-left: 40px; }
.widget_layered_nav ul small.count {
float: right;
margin-left: 15px;
padding: 0 10px;
font-size: 11px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pk_widget.widget_layered_nav ul li,
#pk_widgets_area .pk_widget.widget_layered_nav ul li{ background: none; }
/*
LOGIN
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_login {
padding: 15px;
font-size: 12px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_login p {
display: block;
overflow: hidden;
margin: 0;
padding-bottom: 5px;
width: 100%;
}
.widget_login .submitbutton{ margin-top: 5px; }
.widget_login .submitbutton + a {
display: block;
float: right;
margin-top: 10px;
}
.widget_login label {
display: block;
margin-bottom: 3px;
font-size: 12px;
}
.widget_login input[type=text], .widget_login input[type=password]{ width: 100%; }
/*
PRICE FILTER
-------------------------------------------------------------------------------------------------------------------------------------*/
.widget_price_filter .price_slider_wrapper {
padding: 15px 15px 10px 15px;
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.widget_price_filter .price_slider_wrapper .price_slider{ margin: 1px 0 15px 0; }
.widget_price_filter .price_slider_wrapper .price_slider_amount {
overflow: hidden;
margin-top: 5px;
padding: 7px 0 5px 0;
font-size: 12px;
}
.widget_price_filter input[type="text"] {
margin-bottom: 15px;
width: 100%;
}
.widget_price_filter #max_price { margin-bottom: 22px; }
.widget_price_filter .price_slider_wrapper .button {
float: right;
margin: -7px 0 0 0;
}
/* Interaction states */
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { font-weight: normal; border: none; color: #555555; }
.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: none; font-weight: normal; }
.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: none; }
.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: none; background: #000; 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: #000; 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: 1; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: 1; filter:Alpha(Opacity=35); background-image: none; }
/* Slider */
.ui-corner-all { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.ui-slider { position: relative; text-align: left; }
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 18px; height: 18px; cursor: default; }
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.price_slider_wrapper .ui-widget-content { border: none; color: #222222;
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.18); -webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.18); box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.18);
}
.price_slider_wrapper .ui-widget-header { border: none; color: font-weight: bold; #222222; }
.ui-slider-horizontal { height: 7px; }
.ui-slider-horizontal .ui-slider-handle { top: -5px; margin-left: -.6em; }
.ui-slider-horizontal .ui-slider-range { top: 1px; height: 5px; }
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
/*
QUERIES
-------------------------------------------------------------------------------------------------------------------------------------*/
/* Tablet (portrait and landscape) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
.pk_widget p.buttons .button{ float: right; margin-bottom: 15px; margin-left: 15px; }
.pk_widget p.buttons .checkout{ margin-bottom: 0; }
}
/* Mobile */
@media screen and (max-width: 767px) {
.pk_widget p.buttons .button{ float: right; margin-bottom: 15px; margin-left: 15px; }
.pk_widget p.buttons .checkout{ margin-bottom: 0; }
}
/* Mobile Landscape */
@media only screen and (min-width: 480px) and (max-width: 767px) {
.pk_widget p.buttons .button{ float: left; margin-bottom: 0; margin-left: 0; }
.pk_widget p.buttons .checkout{ float: right; }
}

View File

@ -0,0 +1,23 @@
<?php
$social_networks = array('AIM','Apple','Bebo', 'Behance', 'Blogger','Brightkite','Cargo','Delicious','DesignFloat','Designmoo','DeviantART','Digg','Dopplr','Dribbble','Email','Ember','Evernote','Facebook','Flickr','Forrst','FriendsFeed','GameSpot','Google','GoogleTalk','GoogleVoice','GoogleWave','Gowalla','Grooveshark','iLike','KomodoMedia','LastFm','LinkedIn','Mixx','MobileMe','MyNameIsE','MySpace','Netvibes','Newsvine','OpenID','Orkut','Pandora','PayPal','Picasa','Pinterest', 'Playstation','Plurk','Posterous','Qik','Readernaut','Reddit','Roboto','RSS','ShareThis','Skype', 'Squidoo', 'StumbleUpon','Technorati','Tumblr','Twitter','Viddler','Vimeo','Virb','Windows','WordPress','Xing','Yahoo','YahooBuzz','Yelp','YouTube','Zootool');
?>
<!-- pk start footer social networks -->
<ul class="pk_footer_sn">
<?php
for ($i = 0; $i <count($social_networks); $i++) :
if (trim(pk_get_option(strtolower($social_networks[$i]).'_link', '') != '')) :
?>
<li>
<a href="<?php echo esc_url(pk_get_option(strtolower($social_networks[$i]).'_link', '')); ?>" title="<?php echo $social_networks[$i]; ?>" target="_blank">
<img src="<?php echo PK_THEME_DIR.'/images/social_networks_icons/'.strtolower($social_networks[$i]).'.png'; ?>" alt="<?php echo $social_networks[$i]; ?>" />
</a>
</li>
<?php
endif;
endfor;
?>
</ul>
<!-- pk end footer social networks -->

View File

@ -0,0 +1,233 @@
</div>
<!-- pk end main -->
<?php
if (pk_sidebar()) :
?>
<!-- pk start sidebar -->
<aside id="pk_sidebar">
<span id="pk_sidebar_top_shadow"></span>
<span id="pk_sidebar_bottom_shadow"></span>
<?php get_sidebar(); ?>
</aside>
<!-- pk end sidebar -->
<?php
endif;
?>
</div>
<?php
$footer_widgets_areas = pk_get_option('footer_layout', '1/2,1/4,1/4');
$footer_widgets_areas_replaced = str_replace(array(' ', '1/1', '1/2', '1/3', '1/4', '1/5', '1/6', '2/3', '2/5', '3/4', '3/5', '4/5', '5/6'), array('', 'pk_full_width', 'pk_one_half', 'pk_one_third', 'pk_one_fourth', 'pk_one_fifth', 'pk_one_sixth', 'pk_two_third', 'pk_two_fifth', 'pk_three_fourth', 'pk_three_fifth', 'pk_four_fifth', 'pk_five_sixth'), $footer_widgets_areas);
$footer_widgets_area_columns = explode(',', $footer_widgets_areas_replaced);
$footer_widgets_area_active = false;
for ($c = 0; $c < count($footer_widgets_area_columns); $c++) : if (is_active_sidebar('footer_column_'.($c + 1))) : $footer_widgets_area_active = true; break; endif; endfor;
if ($footer_widgets_area_active) :
?>
<!-- pk start widgets area -->
<div id="pk_widgets_area" class="pk_clearfix">
<?php
for ($c = 0; $c < count($footer_widgets_area_columns); $c++) :
if (is_active_sidebar('footer_column_'.($c + 1))) :
?>
<div class="<?php echo $footer_widgets_area_columns[$c]; ?> pk_fixed<?php if ($c == count($footer_widgets_area_columns) - 1) echo ' pk_last'; ?>">
<?php dynamic_sidebar('footer_column_'.($c + 1)); ?>
</div>
<?php
endif;
endfor;
?>
</div>
<!-- pk end widgets area -->
<?php
endif;
?>
</div>
<!-- pk end page -->
</div>
<!-- pk end wrapper : pk_page -->
<!-- pk start footer -->
<footer class="pk_wrapper pk_bottom_shadow">
<!-- pk start center box -->
<div class="pk_center_box pk_footer pk_clearfix">
<!-- pk start footer navigation -->
<?php
$output = wp_nav_menu(array('echo' => false, 'theme_location' => 'pk_footer_menu_'.((is_user_logged_in()) ? 'li' : 'lo'), 'container' => 'nav', 'container_class' => 'pk_footer_menu', 'depth' => 1, 'fallback_cb' => 'pk_set_up_footer_menu_message', 'after' => '<span>|</span>'));
echo str_replace('</ul>', '<li class="pk_last"><a href="#top" title="top" class="pk_button_top">Top</a></li></ul>', $output);
?>
<!-- pk end footer navigation -->
<?php
get_template_part('footer', 'social-networks');
?>
<!-- pk start footer copyright -->
<div class="pk_copyright">
<?php
if (pk_get_option('logo_footer', '') != '') :
?>
<img src="<?php echo stripslashes(pk_get_option('logo_footer', '')); ?>" class="pk_footer_logo" alt="<?php echo get_bloginfo('name'); ?>" />
<?php
endif;
?>
<p><?php echo esc_attr(pk_get_option('copyright', '')); ?></p>
</div>
<!-- pk end footer copyright -->
</div>
<!-- pk end center box -->
</footer>
<!-- pk end footer -->
</div>
<!-- pk end wrapper all -->
<?php
if (get_option('users_can_register') && !is_user_logged_in()) :
?>
<!-- pk start login form -->
<div id="pk_login_form" class="pk_hide">
<div class="pk_user_form">
<form name="loginform" id="loginform" action="<?php echo home_url('/wp-login.php'); ?>" method="post">
<p>
<label for="user_login_login_form"><?php _e('Username', 'pk_translate'); ?><br />
<input type="text" name="log" id="user_login_login_form" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label for="user_pass_login_form"><?php _e('Password', 'pk_translate'); ?><br />
<input type="password" name="pwd" id="user_pass_login_form" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="forgetmenot"><label for="rememberme_login_form"><input name="rememberme" type="checkbox" id="rememberme_login_form" value="forever" tabindex="90" /> <?php _e('Remember me', 'pk_translate'); ?></label></p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit_login_form" class="button-primary" value="<?php _e('Log in', 'pk_translate'); ?>" tabindex="100" />
<input type="hidden" name="redirect_to" value="" />
<input type="hidden" name="testcookie" value="1" />
</p>
</form>
<a class="pk_lost_password" href="#pk_lost_password_form"><?php _e('Lost your password?', 'pk_translate'); ?></a>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".pk_lost_password").pk_form_box();
});
</script>
</div>
<!-- pk end login form -->
<!-- pk start register form -->
<div id="pk_register_form" class="pk_hide">
<div class="pk_user_form">
<p class="message register"><?php _e('Register for this site', 'pk_translate'); ?></p>
<form name="registerform" id="registerform" action="<?php echo home_url('/wp-login.php?action=register'); ?>" method="post">
<p>
<label for="user_login_register_form"><?php _e('Choose a username', 'pk_translate'); ?><br />
<input type="text" name="user_login" id="user_login_register_form" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label for="user_email_register_form"><?php _e('E-mail', 'pk_translate'); ?><br />
<input type="email" name="user_email" id="user_email_register_form" class="input" value="" size="25" tabindex="20" /></label>
</p>
<p id="reg_passmail"><?php _e('A password will be e-mailed to you.', 'pk_translate'); ?></p>
<br class="clear" />
<input type="hidden" name="redirect_to" value="" />
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit_register_form" class="button-primary" value="<?php _e('Register', 'pk_translate'); ?>" tabindex="100" /></p>
</form>
<a class="pk_lost_password" href="#pk_lost_password_form"><?php _e('Lost your password?', 'pk_translate'); ?></a>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".pk_lost_password").pk_form_box();
});
</script>
</div>
<!-- pk end register form -->
<!-- pk start lost password -->
<div id="pk_lost_password_form" class="pk_hide">
<div class="pk_user_form">
<form name="lostpasswordform" id="lostpasswordform" action="<?php echo home_url('/wp-login.php?action=lostpassword'); ?>" method="post">
<p>
<label for="user_login_lost_password_form" ><?php _e('Username or E-mail:', 'pk_translate'); ?><br />
<input type="text" name="user_login" id="user_login_lost_password_form" class="input" value="" size="20" tabindex="10" /></label>
</p>
<input type="hidden" name="redirect_to" value="" />
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit_lost_password_form" class="button-primary" value="<?php _e('Get new password', 'pk_translate'); ?>" tabindex="100" /></p>
</form>
<p class="message"><?php _e('Please enter your username or email address.', 'pk_translate'); ?><?php _e('You will receive a link to create a new password via email.', 'pk_translate'); ?></p>
</div>
</div>
<!-- pk end lost password -->
<?php
endif;
global $welcome_image;
if ($welcome_image == 1) :
?>
<a id="pk_welcome_image" class="pk_hide" href="<?php echo esc_url(pk_get_option('welcome_image', '')); ?>"></a>
<script type="text/javascript">
jQuery(document).ready(function() {
function pkAddLink() {
jQuery('.pp_content').find('img').css('cursor' , 'pointer').unbind('click').bind('click', function() {
window.location = "<?php echo esc_url(pk_get_option('welcome_link', '#')); ?>";
return false;
});
}
jQuery("#pk_welcome_image").prettyPhoto({
overlay_gallery:false,
theme:"pp_default",
social_tools:"",
show_title:false,
deeplinking:false,
changepicturecallback:pkAddLink
});
if (jQuery(window).width() > 450) {
setTimeout(function() {
jQuery("#pk_welcome_image").trigger('click');
}, 500);
}
});
</script>
<?php
endif;
do_action('pk_before_footer');
wp_footer();
if (pk_get_option('js_custom', '') != '') :
?>
<script type="text/javascript">
<?php
echo pk_get_option('js_custom', '');
?>
</script>
<?php
endif;
?>
</body>
</html><a href="http://www.wplocker.com">theme shared on wplocker.com</a>

View File

@ -0,0 +1,20 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_aside pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<div class="pk_entry_content">
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Permalink', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Permalink', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,87 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_audio pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<?php
$post_meta = get_post_custom(get_the_ID());
$audio_urls = explode(',', get_post_meta(get_post_thumbnail_id(), '_audio_urls', true));
if (is_array($audio_urls) && count($audio_urls) > 0 && $audio_urls[0] != '') :
$supplied = '';
$media = '';
for ($i = 0; $i < count($audio_urls); $i++) :
$supplied .= str_replace('.', '', strrchr(trim($audio_urls[$i]), '.')).(($i < count($audio_urls) - 1) ? ',' : '');
$media .= str_replace(array('.'), array(''), strrchr(trim($audio_urls[$i]), '.')).':"'.trim($audio_urls[$i]).'"'.(($i < count($audio_urls) - 1) ? ',' : '');
endfor;
?>
<div id="jp_container_<?php the_ID(); ?>" class="jp-video jp-video-normal-width">
<div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer"></div>
<?php echo PK_JPLAYER_GUI; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#jquery_jplayer_<?php the_ID(); ?>").jPlayer({
ready: function () {
jQuery(this).jPlayer("setMedia", {
<?php echo $media; ?>
});
},
play: function() {
jQuery(this).jPlayer("pauseOthers");
},
swfPath:"<?php echo PK_THEME_DIR; ?>/js",
solution:"flash,html",
supplied:"<?php echo $supplied; ?>",
cssSelectorAncestor:"#jp_container_<?php the_ID(); ?>",
sizeFull: {
width:"100%",
height:"100%",
cssClass:"jp-video-full"
}
});
});
</script>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php if (is_singular()) : add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); else : add_filter('excerpt_length', 'pk_blog_excerpt_filter'); the_excerpt(); remove_filter('excerpt_length', 'pk_blog_excerpt_filter'); endif; ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Read more', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Read more', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,39 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_chat pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Permalink', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Permalink', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,102 @@
<?php
$post_meta = get_post_custom(get_the_ID());
$post_images = pk_get_post_gallery_images(((pk_sidebar()) ? 'big' : 'full-width'));
$post_images_full = pk_get_post_gallery_images('full');
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_gallery pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<div id="pk_slider_<?php the_ID(); ?>" class="pk_slider">
<div class="pk_slider_content">
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<div class="pk_image">
<div class="pk_image_wrapper<?php echo ($video_url) ? ' pk_play_icon' : (($image_link)? ' pk_link_icon' : ' pk_zoom_icon'); ?>">
<a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo the_ID(); ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo ($video_url) ? esc_url($video_url) : $post_images_full[$i]['url']; endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?> title="<?php echo $post_images[$i]['description']; ?>">
<?php echo $post_images[$i]['img']; ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
</div>
</div>
</div>
<?php
if ($post_images[$i]['description']) :
?>
<div class="pk_slider_item_info">
<div class="pk_slider_item_info_background"></div>
<div class="pk_slider_item_info_content"><?php echo $post_images[$i]['description']; ?></div>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
jQuery("#pk_slider_<?php the_ID(); ?>").pk_slider({
sliderWidth:580,
sliderHeight:0,
buttonInfoOpenLabel:"<?php echo (isset($post_meta['_slider_info_button_open_label'][0])) ? $post_meta['_slider_info_button_open_label'][0] : __('info', 'pk_translate'); ?>",
buttonInfoCloseLabel:"<?php echo (isset($post_meta['_slider_info_button_close_label'][0])) ? $post_meta['_slider_info_button_close_label'][0] : __('close info', 'pk_translate'); ?>",
infoTextAlign:"left",
infoBackgroundAlpha:0.9,
slideshow:<?php echo (isset($post_meta['_slider_slideshow'][0])) ? $post_meta['_slider_slideshow'][0] : 'true'; ?>,
slideshowAutoStart:<?php echo (isset($post_meta['_slider_slideshow_auto_start'][0])) ? $post_meta['_slider_slideshow_auto_start'][0] : 'false'; ?>,
slideshowInterval:<?php echo (isset($post_meta['_slider_slideshow_interval'][0])) ? $post_meta['_slider_slideshow_interval'][0] : '5'; ?>,
easing: "easeOutExpo",
speedIn:400,
speedOut:400
});
});
</script>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php if (is_singular()) : add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); else : add_filter('excerpt_length', 'pk_blog_excerpt_filter'); the_excerpt(); remove_filter('excerpt_length', 'pk_blog_excerpt_filter'); endif; ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Read more', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Read more', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,72 @@
<?php
$post_images = pk_get_post_gallery_images('full');
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_image pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<?php
if (has_post_thumbnail()) :
?>
<div class="pk_image">
<div class="pk_image_wrapper pk_zoom_icon">
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo pk_get_featured_image(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(((pk_sidebar()) ? 'big' : 'full-width'), array('title' => '')); ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
?>
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo ($video_url) ? esc_url($video_url) : $post_images[$i]['url']; ?>" title="<?php echo $post_images[$i]['description']; ?>"></a>
<?php
endfor;
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
</div>
</div>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php if (is_singular()) : add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); else : add_filter('excerpt_length', 'pk_blog_excerpt_filter'); the_excerpt(); remove_filter('excerpt_length', 'pk_blog_excerpt_filter'); endif; ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Read more', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Read more', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,32 @@
<?php
$post_meta = get_post_custom(get_the_ID());
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_link pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<div class="pk_entry_content">
<header>
<h3><a href="<?php echo (isset($post_meta['_link'][0]) && !in_array($post_meta['_link'][0], array('', '#'))) ? $post_meta['_link'][0] : get_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Permalink', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Permalink', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,48 @@
<?php
$post_meta = get_post_custom(get_the_ID());
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_quote pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<div class="pk_quote">
<blockquote>
<p><?php if (isset($post_meta['_quote'][0])) echo $post_meta['_quote'][0]; ?></p>
<cite><?php if (isset($post_meta['_cite'][0])) echo $post_meta['_cite'][0]; ?></cite>
</blockquote>
</div>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php if (is_singular()) : add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); else : add_filter('excerpt_length', 'pk_blog_excerpt_filter'); the_excerpt(); remove_filter('excerpt_length', 'pk_blog_excerpt_filter'); endif; ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Read more', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Read more', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,71 @@
<?php
$image_link = get_post_meta(get_post_thumbnail_id(), '_image_link', true);
$image_link_target = get_post_meta(get_post_thumbnail_id(), '_image_link_target', true);
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_standard pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<?php
if (has_post_thumbnail()) :
?>
<div class="pk_image">
<div class="pk_image_wrapper<?php if (!is_singular() || $image_link) : echo ($image_link) ? ' pk_link_icon' : ' pk_page_icon'; endif;?>">
<?php
if (!is_singular() || $image_link) :
?>
<a href="<?php echo ($image_link) ? esc_url($image_link) : get_permalink(); ?>" title="<?php echo ($image_link) ? __('Click to visit:', 'pk_translate').' '.$image_link : the_title_attribute(array('echo' => 0)); ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>>
<?php
endif;
?>
<?php the_post_thumbnail(((pk_sidebar()) ? 'big' : 'full-width'), array('title' => '')); ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
<?php
if (!is_singular() || $image_link) :
?>
</a>
<?php
endif;
?>
</div>
</div>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php if (is_singular()) : add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); else : add_filter('excerpt_length', 'pk_blog_excerpt_filter'); the_excerpt(); remove_filter('excerpt_length', 'pk_blog_excerpt_filter'); endif; ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Read more', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Read more', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,20 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_status pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<div class="pk_entry_content">
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Permalink', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Permalink', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,128 @@
<?php
$video_url = get_post_meta(get_post_thumbnail_id(), '_video_url', true);
$video_urls = explode(',', get_post_meta(get_post_thumbnail_id(), '_video_urls', true));
if (is_array($video_urls) && count($video_urls) > 0) :
$supplied = '';
$media = '';
for ($i = 0; $i < count($video_urls); $i++) :
$supplied .= str_replace('.', '', strrchr(trim($video_urls[$i]), '.')).(($i < count($video_urls) - 1) ? ',' : '');
$media .= str_replace(array('.'), array(''), strrchr(trim($video_urls[$i]), '.')).':"'.trim($video_urls[$i]).'"'.(($i < count($video_urls) - 1) ? ',' : '');
endfor;
endif;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_video pk_boxed pk_full_content'.((is_singular()) ? ' pk_entry_single' : '')); ?>>
<?php
if ($video_url) :
?>
<div class="pk_video">
<?php add_filter('embed_defaults', 'pk_blog_embed_defaults'); echo str_replace(array('&', 'feature=oembed'), array('&amp;', 'feature=oembed&amp;wmode=transparent'), wp_oembed_get(esc_url($video_url))); ?>
</div>
<?php
endif;
if (is_array($video_urls) && count($video_urls) > 0 && $video_urls[0] != '') :
?>
<div id="jp_container_<?php the_ID(); ?>" class="jp-video jp-video-normal-width">
<div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer"></div>
<?php echo PK_JPLAYER_GUI; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#jquery_jplayer_<?php the_ID(); ?>").jPlayer({
ready: function () {
jQuery(this).jPlayer("setMedia", {
<?php echo $media.',poster:"'.((!pk_sidebar()) ? pk_get_featured_image('full-width') : pk_get_featured_image('big')).'"'; ?>
});
jQuery("#jp_container_<?php the_ID(); ?>").pk_jplayer_resize();
},
play: function() {
jQuery(this).jPlayer("pauseOthers");
},
swfPath:"<?php echo PK_THEME_DIR; ?>/js",
solution:"flash,html",
supplied:"<?php echo $supplied; ?>",
cssSelectorAncestor:"#jp_container_<?php the_ID(); ?>",
size: {
width:"<?php echo (!pk_sidebar()) ? '940' : '580'; ?>px",
height:"<?php echo (!pk_sidebar()) ? '529' : '326'; ?>px",
cssClass:"jp-video-normal-width"
},
sizeFull: {
width:"100%",
height:"100%",
cssClass:"jp-video-full"
}
});
});
</script>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<?php
if (!is_singular()) :
?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php
else :
?>
<h3><?php the_title(); ?></h3>
<?php
endif;
?>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_category(', '); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php
if ($video_url || (is_array($video_urls) && count($video_urls) > 0 && $video_urls[0] != '')) :
if (!is_singular()) :
add_filter('excerpt_length', 'pk_blog_excerpt_filter');
the_excerpt();
remove_filter('excerpt_length', 'pk_blog_excerpt_filter');
else :
add_filter('embed_defaults', 'pk_post_embed_defaults');
the_content();
endif;
else :
add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content();
endif;
?>
<footer>
<?php
if (!is_singular()) :
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('Read more', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('Read more', 'pk_translate'); ?></a>
<?php
else :
?>
<?php the_tags('<p>'.__('tags:', 'pk_translate').' </p><ul class="pk_entry_tags"><li>','</li><li>','</li></ul>'); ?>
<?php
endif;
?>
</footer>
</div>
</article>

View File

@ -0,0 +1,66 @@
<?php
global $grid;
$post_meta = get_post_custom(get_the_ID());
$post_images = pk_get_post_gallery_images('full');
?>
<div class="pk_entry pk_entry_work pk_boxed pk_with_image pk_full_content">
<?php
if (has_post_thumbnail()) :
if (!in_array(get_post_type(), array('post', 'portfolio')) || ((get_post_type() == 'post' && get_post_format() != 'image') || (get_post_type() == 'portfolio' && isset($post_meta['_work_format'][0]) && $post_meta['_work_format'][0] != 'gallery'))) :
?>
<div class="pk_image">
<div class="pk_image_wrapper pk_zoom_icon">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('grid-'.$grid, array('title' => '')); ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
</div>
</div>
<?php
else :
?>
<div class="pk_image">
<div class="pk_image_wrapper pk_zoom_icon">
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo pk_get_featured_image(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('grid-'.$grid, array('title' => '')); ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
?>
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo ($video_url) ? esc_url($video_url) : $post_images[$i]['url']; ?>"></a>
<?php
endfor;
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
</div>
</div>
<?php
endif;
endif;
?>
<div class="pk_entry_content">
<h4><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
<?php
add_filter('excerpt_length', 'pk_grid_excerpt_filter');
the_excerpt();
remove_filter('excerpt_length', 'pk_grid_excerpt_filter');
?>
<a href="<?php the_permalink(); ?>" title="<?php _e('View work', 'pk_translate'); ?>" class="pk_button_read_more"><?php _e('View', 'pk_translate'); ?></a>
</div>
</div>

View File

@ -0,0 +1,123 @@
<?php
global $post;
$post_meta = get_post_custom($post -> ID);
$post_images = pk_get_post_gallery_images('full');
?>
<!-- pk start wrapper : pk_featured -->
<div class="pk_wrapper pk_featured pk_middle_shadow pk_clearfix">
<!-- pk start center box -->
<div class="pk_center_box">
<!-- pk start featured content -->
<div class="pk_featured_content pk_clearfix">
<!-- pk start featured slider -->
<div id="pk_featured_slider" class="pk_content_slider">
<div class="pk_slider_content">
<?php
if (count($post_images) == 0) :
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php if (get_header_image()) : ?><img src="<?php header_image(); ?>" /><?php endif; ?>
</div>
</div>
<?php
endif;
for ($i = 0; $i < count($post_images); $i++) :
$title_properties = get_post_meta($post_images[$i]['id'], '_title_properties', true);
$description_properties = get_post_meta($post_images[$i]['id'], '_description_properties', true);
$snap_points = get_post_meta($post_images[$i]['id'], '_snap_points', true);
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php
if ($video_url || $image_link) :
?><a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo $post -> ID; ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo esc_url($video_url); endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>><?php
endif;
echo $post_images[$i]['img'];
if ($video_url || $image_link) :
?></a><?php
endif;
?>
</div>
<?php
if ($title_properties) :
?>
<h3 class="pk_slider_item_title" data-properties="properties=<?php if ($title_properties) echo $title_properties; ?>"><?php echo $post_images[$i]['title']; ?></h3>
<?php
endif;
if (isset($post_images[$i]['description']) && $post_images[$i]['description']) :
?>
<div class="pk_slider_item_caption" data-properties="properties=<?php echo ($description_properties) ? $description_properties : '{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'none\'}'; ?>">
<?php echo '<p>'.$post_images[$i]['description'].'</p>'; ?>
</div>
<?php
endif;
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pk_featured_slider").pk_content_slider({
sliderWidth:610,
sliderHeight:380,
sliderNavigationAlign:'<?php if (isset($post_meta['_slider_navigation_align'][0])) : echo $post_meta['_slider_navigation_align'][0]; else : echo 'right'; endif; ?>',
transition:'<?php if (isset($post_meta['_slider_transition'][0])) : echo $post_meta['_slider_transition'][0]; else : echo 'fade'; endif; ?>',
sliderBackground:'<?php if (isset($post_meta['_slider_background'][0])) echo $post_meta['_slider_background'][0]; ?>',
slideshowAutoStart:<?php if (isset($post_meta['_slider_slideshow_auto_start'][0])) : echo $post_meta['_slider_slideshow_auto_start'][0]; else : echo 'true'; endif; ?>,
slideshowInterval:<?php if (isset($post_meta['_slider_slideshow_interval'][0])) : echo $post_meta['_slider_slideshow_interval'][0]; else : echo '7'; endif; ?>
});
jQuery(".prettyPhoto<?php echo $post -> ID; ?>").attr('rel', 'prettyPhoto[home_slider]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<!-- pk end featured slider -->
<!-- pk start featured texts -->
<div id="pk_featured_text">
<?php if (dynamic_sidebar('sidebar_home_page_agency_slider')) : endif; ?>
</div>
<!-- pk start featured texts -->
</div>
<!-- pk end featured content -->
</div>
<!-- pk end center box -->
</div>
<!-- pk end wrapper : pk_featured -->

View File

@ -0,0 +1,110 @@
<?php
global $post;
$post_meta = get_post_custom($post -> ID);
$post_images = pk_get_post_gallery_images('full');
?>
<!-- pk start wrapper : pk_featured -->
<div class="pk_wrapper pk_featured pk_middle_shadow pk_clearfix">
<!-- pk start center box -->
<div class="pk_center_box">
<!-- pk start featured slider -->
<div id="pk_featured_slider" class="pk_content_slider">
<div class="pk_slider_content">
<?php
if (count($post_images) == 0) :
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php if (get_header_image()) : ?><img src="<?php header_image(); ?>" /><?php endif; ?>
</div>
</div>
<?php
endif;
for ($i = 0; $i < count($post_images); $i++) :
$title_properties = get_post_meta($post_images[$i]['id'], '_title_properties', true);
$description_properties = get_post_meta($post_images[$i]['id'], '_description_properties', true);
$snap_points = get_post_meta($post_images[$i]['id'], '_snap_points', true);
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php
if ($video_url || $image_link) :
?><a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo $post -> ID; ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo esc_url($video_url); endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>><?php
endif;
echo $post_images[$i]['img'];
if ($video_url || $image_link) :
?></a><?php
endif;
?>
</div>
<?php
if ($title_properties) :
?>
<h3 class="pk_slider_item_title" data-properties="properties=<?php if ($title_properties) echo $title_properties; ?>"><?php echo $post_images[$i]['title']; ?></h3>
<?php
endif;
if (isset($post_images[$i]['description']) && $post_images[$i]['description']) :
?>
<div class="pk_slider_item_caption" data-properties="properties=<?php echo ($description_properties) ? $description_properties : '{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'none\'}'; ?>">
<?php echo '<p>'.$post_images[$i]['description'].'</p>'; ?>
</div>
<?php
endif;
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pk_featured_slider").pk_content_slider({
sliderWidth:980,
sliderHeight:380,
sliderNavigationAlign:'<?php if (isset($post_meta['_slider_navigation_align'][0])) : echo $post_meta['_slider_navigation_align'][0]; else : echo 'center'; endif; ?>',
transition:'<?php if (isset($post_meta['_slider_transition'][0])) : echo $post_meta['_slider_transition'][0]; else : echo 'fade'; endif; ?>',
sliderBackground:'<?php if (isset($post_meta['_slider_background'][0])) echo $post_meta['_slider_background'][0]; ?>',
slideshowAutoStart:<?php if (isset($post_meta['_slider_slideshow_auto_start'][0])) : echo $post_meta['_slider_slideshow_auto_start'][0]; else : echo 'true'; endif; ?>,
slideshowInterval:<?php if (isset($post_meta['_slider_slideshow_interval'][0])) : echo $post_meta['_slider_slideshow_interval'][0]; else : echo '7'; endif; ?>
});
jQuery(".prettyPhoto<?php echo $post -> ID; ?>").attr('rel', 'prettyPhoto[home_slider]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<!-- pk end featured slider -->
</div>
<!-- pk end center box -->
</div>
<!-- pk end wrapper : pk_featured -->

View File

@ -0,0 +1,110 @@
<?php
global $post;
$post_meta = get_post_custom($post -> ID);
$post_images = pk_get_post_gallery_images('full');
?>
<!-- pk start wrapper : pk_featured -->
<div class="pk_wrapper pk_featured pk_middle_shadow pk_clearfix">
<!-- pk start center box -->
<div class="pk_center_box">
<!-- pk start featured slider -->
<div id="pk_featured_slider" class="pk_content_slider">
<div class="pk_slider_content">
<?php
if (count($post_images) == 0) :
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php if (get_header_image()) : ?><img src="<?php header_image(); ?>" /><?php endif; ?>
</div>
</div>
<?php
endif;
for ($i = 0; $i < count($post_images); $i++) :
$title_properties = get_post_meta($post_images[$i]['id'], '_title_properties', true);
$description_properties = get_post_meta($post_images[$i]['id'], '_description_properties', true);
$snap_points = get_post_meta($post_images[$i]['id'], '_snap_points', true);
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php
if ($video_url || $image_link) :
?><a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo $post -> ID; ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo esc_url($video_url); endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>><?php
endif;
echo $post_images[$i]['img'];
if ($video_url || $image_link) :
?></a><?php
endif;
?>
</div>
<?php
if ($title_properties) :
?>
<h3 class="pk_slider_item_title" data-properties="properties=<?php if ($title_properties) echo $title_properties; ?>"><?php echo $post_images[$i]['title']; ?></h3>
<?php
endif;
if (isset($post_images[$i]['description']) && $post_images[$i]['description']) :
?>
<div class="pk_slider_item_caption" data-properties="properties=<?php echo ($description_properties) ? $description_properties : '{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'none\'}'; ?>">
<?php echo '<p>'.$post_images[$i]['description'].'</p>'; ?>
</div>
<?php
endif;
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pk_featured_slider").pk_content_slider({
sliderWidth:980,
sliderHeight:530,
sliderNavigationAlign:'<?php if (isset($post_meta['_slider_navigation_align'][0])) : echo $post_meta['_slider_navigation_align'][0]; else : echo 'center'; endif; ?>',
transition:'<?php if (isset($post_meta['_slider_transition'][0])) : echo $post_meta['_slider_transition'][0]; else : echo 'fade'; endif; ?>',
sliderBackground:'<?php if (isset($post_meta['_slider_background'][0])) echo $post_meta['_slider_background'][0]; ?>',
slideshowAutoStart:<?php if (isset($post_meta['_slider_slideshow_auto_start'][0])) : echo $post_meta['_slider_slideshow_auto_start'][0]; else : echo 'true'; endif; ?>,
slideshowInterval:<?php if (isset($post_meta['_slider_slideshow_interval'][0])) : echo $post_meta['_slider_slideshow_interval'][0]; else : echo '7'; endif; ?>
});
jQuery(".prettyPhoto<?php echo $post -> ID; ?>").attr('rel', 'prettyPhoto[home_slider]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<!-- pk end featured slider -->
</div>
<!-- pk end center box -->
</div>
<!-- pk end wrapper : pk_featured -->

View File

@ -0,0 +1,110 @@
<?php
global $post;
$post_meta = get_post_custom($post -> ID);
$post_images = pk_get_post_gallery_images('full');
?>
<!-- pk start wrapper : pk_featured -->
<div class="pk_wrapper pk_featured pk_middle_shadow pk_clearfix">
<!-- pk start center box -->
<div class="pk_center_box">
<!-- pk start featured slider -->
<div id="pk_featured_slider" class="pk_content_slider">
<div class="pk_slider_content">
<?php
if (count($post_images) == 0) :
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php if (get_header_image()) : ?><img src="<?php header_image(); ?>" /><?php endif; ?>
</div>
</div>
<?php
endif;
for ($i = 0; $i < count($post_images); $i++) :
$title_properties = get_post_meta($post_images[$i]['id'], '_title_properties', true);
$description_properties = get_post_meta($post_images[$i]['id'], '_description_properties', true);
$snap_points = get_post_meta($post_images[$i]['id'], '_snap_points', true);
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php
if ($video_url || $image_link) :
?><a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo $post -> ID; ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo esc_url($video_url); endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>><?php
endif;
echo $post_images[$i]['img'];
if ($video_url || $image_link) :
?></a><?php
endif;
?>
</div>
<?php
if ($title_properties) :
?>
<h3 class="pk_slider_item_title" data-properties="properties=<?php if ($title_properties) echo $title_properties; ?>"><?php echo $post_images[$i]['title']; ?></h3>
<?php
endif;
if (isset($post_images[$i]['description']) && $post_images[$i]['description']) :
?>
<div class="pk_slider_item_caption" data-properties="properties=<?php echo ($description_properties) ? $description_properties : '{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'none\'}'; ?>">
<?php echo '<p>'.$post_images[$i]['description'].'</p>'; ?>
</div>
<?php
endif;
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pk_featured_slider").pk_content_slider({
sliderWidth:980,
sliderHeight:530,
sliderNavigationAlign:'<?php if (isset($post_meta['_slider_navigation_align'][0])) : echo $post_meta['_slider_navigation_align'][0]; else : echo 'center'; endif; ?>',
transition:'<?php if (isset($post_meta['_slider_transition'][0])) : echo $post_meta['_slider_transition'][0]; else : echo 'fade'; endif; ?>',
sliderBackground:'<?php if (isset($post_meta['_slider_background'][0])) echo $post_meta['_slider_background'][0]; ?>',
slideshowAutoStart:<?php if (isset($post_meta['_slider_slideshow_auto_start'][0])) : echo $post_meta['_slider_slideshow_auto_start'][0]; else : echo 'true'; endif; ?>,
slideshowInterval:<?php if (isset($post_meta['_slider_slideshow_interval'][0])) : echo $post_meta['_slider_slideshow_interval'][0]; else : echo '7'; endif; ?>
});
jQuery(".prettyPhoto<?php echo $post -> ID; ?>").attr('rel', 'prettyPhoto[home_slider]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<!-- pk end featured slider -->
</div>
<!-- pk end center box -->
</div>
<!-- pk end wrapper : pk_featured -->

View File

@ -0,0 +1,137 @@
<?php
global $post;
$post_meta = get_post_custom($post -> ID);
$post_images = pk_get_post_gallery_images('full');
?>
<!-- pk start wrapper : pk_featured -->
<div class="pk_wrapper pk_featured pk_middle_shadow pk_clearfix">
<!-- pk start center box -->
<div class="pk_center_box">
<!-- pk start featured slider -->
<div id="pk_featured_slider" class="pk_content_slider">
<div class="pk_slider_content">
<?php
if (count($post_images) == 0) :
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php if (get_header_image()) : ?><img src="<?php header_image(); ?>" /><?php endif; ?>
</div>
</div>
<?php
endif;
for ($i = 0; $i < count($post_images); $i++) :
$title_properties = get_post_meta($post_images[$i]['id'], '_title_properties', true);
$description_properties = get_post_meta($post_images[$i]['id'], '_description_properties', true);
$snap_points = get_post_meta($post_images[$i]['id'], '_snap_points', true);
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php
if ($video_url || $image_link) :
?><a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo $post -> ID; ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo esc_url($video_url); endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>><?php
endif;
echo $post_images[$i]['img'];
if ($video_url || $image_link) :
?></a><?php
endif;
?>
</div>
<?php
if ($title_properties) :
?>
<h3 class="pk_slider_item_title" data-properties="properties=<?php if ($title_properties) echo $title_properties; ?>"><?php echo $post_images[$i]['title']; ?></h3>
<?php
endif;
if (isset($post_images[$i]['description']) && $post_images[$i]['description']) :
?>
<div class="pk_slider_item_caption" data-properties="properties=<?php echo ($description_properties) ? $description_properties : '{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'none\'}'; ?>">
<?php echo '<p>'.$post_images[$i]['description'].'</p>'; ?>
</div>
<?php
endif;
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pk_featured_slider").pk_content_slider({
sliderWidth:980,
sliderHeight:380,
sliderNavigationAlign:'<?php if (isset($post_meta['_slider_navigation_align'][0])) : echo $post_meta['_slider_navigation_align'][0]; else : echo 'left'; endif; ?>',
transition:'<?php if (isset($post_meta['_slider_transition'][0])) : echo $post_meta['_slider_transition'][0]; else : echo 'fade'; endif; ?>',
sliderBackground:'<?php if (isset($post_meta['_slider_background'][0])) echo $post_meta['_slider_background'][0]; ?>',
slideshowAutoStart:<?php if (isset($post_meta['_slider_slideshow_auto_start'][0])) : echo $post_meta['_slider_slideshow_auto_start'][0]; else : echo 'true'; endif; ?>,
slideshowInterval:<?php if (isset($post_meta['_slider_slideshow_interval'][0])) : echo $post_meta['_slider_slideshow_interval'][0]; else : echo '7'; endif; ?>
});
jQuery(".prettyPhoto<?php echo $post -> ID; ?>").attr('rel', 'prettyPhoto[home_slider]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<!-- pk end featured slider -->
<!-- pk start featured texts -->
<div id="pk_featured_text">
<?php
if (has_post_thumbnail()) :
the_post_thumbnail('full');
endif;
$snap_points = get_post_meta(get_post_thumbnail_id(), '_snap_points', true);
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<!-- pk end featured texts -->
</div>
<!-- pk end center box -->
</div>
<!-- pk end wrapper : pk_featured -->

View File

@ -0,0 +1,110 @@
<?php
global $post;
$post_meta = get_post_custom($post -> ID);
$post_images = pk_get_post_gallery_images('full');
?>
<!-- pk start wrapper : pk_featured -->
<div class="pk_wrapper pk_featured pk_middle_shadow pk_clearfix">
<!-- pk start center box -->
<div class="pk_center_box">
<!-- pk start featured slider -->
<div id="pk_featured_slider" class="pk_content_slider">
<div class="pk_slider_content">
<?php
if (count($post_images) == 0) :
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php if (get_header_image()) : ?><img src="<?php header_image(); ?>" /><?php endif; ?>
</div>
</div>
<?php
endif;
for ($i = 0; $i < count($post_images); $i++) :
$title_properties = get_post_meta($post_images[$i]['id'], '_title_properties', true);
$description_properties = get_post_meta($post_images[$i]['id'], '_description_properties', true);
$snap_points = get_post_meta($post_images[$i]['id'], '_snap_points', true);
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<?php
if ($video_url || $image_link) :
?><a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo $post -> ID; ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo esc_url($video_url); endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>><?php
endif;
echo $post_images[$i]['img'];
if ($video_url || $image_link) :
?></a><?php
endif;
?>
</div>
<?php
if ($title_properties) :
?>
<h3 class="pk_slider_item_title" data-properties="properties=<?php if ($title_properties) echo $title_properties; ?>"><?php echo $post_images[$i]['title']; ?></h3>
<?php
endif;
if (isset($post_images[$i]['description']) && $post_images[$i]['description']) :
?>
<div class="pk_slider_item_caption" data-properties="properties=<?php echo ($description_properties) ? $description_properties : '{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'none\'}'; ?>">
<?php echo '<p>'.$post_images[$i]['description'].'</p>'; ?>
</div>
<?php
endif;
if ($snap_points) :
?>
<div class="pk_snap_points">
<?php
echo $snap_points;
?>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#pk_featured_slider").pk_content_slider({
sliderWidth:980,
sliderHeight:530,
sliderNavigationAlign:'<?php if (isset($post_meta['_slider_navigation_align'][0])) : echo $post_meta['_slider_navigation_align'][0]; else : echo 'center'; endif; ?>',
transition:'<?php if (isset($post_meta['_slider_transition'][0])) : echo $post_meta['_slider_transition'][0]; else : echo 'fade'; endif; ?>',
sliderBackground:'<?php if (isset($post_meta['_slider_background'][0])) echo $post_meta['_slider_background'][0]; ?>',
slideshowAutoStart:<?php if (isset($post_meta['_slider_slideshow_auto_start'][0])) : echo $post_meta['_slider_slideshow_auto_start'][0]; else : echo 'true'; endif; ?>,
slideshowInterval:<?php if (isset($post_meta['_slider_slideshow_interval'][0])) : echo $post_meta['_slider_slideshow_interval'][0]; else : echo '7'; endif; ?>
});
jQuery(".prettyPhoto<?php echo $post -> ID; ?>").attr('rel', 'prettyPhoto[home_slider]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<!-- pk end featured slider -->
</div>
<!-- pk end center box -->
</div>
<!-- pk end wrapper : pk_featured -->

View File

@ -0,0 +1,6 @@
<div class="pk_message_box pk_warning_box">
<div class="pk_message_box_content_wrapper">
<div class="pk_message_box_content"><?php _e('It seems we can\'t find what you\'re looking for. Perhaps searching can help.', 'pk_translate'); ?></div>
</div>
</div>

View File

@ -0,0 +1,51 @@
<?php
$audio_urls = explode(',', get_post_meta(get_post_thumbnail_id(), '_audio_urls', true));
if (is_array($audio_urls) && count($audio_urls) > 0 && $audio_urls[0] != '') :
$supplied = '';
$media = '';
for ($i = 0; $i < count($audio_urls); $i++) :
$supplied .= str_replace('.', '', strrchr(trim($audio_urls[$i]), '.')).(($i < count($audio_urls) - 1) ? ',' : '');
$media .= str_replace(array('.'), array(''), strrchr(trim($audio_urls[$i]), '.')).':"'.trim($audio_urls[$i]).'"'.(($i < count($audio_urls) - 1) ? ',' : '');
endfor;
?>
<div id="jp_container_<?php the_ID(); ?>" class="jp-video jp-video-normal-width">
<div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer"></div>
<?php echo PK_JPLAYER_GUI; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#jquery_jplayer_<?php the_ID(); ?>").jPlayer({
ready: function () {
jQuery(this).jPlayer("setMedia", {
<?php echo $media; ?>
});
},
play: function() {
jQuery(this).jPlayer("pauseOthers");
},
swfPath:"<?php echo PK_THEME_DIR; ?>/js",
solution:"flash,html",
supplied:"<?php echo $supplied; ?>",
cssSelectorAncestor:"#jp_container_<?php the_ID(); ?>",
sizeFull: {
width:"100%",
height:"100%",
cssClass:"jp-video-full"
}
});
});
</script>
<?php
endif;
?>
<?php
add_filter('embed_defaults', 'pk_page_embed_defaults'); the_content();
?>

View File

@ -0,0 +1,36 @@
<?php
$post_images = pk_get_post_gallery_images('full');
if (has_post_thumbnail()) :
?>
<div class="pk_image">
<div class="pk_image_wrapper pk_zoom_icon">
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo pk_get_featured_image(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(((is_page_template('page-full-width.php')) ? 'full-width' : 'big'), array('title' => '')); ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
?>
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo ($video_url) ? esc_url($video_url) : $post_images[$i]['url']; ?>" title="<?php echo $post_images[$i]['description']; ?>"></a>
<?php
endfor;
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
</div>
</div>
<?php
endif;
?>
<?php
add_filter('embed_defaults', 'pk_page_embed_defaults'); the_content();
?>

View File

@ -0,0 +1,35 @@
<?php
$image_link = get_post_meta(get_post_thumbnail_id(), '_image_link', true);
$image_link_target = get_post_meta(get_post_thumbnail_id(), '_image_link_target', true);
if (has_post_thumbnail()) :
?>
<div class="pk_image">
<div class="pk_image_wrapper<?php if ($image_link) echo ' pk_link_icon'; ?>">
<?php
if ($image_link) :
?>
<a href="<?php echo esc_url($image_link); ?>" title="<?php echo __('Click to visit:', 'pk_translate').' '.$image_link; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>>
<?php
endif;
?>
<?php the_post_thumbnail(((is_page_template('page-full-width.php')) ? 'full-width' : 'big'), array('title' => '')); ?>
<?php
if ($image_link) :
?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
<?php
endif;
?>
</div>
</div>
<?php
endif;
?>
<?php
add_filter('embed_defaults', 'pk_page_embed_defaults'); the_content();
?>

View File

@ -0,0 +1,66 @@
<?php
$post_meta = get_post_custom(get_the_ID());
$post_images = pk_get_post_gallery_images(((is_page_template('page-full-width.php')) ? 'full-width' : 'big'));
$post_images_full = pk_get_post_gallery_images('full');
?>
<div id="pk_slider_<?php the_ID(); ?>" class="pk_slider">
<div class="pk_slider_content">
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<div class="pk_image">
<div class="pk_image_wrapper<?php echo ($video_url) ? ' pk_play_icon' : (($image_link)? ' pk_link_icon' : ' pk_zoom_icon'); ?>">
<a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo the_ID(); ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo ($video_url) ? esc_url($video_url) : $post_images_full[$i]['url']; endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?> title="<?php echo $post_images[$i]['description']; ?>">
<?php echo $post_images[$i]['img']; ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
</div>
</div>
</div>
<?php
if ($post_images[$i]['description']) :
?>
<div class="pk_slider_item_info">
<div class="pk_slider_item_info_background"></div>
<div class="pk_slider_item_info_content"><?php echo $post_images[$i]['description']; ?></div>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
jQuery("#pk_slider_<?php the_ID(); ?>").pk_slider({
sliderWidth:580,
sliderHeight:0,
buttonInfoOpenLabel:"<?php echo (isset($post_meta['_slider_info_button_open_label'][0])) ? $post_meta['_slider_info_button_open_label'][0] : __('info', 'pk_translate'); ?>",
buttonInfoCloseLabel:"<?php echo (isset($post_meta['_slider_info_button_close_label'][0])) ? $post_meta['_slider_info_button_close_label'][0] : __('close info', 'pk_translate'); ?>",
infoTextAlign:"left",
infoBackgroundAlpha:0.9,
slideshow:<?php echo (isset($post_meta['_slider_slideshow'][0])) ? $post_meta['_slider_slideshow'][0] : 'true'; ?>,
slideshowAutoStart:<?php echo (isset($post_meta['_slider_slideshow_auto_start'][0])) ? $post_meta['_slider_slideshow_auto_start'][0] : 'false'; ?>,
slideshowInterval:<?php echo (isset($post_meta['_slider_slideshow_interval'][0])) ? $post_meta['_slider_slideshow_interval'][0] : '5'; ?>,
easing: "easeOutExpo",
speedIn:400,
speedOut:400
});
});
</script>
<?php
add_filter('embed_defaults', 'pk_page_embed_defaults'); the_content();
?>

View File

@ -0,0 +1,4 @@
<?php
add_filter('embed_defaults', 'pk_page_embed_defaults'); the_content();
?>

View File

@ -0,0 +1,72 @@
<?php
$video_url = get_post_meta(get_post_thumbnail_id(), '_video_url', true);
$video_urls = explode(',', get_post_meta(get_post_thumbnail_id(), '_video_urls', true));
if (is_array($video_urls) && count($video_urls) > 0) :
$supplied = '';
$media = '';
for ($i = 0; $i < count($video_urls); $i++) :
$supplied .= str_replace('.', '', strrchr(trim($video_urls[$i]), '.')).(($i < count($video_urls) - 1) ? ',' : '');
$media .= str_replace(array('.'), array(''), strrchr(trim($video_urls[$i]), '.')).':"'.trim($video_urls[$i]).'"'.(($i < count($video_urls) - 1) ? ',' : '');
endfor;
endif;
if ($video_url) :
?>
<div class="pk_video">
<?php add_filter('embed_defaults', 'pk_page_embed_defaults'); echo str_replace(array('&', 'feature=oembed'), array('&amp;', 'feature=oembed&amp;wmode=transparent'), wp_oembed_get(esc_url($video_url))); ?>
</div>
<?php
endif;
if (is_array($video_urls) && count($video_urls) > 0 && $video_urls[0] != '') :
?>
<div id="jp_container_<?php the_ID(); ?>" class="jp-video jp-video-normal-width">
<div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer"></div>
<?php echo PK_JPLAYER_GUI; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#jquery_jplayer_<?php the_ID(); ?>").jPlayer({
ready: function () {
jQuery(this).jPlayer("setMedia", {
<?php echo $media.',poster:"'.((!pk_sidebar()) ? pk_get_featured_image('full-width') : pk_get_featured_image('big')).'"'; ?>
});
jQuery("#jp_container_<?php the_ID(); ?>").pk_jplayer_resize();
},
play: function() {
jQuery(this).jPlayer("pauseOthers");
},
swfPath:"<?php echo PK_THEME_DIR; ?>/js",
solution:"flash,html",
supplied:"<?php echo $supplied; ?>",
cssSelectorAncestor:"#jp_container_<?php the_ID(); ?>",
size: {
width:"<?php echo (is_page_template('page-full-width.php')) ? '940' : '580'; ?>px",
height:"<?php echo (is_page_template('page-full-width.php')) ? '529' : '326'; ?>px",
cssClass:"jp-video-normal-width"
},
sizeFull: {
width:"100%",
height:"100%",
cssClass:"jp-video-full"
}
});
});
</script>
<?php
endif;
?>
<?php
add_filter('embed_defaults', 'pk_page_embed_defaults'); the_content();
?>

View File

@ -0,0 +1,62 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_audio pk_boxed pk_full_content pk_entry_single'); ?>>
<?php
$audio_urls = explode(',', get_post_meta(get_post_thumbnail_id(), '_audio_urls', true));
if (is_array($audio_urls) && count($audio_urls) > 0 && $audio_urls[0] != '') :
$supplied = '';
$media = '';
for ($i = 0; $i < count($audio_urls); $i++) :
$supplied .= str_replace('.', '', strrchr(trim($audio_urls[$i]), '.')).(($i < count($audio_urls) - 1) ? ',' : '');
$media .= str_replace(array('.'), array(''), strrchr(trim($audio_urls[$i]), '.')).':"'.trim($audio_urls[$i]).'"'.(($i < count($audio_urls) - 1) ? ',' : '');
endfor;
?>
<div id="jp_container_<?php the_ID(); ?>" class="jp-video jp-video-normal-width">
<div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer"></div>
<?php echo PK_JPLAYER_GUI; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#jquery_jplayer_<?php the_ID(); ?>").jPlayer({
ready: function () {
jQuery(this).jPlayer("setMedia", {
<?php echo $media; ?>
});
},
play: function() {
jQuery(this).jPlayer("pauseOthers");
},
swfPath:"<?php echo PK_THEME_DIR; ?>/js",
solution:"flash,html",
supplied:"<?php echo $supplied; ?>",
cssSelectorAncestor:"#jp_container_<?php the_ID(); ?>",
sizeFull: {
width:"100%",
height:"100%",
cssClass:"jp-video-full"
}
});
});
</script>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<h3><?php the_title(); ?></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_terms(get_the_ID(), 'taxonomy_portfolio'); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
</div>
</article>

View File

@ -0,0 +1,48 @@
<?php
$post_images = pk_get_post_gallery_images('full');
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_gallery pk_boxed pk_full_content pk_entry_single'); ?>>
<?php
if (has_post_thumbnail()) :
?>
<div class="pk_image">
<div class="pk_image_wrapper pk_zoom_icon">
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo pk_get_featured_image(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(((pk_sidebar()) ? 'big' : 'full-width'), array('title' => '')); ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
?>
<a class="prettyPhoto<?php the_ID(); ?>" href="<?php echo ($video_url) ? esc_url($video_url) : $post_images[$i]['url']; ?>" title="<?php echo $post_images[$i]['description']; ?>"></a>
<?php
endfor;
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
</div>
</div>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<h3><?php the_title(); ?></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_terms(get_the_ID(), 'taxonomy_portfolio'); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
</div>
</article>

View File

@ -0,0 +1,47 @@
<?php
$image_link = get_post_meta(get_post_thumbnail_id(), '_image_link', true);
$image_link_target = get_post_meta(get_post_thumbnail_id(), '_image_link_target', true);
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_image pk_boxed pk_full_content pk_entry_single'); ?>>
<?php
if (has_post_thumbnail()) :
?>
<div class="pk_image">
<div class="pk_image_wrapper<?php if ($image_link) echo ' pk_link_icon'; ?>">
<?php
if ($image_link) :
?>
<a href="<?php echo esc_url($image_link); ?>" title="<?php echo __('Click to visit:', 'pk_translate').' '.$image_link; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?>>
<?php
endif;
?>
<?php the_post_thumbnail(((pk_sidebar()) ? 'big' : 'full-width'), array('title' => '')); ?>
<?php
if ($image_link) :
?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
<?php
endif;
?>
</div>
</div>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<h3><?php the_title(); ?></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_terms(get_the_ID(), 'taxonomy_portfolio'); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
</div>
</article>

View File

@ -0,0 +1,77 @@
<?php
$post_meta = get_post_custom(get_the_ID());
$post_images = pk_get_post_gallery_images(((pk_sidebar()) ? 'big' : 'full-width'));
$post_images_full = pk_get_post_gallery_images('full');
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_gallery pk_boxed pk_full_content pk_entry_single'); ?>>
<div id="pk_slider_<?php the_ID(); ?>" class="pk_slider">
<div class="pk_slider_content">
<?php
for ($i = 0; $i < count($post_images); $i++) :
$video_url = get_post_meta($post_images[$i]['id'], '_video_url', true);
$image_link = get_post_meta($post_images[$i]['id'], '_image_link', true);
$image_link_target = get_post_meta($post_images[$i]['id'], '_image_link_target', true);
?>
<div class="pk_slider_item">
<div class="pk_slider_item_media">
<div class="pk_image">
<div class="pk_image_wrapper<?php echo ($video_url) ? ' pk_play_icon' : (($image_link)? ' pk_link_icon' : ' pk_zoom_icon'); ?>">
<a <?php if (!$image_link) : ?>class="prettyPhoto<?php echo the_ID(); ?>" <?php endif; ?>href="<?php if ($image_link) : echo esc_url($image_link); else : echo ($video_url) ? esc_url($video_url) : $post_images_full[$i]['url']; endif; ?>"<?php echo ($image_link_target) ? ' target="'.$image_link_target.'"' : ' target="_self"'; ?> title="<?php echo $post_images[$i]['description']; ?>">
<?php echo $post_images[$i]['img']; ?>
<span class="pk_image_button_back_ground"></span>
<span class="pk_image_button_icon"></span>
</a>
</div>
</div>
</div>
<?php
if ($post_images[$i]['description']) :
?>
<div class="pk_slider_item_info">
<div class="pk_slider_item_info_background"></div>
<div class="pk_slider_item_info_content"><?php echo $post_images[$i]['description']; ?></div>
</div>
<?php
endif;
?>
</div>
<?php
endfor;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".prettyPhoto<?php the_ID(); ?>").attr('rel', 'prettyPhoto[gallery_<?php the_ID(); ?>]').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
jQuery("#pk_slider_<?php the_ID(); ?>").pk_slider({
sliderWidth:580,
sliderHeight:0,
buttonInfoOpenLabel:"<?php echo (isset($post_meta['_slider_info_button_open_label'][0])) ? $post_meta['_slider_info_button_open_label'][0] : __('info', 'pk_translate'); ?>",
buttonInfoCloseLabel:"<?php echo (isset($post_meta['_slider_info_button_close_label'][0])) ? $post_meta['_slider_info_button_close_label'][0] : __('close info', 'pk_translate'); ?>",
infoTextAlign:"left",
infoBackgroundAlpha:0.9,
slideshow:<?php echo (isset($post_meta['_slider_slideshow'][0])) ? $post_meta['_slider_slideshow'][0] : 'true'; ?>,
slideshowAutoStart:<?php echo (isset($post_meta['_slider_slideshow_auto_start'][0])) ? $post_meta['_slider_slideshow_auto_start'][0] : 'false'; ?>,
slideshowInterval:<?php echo (isset($post_meta['_slider_slideshow_interval'][0])) ? $post_meta['_slider_slideshow_interval'][0] : '5'; ?>,
easing: "easeOutExpo",
speedIn:400,
speedOut:400
});
});
</script>
<div class="pk_entry_content">
<header>
<h3><?php the_title(); ?></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_terms(get_the_ID(), 'taxonomy_portfolio'); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
</div>
</article>

View File

@ -0,0 +1,15 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_standard pk_boxed pk_full_content pk_entry_single'); ?>>
<div class="pk_entry_content">
<header>
<h3><?php the_title(); ?></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_terms(get_the_ID(), 'taxonomy_portfolio'); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
</div>
</article>

View File

@ -0,0 +1,83 @@
<?php
$video_url = get_post_meta(get_post_thumbnail_id(), '_video_url', true);
$video_urls = explode(',', get_post_meta(get_post_thumbnail_id(), '_video_urls', true));
if (is_array($video_urls) && count($video_urls) > 0) :
$supplied = '';
$media = '';
for ($i = 0; $i < count($video_urls); $i++) :
$supplied .= str_replace('.', '', strrchr(trim($video_urls[$i]), '.')).(($i < count($video_urls) - 1) ? ',' : '');
$media .= str_replace(array('.'), array(''), strrchr(trim($video_urls[$i]), '.')).':"'.trim($video_urls[$i]).'"'.(($i < count($video_urls) - 1) ? ',' : '');
endfor;
endif;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('pk_entry pk_entry_blog pk_entry_video pk_boxed pk_full_content pk_entry_single'); ?>>
<?php
if ($video_url) :
?>
<div class="pk_video">
<?php add_filter('embed_defaults', 'pk_portfolio_embed_defaults'); echo str_replace(array('&', 'feature=oembed'), array('&amp;', 'feature=oembed&amp;wmode=transparent'), wp_oembed_get(esc_url($video_url))); ?>
</div>
<?php
endif;
if (is_array($video_urls) && count($video_urls) > 0 && $video_urls[0] != '') :
?>
<div id="jp_container_<?php the_ID(); ?>" class="jp-video jp-video-normal-width">
<div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer"></div>
<?php echo PK_JPLAYER_GUI; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#jquery_jplayer_<?php the_ID(); ?>").jPlayer({
ready: function () {
jQuery(this).jPlayer("setMedia", {
<?php echo $media.',poster:"'.((!pk_sidebar()) ? pk_get_featured_image('full-width') : pk_get_featured_image('big')).'"'; ?>
});
jQuery("#jp_container_<?php the_ID(); ?>").pk_jplayer_resize();
},
play: function() {
jQuery(this).jPlayer("pauseOthers");
},
swfPath:"<?php echo PK_THEME_DIR; ?>/js",
solution:"flash,html",
supplied:"<?php echo $supplied; ?>",
cssSelectorAncestor:"#jp_container_<?php the_ID(); ?>",
size: {
width:"<?php echo (!pk_sidebar()) ? '940' : '580'; ?>px",
height:"<?php echo (!pk_sidebar()) ? '529' : '326'; ?>px",
cssClass:"jp-video-normal-width"
},
sizeFull: {
width:"100%",
height:"100%",
cssClass:"jp-video-full"
}
});
});
</script>
<?php
endif;
?>
<div class="pk_entry_content">
<header>
<h3><?php the_title(); ?></h3>
<ul class="pk_entry_meta">
<li class="pk_entry_author"><?php _e('By:', 'pk_translate'); ?> <?php the_author_posts_link(); ?></li>
<li class="pk_entry_date"><?php echo get_the_date(); ?></li>
<li class="pk_entry_categories"><?php the_terms(get_the_ID(), 'taxonomy_portfolio'); ?></li>
<li class="pk_comments_count"><?php comments_popup_link(__('0', 'pk_translate'), __('1', 'pk_translate'), __('%', 'pk_translate'), 'pk_meta_tot_comments', __('Off', 'pk_translate')); ?></li>
</ul>
</header>
<?php add_filter('embed_defaults', 'pk_post_embed_defaults'); the_content(); ?>
</div>
</article>

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -0,0 +1,377 @@
<?php
function pk_create_theme_docs_page() {
?>
<style>
.pk_help {
font-size:14px;
line-height:24px;
}
.pk_help ol li {
margin-bottom:30px;
}
small {
font-weight:bold;
}
pre {
color:#444;
background-color:#eee;
padding:20px;
padding-bottom:0px;
}
</style>
<div class="wrap">
<div id="icon-options-general" class="icon32"><br /></div>
<h2>Theme Docs</h2>
<br />
<div class="pk_help">
<h1 id="docs_table_of_contents">Table of contents:</h1>
<ul>
<li><a href="#demo_contents_installation">Demo Contents Installation</a></li>
<li><a href="#important_infos">Important Infos</a></li>
<li><a href="#supported_plugins">Supported Plugins</a></li>
<li><a href="#theme_options">Theme Options</a></li>
<li><a href="#navigation_menus_setup">Navigation Menus Setup</a></li>
<li><a href="#home_page_setup">Home Page Setup</a></li>
<li><a href="#blog_setup">Blog Setup</a></li>
<li><a href="#portfolio_setup">Portfolio Setup</a></li>
<li><a href="#creating_pages">Creating Pages</a></li>
<li><a href="#creating_blog_posts">Creating Blog Posts</a></li>
<li><a href="#creating_works">Creating Works</a></li>
<li><a href="#page_templates">Page Templates</a></li>
<li><a href="#formats">Formats</a></li>
<li><a href="#the_home_page_templates_slider">The Home Page Templates Slider</a></li>
<li><a href="#sidebars_and_widgets_areas">Sidebars and Widgets Areas</a></li>
<li><a href="#the_html_generator">The HTML Generator</a></li>
<li><a href="#theme_translation">Theme Translation</a></li>
</ul>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="demo_contents_installation"></span>
<h1>Demo Contents Installation</h1>
<p>The demo contents installation explained in this video refers to the official theme's preview that you can see here: <a href="http://sold.parkerandkent.com/sold/" target="_blank">WordPress Sold! Responsive/E-Commerce Theme </a>.</p>
<p>For the official preview we have used <strong>JigoShop</strong> to build the store. The support of the <strong>WooCommerce</strong> plugin has been added later, so if you intend to use <strong>WooCommerce</strong> just follow the same steps explained for <strong>JigoShop</strong>. Only for WooCommerce: once you've set up the plugin and the demo contents you will need to update each product post in order to add them to the shop. This step is necessary because, for the theme's preview, the products have been created with JigoShop and so they need to be saved for WooCommerce. Also the home page for the ecommerce needs to be updated: instead of the <strong>Home Page JigoShop Template</strong> you need to assign the <strong>Home Page WooCommerce Template</strong> to it and save/update.</p>
<p>The <strong>sold.xml</strong> file of the demo contents is pretty huge, considering the amount of contents showcased on the preview. In some cases the import of this file can take several minutes, depending on your server performances. <strong>We suggest to import the demo contents only to localhost installations (using MAMP, XAMP or similar applications).</strong></p>
<p><iframe src="http://www.screenr.com/embed/DTe8" width="650" height="396" frameborder="0"></iframe></p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="important_infos"></span>
<h1>Important Infos</h1>
<ol>
<li><strong>Read the docs</strong> and, if you've never used WordPress before, this must be your <a href="http://codex.wordpress.org/Main_Page" target="_blank">starting point</a>.</li>
<li>Every time you save a page, post or work <small>(depending on the selected format or page template)</small> an <strong>options panel</strong> will appear below the text editor of the post. <strong>So, first select the format or template, enter a title and then save. Only then the options panel will appear.</strong></li>
<li>Every page, post or work featuring a <strong>gallery</strong>, a <strong>slider</strong> or an <strong>image</strong> uses post's <a href="http://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages" target="_blank">attachments</a>. So, for these post formats, just upload your images as post's attachments and enjoy. For more detailed info don't miss the next sections about <a href="#page_templates">page templates</a> and <a href="#formats">formats</a>.</li>
<li>Below the text editor of each page, post or work there is the <strong>HTML Generator</strong>, to generate contents like buttons, pricing tables, boxes, accordions, toggles, etc. Remember to use the generator with the <strong>HTML</strong> tab of the post editor, not the visual one.</li>
<li>Is a good practice to set a <strong>featured image</strong> to every page, post or work, also if it's not needed. The fetured image is very useful to better visualize the contents, especially within the grid layouts and sidebar widgets.</li>
<li>This theme supports <strong>oEmbed</strong> to include videos. So, to add a video to your page, post or work just paste the video URL in the editor. More info <a href="http://codex.wordpress.org/Embeds" target="_blank">here</a>.</li>
<li>The <strong>"1 Column"</strong> layout of blogs and portfolios allows you to display, for each item in the list, also media contents like videos and music players other than standard images. The other <strong>"Grid"</strong> layouts will only show the featured image of the posts. Obviously, the single page of each post will show the full featured content, whichever layout you use.</li>
<li>If you feel that some options or settings panel described here are missing, check the top right corner of the admin. If the <strong>"Screen Options"</strong> button is there, click on it and select the panels you want to activate.</li>
<li>Go to the <a href="options-permalink.php">Permalinks</a> page and select a permalinks structure different than the default one, eg. <strong>"Month and name"</strong>.</li>
<li>Probably you don't want to <strong>enable comments</strong> for every page, post or work automatically... If so, go to the <a href="options-discussion.php">Discussion</a> page and uncheck the first 3 checkboxes.</li>
<li>To enable user registration go to the <a href="options-general.php">General</a> page and check the <strong>"Membership"</strong> option. You will need to enable user registration in case you want to use an <strong>e-commerce</strong> plugin or just to keep the comments open to members only.</li>
<li>If you use the <strong>JigoShop</strong> plugin go to its <strong>"Settings"</strong> page.<br />In the <strong>"General"</strong> tab <strong>check</strong> the <strong>"Disable Jigoshop frontend.css"</strong> and the <strong>"Disable bundled Fancybox"</strong> option.<br />In the <strong>"Images"</strong> tab check the first 3 checkboxes of the <strong>"Cropping Options"</strong> and then set the right image sizes for this theme: set <strong>"Tiny Image"</strong> to <strong>40*30</strong>, set <strong>"Thumbnail Image"</strong> to <strong>90*67</strong>, set <strong>"Catalog Image"</strong> to <strong>180*135</strong> and set <strong>"Large Image"</strong> to <strong>580*435</strong>.</li>
<li>If you use the <strong>WooCommerce</strong> plugin go to its <strong>"Settings"</strong> page.<br />In the <strong>"General"</strong> tab <strong>uncheck</strong> the <strong>"Enable WooCommerce CSS styles"</strong>, the <strong>"Enable WooCommerce lightbox on the product page"</strong> and the <strong>"Enable AJAX add to cart buttons on product archives"</strong> options.<br />In the <strong>"Catalog"</strong> tab set the right image sizes for this theme: set <strong>"Catalog Images"</strong> to <strong>180*135</strong>, set <strong>"Single Product Image"</strong> to <strong>580*435</strong> and set <strong>"Product Thumbnails"</strong> to <strong>90*67</strong>.<br />Then, in the <strong>"Pages"</strong> tab, <strong>uncheck</strong> the <strong>"Append a logout link to menus containing My Account"</strong>.</li>
<li>The theme automatically defines all the media sizes needed by the different templates. All the settings in the <a href="options-media.php">Media</a> page will be ignored by the theme, but they will be used by plugins and WordPress itself. So, for example, if you intend to use the built in <strong>[gallery] shortocde</strong> in your contents<strong></strong> you will have to set the sizes of the images that better fit your needs.</li>
<li>If you add to the gallery shortcode the attribute <strong>link="file"</strong>, so the shortcode will be <strong>[gallery link="file"]</strong>, the gallery thumbnails will open the large images using the built in lightbox of the theme.</li>
<li>So, we have explored just some of the WordPress <strong>Settings</strong> <small>(Permalinks, Discussion, General, Media)</small> and later we will check many more of them for sure. We suggest you to carefully explore all the WordPress settings, especially if you're not very familiar with this platform. In the <strong>Settings</strong> pages you will probably find most of the settings you will need during the website setup, so it's very useful to know where the important things are located.</li>
</ol>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="supported_plugins"></span>
<h1>Supported Plugins</h1>
<p>This theme supports 6 of the best WordPress plugins, that will extend the functionalities of the theme depending on your needs. During the first activation of the theme you should have noticed a yellow alert box informing you about the supported plugins. Through that alert box you can easily install all the plugins with a few clciks, just follow the instructions... or just <a href="themes.php?page=install-required-plugins" target="_self">click here</a>.</p>
<p>The supportd plugins are the following:</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/background-manager/" title="Background Manager" target="_blank">Background Manager</a></li>
<li><a href="http://wordpress.org/extend/plugins/breadcrumb-navxt/" title="Breadcrumb NavXT" target="_blank">Breadcrumb NavXT</a></li>
<li><a href="http://wordpress.org/extend/plugins/contact-form-7/" title="Contact Form 7" target="_blank">Contact Form 7</a></li>
<li><a href="http://wordpress.org/extend/plugins/qtranslate/" title="qTranslate" target="_blank">qTranslate</a></li>
<li><a href="http://www.wpml.org/" title="WPML Multilingual CMS" target="_blank">WPML Multilingual CMS</a></li>
<li><a href="http://wordpress.org/extend/plugins/jigoshop/" title="JigoShop" target="_blank">JigoShop</a></li>
<li><a href="http://www.woothemes.com/woocommerce/" title="WooCommerce" target="_blank">WooCommerce</a></li>
<li><a href="http://wordpress.org/extend/plugins/bbpress/" title="bbPress" target="_blank">bbPress</a></li>
</ul>
<p>The <a href="http://wordpress.org/extend/plugins/background-manager/" title="Background Manager" target="_blank">Background Manager</a> plugin is a fantastic tool to assign a background image or pattern to any section of your site, with outstanding transitions and effects. Check out the plugin link for more information and to learn how to properly use it.</p>
<p>The <a href="http://wordpress.org/extend/plugins/breadcrumb-navxt/" title="Breadcrumb NavXT" target="_blank">Breadcrumb NavXT</a> is a very useful plugin to display a breadcrumbs navigation in the header area of the theme. This kind of plugins are very important to improve the user experience of your website. Check out the plugin link for more information and to learn how to properly use it.</p>
<p>The <a href="http://wordpress.org/extend/plugins/contact-form-7/" title="Contact Form 7" target="_blank">Contact Form 7</a> plugin is an impressive tool to create any type of form. You can easily create a common and simple contact form, as well a complex and detailed form to collect any type of information from your visitors <small>(eg: a booking form for a restaurant)</small>. Check out the plugin link for more information and to learn how to properly use it.</p>
<p>The <a href="http://www.wpml.org/" title="WPML Multilingual CMS" target="_blank">WPML Multilingual CMS</a> and the <a href="http://wordpress.org/extend/plugins/qtranslate/" title="qTranslate" target="_blank">qTranslate</a> plugins are necessay if you intend to make your website multilingial. Select the one that works better for you. WPML is commercial, more complex and absolutely complete. qTranslate is free and simpler than WPML. Check out the links for more information and to learn how to properly use these plugins.</p>
<p><strong style="color:#ff0000;">IMPORTANT</strong> - Please understand that with this theme we only offer the best compatibility with these plugins. We are not the creators of these tools and for this reason in most of the cases we can't answer to any question about them. In order to obtain the best support we suggest to always refer to the official websites and documentation of each plugin.</p>
<p>The <a href="http://wordpress.org/extend/plugins/jigoshop/" title="JigoShop" target="_blank">JigoShop</a> plugin is probably one of the best free plugins to create a fully functional store for your products. Sell your goods online and take your business to the next level. This plugin is very complete and for this reason it could result a little complex at the beginning. We suggest to visit the <a href="http://jigoshop.com/" title="JigoShop" target="_blank">JigoShop</a> official website and its support forum to get started.</p>
<p>The <a href="http://www.woothemes.com/woocommerce/" title="WooCommerce" target="_blank">WooCommerce</a> plugin is probably one of the best free plugins to create a fully functional store for your products. Sell your goods online and take your business to the next level. This plugin is very complete and for this reason it could result a little complex at the beginning. We suggest to visit the <a href="http://www.woothemes.com/woocommerce/" title="WooCommerce" target="_blank">WooCommerce</a> official website and its support forum to get started.</p>
<p>The <a href="http://wordpress.org/extend/plugins/bbpress/" title="bbPress" target="_blank">bbPress</a> plugin is probably one of the best free plugins to create a fully functional forum. We suggest to visit the <a href="http://bbpress.org/" title="bbPress" target="_blank">bbPress</a> official website and its support forum to get started.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="theme_options"></span>
<h1>Theme Options</h1>
<p>The theme options are located <a href="themes.php?page=ot-theme-options" target="_self">here</a>, under the Appearance menu. The options are organized in tabs:</p>
<h3>General</h3>
<p>In this tab you can set: logo, logo size, favicon, etc.</p>
<h3>Sidebar</h3>
<p>In this tab you can set the global sidebar position <small>(left, right or none)</small> and set the sidebar visibility for some specific site contents <small>(main blog, archives, portfolio, shop, forum, search, 404 error page)</small>. Page, posts, works and any other single content have their own sidebar setting <small>(available in the post's metaboxes, not in the main theme options)</small>.</p>
<h3>Custom sidebars</h3>
<p>In this tab you can create custom sidebars and widgets areas for any page you have. By creating a custom sidebar for a page, you will also have the option to hide the default sidebars that would be normally loaded by the page. In this way, you can have pages with unique widgets and additional contents.</p>
<h3>Blog and blog archives</h3>
<p>In this tab you have to set some options for the main blog and for the blog archives. Note that this theme comes with a blog <a href="#page_templates">page template</a>, but you must not make confusion between the main WordPress blog and the custom blog that you can create with the <a href="#page_templates">page template</a>. Next in the docs we'll see how to <a href="#blog_setup">set up the blog</a> more in detail and we'll make some important considerations about this topic, so be sure to read it carefully.</p>
<h3>Portfolio archives</h3>
<p>In this tab you have to set some options for the portfolio archives <small>(portfolio archives are all the works posts displayed by author, category, etc)</small>. Note that this theme comes with a portfolio <a href="#page_templates">page template</a>, but you must not make confusion between the portfolio archives and the custom portfolio that you can create with the <a href="#page_templates">page template</a>. Next in the docs we'll see how to <a href="#portfolio_setup">set up the portfolio</a> more in detail and we'll make some important considerations about this topic, so be sure to read it carefully.</p>
<h3>Footer</h3>
<p>In this tab you can set the footer layout <small>(1 to 6 columns, each one is a widgets area)</small>, the footer logo and a copyright text.</p>
<h3>Footer social networks</h3>
<p>In this tab you will find a very long list of social networks. Find the ones you have joined and enter the URL of your profiles. Once done small icons with the social networks logos will be displayed automatically in the footer and they will automatically link to your profile pages.</p>
<h3>Skin</h3>
<p>In this tab you can choose between the 2 default skins <small>(light and dark)</small> or create a custom one thanks to a very long and complete list of color options that will allow you to change any color of the theme with just a few clicks.</p>
<h3>Typography</h3>
<p>In this tab you can enter the CSS styles for your typography. No need to edit any CSS file, just type your styles here and save.</p>
<p>This is how we have set up the <strong>Google Font</strong> for the theme's preview, just add to the <strong>Typography CSS</strong> field:</p>
<pre>
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);
h1,h2,h3,h4,h5,h6,.pk_pricing_table header .pk_price{ font-family:'Source Sans Pro'; }
</pre>
<h3>Custom CSS</h3>
<p>In this tab you can enter any additional CSS you want. Your custom CSS saved in this field is very safe, because if you add your styles to a theme's CSS file you risk to lose your changes when updating the theme to newer releases.</p>
<h3>Custom JS</h3>
<p>In this tab you can enter any additional JS script you want.</p>
<h3>Advanced</h3>
<p>In this tab you can simply turn on the site's performances optimization. Thanks to this option all the CSS and JS files will be minified and combined automatically, without the need of any specific plugin. Thanks to this option your web pages will load faster.</p>
<h3>Additional options</h3>
<p>In this tab are grouped all the new options requested by customers, that don't belong to the original theme's options.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="navigation_menus_setup"></span>
<h1>Navigation Menus Setup</h1>
<p>This theme supports 2 navigation menus: the main one for the header and a secondary one for the footer. Both these menus can be configured for <strong>logged in</strong> and <strong>logged out</strong> users, in case you have enabled the users registration and want to differentiate the visible contents for members and visitors.</p>
<p>To set up the navigation menus go to the <a href="nav-menus.php" target="_self">Menus</a> page. If you've never used the WordPress menu system, we suggest to check for reference the official guide <a href="http://codex.wordpress.org/Appearance_Menus_SubPanel" target="_blank">here</a>.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="home_page_setup"></span>
<h1>Home Page Setup</h1>
<p>WordPress gives you 2 options for the home page <small>(front page)</small> of your site, you can:</p>
<ol>
<li>Display your latest <strong>blog posts <small>(your blog)</small>.</strong></li>
<li>Display a custom <strong>page</strong>.</li>
</ol>
<p>If you want to go with the first option basically you don't have to do anything, because WordPress shows by default the latest posts as front page. In fact, in the <a href="options-reading.php" target="_self">Reading</a> page of the <strong>Settings</strong>, the first option <strong>"Front page displays"</strong> is set by default to the <strong>"Your latest posts"</strong> value.</p>
<p>If you want to go with the second option, displaying a custom page, in the <a href="options-reading.php" target="_self">Reading</a> page of the <strong>Settings</strong>, the first option <strong>"Front page displays"</strong> should be set to the <strong>"A static page <small>(select below)</small>"</strong> value. Once selected, the 2 select fields below will be activated and so you will be able to assign a custom page for the home <small>(front page)</small> and one for the blog <small>(posts page)</small>. You will need to assign a page for the blog too <small>(if you want to have a blog, otherwise don't make a selection)</small>, because you won't be displaying it anymore as front page.<br /><br />The page for the blog must be a simple default empty page <small>(do not assign a page with any other <a href="#page_templates">page template</a>)</small>, with only the title <small>(used by the navigation menu)</small>. The page for your home <small>(front page)</small> can be everything. <strong>This theme has 6 special home <a href="#page_templates">page templates</a> to present your site in a very professional way.</strong></p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="blog_setup"></span>
<h1>Blog Setup</h1>
<p>As we've seen in the previous section, WordPress gives you 2 ways to set up your blog <small>(check out the <a href="#home_page_setup">Home Page Setup</a> section)</small>.</p>
<p>If you've chosen to display it as front page or by using a blank page in a different location, we're in any case talking about the main blog <small>(WordPress is basically a blogging platform, so the blog exists before the egg and the chicken)</small>. The options to manage its layout are within the <strong>"Blog and blog archives"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a> page.</p>
<p><strong>With "main blog and blog archives" we intend the default WordPress blog pages <small>(blog archives are all the blog posts displayed by author, date, category, tag, etc)</small>, we're not referring to any <a href="#page_templates">page template</a> that is meant to generate custom or alternative blogs</strong>. This theme has a custom blog <a href="#page_templates">page template</a>, but it doesn't use the global blog options. To avoid any confusion, we'll check the blog <a href="#page_templates">page template</a> later in the docs to see how it works and how to set it up.</p>
<p><strong style="color:#ff0000;">IMPORTANT 1</strong> - Note that, normally, the number of blog posts displayed per page should be set in the <a href="options-reading.php" target="_self">Reading</a> page of the <strong>Settings</strong> through the <strong>"Blog pages show at most"</strong> option. This theme overrides this setting, so you don't have to set it. Basically, the number of blog posts displayed per page is returned by the <strong>"columns*rows"</strong> multiplication set for the blog layout within the <strong>"Blog and blog archives"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a> page.</p>
<p><strong style="color:#ff0000;">IMPORTANT 2</strong> - Note that the <strong>sidebar visibility</strong> option for the <strong>"main blog and blog archives"</strong> is located within the <strong>"Sidebar"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a> page.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="portfolio_setup"></span>
<h1>Portfolio Setup</h1>
<p>To set up your portfolio you need to:</p>
<ol>
<li><a href="post-new.php?post_type=page" target="_self">Create a new page</a>, give it a title, assign the <strong>"Portfolio Template"</strong> and save. Once saved the page options will appear below the editor.</li>
<li>Through the page options panel you can add specific categories to the portfolio <small>(don't select any to include them all)</small> and most importantly set the layout.</li>
<li>As last operation, you have to assign the layout for the portfolio archives <small>(portfolio archives are all the works posts displayed by author, category, etc)</small> in the <strong>"Portfolio archives"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a> page.</li>
</ol>
<p>You can add new works <a href="edit.php?post_type=portfolio" target="_self">here</a>. You can drag and drop your works to sort them as you want <a href="edit.php?post_type=portfolio&page=pk_portfolio.php" target="_self">here</a></p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="creating_pages"></span>
<h1>Creating Pages</h1>
<p>To publish a page you need to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign a <a href="#page_templates">page template</a> or a <a href="#formats">format</a> and save. Once saved, an options panel will appear below the editor <small>(if available)</small>. Check the <a href="#page_templates">Page Templates</a> section for more info.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="creating_blog_posts"></span>
<h1>Creating Blog Posts</h1>
<p>To publish a blog post you need to <a href="post-new.php" target="_self">create a new post</a>, give it a title, assign a <a href="#formats">format</a> and save. Once saved, an options will appear below the editor <small>(if available)</small>.<br /><br />The supported <a href="#formats">formats</a> are the following:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/post_formats.png" /><br />Check the <a href="#formats">Formats</a> section for detailed instructions about how to implement each format.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="creating_works"></span>
<h1>Creating Works</h1>
<p>To publish a work you need to <a href="post-new.php?post_type=portfolio" target="_self">create a new work</a>, give it a title, assign a <a href="#formats">format</a> and save. Once saved, an options panel will appear below the editor <small>(if available)</small>.<br /><br />The supported <a href="#formats">formats</a> are the following:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/page_work_formats.png" /><br />Check the <a href="#formats">Formats</a> section for detailed instructions about how to implement each format.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="page_templates"></span>
<h1>Page Templates</h1>
<p><strong style="color:#ff0000;">IMPORTANT</strong> - To activate the <strong>options panel</strong> of each page template: <strong>select the page template and save</strong>, only after saving the right options panel will be displayed.</p>
<p>This theme comes with 10 custom page templates. When you <a href="post-new.php?post_type=page" target="_self">create a new page</a> you can select the one you want from the <strong>"Template"</strong> option within the <strong>"Page Attributes"</strong> box below the save button:</p>
<img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/page_templates.png" />
<ol>
<li>The <strong>"Default Template"</strong> obviously is the basic standard page template of WordPress and it supports the sidebar. It's the <strong>right one for the main blog</strong> <small>(check the <a href="#blog_setup">Blog Setup</a> section)</small> or for any other non specific content. You can assign to it a <strong>"Format"</strong> and, depending on the selected one, the page will behave differently.<br /><br />The supported <a href="#formats">formats</a> by the <strong>"Default Template"</strong> are the following:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/page_work_formats.png" /><br />Check the <a href="#formats">Formats</a> section for detailed instructions about how to implement each format.</li>
<li>The <strong>"Blog Template"</strong> is a page template that recreates the WordPress blog. This page template should be used only in case you want to have a layout for the main blog and a different one for the blog archives <small>(blog archives are all the blog posts displayed by author, date, category, tag, etc)</small>. To do this you need to:<br /><br />
<ol>
<li>Select a static page to use as home page and leave empty the selection for the default blog page as explained in the <a href="#home_page_setup">Home Page Setup</a> section.</li>
<li><a href="post-new.php?post_type=page" target="_self">Create a new page</a>, give it a title, assign the <strong>"Blog Template"</strong> and save. Once saved the page options will appear as explained at the beginning of this section.</li>
<li>Through the page options panel you can add specific categories to the blog <small>(don't select any to include them all)</small> and most importantly set the layout.</li>
<li>As last operation, you have to assign the layout for the blog archives in the <strong>"Blog and blog archives"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a> page.</li>
</ol>
This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/blog_page_options.png" /></li>
<li>The <strong>"FAQ Template"</strong> is a full width page template that loads within an <strong>"Accordion"</strong> or <strong>"Toggle"</strong> component the <a href="edit.php?post_type=faq" target="_blank">FAQ</a> posts for your frequently asked questions section.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/faq_page_options.png" /></li>
<li>The <strong>"Full Width Template"</strong> is exactly like the <strong>"Default Template"</strong>, with the only difference that it doesn't have the sidebar. You can assign to it a <strong>"Format"</strong> and, depending on the selected one, the page will behave differently.<br /><br />The supported <a href="#formats">formats</a> by the <strong>"Full Width Template"</strong> are the following:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/page_work_formats.png" /><br />Check the <a href="#formats">Formats</a> section for detailed instructions about how to implement each format.</li>
<li>The <strong>"Home Page Agency Template"</strong> is a full width home page template that features an <strong>image slider</strong> with a <strong>widgets area</strong> on its right, <strong>3 additional widgets areas</strong> and, after the page contents area, it loads some of your <strong>recent works</strong>. You can preview this page <a href="http://sold.parkerandkent.com/sold/homepage-agency/" target="_blank">here</a>. To create this kind of page you have to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign the <strong>"Home Page Agency Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.<br /><br />All the <strong>widgets areas</strong> must be set in the <a href="widgets.php" target="_blank">Widgets</a> page of the admin. For more info about sidebars and widgets read <a href="#sidebars_and_widgets_areas">here</a>.<br /><br />The <strong>recent works</strong> must be set within the options panel of the page.<br /><br />Setting up the slider is very easy. Just upload your images <small>(width: 610px, height: any)</small> by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and set the titles and descriptions, that will be displayed by the slider. For more detailed information about all the functionalities of the home page slider <a href="#the_home_page_templates_slider">read this section</a>.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/home_agency_options.png" /></li>
<li>The <strong>"Home Page Business Template"</strong> is a full width home page template that features an <strong>image slider</strong>, an <strong>RSS feed reader</strong> below the slider, a <strong>tabs component</strong>, <strong>3 widgets areas</strong> and the featured image <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small> just before the footer. You can preview this page <a href="http://sold.parkerandkent.com/sold/homepage-business/" target="_blank">here</a>. To create this kind of page you have to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign the <strong>"Home Page Business Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.<br /><br />The <strong>RSS feed reader</strong> must be set within the options panel of the page.<br /><br />The <strong>tabs component</strong> is populated by the contents of the sub pages. Once you have created the home page with this template, create some new child pages. <strong>Every child page will be added to the tabs.</strong> To create a child page just create a new page with the <strong>"Default Template"</strong>, enter the title and the contents and then, in the <strong>"Page Attributes"</strong> panel, select the main home page from the <strong>"Parent"</strong> select option:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/page_templates.png" /><br /><br />All the <strong>widgets areas</strong> must be set in the <a href="widgets.php" target="_blank">Widgets</a> page of the admin. For more info about sidebars and widgets read <a href="#sidebars_and_widgets_areas">here</a>.<br /><br />The <strong>featured image</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small> of the home page, as you can see in the page preview linked before, is loaded just before the footer. We have used it to showcase some logos. You can do the same with the logos of your best clients.<br /><br />Setting up the slider is very easy. Just upload your images <small>(width: 980px, height: any)</small> by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and set the titles and descriptions, that will be displayed by the slider. For more detailed information about all the functionalities of the home page slider <a href="#the_home_page_templates_slider">read this section</a>.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/home_business_options.png" /></li>
<li>The <strong>"Home Page Freelance Template"</strong> is a full width home page template that features an <strong>image slider</strong> with a <strong>call to action</strong> text, <strong>3 widgets areas</strong> and, after the page contents area, it loads some of your <strong>recent works</strong>. You can preview this page <a href="http://sold.parkerandkent.com/sold/homepage-freelance/" target="_blank">here</a>. To create this kind of page you have to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign the <strong>"Home Page Freelance Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.<br /><br />The <strong>call to action</strong> text must be set within the options panel of the page.<br /><br />All the <strong>widgets areas</strong> must be set in the <a href="widgets.php" target="_blank">Widgets</a> page of the admin. For more info about sidebars and widgets read <a href="#sidebars_and_widgets_areas">here</a>.<br /><br />The <strong>recent works</strong> must be set within the options panel of the page.<br /><br />Setting up the slider is very easy. Just upload your images <small>(width: 980px, height: any)</small> by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and set the titles and descriptions, that will be displayed by the slider. For more detailed information about all the functionalities of the home page slider <a href="#the_home_page_templates_slider">read this section</a>.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/home_freelance_options.png" /></li>
<li>The <strong>"Home Page JigoShop Template"</strong> is an home page template with sidebar that features an <strong>image slider</strong> with a <strong>call to action</strong> text, <strong>2 additional widgets areas</strong> and, after the page contents area, it loads some of your <strong>featured and recent products</strong>. You can preview this page <a href="http://sold.parkerandkent.com/sold/homepage-jigoshop/" target="_blank">here</a>. To create this kind of page you have to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign the <strong>"Home Page JigoShop Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.<br /><br />The <strong>call to action</strong> text must be set within the options panel of the page.<br /><br />All the <strong>widgets areas</strong> and the main <strong>sidebar</strong> must be set in the <a href="widgets.php" target="_blank">Widgets</a> page of the admin. For more info about sidebars and widgets read <a href="#sidebars_and_widgets_areas">here</a>.<br /><br />The <strong>featured and recent products</strong> must be set within the options panel of the page.<br /><br />Setting up the slider is very easy. Just upload your images <small>(width: 980px, height: any)</small> by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and set the titles and descriptions, that will be displayed by the slider. For more detailed information about all the functionalities of the home page slider <a href="#the_home_page_templates_slider">read this section</a>.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/home_jigoshop_woocommerce_options.png" /></li>
<li>The <strong>"Home Page Standard Template"</strong> is an home page template with sidebar that features an <strong>image slider</strong>, an <strong>active featured image</strong>, a <strong>call to action</strong> text, <strong>2 additional widgets areas</strong> and, after the page contents area, it loads some of your <strong>recent works and blog posts</strong>. You can preview this page <a href="http://sold.parkerandkent.com/sold/homepage-standard/" target="_blank">here</a>. To create this kind of page you have to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign the <strong>"Home Page Standard Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.<br /><br />The <strong>active featured image</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small> supports the <strong>"snap points"</strong> like the slider. To know how to set up the <strong>"snap points"</strong> just check out <a href="#the_home_page_templates_slider">this section</a><br /><br />The <strong>call to action</strong> text must be set within the options panel of the page.<br /><br />All the <strong>widgets areas</strong> and the main <strong>sidebar</strong> must be set in the <a href="widgets.php" target="_blank">Widgets</a> page of the admin. For more info about sidebars and widgets read <a href="#sidebars_and_widgets_areas">here</a>.<br /><br />The <strong>recent works and blog posts</strong> must be set within the options panel of the page.<br /><br />Setting up the slider is very easy. Just upload your images <small>(width: 980px, height: any)</small> by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and set the titles and descriptions, that will be displayed by the slider. For more detailed information about all the functionalities of the home page slider <a href="#the_home_page_templates_slider">read this section</a>.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/home_standard_options.png" /></li>
<li>The <strong>"Home Page WooCommerce Template"</strong> is an home page template with sidebar that features an <strong>image slider</strong> with a <strong>call to action</strong> text, <strong>2 additional widgets areas</strong> and, after the page contents area, it loads some of your <strong>featured and recent products</strong>. You can preview this page <a href="http://sold.parkerandkent.com/sold/homepage-jigoshop/" target="_blank">here</a>. To create this kind of page you have to <a href="post-new.php?post_type=page" target="_self">create a new page</a>, give it a title, assign the <strong>"Home Page WooCommerce Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.<br /><br />The <strong>call to action</strong> text must be set within the options panel of the page.<br /><br />All the <strong>widgets areas</strong> and the main <strong>sidebar</strong> must be set in the <a href="widgets.php" target="_blank">Widgets</a> page of the admin. For more info about sidebars and widgets read <a href="#sidebars_and_widgets_areas">here</a>.<br /><br />The <strong>featured and recent products</strong> must be set within the options panel of the page.<br /><br />Setting up the slider is very easy. Just upload your images <small>(width: 980px, height: any)</small> by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and set the titles and descriptions, that will be displayed by the slider. For more detailed information about all the functionalities of the home page slider <a href="#the_home_page_templates_slider">read this section</a>.<br /><br />This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/home_jigoshop_woocommerce_options.png" /></li>
<li>The <strong>"Portfolio Template"</strong> is the page template to load your <a href="edit.php?post_type=portfolio" target="_self">works</a>. To do this you need to:<br /><br />
<ol>
<li><a href="post-new.php?post_type=page" target="_self">Create a new page</a>, give it a title, assign the <strong>"Portfolio Template"</strong> and save. Once saved the page options will appear below the editor as explained at the beginning of this section.</li>
<li>Through the page options panel you can add specific categories to the portfolio <small>(don't select any to include them all)</small> and most importantly set the layout.</li>
<li>As last operation, you have to assign the layout for the portfolio archives <small>(portfolio archives are all the works posts displayed by author, category, etc)</small> in the <strong>"Portfolio archives"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a> page.</li>
</ol>
This page template activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/portfolio_page_options.png" /></li>
</ol>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="formats"></span>
<h1>Formats</h1>
<p><strong style="color:#ff0000;">IMPORTANT 1</strong> - To activate the options of each format: <strong>select the format and save</strong>, only after saving the right options panel will be displayed.</p>
<p><strong style="color:#ff0000;">IMPORTANT 2</strong> - <span style="text-decoration:underline;">Because the blog posts formats are a default feature of WordPress and cannot be edited, while the formats for portfolio posts (works) and pages are something we've created from scratch, we need to make a clarification about format names and capabilities:</span></p>
<ol>
<li>The <strong>"Standard"</strong> format of blog posts <strong>has the capabilities of both</strong> the <strong>"Standard"</strong> and <strong>"Image"</strong> formats explained next in this section.</li>
<li>The <strong>"Image"</strong> format of blog posts <strong>is the equivalent of</strong> the <strong>"Lightbox Gallery"</strong> format explained next in this section.</li>
<li>The <strong>"Gallery"</strong> format of blog posts <strong>is the equivalent of</strong> the <strong>"Slider"</strong> format explained next in this section.</li>
</ol>
<p>After this clarification, let's see how each format works:</p>
<ol>
<li>The <strong>"Standard"</strong> format as you can imagine doesn't have any talent, it's plain. We suggest to set a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br />This format activates this options panel below the editor (only for blog posts and portfolio posts):<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Aside"</strong> format is meant to display a content without a title, similar to a Facebook note update. We suggest anyway to set a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br />This format activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Status"</strong> format is meant to display a short status update, similar to a Twitter status update. We suggest anyway to set a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br />This format activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Chat"</strong> format is meant to display a chat transcript. We suggest anyway to set a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br />This format activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Link"</strong> format is meant to display an external link instead of the title and a little description. We suggest anyway to set a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br />This format activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/post_link_options.png" /></li>
<li>The <strong>"Quote"</strong> format is meant to display a quotation. We suggest anyway to set a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br />This format activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/post_quote_options.png" /></li>
<li>The <strong>"Image"</strong> format will automatically display the <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small> before any other content. <br /><br />The <strong>"Featured Image"</strong> of this page format can have a link, internal or external with _self or _blank window target. To set up the link and the target you need to access the image properties panel <small>(through the main <a href="upload.php" target="_self">Media</a> library or directly through the attachment)</small>, enter the data in the dedicated fields and save the changes:<br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/image_options_links.png" /><br /><br />This format activates this options panel below the editor (only for blog posts and portfolio posts):<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Video"</strong> format will display a video <small>(YouTube, Vimeo, self hosted, etc.)</small> before any other content of the page. To set up a video you first need to set up a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small> and then you need to access the image properties panel <small>(through the main <a href="upload.php" target="_self">Media</a> library or directly through the attachment)</small>, enter the data in the dedicated fields and save the changes:
<br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/image_options_video.png" /><br />
The <strong>"Featured Image"</strong> is required to hold the video information and it will be used as cover where needed <small>(widgets, lists, grid layouts, etc.)</small>. If you don't have a specific image for the video you can just upload a screenshot or a standard symbolic cover that you will use for every video. <strong>Depending on the video type you're going to use, you will need to fill 1 of the 2 dedicated fields</strong>.<br /><br />The <strong>"Video URL"</strong> field should be filled with the video URL of services like <strong>YouTube, Vimeo, DailyMotion</strong> or any other supported by the WordPress embedding system <small>(more info <a href="http://codex.wordpress.org/Embeds" target="_blank">here</a>)</small>.<br /><br />The <strong>"Video File/s"</strong> field should be filled with a comma separated list of different encodings of a self hosted video file, that will be played with the built in html5 media player. It's a good practice to enter more than one version of the file <small>(m4v and ogv at least)</small> for a better cross browser compatibility. This is an example of comma separated string to enter: <strong>http://www.your-site.com/your_video.m4v,http://www.your-site.com/your_video.ogv</strong><br /><br /><strong style="color:#ff0000;">IMPORTANT</strong> - Note that if you just want to include a video from <strong>YouTube, Vimeo, DailyMotion</strong> or from any other supported provider by the WordPress embedding system <small>(more info <a href="http://codex.wordpress.org/Embeds" target="_blank">here</a>)</small>, you can also avoid to use the <strong>"Video"</strong> format and just paste the Video URL within your page content, in any position. Of course, for self hosted videos, you need to follow the previous instructions.<br /><br />This format activates this options panel below the editor (only for blog posts and portfolio posts):<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Audio"</strong> format will display an audio player before any other content of the page. To set up an audio player you first need to set up a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small> and then you need to access the image properties panel <small>(through the main <a href="upload.php" target="_self">Media</a> library or directly through the attachment)</small>, enter the data in the dedicated fields and save the changes:<br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/image_options_audio.png" /><br />The <strong>"Featured Image"</strong> is required to hold the audio information and it will be used as cover where needed <small>(widgets, lists, grid layouts, etc.)</small>. If you don't have a specific image for the audio file you're loading you can just upload a standard symbolic cover that you will use for every audio file. <strong>To set up the audio player you just need to fill 1 field</strong>.<br /><br />The <strong>"Audio File/s"</strong> field should be filled with a comma separated list of different encodings of a self hosted audio file, that will be played with the built in html5 media player. It's a good practice to enter more than one version of the file <small>(mp3 and m4a at least)</small> for a better cross browser compatibility. This is an example of comma separated string to enter: <strong>http://www.your-site.com/your_audio.mp3,http://www.your-site.com/your_audio.m4a</strong>.<br /><br />This format activates this options panel below the editor (only for blog posts and portfolio posts):<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
<li>The <strong>"Slider"</strong> format will automatically display an image slider before any other content. We suggest to set up a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small>.<br /><br /><strong>You can add an unlimited number of images of any size to the slider</strong>. Just upload your images by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and access their properties panel. Additionally, every image of the slider will use the lightbox to open the large/original size of the same image.<br /><br />You can also load a video instead of the large/original version, simply filling the <strong>"Video URL"</strong> field in the properties panel of the image <small>(as seen before for the "Video" format)</small>. Note that the built in lighbox supports specific video providers <small>(YouTube, Vimeo, DailyMotion)</small> and formats <small>(swf, mov)</small>. For more info check the official <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" target="_blank">PrettyPhoto</a> website.<br /><br />This format activates this options panel below the editor:</small><br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/post_work_slider_options.png" /></li>
<li>The <strong>"Gallery"</strong> format of blog posts is the equivalent of the <strong>"Slider"</strong> format of the portfolio posts (works) and pages, please refer to it.</li>
<li>The <strong>"Lightbox Gallery"</strong> format will automatically add a cover image linked to a lightbox gallery before any other content. You first need to set up a <strong>"Featured Image"</strong> <small>(<a href="http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail" target="_blank">how to set a featured image</a>)</small>, because it will be used as thumbnail where needed <small>(widgets, lists, grid layouts, etc.)</small> and it will be used as cover image to open the lightbox gallery by simply clicking on it.<br /><br /><strong>You can add an unlimited number of images of any size to the lightbox gallery</strong>. Just upload your images by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab you can reorder the images and access their properties panel.<br /><br />You can also load videos instead of the images <small>(symbolic covers, they won't be displayed, they just hold the videos information)</small>, simply filling the <strong>"Video URL"</strong> field in the properties panel of the image <small>(as seen before for the "Video" format)</small>. Note that the built in lighbox supports specific video providers <small>(YouTube, Vimeo, DailyMotion)</small> and formats <small>(swf, mov)</small>. For more info check the official <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" target="_blank">PrettyPhoto</a> website.<br /><br />This format activates this options panel below the editor:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/sidebar_options.png" /></li>
</ol>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="the_home_page_templates_slider"></span>
<h1>The Home Page Templates Slider</h1>
<p>As we've seen before for the home page templates in the <a href="#page_templates">Page Templates</a> section, setting up the slider is very easy. Just upload your images by clicking on the <strong>"Upload/Insert"</strong> button on the top left corner of the editor, so they will result as page attachments <small>(WordPress post's gallery feature)</small>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/add_media.png" /><br /><br />When you access the media manager <small>(by clicking on the <strong>"Upload/Insert"</strong> button)</small> you will find a <strong>"Gallery"</strong> tab that will list all the uploaded images.<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/drop_media.png" /><br /><br />In this tab <strong>you can reorder the images and set the titles and descriptions</strong>, that will be displayed by the slider.</p>
<p>In this section we want to describe some cool features of the home page slider, we'll see how to: manage the positioning/aspect of <strong>titles and descriptions</strong>, create the <strong>"snap points"</strong> and how to associate a <strong>link</strong> or a <strong>video</strong> to any image of the slider.</p>
<p>As just seen, all the images uploaded through the media manager of your home page will be listed under the <strong>"Gallery"</strong> tab. If you access the properties panel of each image you will see this screen:</p>
<p><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/image_options.png" /></p>
<p>The <strong>positioning/aspect</strong> of the titles and descriptions of each slide is indipendent and thanks to the <strong>"Title Properties"</strong> and <strong>"Description Properties"</strong> fields you can edit them easily. As you can see below each field there is an example of string to enter. For the title we have the sample string: <strong>{'x':'100', 'y':'100', 'width':'350', 'color':'#ffffff', 'bg_color':'#000000'}</strong>.</p>
<p>Basically, this string contains some information that the slider uses to set the position of the title, the width of the text, the text color and the background color. Edit this string as you need, be just sure to <strong>respect the quotes around the properties names and their values</strong>, otherwise you could have some problems. The same properties are available for the description, so just follow the instructions for the title.</p>
<p>The <strong>"snap points"</strong> are active buttons that you can place on your slides, to feature some details or to add additional informations. You can add as many <strong>"snap points"</strong> as you want, position them anywhere on the images and open any inline HTML content when the user makes a roll over with the mouse. Basically the <strong>"snap points"</strong> are contained by an unordered list <strong>&lt;ul&gt;&lt;/ul&gt;</strong> and each of them is a <strong>&lt;li&gt;&lt;/li&gt;</strong> element, containing the HTML markup to visualize on roll over. The following is an example of 2 <strong>"snap points"</strong> we've added to a slide of the theme's preview. Check it carefully, trying to understand the role of each line:
<pre>
&lt;ul&gt;
&lt;li class=&quot;pk_snap_point&quot; data-properties=&quot;properties={'x':'310','y':'90','tooltip_width':'230','color':'blue'}&quot;&gt;
&lt;img src=&quot;http://sold.parkerandkent.com/sold/wp-content/uploads/2012/09/jigoshop_slides_01_d_01.jpg&quot; alt=&quot;Detail 01&quot; /&gt;
&lt;p&gt;Easy controller...&lt;/p&gt;
&lt;/li&gt;
&lt;li class=&quot;pk_snap_point&quot; data-properties=&quot;properties={'x':'430','y':'380','tooltip_width':'245','color':'blue'}&quot;&gt;
&lt;img src=&quot;http://sold.parkerandkent.com/sold/wp-content/uploads/2012/09/jigoshop_slides_01_d_02.jpg&quot; alt=&quot;Detail 02&quot; /&gt;
&lt;h4&gt;18x Wide Optic&lt;/h4&gt;
&lt;p&gt;Quat vel illum eu feugiat facil...&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Obviously, the code above goes into the <strong>"Snap Points"</strong> field within the properties panel of each slide image.</p>
<p>To associate a <strong>link</strong> to a slide, internal or external, you simply have to fill the <strong>"Image Custom Link"</strong> and <strong>"Image Custom Link Target"</strong> fields, always in the properties panel of the slides.</p>
<p>To associate a <strong>video</strong> to a slide you simply have to fill the <strong>"Video URL"</strong> field. Note that the built in lighbox supports specific video providers <small>(YouTube, Vimeo, DailyMotion)</small> and formats <small>(swf, mov)</small>. For more info check the official <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" target="_blank">PrettyPhoto</a> website.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="sidebars_and_widgets_areas"></span>
<h1>Sidebars and Widgets Areas</h1>
<p>This theme comes with <strong>31 default sidebars and widgets areas</strong> and almost 60 custom widgets <small>(including the customized widgets of the supported plugins)</small>.</p>
<p>In the <a href="widgets.php" target="_blank">Widgets</a> page you will find all the available widgets and, on the right, all the registered sidebars. To add a widget to a sidebar, expand the selected sidebar panel and then drag and drop the widget over it. Once dropped, fill in the required fields and save.</p>
<p>This is the list of the sidebars and widgets areas available for this theme:
<ol>
<li><strong>Sidebar - All</strong> - This is a global sidebar that will be loaded in every page. So, if you want to have some widgets always visible, you need to add them to this sidebar.</li>
<li><strong>Sidebar - Front Page </strong> - This sidebar will be displayed only within the home page, if you have set for the home a static page using a template that support a sidebar. More info <a href="#home_page_setup">here</a>.</li>
<li><strong>Sidebar - JigoShop </strong> - This sidebar will be loaded in every page belonging to the <strong>JigoShop</strong> plugin <small>(shop, cart, products, product categories, etc.)</small>. If you have set the <strong>"Home Page JigoShop Template"</strong> to your home remember that, in any case, it will load the <strong>Sidebar - Front Page </strong>.</li>
<li><strong>Sidebar - WooCommerce </strong> - This sidebar will be loaded in every page belonging to the <strong>WooCommerce</strong> plugin <small>(shop, cart, products, product categories, etc.)</small>. If you have set the <strong>"Home Page WooCommerce Template"</strong> to your home remember that, in any case, it will load the <strong>Sidebar - Front Page </strong>.</li>
<li><strong>Sidebar - Pages </strong> - This sidebar will be loaded in every page.</li>
<li><strong>After Page Content</strong> - This widgets area will be loaded after the content of each page.</li>
<li><strong>Sidebar - Blog</strong> - This sidebar will be loaded by every page belonging to the main blog, blog archives and in every blog post detail page.</li>
<li><strong>After Blog Post Content</strong> - This widgets area will be loaded after the content of each blog post.</li>
<li><strong>Sidebar - Portfolio</strong> - This sidebar will be loaded in every portfolio page and work post detail page.</li>
<li><strong>After Work Content</strong> - This widgets area will be loaded after the content of each work post.</li>
<li><strong>Sidebar - Search</strong> - This sidebar will be loaded only in the <strong>search results</strong> pages.</li>
<li><strong>Sidebar - 404</strong> - This sidebar will be loaded only in the <strong>404 not found</strong> error page.</li>
<li><strong>Sidebar - Home Agency (Slider - Left - Middle - Right)</strong> - These widgets areas are all dedicated to the <strong>"Home Page Agency Template"</strong></li>
<li><strong>Sidebar - Home Business (Left - Middle - Right)</strong> - These widgets areas are all dedicated to the <strong>"Home Page Business Template"</strong></li>
<li><strong>Sidebar - Home Freelance (Left - Middle - Right)</strong> - These widgets areas are all dedicated to the <strong>"Home Page Freelance Template"</strong></li>
<li><strong>Sidebar - Home Standard (Left - Right)</strong> - These widgets areas are all dedicated to the <strong>"Home Page Standard Template"</strong></li>
<li><strong>Sidebar - Home JigoShop (Left - Right)</strong> - These widgets areas are all dedicated to the <strong>"Home Page JigoShop Template"</strong></li>
<li><strong>Sidebar - Home WooCommerce (Left - Right)</strong> - These widgets areas are all dedicated to the <strong>"Home Page WooCommerce Template"</strong></li>
<li><strong>Footer Column (1, 2, 3, 4, 5, 6)</strong> - These widgets areas are all dedicated to the footer. They will be loaded depending on the footer layout that you set in the <strong>"Footer"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a>.</li>
</ol>
</p>
<p>For each page you can create an unique custom sidebar and widgets area that will be loaded and displayed only that page. You can also disable the default sidebars for the selected poage. Check the <strong>"Custom sidebars"</strong> tab of the <a href="themes.php?page=ot-theme-options" target="_self">Theme Options</a>.</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="the_html_generator"></span>
<h1>The HTML Generator</h1>
<p>Below the editor of each page/post/work you will find the <strong>HTML Generator</strong>:<br /><br /><img src="<?php echo PK_THEME_DIR; ?>/framework/docs/images/html_generator.png" /></p>
<p>You can use this tool to generate the necessary HTML code to recreate the components and elements listed under the <strong>"Shortcodes"</strong> section of the <a href="http://sold.parkerandkent.com/sold/" target="_blank">theme's preview</a>.</p>
<p>Remember to generate the HTML code of each component in this way:
<ol>
<li>Switch to the <strong>"HTML Tab"</strong> <small>(not the visual one)</small> of the page/post/work editor.</li>
<li>Put the cursor in the position where you want the generated code to be placed within your contents.</li>
<li>Select the element/component you want from the <strong>HTML Generator</strong> list.</li>
<li>Fill in the required fields and click on the "Generate HTML" button and you'll see the code added to the editor.</li>
</ol>
</p>
<br />
<small><a href="#docs_table_of_contents">^ Back to menu ^</a></small><span id="theme_translation"></span>
<h1>Theme Translation</h1>
<p>This theme is localized. This means that it is translation-ready. To translate, follow these instructions:</p>
<ol>
<li>If not already done, convert your WordPress install to the preferred language. Check this <a href="http://codex.wordpress.org/WordPress_in_Your_Language" target="_blank">link</a> for more info.</li>
<li>Download <a href="http://www.poedit.net/download.php" target="_blank">PoEdit</a> or a similar software.</li>
<li>Open the file pk_translate.po located in the pk2012_sold/translate/ folder using PoEdit.</li>
<li>Enter a translation for any string you need.</li>
<li>Once you have finished, save the file twice, once as .po and once as .mo, the filename should be your language code. Example: it_IT.po and it_IT.mo for Italian. See the language codes <a href="http://codex.wordpress.org/WordPress_in_Your_Language" target="_blank">here</a>.</li>
<li>Save and upload these files in the same folder where the original pk_translate.po is located. Your theme will be localized.</li>
</ol>
</div>
</div>
<?php
}
function pk_add_theme_docs_page() {
add_theme_page(__('Theme Docs', 'pk_translate'), __('Theme Docs', 'pk_translate'), 'edit_posts', basename(__FILE__), 'pk_create_theme_docs_page');
}
add_action('admin_menu', 'pk_add_theme_docs_page');
?>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,386 @@
<?php
/**
* jsmin.php - PHP implementation of Douglas Crockford's JSMin.
*
* This is pretty much a direct port of jsmin.c to PHP with just a few
* PHP-specific performance tweaks. Also, whereas jsmin.c reads from stdin and
* outputs to stdout, this library accepts a string as input and returns another
* string as output.
*
* PHP 5 or higher is required.
*
* Permission is hereby granted to use this version of the library under the
* same terms as jsmin.c, which has the following license:
*
* --
* Copyright (c) 2002 Douglas Crockford (www.crockford.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* The Software shall be used for Good, not Evil.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* --
*
* @package JSMin
* @author Ryan Grove <ryan@wonko.com>
* @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c)
* @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port)
* @copyright 2012 Adam Goforth <aag@adamgoforth.com> (Updates)
* @license http://opensource.org/licenses/mit-license.php MIT License
* @version 1.1.2 (2012-05-01)
* @link https://github.com/rgrove/jsmin-php
*/
class JSMin {
const ORD_LF = 10;
const ORD_SPACE = 32;
const ACTION_KEEP_A = 1;
const ACTION_DELETE_A = 2;
const ACTION_DELETE_A_B = 3;
protected $a = '';
protected $b = '';
protected $input = '';
protected $inputIndex = 0;
protected $inputLength = 0;
protected $lookAhead = null;
protected $output = '';
// -- Public Static Methods --------------------------------------------------
/**
* Minify Javascript
*
* @uses __construct()
* @uses min()
* @param string $js Javascript to be minified
* @return string
*/
public static function minify($js) {
$jsmin = new JSMin($js);
return $jsmin->min();
}
// -- Public Instance Methods ------------------------------------------------
/**
* Constructor
*
* @param string $input Javascript to be minified
*/
public function __construct($input) {
$this->input = str_replace("\r\n", "\n", $input);
$this->inputLength = strlen($this->input);
}
// -- Protected Instance Methods ---------------------------------------------
/**
* Action -- do something! What to do is determined by the $command argument.
*
* action treats a string as a single character. Wow!
* action recognizes a regular expression if it is preceded by ( or , or =.
*
* @uses next()
* @uses get()
* @throws JSMinException If parser errors are found:
* - Unterminated string literal
* - Unterminated regular expression set in regex literal
* - Unterminated regular expression literal
* @param int $command One of class constants:
* ACTION_KEEP_A Output A. Copy B to A. Get the next B.
* ACTION_DELETE_A Copy B to A. Get the next B. (Delete A).
* ACTION_DELETE_A_B Get the next B. (Delete B).
*/
protected function action($command) {
switch($command) {
case self::ACTION_KEEP_A:
$this->output .= $this->a;
case self::ACTION_DELETE_A:
$this->a = $this->b;
if ($this->a === "'" || $this->a === '"') {
for (;;) {
$this->output .= $this->a;
$this->a = $this->get();
if ($this->a === $this->b) {
break;
}
if (ord($this->a) <= self::ORD_LF) {
throw new JSMinException('Unterminated string literal.');
}
if ($this->a === '\\') {
$this->output .= $this->a;
$this->a = $this->get();
}
}
}
case self::ACTION_DELETE_A_B:
$this->b = $this->next();
if ($this->b === '/' && (
$this->a === '(' || $this->a === ',' || $this->a === '=' ||
$this->a === ':' || $this->a === '[' || $this->a === '!' ||
$this->a === '&' || $this->a === '|' || $this->a === '?' ||
$this->a === '{' || $this->a === '}' || $this->a === ';' ||
$this->a === "\n" )) {
$this->output .= $this->a . $this->b;
for (;;) {
$this->a = $this->get();
if ($this->a === '[') {
/*
inside a regex [...] set, which MAY contain a '/' itself. Example: mootools Form.Validator near line 460:
return Form.Validator.getValidator('IsEmpty').test(element) || (/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]\.?){0,63}[a-z0-9!#$%&'*+/=?^_`{|}~-]@(?:(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\])$/i).test(element.get('value'));
*/
for (;;) {
$this->output .= $this->a;
$this->a = $this->get();
if ($this->a === ']') {
break;
} elseif ($this->a === '\\') {
$this->output .= $this->a;
$this->a = $this->get();
} elseif (ord($this->a) <= self::ORD_LF) {
throw new JSMinException('Unterminated regular expression set in regex literal.');
}
}
} elseif ($this->a === '/') {
break;
} elseif ($this->a === '\\') {
$this->output .= $this->a;
$this->a = $this->get();
} elseif (ord($this->a) <= self::ORD_LF) {
throw new JSMinException('Unterminated regular expression literal.');
}
$this->output .= $this->a;
}
$this->b = $this->next();
}
}
}
/**
* Get next char. Convert ctrl char to space.
*
* @return string|null
*/
protected function get() {
$c = $this->lookAhead;
$this->lookAhead = null;
if ($c === null) {
if ($this->inputIndex < $this->inputLength) {
$c = substr($this->input, $this->inputIndex, 1);
$this->inputIndex += 1;
} else {
$c = null;
}
}
if ($c === "\r") {
return "\n";
}
if ($c === null || $c === "\n" || ord($c) >= self::ORD_SPACE) {
return $c;
}
return ' ';
}
/**
* Is $c a letter, digit, underscore, dollar sign, or non-ASCII character.
*
* @return bool
*/
protected function isAlphaNum($c) {
return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1;
}
/**
* Perform minification, return result
*
* @uses action()
* @uses isAlphaNum()
* @uses get()
* @uses peek()
* @return string
*/
protected function min() {
if (0 == strncmp($this->peek(), "\xef", 1)) {
$this->get();
$this->get();
$this->get();
}
$this->a = "\n";
$this->action(self::ACTION_DELETE_A_B);
while ($this->a !== null) {
switch ($this->a) {
case ' ':
if ($this->isAlphaNum($this->b)) {
$this->action(self::ACTION_KEEP_A);
} else {
$this->action(self::ACTION_DELETE_A);
}
break;
case "\n":
switch ($this->b) {
case '{':
case '[':
case '(':
case '+':
case '-':
case '!':
case '~':
$this->action(self::ACTION_KEEP_A);
break;
case ' ':
$this->action(self::ACTION_DELETE_A_B);
break;
default:
if ($this->isAlphaNum($this->b)) {
$this->action(self::ACTION_KEEP_A);
}
else {
$this->action(self::ACTION_DELETE_A);
}
}
break;
default:
switch ($this->b) {
case ' ':
if ($this->isAlphaNum($this->a)) {
$this->action(self::ACTION_KEEP_A);
break;
}
$this->action(self::ACTION_DELETE_A_B);
break;
case "\n":
switch ($this->a) {
case '}':
case ']':
case ')':
case '+':
case '-':
case '"':
case "'":
$this->action(self::ACTION_KEEP_A);
break;
default:
if ($this->isAlphaNum($this->a)) {
$this->action(self::ACTION_KEEP_A);
}
else {
$this->action(self::ACTION_DELETE_A_B);
}
}
break;
default:
$this->action(self::ACTION_KEEP_A);
break;
}
}
}
return $this->output;
}
/**
* Get the next character, skipping over comments. peek() is used to see
* if a '/' is followed by a '/' or '*'.
*
* @uses get()
* @uses peek()
* @throws JSMinException On unterminated comment.
* @return string
*/
protected function next() {
$c = $this->get();
if ($c === '/') {
switch($this->peek()) {
case '/':
for (;;) {
$c = $this->get();
if (ord($c) <= self::ORD_LF) {
return $c;
}
}
case '*':
$this->get();
for (;;) {
switch($this->get()) {
case '*':
if ($this->peek() === '/') {
$this->get();
return ' ';
}
break;
case null:
throw new JSMinException('Unterminated comment.');
}
}
default:
return $c;
}
}
return $c;
}
/**
* Get next char. If is ctrl character, translate to a space or newline.
*
* @uses get()
* @return string|null
*/
protected function peek() {
$this->lookAhead = $this->get();
return $this->lookAhead;
}
}
// -- Exceptions ---------------------------------------------------------------
class JSMinException extends Exception {}
?>

View File

@ -0,0 +1,28 @@
<?php
if (!class_exists('pk_admin')) {
class pk_admin {
function pk_admin() {
require_once(PK_FRAMEWORK.'/docs/pk_docs.php');
require_once(PK_FRAMEWORK.'/shortcodes/pk_shortcodes.php');
require_once(PK_FRAMEWORK.'/pk_admin_setup.php');
require_once(PK_FRAMEWORK.'/pk_metaboxes.php');
require_once(PK_FRAMEWORK.'/pk_options.php');
require_once(PK_FRAMEWORK.'/pk_plugins.php');
}
}
}
if (class_exists('pk_admin') && !isset($admin_instance)) {
$admin_instance = new pk_admin();
}
?>

View File

@ -0,0 +1,41 @@
<?php
function pk_enqueue_admin_scripts() {
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-sortable');
if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'pk_portfolio.php') {
wp_deregister_script('pk_sortable_portfolio');
wp_register_script('pk_sortable_portfolio', PK_THEME_DIR.'/js/pk_sortable_portfolio.js');
wp_enqueue_script('pk_sortable_portfolio');
}
}
add_action('admin_init', 'pk_enqueue_admin_scripts');
function pk_enqueue_admin_styles() {
if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'pk_portfolio.php') {
wp_enqueue_style('pk_sort', PK_THEME_DIR.'/css/pk_sort.css');
}
}
add_action('admin_init', 'pk_enqueue_admin_styles');
function pk_admin_head() {
echo '<style> #option-tree-version { visibility:hidden; } .option-tree-save-layout{ display:none; } </style>';
}
add_action('admin_head', 'pk_admin_head');
?>

View File

@ -0,0 +1,51 @@
<?php
remove_action('jigoshop_sidebar', 'jigoshop_get_sidebar');
remove_action('jigoshop_before_main_content', 'jigoshop_breadcrumb', 20, 0);
remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar');
remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
function pk_ecommerce_after_main_content() {
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("a.zoom").attr('rel', "prettyPhoto[thumbnails]").prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
jQuery('#review_form_wrapper').hide();
jQuery('a.show_review_form').pk_review_form({
button_close_label:"<?php _e('Cancel', 'pk_translate'); ?>"
});
});
</script>
<?php
}
add_action('jigoshop_after_main_content', 'pk_ecommerce_after_main_content');
add_action('woocommerce_after_main_content', 'pk_ecommerce_after_main_content');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 3;
}
}
if (function_exists('is_woocommerce')) add_filter('loop_shop_columns', 'loop_columns');
if (function_exists('is_woocommerce')) add_filter('loop_shop_per_page', create_function('$cols', 'return 9;'));
function pk_woocommerce_set_body_class($classes) {
if (function_exists('woocommerce_get_page_id') && woocommerce_get_page_id('thanks') == get_the_ID()) $classes[] = 'woocommerce-thankyou';
return $classes;
}
add_filter('body_class','pk_woocommerce_set_body_class');
?>

View File

@ -0,0 +1,39 @@
<?php
function pk_register_faq() {
$labels = array(
'name' => _x('FAQ', 'post type general name', 'pk_translate'),
'singular_name' => _x('FAQ', 'post type singular name', 'pk_translate'),
'add_new' => _x('Add New FAQ', 'release', 'pk_translate'),
'add_new_item' => __('Add New FAQ', 'pk_translate'),
'edit_item' => __('Edit FAQ', 'pk_translate'),
'new_item' => __('New FAQ', 'pk_translate'),
'view_item' => __('View FAQ', 'pk_translate'),
'search_items' => __('Search FAQs', 'pk_translate'),
'not_found' => __('No FAQs found', 'pk_translate'),
'not_found_in_trash' => __('No FAQs found in Trash', 'pk_translate')
);
$args = array(
'labels' => $labels,
'public' => true,
'menu_position' => 5,
'capability_type' => 'page',
'hierarchical' => false,
'supports' => array('title', 'editor', 'page-attributes'),
'query_var' => true,
'rewrite' => array('slug' => 'faq', 'with_front' => false),
'show_in_nav_menus' => false,
'has_archive' => false
);
register_post_type('faq', $args);
flush_rewrite_rules();
}
add_action('init', 'pk_register_faq');
?>

View File

@ -0,0 +1,557 @@
<?php
function pk_highlight_search_results($content) {
$s = esc_html(get_search_query());
if (!$s) return $content;
$s = trim(ereg_replace(' +', ' ', $s));
$keys = explode(' ', $s);
return preg_replace('/('.implode('|', $keys).')/iu', '<span class="pk_highlight">\0</span>', $content);
}
function pk_add_post_types_to_author_page_query_string($query_string) {
if (isset($query_string['author_name'])) $query_string['post_type'] = array('page', 'post', 'portfolio', 'faq', 'product');
return $query_string;
}
add_filter('request', 'pk_add_post_types_to_author_page_query_string');
function pk_change_wp_login_url() {
return home_url();
}
add_filter('login_headerurl', 'pk_change_wp_login_url');
function pk_change_wp_login_title() {
return 'Powered by '.get_bloginfo('name');
}
add_filter('login_headertitle', 'pk_change_wp_login_title');
function pk_redirect_after_login($redirect_to, $request, $user) {
if (isset($user -> roles) && is_array($user -> roles )) {
if (in_array('administrator', $user -> roles))
return home_url( '/wp-admin/' );
else
return $_SERVER[HTTP_REFERER];
}
}
add_filter('login_redirect', 'pk_redirect_after_login', 10, 3);
function pk_redirect_after_logout() {
wp_redirect(home_url());
exit();
}
add_filter('wp_logout', 'pk_redirect_after_logout');
function pk_pre_get_posts($query) {
if (is_admin() || is_singular()) {
return $query;
}
if ((is_home() || is_archive() || is_search() || is_author()) && !is_tax() && !is_post_type_archive() && !is_feed()) {
$query -> set('posts_per_page', (int)pk_get_option('blog_layout', '10') * (int)pk_get_option('blog_layout_rows', '1'));
return $query;
}
if (is_tax('taxonomy_portfolio') || is_post_type_archive('portfolio')) {
$query -> set('posts_per_page', (int)pk_get_option('portfolio_layout', '4') * (int)pk_get_option('portfolio_layout_rows', '3'));
return $query;
}
return $query;
}
add_filter('pre_get_posts', 'pk_pre_get_posts');
function pk_blog_excerpt_filter($length) {
return 30;
}
function pk_grid_excerpt_filter($length) {
return 15;
}
function pk_widgets_excerpt_filter($length) {
return 15;
}
function pk_excerpt_more($more) {
return '&hellip;';
}
add_filter('excerpt_more', 'pk_excerpt_more');
function pk_portfolio_embed_defaults($embed_size){
$embed_size['width'] = (pk_sidebar()) ? 580 : 940;
return $embed_size;
}
function pk_blog_embed_defaults($embed_size){
$embed_size['width'] = (pk_sidebar()) ? 580 : 940;
return $embed_size;
}
function pk_post_embed_defaults($embed_size){
$embed_size['width'] = (pk_sidebar()) ? 490 : 850;
return $embed_size;
}
function pk_full_width_page_embed_defaults($embed_size){
$embed_size['width'] = 940;
return $embed_size;
}
function pk_page_embed_defaults($embed_size){
$embed_size['width'] = (is_page_template('page-full-width.php')) ? 940 : 580;
return $embed_size;
}
function pk_faq_page_embed_defaults($embed_size){
$embed_size['width'] = 870;
return $embed_size;
}
function pk_categories_widget($categories_args) {
$categories_args['title_li'] = '';
return $categories_args;
}
add_filter('widget_categories_args', 'pk_categories_widget');
function pk_embed_oembed_html($html, $url, $attr, $post_id) {
return '<div class="pk_video">'.$html.'</div>';
}
add_filter('embed_oembed_html', 'pk_embed_oembed_html', 99, 4);
function pk_exclude_from_gallery_fields($attachment) {
$value = get_post_meta($attachment -> ID, '_exclude_from_gallery', true);
if (!isset($value) || $value == '') $value = 'no';
return "<input type='radio' name='attachments[{$attachment -> ID}][exclude_from_gallery]' id='exclude_from_gallery_{$attachment -> ID}' value='yes'".('yes' == $value ? " checked='checked'" : "")." /><label for='exclude_from_gallery_{$attachment -> ID}'>".__('Yes', 'pk_translate')."</label><input type='radio' name='attachments[{$attachment -> ID}][exclude_from_gallery]' id='exclude_from_gallery_{$attachment -> ID}' value='no'".('no' == $value ? " checked='checked'" : "")." /><label for='exclude_from_gallery_{$attachment -> ID}'>".__('No', 'pk_translate')."</label>";
}
function pk_attachment_fields($form_fields, $attachment) {
$form_fields['exclude_from_gallery'] = array(
'label' => __('Exclude from gallery', 'pk_translate'),
'input' => 'html',
'html' => pk_exclude_from_gallery_fields($attachment),
'helps' => __('Select to exclude or not this image from the post\'s gallery..', 'pk_translate')
);
$form_fields['image_link'] = array(
'label' => __('Image Custom Link', 'pk_translate'),
'input' => 'text',
'value' => get_post_meta($attachment -> ID, '_image_link', true),
'helps' => __('Add a custom link, internal or external, to open on click over the image.', 'pk_translate')
);
$form_fields['image_link_target'] = array(
'label' => __('Image Custom Link Target', 'pk_translate'),
'input' => 'text',
'value' => get_post_meta($attachment -> ID, '_image_link_target', true),
'helps' => __('Add the custom link target, "_self" or "_blank". If unset the default value will be "_self".', 'pk_translate')
);
$form_fields['video_url'] = array(
'label' => __('Video URL', 'pk_translate'),
'input' => 'text',
'value' => get_post_meta($attachment -> ID, '_video_url', true),
'helps' => __('Add video URL (YouTube, Vimeo, DailyMotion, MetaCafe, Twitvid).', 'pk_translate')
);
$form_fields['video_urls'] = array(
'label' => __('Video File/s', 'pk_translate'),
'input' => 'text',
'value' => get_post_meta($attachment -> ID, '_video_urls', true),
'helps' => __('Add video file/s URL: m4v (mandatory), ogv, webmv, flv. Enter a comma separated list of different formats of the same video file, for the best cross browser compatibility.', 'pk_translate')
);
$form_fields['audio_urls'] = array(
'label' => __('Audio File/s', 'pk_translate'),
'input' => 'text',
'value' => get_post_meta($attachment -> ID, '_audio_urls', true),
'helps' => __('Add audio file/s URL: mp3 (mandatory), m4a (mandatory), oga, webma, wav, fla. Enter a comma separated list of different formats of the same audio file, for the best cross browser compatibility.', 'pk_translate')
);
$form_fields['title_properties'] = array(
'label' => __('Title Properties', 'pk_translate'),
'input' => 'textarea',
'value' => get_post_meta($attachment -> ID, '_title_properties', true),
'helps' => __('Add slide title properties. This option is used only by homepages sliders. Example: <strong>{\'x\':\'100\', \'y\':\'100\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'#000000\'}</strong>', 'pk_translate')
);
$form_fields['description_properties'] = array(
'label' => __('Description Properties', 'pk_translate'),
'input' => 'textarea',
'value' => get_post_meta($attachment -> ID, '_description_properties', true),
'helps' => __('Add slide description properties. This option is used only by homepages sliders. Example: <strong>{\'x\':\'100\', \'y\':\'150\', \'width\':\'350\', \'color\':\'#ffffff\', \'bg_color\':\'#000000\'}</strong>', 'pk_translate')
);
$form_fields['snap_points'] = array(
'label' => __('Snap Points', 'pk_translate'),
'input' => 'textarea',
'value' => get_post_meta($attachment -> ID, '_snap_points', true),
'helps' => __('Add image snap points. This option is used only by homepages sliders.', 'pk_translate')
);
return $form_fields;
}
add_filter('attachment_fields_to_edit', 'pk_attachment_fields', 10, 2);
function pk_attachment_fields_save($post, $attachment) {
if (isset($attachment['exclude_from_gallery'])) update_post_meta($post['ID'], '_exclude_from_gallery', $attachment['exclude_from_gallery']);
if (isset($attachment['image_link'])) update_post_meta($post['ID'], '_image_link', $attachment['image_link']);
if (isset($attachment['image_link_target'])) update_post_meta($post['ID'], '_image_link_target', $attachment['image_link_target']);
if (isset($attachment['video_url'])) update_post_meta($post['ID'], '_video_url', $attachment['video_url']);
if (isset($attachment['video_urls'])) update_post_meta($post['ID'], '_video_urls', $attachment['video_urls']);
if (isset($attachment['audio_urls'])) update_post_meta($post['ID'], '_audio_urls', $attachment['audio_urls']);
if (isset($attachment['title_properties'])) update_post_meta($post['ID'], '_title_properties', $attachment['title_properties']);
if (isset($attachment['description_properties'])) update_post_meta($post['ID'], '_description_properties', $attachment['description_properties']);
if (isset($attachment['snap_points'])) update_post_meta($post['ID'], '_snap_points', $attachment['snap_points']);
return $post;
}
add_filter('attachment_fields_to_save', 'pk_attachment_fields_save', 10, 2);
function pk_wmode_transparent($html, $url, $args) {
if (strpos($html, '<param name="movie"') !== false) $html = preg_replace('|</param>|', '</param><param name="wmode" value="transparent"></param>', $html, 1);
if (strpos($html, '<embed') !== false) $html = str_replace('<embed', '<embed wmode="transparent"', $html);
return $html;
}
add_filter('oembed_result', 'pk_wmode_transparent', 10, 3);
function pk_add_custom_field_automatically($post_id) {
$post_type = get_post_type($post_id);
$post_format = '';
if ($post_type == 'post') $post_format = (!get_post_format($post_id)) ? 'standard' : get_post_format($post_id);
if ($post_type == 'portfolio') $post_format = get_post_meta($post_id, '_work_format', true);
if ($post_type == 'page') {
$post_template = get_post_meta($post_id, '_wp_page_template', true);
if (in_array($post_template, array('page-blog.php', 'page-portfolio.php', 'page-faq.php', 'page-home-agency.php', 'page-home-business.php', 'page-home-freelance.php', 'page-home-standard.php', 'page-home-jigoshop.php', 'page-home-woocommerce.php'))) {
$post_format = $post_template;
} else {
$post_format = get_post_meta($post_id, '_page_format', true);
}
}
if (!wp_is_post_revision($post_id)) {
if ($post_type == 'post') add_post_meta($post_id, '_sidebar', 'show', true);
if ($post_type == 'portfolio') add_post_meta($post_id, '_sidebar', 'show', true);
if ($post_type == 'product') add_post_meta($post_id, '_sidebar', 'show', true);
if ($post_type == 'post' && $post_format == 'link') add_post_meta($post_id, '_link', '#', true);
if ($post_type == 'post' && $post_format == 'quote') add_post_meta($post_id, '_quote', 'Enter the quote text in the dedicated custom field. Edit this post to change this value!', true);
if ($post_type == 'post' && $post_format == 'quote') add_post_meta($post_id, '_cite', 'parker&amp;kent team', true);
if ($post_type == 'post' && $post_format == 'gallery') add_post_meta($post_id, '_slider_info_button_open_label', 'info', true);
if ($post_type == 'post' && $post_format == 'gallery') add_post_meta($post_id, '_slider_info_button_close_label', 'close info', true);
if ($post_type == 'post' && $post_format == 'gallery') add_post_meta($post_id, '_slider_slideshow', 'true', true);
if ($post_type == 'post' && $post_format == 'gallery') add_post_meta($post_id, '_slider_slideshow_auto_start', 'false', true);
if ($post_type == 'post' && $post_format == 'gallery') add_post_meta($post_id, '_slider_slideshow_interval', '5', true);
if ($post_type == 'portfolio' && $post_format == 'slider') add_post_meta($post_id, '_slider_info_button_open_label', 'info', true);
if ($post_type == 'portfolio' && $post_format == 'slider') add_post_meta($post_id, '_slider_info_button_close_label', 'close info', true);
if ($post_type == 'portfolio' && $post_format == 'slider') add_post_meta($post_id, '_slideshow', 'true', true);
if ($post_type == 'portfolio' && $post_format == 'slider') add_post_meta($post_id, '_slider_slideshow_auto_start', 'false', true);
if ($post_type == 'portfolio' && $post_format == 'slider') add_post_meta($post_id, '_slider_slideshow_interval', '5', true);
if ($post_type == 'page' && $post_format == 'slider') add_post_meta($post_id, '_slider_info_button_open_label', 'info', true);
if ($post_type == 'page' && $post_format == 'slider') add_post_meta($post_id, '_slider_info_button_close_label', 'close info', true);
if ($post_type == 'page' && $post_format == 'slider') add_post_meta($post_id, '_slider_slideshow', 'true', true);
if ($post_type == 'page' && $post_format == 'slider') add_post_meta($post_id, '_slider_slideshow_auto_start', 'false', true);
if ($post_type == 'page' && $post_format == 'slider') add_post_meta($post_id, '_slider_slideshow_interval', '5', true);
if ($post_type == 'page' && $post_format == 'page-faq.php') add_post_meta($post_id, '_faq_type', 'accordion', true);
if ($post_type == 'page' && $post_format == 'page-blog.php') add_post_meta($post_id, '_sidebar', 'show', true);
if ($post_type == 'page' && $post_format == 'page-blog.php') add_post_meta($post_id, '_grid_layout', 'normal', true);
if ($post_type == 'page' && $post_format == 'page-blog.php') add_post_meta($post_id, '_columns', '1', true);
if ($post_type == 'page' && $post_format == 'page-blog.php') add_post_meta($post_id, '_rows', '10', true);
if ($post_type == 'page' && $post_format == 'page-blog.php') add_post_meta($post_id, '_show_categories_filter', 'false', true);
if ($post_type == 'page' && $post_format == 'page-blog.php') add_post_meta($post_id, '_blog_categories', '', true);
if ($post_type == 'page' && $post_format == 'page-portfolio.php') add_post_meta($post_id, '_sidebar', 'show', true);
if ($post_type == 'page' && $post_format == 'page-portfolio.php') add_post_meta($post_id, '_grid_layout', 'normal', true);
if ($post_type == 'page' && $post_format == 'page-portfolio.php') add_post_meta($post_id, '_columns', '4', true);
if ($post_type == 'page' && $post_format == 'page-portfolio.php') add_post_meta($post_id, '_rows', '3', true);
if ($post_type == 'page' && $post_format == 'page-portfolio.php') add_post_meta($post_id, '_show_categories_filter', 'false', true);
if ($post_type == 'page' && $post_format == 'page-portfolio.php') add_post_meta($post_id, '_portfolio_categories', '', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_slider_navigation_align', 'right', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_slider_transition', 'fade', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_slider_background', '', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_slider_slideshow_auto_start', 'true', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_slider_slideshow_interval', '7', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_total_works', '4', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_portfolio_categories', '', true);
if ($post_type == 'page' && $post_format == 'page-home-agency.php') add_post_meta($post_id, '_view_all_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_slider_navigation_align', 'center', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_slider_transition', 'fade', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_slider_background', '', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_slider_slideshow_auto_start', 'true', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_slider_slideshow_interval', '7', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_feed_url', 'http://rss.cnn.com/rss/edition_business.rss', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_feed_total_items', '5', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_tabs_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_tabs_button_link', '#', true);
if ($post_type == 'page' && $post_format == 'page-home-business.php') add_post_meta($post_id, '_tabs_button_label', 'Button Label', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_slider_navigation_align', 'center', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_slider_transition', 'fade', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_slider_background', '', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_slider_slideshow_auto_start', 'true', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_slider_slideshow_interval', '7', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_call_to_action_text', 'Call to action text!', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_total_works', '4', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_portfolio_categories', '', true);
if ($post_type == 'page' && $post_format == 'page-home-freelance.php') add_post_meta($post_id, '_view_all_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_slider_navigation_align', 'left', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_slider_transition', 'fade', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_slider_background', '', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_slider_slideshow_auto_start', 'true', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_slider_slideshow_interval', '7', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_call_to_action_text', 'Call to action text!', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_call_to_action_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_call_to_action_button_link', '#', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_call_to_action_button_label', 'Button Label', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_total_works', '3', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_portfolio_categories', '', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_total_posts', '3', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_blog_categories', '', true);
if ($post_type == 'page' && $post_format == 'page-home-standard.php') add_post_meta($post_id, '_view_all_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_slider_navigation_align', 'center', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_slider_transition', 'fade', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_slider_background', '', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_slider_slideshow_auto_start', 'true', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_slider_slideshow_interval', '7', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_call_to_action_text', 'Call to action text!', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_call_to_action_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_call_to_action_button_link', ((function_exists('jigoshop_get_page_id')) ? get_permalink((function_exists('icl_object_id')) ? icl_object_id(jigoshop_get_page_id('shop'), 'page', true) : jigoshop_get_page_id('shop')) : '#'), true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_call_to_action_button_label', 'Button Label', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_total_recent_products', '2', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_total_featured_products', '3', true);
if ($post_type == 'page' && $post_format == 'page-home-jigoshop.php') add_post_meta($post_id, '_view_all_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_slider_navigation_align', 'center', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_slider_transition', 'fade', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_slider_background', '', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_slider_slideshow_auto_start', 'true', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_slider_slideshow_interval', '7', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_call_to_action_text', 'Call to action text!', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_call_to_action_button_color', 'white', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_call_to_action_button_link', ((function_exists('woocommerce_get_page_id')) ? get_permalink((function_exists('icl_object_id')) ? icl_object_id(woocommerce_get_page_id('shop'), 'page', true) : woocommerce_get_page_id('shop')) : '#'), true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_call_to_action_button_label', 'Button Label', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_total_recent_products', '2', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_total_featured_products', '3', true);
if ($post_type == 'page' && $post_format == 'page-home-woocommerce.php') add_post_meta($post_id, '_view_all_button_color', 'white', true);
}
}
add_action('publish_page', 'pk_add_custom_field_automatically');
add_action('update_page', 'pk_add_custom_field_automatically');
add_action('publish_post', 'pk_add_custom_field_automatically');
add_action('update_post', 'pk_add_custom_field_automatically');
add_action('publish_portfolio', 'pk_add_custom_field_automatically');
add_action('update_portfolio', 'pk_add_custom_field_automatically');
add_action('publish_product', 'pk_add_custom_field_automatically');
add_action('update_product', 'pk_add_custom_field_automatically');
function pk_ot_update_options($options) {
if (defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE != 'all') :
update_option(PK_THEME_SLUG.'_option_tree_'.ICL_LANGUAGE_CODE, $options);
return $options;
endif;
if (function_exists('qtrans_getLanguage') && qtrans_getLanguage() != '') :
update_option(PK_THEME_SLUG.'_option_tree_'.qtrans_getLanguage(), $options);
return $options;
endif;
update_option(PK_THEME_SLUG.'_option_tree', $options);
return $options;
}
add_filter('pre_update_option_option_tree', 'pk_ot_update_options');
function pk_ot_get_options($options) {
if (defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE != 'all') :
$trans_options = get_option(PK_THEME_SLUG.'_option_tree_'.ICL_LANGUAGE_CODE);
if (!$trans_options || $trans_options == '') {
global $sitepress;
$trans_options = get_option(PK_THEME_SLUG.'_option_tree_'.$sitepress -> get_default_language());
}
return $trans_options;
endif;
if (function_exists('qtrans_getLanguage') && qtrans_getLanguage() != '') :
$trans_options = get_option(PK_THEME_SLUG.'_option_tree_'.qtrans_getLanguage());
if (!$trans_options || $trans_options == '') {
$trans_options = get_option(PK_THEME_SLUG.'_option_tree_'.get_option('qtranslate_default_language'));
}
return $trans_options;
endif;
return get_option(PK_THEME_SLUG.'_option_tree');
}
add_filter('option_option_tree', 'pk_ot_get_options');
function pk_ot_update_layouts($options) {
if (defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE != 'all') :
update_option(PK_THEME_SLUG.'_option_tree_layouts_'.ICL_LANGUAGE_CODE, $options);
return $options;
endif;
if (function_exists('qtrans_getLanguage') && qtrans_getLanguage() != '') :
update_option(PK_THEME_SLUG.'_option_tree_layouts_'.qtrans_getLanguage(), $options);
return $options;
endif;
update_option(PK_THEME_SLUG.'_option_tree_layouts', $options);
return $options;
}
add_filter('pre_update_option_option_tree_layouts', 'pk_ot_update_layouts');
function pk_ot_get_layouts($options) {
if (defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE != 'all') :
return get_option(PK_THEME_SLUG.'_option_tree_layouts_'.ICL_LANGUAGE_CODE);
endif;
if (function_exists('qtrans_getLanguage') && qtrans_getLanguage() != '') :
return get_option(PK_THEME_SLUG.'_option_tree_layouts_'.qtrans_getLanguage());
endif;
return get_option(PK_THEME_SLUG.'_option_tree_layouts');
}
add_filter('option_option_tree_layouts', 'pk_ot_get_layouts');
remove_filter('comment_text', 'make_clickable', 9);
if (!current_user_can('edit_posts')) add_filter('show_admin_bar', '__return_false');
?>

View File

@ -0,0 +1,73 @@
<?php
add_action('admin_init', 'pk_init_metaboxes');
add_action('save_post', 'pk_save_metaboxes_values');
function pk_init_metaboxes() {
if (function_exists('add_meta_box')) {
add_meta_box('pagesformatdiv', __('Format', 'pk_translate'), 'pk_create_pages_format_metabox', 'page', 'side', 'default');
add_meta_box('worksformatdiv', __('Format', 'pk_translate'), 'pk_create_works_format_metabox', 'portfolio', 'side', 'default');
}
}
function pk_create_pages_format_metabox() {
global $post;
$post_meta = get_post_custom($post -> ID);
$selected = (isset($post_meta['_page_format'][0])) ? $post_meta['_page_format'][0] : 'standard';
echo '
<div id="page-formats-select">
<input type="radio" name="_page_format" class="post-format" id="page-format-standard" value="standard"'.(($selected == 'standard') ? ' checked="checked" ' : ' ').'/> <label for="page-format-standard">'.__('Standard', 'pk_translate').'</label><br />
<input type="radio" name="_page_format" class="post-format" id="page-format-image" value="image"'.(($selected == 'image') ? ' checked="checked" ' : ' ').'/> <label for="page-format-image">'.__('Image', 'pk_translate').'</label><br />
<input type="radio" name="_page_format" class="post-format" id="page-format-video" value="video"'.(($selected == 'video') ? ' checked="checked" ' : ' ').'/> <label for="page-format-video">'.__('Video', 'pk_translate').'</label><br />
<input type="radio" name="_page_format" class="post-format" id="page-format-audio" value="audio"'.(($selected == 'audio') ? ' checked="checked" ' : ' ').'/> <label for="page-format-audio">'.__('Audio', 'pk_translate').'</label><br />
<input type="radio" name="_page_format" class="post-format" id="page-format-slider" value="slider"'.(($selected == 'slider') ? ' checked="checked" ' : ' ').'/> <label for="page-format-slider">'.__('Slider', 'pk_translate').'</label><br />
<input type="radio" name="_page_format" class="post-format" id="page-format-gallery" value="gallery"'.(($selected == 'gallery') ? ' checked="checked" ' : ' ').'/> <label for="page-format-gallery">'.__('Lightbox gallery', 'pk_translate').'</label><br />
</div>
';
}
function pk_create_works_format_metabox() {
global $post;
$post_meta = get_post_custom($post -> ID);
$selected = (isset($post_meta['_work_format'][0])) ? $post_meta['_work_format'][0] : 'standard';
echo '
<div id="work-formats-select">
<input type="radio" name="_work_format" class="post-format" id="work-format-standard" value="standard"'.(($selected == 'standard') ? ' checked="checked" ' : ' ').'/> <label for="work-format-standard">'.__('Standard', 'pk_translate').'</label><br />
<input type="radio" name="_work_format" class="post-format" id="work-format-image" value="image"'.(($selected == 'image') ? ' checked="checked" ' : ' ').'/> <label for="work-format-image">'.__('Image', 'pk_translate').'</label><br />
<input type="radio" name="_work_format" class="post-format" id="work-format-video" value="video"'.(($selected == 'video') ? ' checked="checked" ' : ' ').'/> <label for="work-format-video">'.__('Video', 'pk_translate').'</label><br />
<input type="radio" name="_work_format" class="post-format" id="work-format-audio" value="audio"'.(($selected == 'audio') ? ' checked="checked" ' : ' ').'/> <label for="work-format-audio">'.__('Audio', 'pk_translate').'</label><br />
<input type="radio" name="_work_format" class="post-format" id="work-format-slider" value="slider"'.(($selected == 'slider') ? ' checked="checked" ' : ' ').'/> <label for="work-format-slider">'.__('Slider', 'pk_translate').'</label><br />
<input type="radio" name="_work_format" class="post-format" id="work-format-gallery" value="gallery"'.(($selected == 'gallery') ? ' checked="checked" ' : ' ').'/> <label for="work-format-gallery">'.__('Lightbox gallery', 'pk_translate').'</label><br />
</div>
';
}
function pk_save_metaboxes_values($post_id) {
if (isset($_POST['_page_format'])) {
update_post_meta($post_id, '_page_format', $_POST['_page_format']);
}
if (isset($_POST['_work_format'])) {
update_post_meta($post_id, '_work_format', $_POST['_work_format']);
}
}
?>

View File

@ -0,0 +1,20 @@
<?php
function pk_remove_bbp_stylesheets(){
wp_deregister_style('bbp-default-bbpress');
wp_deregister_style('bbp-twentyten-bbpress');
}
add_action('wp_enqueue_scripts', 'pk_remove_bbp_stylesheets');
function pk_bbp_no_breadcrumb($param) {
return true;
}
add_filter ('bbp_no_breadcrumb', 'pk_bbp_no_breadcrumb');
?>

View File

@ -0,0 +1,273 @@
<?php
function pk_get_option($name, $default = false) {
global $option_tree;
$option = (isset($option_tree[$name])) ? $option_tree[$name] : $default;
if (isset($option) && $option != '') {
return (is_array($option)) ? $option : stripslashes($option);
} else {
return $default;
}
}
function pk_custom_login_logo() {
echo '
<style type="text/css">
.login h1 a { width: 100%; height:'.pk_get_option('logo_height', '60').'px; background-size:'.pk_get_option('logo_width', '130').'px '.pk_get_option('logo_height', '60').'px; background-image:url('.pk_get_option('logo', PK_THEME_DIR.'/images/logo.png').') !important; }
</style>';
}
add_action('login_head', 'pk_custom_login_logo');
function pk_title() {
$separator = stripslashes(pk_get_option('title_separator', '|'));
wp_title($separator, true, 'right');
if (!is_404()) {
if ((int)get_query_var('paged') > 1) {
echo __('Page', 'pk_translate').' '.get_query_var('paged').' '.$separator.' ';
}
if ((int)get_query_var('page') > 1) {
echo __('Page', 'pk_translate').' '.get_query_var('page').' '.$separator.' ';
}
global $cpage;
if ($cpage >= 1) {
echo __('Comments Page', 'pk_translate').' '.$cpage.' '.$separator.' ';
}
}
bloginfo('name');
}
function pk_set_up_menu_message() {
if (current_user_can('edit_posts')) :
?>
<nav><ul class="menu"><li><a class="menu-item" href="<?php echo get_home_url().'/wp-admin/nav-menus.php'; ?>"><?php _e('Set up the menu', 'pk_translate'); ?></a></li></ul></nav>
<?php
endif;
}
function pk_set_up_footer_menu_message() {
if (current_user_can('edit_posts')) :
?>
<nav class="pk_footer_menu"><ul class="menu"><li><a class="menu-item" href="<?php echo get_home_url().'/wp-admin/nav-menus.php'; ?>"><?php _e('Set up the menu', 'pk_translate'); ?></a></li></ul></nav>
<?php
endif;
}
function pk_pagination($pages = '', $paged = 1, $range = 2) {
$showitems = ($range * 2) + 1;
if ($pages == '') {
global $wp_query;
$pages = $wp_query -> max_num_pages;
if(!$pages) {
$pages = 1;
}
}
if (1 != $pages) {
if ($paged > 1) {
previous_posts_link(__('&laquo;', 'pk_translate'));
} else {
echo '<a>'.__('&laquo;', 'pk_translate').'</a>';
}
$c = 1;
for ($i = 1; $i <= $pages; $i++) {
if (1 != $pages && (!($i >= $paged + $range + 1 || $i <= $paged - $range - 1) || $pages <= $showitems)) {
echo ($paged == $i) ? '<a class="pk_current_page">'.$i.'</a>' : '<a href="'.esc_url(get_pagenum_link($i)).'">'.$i.'</a>';
$c++;
}
}
if ($paged < $pages) {
next_posts_link(__('&raquo;', 'pk_translate'));
} else {
echo '<a>'.__('&raquo;', 'pk_translate').'</a>';
}
}
}
function pk_sidebar() {
$force_sidebar = pk_get_option('force_sidebar', 'no forcing');
if ($force_sidebar != 'no forcing') : return ($force_sidebar == 'show') ? true : false; endif;
if (is_404()) : return (pk_get_option('404_sidebar', 'show') == 'show') ? true : false; endif;
if (is_search()) : return (pk_get_option('search_sidebar', 'show') == 'show') ? true : false; endif;
if (is_singular(array('post', 'portfolio', 'product')) || is_page_template('page-blog.php') || is_page_template('page-portfolio.php')) :
global $post;
$single_sidebar = get_post_meta($post -> ID, '_sidebar', true);
if (isset($single_sidebar) && $single_sidebar == 'hide') : return false; else : return true; endif;
endif;
if ((is_home() || is_archive()) && !is_tax() && !is_post_type_archive() && pk_get_option('blog_sidebar', 'show') == 'hide') return false;
if (pk_is_portfolio()) : return (pk_get_option('portfolio_sidebar', 'hide') == 'hide') ? false : true; endif;
if (function_exists('is_bbpress') && is_bbpress()) : return (pk_get_option('bbpress_forum_sidebar', 'hide') == 'hide') ? false : true; endif;
if ((function_exists('is_product_category') || function_exists('is_product_tag') || function_exists('is_shop')) && (is_product_category() || is_product_tag() || is_shop())) return (pk_get_option('shop_sidebar', 'show') == 'hide') ? false : true;
return (is_page_template('page-home-agency.php') || is_page_template('page-home-business.php') || is_page_template('page-home-freelance.php') || is_page_template('page-full-width.php') || is_page_template('page-faq.php') || (function_exists('is_cart') && is_cart())) ? false : true;
}
function pk_is_portfolio() {
return (is_post_type_archive('portfolio') || is_tax('taxonomy_portfolio')) ? true : false;
}
function pk_feed_lifetime($seconds) {
return 3600;
}
function pk_any_feed($feed = '', $total_items = 1) {
if ($feed == '') $feed = get_bloginfo('rss_url');
include_once(ABSPATH.WPINC.'/feed.php');
add_filter('wp_feed_cache_transient_lifetime', 'pk_feed_lifetime');
$rss = fetch_feed(esc_url($feed));
remove_filter('wp_feed_cache_transient_lifetime', 'pk_feed_lifetime');
if (!is_wp_error($rss)) :
$maxitems = $rss -> get_item_quantity($total_items);
$rss_items = $rss -> get_items(0, $maxitems);
$output = '<ul>';
foreach ($rss_items as $item) :
$output .= '<li>'.$item -> get_description().' <a href="'.$item -> get_permalink().'" title="'.__('Read more', 'pk_translate').'" class="pk_button_read_more" target="_blank">'.__('Read more', 'pk_translate').'</a></li>';
endforeach;
$output .= '</ul>';
return $output;
else :
return '';
endif;
}
function pk_blog_categories_filter() {
?>
<div class="pk_categories_filter">
<ul>
<li><a href="<?php echo (get_option('show_on_front') == 'page') ? get_permalink((function_exists('icl_object_id')) ? icl_object_id(get_option('page_for_posts'), 'page', true) : get_option('page_for_posts')) : ((function_exists('icl_get_home_url')) ? icl_get_home_url() : home_url());?>" title="<?php _e('All', 'pk_translate'); ?>"<?php if (is_home()) echo ' class="pk_current_category"'; ?>><?php _e('All', 'pk_translate'); ?></a></li>
<?php
$categories = get_categories(array('hierarchical' => false, 'taxonomy' => 'category'));
foreach ($categories as $category) :
?>
<li><a href="<?php echo get_term_link($category -> slug, 'category'); ?>" title="<?php echo $category -> cat_name; ?>"<?php if (get_query_var('cat') == $category -> term_id) echo ' class="pk_current_category"'; ?>><?php echo $category -> cat_name; ?></a></li>
<?php
endforeach;
?>
</ul>
</div>
<?php
}
add_action('pk_blog_categories', 'pk_blog_categories_filter');
function pk_portfolio_categories_filter() {
?>
<div class="pk_categories_filter">
<ul>
<?php
if (pk_get_option('portfolio_page_id', '') != '') :
?>
<li><a href="<?php echo get_permalink((function_exists('icl_object_id')) ? icl_object_id(pk_get_option('portfolio_page_id', ''), 'page', true) : pk_get_option('portfolio_page_id', '')); ?>" title="<?php _e('All', 'pk_translate'); ?>"<?php if (!is_tax() && get_the_ID() == ((function_exists('icl_object_id')) ? icl_object_id(pk_get_option('portfolio_page_id', ''), 'page', true) : pk_get_option('portfolio_page_id', ''))) echo ' class="pk_current_category"'; ?>><?php _e('All', 'pk_translate'); ?></a></li>
<?php
endif;
$categories = get_categories(array('hierarchical' => false, 'taxonomy' => 'taxonomy_portfolio'));
foreach ($categories as $category) :
?>
<li><a href="<?php echo get_term_link($category -> slug, 'taxonomy_portfolio'); ?>" title="<?php echo $category -> cat_name; ?>"<?php if (get_query_var('term') == $category -> slug) echo ' class="pk_current_category"'; ?>><?php echo $category -> cat_name; ?></a></li>
<?php
endforeach;
?>
</ul>
</div>
<?php
}
add_action('pk_portfolio_categories', 'pk_portfolio_categories_filter');
?>

View File

@ -0,0 +1,21 @@
<?php
add_filter('post_gallery', 'pk_post_gallery', 10, 2);
function pk_post_gallery($output, $attr) {
if (isset($attr['link']) && $attr['link'] == 'file') :
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".gallery a").attr('rel', 'wp_gallery').prettyPhoto(<?php echo PK_PRETTYPHOTO_PARAMS; ?>);
});
</script>
<?php
endif;
}
?>

View File

@ -0,0 +1,65 @@
<?php
function pk_get_post_gallery_images($size = 'thumbnail') {
$post_type = get_post_type(get_the_ID());
$post_format = '';
if ($post_type == 'post') $post_format = (!get_post_format(get_the_ID())) ? 'standard' : get_post_format(get_the_ID());
if ($post_type == 'portfolio') $post_format = get_post_meta(get_the_ID(), '_work_format', true);
if ($post_type == 'page') $post_format = get_post_meta(get_the_ID(), '_page_format', true);
$post_images = array();
if($images = get_posts(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => 'null',
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC',
'exclude' => (($post_format == 'slider') ? 'null' : get_post_thumbnail_id(get_the_ID()))
))) {
$count = 0;
foreach($images as $image) {
$exclude_from_gallery = get_post_meta($image -> ID, '_exclude_from_gallery', true);
if ($exclude_from_gallery == 'yes') continue;
$img = wp_get_attachment_image($image -> ID, $size);
$post_images[$count]['img'] = $img;
$post_images[$count]['id'] = $image -> ID;
$post_images[$count]['url'] = $image -> guid;
$post_images[$count]['title'] = $image -> post_title;
$post_images[$count]['description'] = $image -> post_content;
$count++;
}
}
return $post_images;
}
function pk_get_featured_image($size = 'full') {
$image = '';
if (has_post_thumbnail()) {
$image = wp_get_attachment_image_src(get_post_thumbnail_id(), $size);
$image = $image[0];
}
return $image;
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,60 @@
<?php
if (!is_admin()) define('ICL_DONT_LOAD_NAVIGATION_CSS', true);
if (!is_admin()) define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true);
function pk_qtranslate_edit_taxonomies() {
$args = array('public' => true, '_builtin' => false);
$output = 'object';
$operator = 'and';
$taxonomies = get_taxonomies($args, $output, $operator);
if ($taxonomies) {
foreach($taxonomies as $taxonomy) {
add_action($taxonomy -> name.'_add_form', 'qtrans_modifyTermFormFor');
add_action($taxonomy -> name.'_edit_form', 'qtrans_modifyTermFormFor');
}
}
}
if (function_exists('qtrans_modifyTermFormFor')) add_action('admin_init', 'pk_qtranslate_edit_taxonomies');
function pk_load_theme_translation() {
load_theme_textdomain('pk_translate', get_template_directory().'/translate');
}
add_action('after_setup_theme', 'pk_load_theme_translation');
function pk_lang_object_ids($ids_array, $type) {
if (function_exists('icl_object_id')) {
$res = array();
if (is_array($ids_array)) foreach ($ids_array as $id) {
$xlat = icl_object_id($id, $type, true);
if(!is_null($xlat)) $res[] = $xlat;
}
return $res;
} else {
return $ids_array;
}
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,126 @@
<?php
require_once (PK_FRAMEWORK.'/includes/tgm-plugin-activation/class-tgm-plugin-activation.php');
add_action('tgmpa_register', 'pk_register_required_plugins');
function pk_register_required_plugins() {
$plugins = array(
array(
'name' => 'Breadcrumb NavXT',
'slug' => 'breadcrumb-navxt',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://wordpress.org/extend/plugins/breadcrumb-navxt/'
),
array(
'name' => 'Background Manager',
'slug' => 'background-manager',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://wordpress.org/extend/plugins/background-manager/'
),
array(
'name' => 'Contact Form 7',
'slug' => 'contact-form-7',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://wordpress.org/extend/plugins/contact-form-7/'
),
array(
'name' => 'qTranslate',
'slug' => 'qtranslate',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://wordpress.org/extend/plugins/qtranslate/'
),
array(
'name' => 'WPML Multilingual CMS',
'slug' => 'sitepress-multilingual-cms',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://www.wpml.org/'
),
array(
'name' => 'JigoShop',
'slug' => 'jigoshop',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://wordpress.org/extend/plugins/jigoshop/'
),
array(
'name' => 'WooCommerce',
'slug' => 'woocommerce',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://www.woothemes.com/woocommerce/',
),
array(
'name' => 'bbPress',
'slug' => 'bbpress',
'required' => false,
'version' => '',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'http://wordpress.org/extend/plugins/bbpress/',
)
);
$config = array(
'domain' => 'pk_translate',
'default_path' => '',
'parent_menu_slug' => 'themes.php',
'parent_url_slug' => 'themes.php',
'menu' => 'install-required-plugins',
'has_notices' => true,
'is_automatic' => false,
'message' => '',
'strings' => array(
'page_title' => __('Install Required Plugins', 'pk_translate'),
'menu_title' => __('Theme Plugins', 'pk_translate'),
'installing' => __('Installing Plugin: %s', 'pk_translate'),
'oops' => __('Something went wrong with the plugin API.', 'pk_translate'),
'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'),
'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'),
'notice_cannot_install' => _n_noop('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.'),
'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'),
'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'),
'notice_cannot_activate' => _n_noop('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.'),
'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.'), // %1$s = plugin name(s)
'notice_cannot_update' => _n_noop('Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.'),
'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'),
'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'),
'return' => __('Return to Required Plugins Installer', 'pk_translate'),
'plugin_activated' => __('Plugin activated successfully.', 'pk_translate'),
'complete' => __('All plugins installed and activated successfully. %s', 'pk_translate'),
'nag_type' => 'updated'
)
);
tgmpa($plugins, $config);
}

View File

@ -0,0 +1,182 @@
<?php
function pk_register_portfolio() {
$labels = array(
'name' => _x('Portfolio', 'post type general name', 'pk_translate'),
'singular_name' => _x('Work', 'post type singular name', 'pk_translate'),
'add_new' => _x('Add New Work', 'release', 'pk_translate'),
'add_new_item' => __('Add New Work', 'pk_translate'),
'edit_item' => __('Edit Work', 'pk_translate'),
'new_item' => __('New Work', 'pk_translate'),
'view_item' => __('View Work', 'pk_translate'),
'search_items' => __('Search Works', 'pk_translate'),
'not_found' => __('No works found', 'pk_translate'),
'not_found_in_trash' => __('No works found in Trash', 'pk_translate')
);
$args = array(
'labels' => $labels,
'public' => true,
'menu_position' => 5,
'capability_type' => 'post',
'hierarchical' => false,
'supports' => array('title', 'editor', 'excerpt', 'comments', 'revisions', 'thumbnail', 'custom-fields'),
'query_var' => true,
'rewrite' => array('slug' => 'portfolio-archive', 'with_front' => false),
'show_in_nav_menus' => true,
'has_archive' => true
);
$taxonomy_labels = array(
'name' => _x('Portfolio Categories', 'taxonomy general name', 'pk_translate'),
'singular_name' => _x('Category', 'taxonomy singular name', 'pk_translate'),
'search_items' => __('Search Category', 'pk_translate'),
'popular_items' => __('Popular Categories', 'pk_translate'),
'all_items' => __('All Categories', 'pk_translate'),
'parent_item' => __('Parent Category', 'pk_translate'),
'parent_item_colon' => __('Parent Category:', 'pk_translate'),
'edit_item' => __('Edit Category', 'pk_translate'),
'add_new_item' => __('Add New Category', 'pk_translate'),
'new_item_name' => __('New Category Name', 'pk_translate')
);
$taxonomy_args = array(
'labels' => $taxonomy_labels,
'public' => true,
'show_in_nav_menus' => true,
'show_ui' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'portfolio-category', 'with_front' => false),
'query_var' => true
);
register_post_type('portfolio', $args);
register_taxonomy('taxonomy_portfolio', 'portfolio', $taxonomy_args);
flush_rewrite_rules();
}
add_action('init', 'pk_register_portfolio');
function pk_portfolio_edit_columns($columns){
$columns = array(
'cb' => '<input type="checkbox" />',
'title' => __('Title', 'pk_translate'),
'portfolio_thumb' => __('Featured Image', 'pk_translate'),
'author' => __('Author', 'pk_translate'),
'taxonomy_portfolio' => __('Categories', 'pk_translate'),
'comments' => $columns['comments'],
'date' => $columns['date']
);
return $columns;
}
add_filter('manage_edit-portfolio_columns', 'pk_portfolio_edit_columns');
function pk_portfolio_custom_columns($column){
global $post;
switch ($column) {
case 'portfolio_thumb':
if (function_exists('the_post_thumbnail') && has_post_thumbnail()) {
the_post_thumbnail(array(80, 80));
}
break;
case 'taxonomy_portfolio':
echo get_the_term_list($post -> ID, 'taxonomy_portfolio', '', ', ', '');
break;
}
}
add_action('manage_posts_custom_column', 'pk_portfolio_custom_columns');
function pk_save_portfolio_sort() {
global $wpdb;
$order = explode(',', $_POST['order']);
$counter = 0;
foreach ($order as $portfolio_id) {
$wpdb -> update($wpdb -> posts, array('menu_order' => $counter), array('ID' => $portfolio_id));
$counter++;
}
die();
}
add_action('wp_ajax_portfolio_sort', 'pk_save_portfolio_sort');
function pk_add_sort_portfolio_page() {
add_submenu_page('edit.php?post_type=portfolio', __('Sort Works', 'pk_translate'), __('Sort Works', 'pk_translate'), 'edit_posts', basename(__FILE__), 'pk_create_sort_portfolio_page');
}
add_action('admin_menu', 'pk_add_sort_portfolio_page');
function pk_create_sort_portfolio_page() {
$portfolio = new WP_Query('post_type=portfolio&posts_per_page=-1&orderby=menu_order&order=ASC');
?>
<!-- pk sort portfolio page - start -->
<div class="wrap">
<div id="icon-options-general" class="icon32">
<br />
</div>
<h2><?php _e('Sort Works', 'pk_translate'); ?> <a href="<?php echo admin_url('post-new.php').'?post_type=portfolio'; ?>" class="button add-new-h2"><?php _e('Add New', 'pk_translate'); ?></a></h2>
<br />
<div id="pk_admin_saving_sorting" class="updated">
<p><strong><?php _e('Saving works order...', 'pk_translate'); ?></strong></p>
</div>
<div id="pk_admin_success_sorting" class="updated">
<p><strong><?php _e('Works order saved!', 'pk_translate'); ?></strong></p>
</div>
<div id="pk_admin_error_sorting" class="updated">
<p><strong><?php _e('Error saving works order, please try again.', 'pk_translate'); ?></strong></p>
</div>
<div>
<ul id="pk_admin_sortable_list">
<?php if ($portfolio -> have_posts()) : while ($portfolio -> have_posts()) : $portfolio -> the_post(); ?>
<li id="<?php the_id(); ?>" class="pk_admin_sortable_default">
<?php if (function_exists('the_post_thumbnail') && has_post_thumbnail()) { the_post_thumbnail(array(80, 80), array('class' => 'pk_admin_sort_thumb')); } else { echo '<span class="pk_admin_sort_no_img"></span>'; } ?>
<strong><a class="pk_admin_sort_titles" href="<?php echo admin_url('post.php').'?post='; the_id(); echo '&action=edit'; ?>"><?php the_title(); ?></a></strong>
<p class="pk_admin_class_taxonomies"><?php the_taxonomies(); ?></p>
</li>
<?php endwhile; ?>
</ul>
<?php else :?>
<p><?php _e('No works found', 'pk_translate'); ?></p>
<?php endif; ?>
</div>
</div>
<!-- pk sort portfolio page - end -->
<?php
}
?>

View File

@ -0,0 +1,125 @@
<?php
function pk_enqueue_theme_scripts() {
if (is_admin()) {
return;
}
wp_enqueue_script('jquery');
if (is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply', false, array(), false, true);
if (pk_get_option('optimize', 'false') == 'false') :
wp_deregister_script('jquery-easing');
wp_register_script('jquery-easing', PK_THEME_DIR.'/js/jquery.easing.js', array('jquery'), false, true);
wp_enqueue_script('jquery-easing');
wp_deregister_script('pk-jplayer');
wp_register_script('pk-jplayer', PK_THEME_DIR.'/js/jquery.jplayer.min.js', array('jquery'), false, true);
wp_enqueue_script('pk-jplayer');
wp_deregister_script('pretty-photo');
wp_register_script('pretty-photo', PK_THEME_DIR.'/prettyPhoto/js/jquery.prettyPhoto.js', array('jquery'), false, true);
wp_enqueue_script('pretty-photo');
wp_deregister_script('pk-slider');
wp_register_script('pk-slider', PK_THEME_DIR.'/js/pk_slider.js', array('jquery'), false, true);
wp_enqueue_script('pk-slider');
wp_deregister_script('pk-content-slider');
wp_register_script('pk-content-slider', PK_THEME_DIR.'/js/pk_content_slider.js', array('jquery'), false, true);
wp_enqueue_script('pk-content-slider');
wp_deregister_script('pk');
wp_register_script('pk', PK_THEME_DIR.'/js/pk.js', array('jquery'), false, true);
wp_enqueue_script('pk');
else :
wp_register_script('pk', PK_THEME_DIR.'/js/pk_allinone_js.php', array('jquery'), false, true);
wp_enqueue_script('pk');
endif;
}
add_action('wp_enqueue_scripts', 'pk_enqueue_theme_scripts');
function pk_enqueue_theme_styles() {
if (is_admin()) {
return;
}
if (pk_get_option('optimize', 'false') == 'false' || (function_exists('is_jigoshop') && pk_get_option('selected_skin', 'light') == 'custom')) :
wp_deregister_style('pk_reset');
wp_register_style('pk_reset', PK_THEME_DIR.'/css/pk_reset.css');
wp_enqueue_style('pk_reset');
wp_deregister_style('pk_jigoshop');
wp_register_style('pk_jigoshop', PK_THEME_DIR.'/css/pk_jigoshop.css');
if (function_exists('is_jigoshop')) wp_enqueue_style('pk_jigoshop');
wp_deregister_style('pk_jigoshop_widgets');
wp_register_style('pk_jigoshop_widgets', PK_THEME_DIR.'/css/pk_jigoshop_widgets.css');
if (function_exists('is_jigoshop')) wp_enqueue_style('pk_jigoshop_widgets');
wp_deregister_style('pk_woocommerce');
wp_register_style('pk_woocommerce', PK_THEME_DIR.'/css/pk_woocommerce.css');
if (function_exists('is_woocommerce')) wp_enqueue_style('pk_woocommerce');
wp_deregister_style('pk_woocommerce_widgets');
wp_register_style('pk_woocommerce_widgets', PK_THEME_DIR.'/css/pk_woocommerce_widgets.css');
if (function_exists('is_woocommerce')) wp_enqueue_style('pk_woocommerce_widgets');
wp_deregister_style('pk_bbpress');
wp_register_style('pk_bbpress', PK_THEME_DIR.'/css/pk_bbpress.css');
if (function_exists('is_bbpress')) wp_enqueue_style('pk_bbpress');
wp_deregister_style('pk_bbpress_widgets');
wp_register_style('pk_bbpress_widgets', PK_THEME_DIR.'/css/pk_bbpress_widgets.css');
if (function_exists('is_bbpress')) wp_enqueue_style('pk_bbpress_widgets');
wp_deregister_style('pk_shortcodes');
wp_register_style('pk_shortcodes', PK_THEME_DIR.'/css/pk_shortcodes.css');
wp_enqueue_style('pk_shortcodes');
wp_deregister_style('pk_widgets');
wp_register_style('pk_widgets', PK_THEME_DIR.'/css/pk_widgets.css');
wp_enqueue_style('pk_widgets');
wp_deregister_style('pk_style');
wp_register_style('pk_style', PK_THEME_DIR.'/css/pk_style.css');
wp_enqueue_style('pk_style');
wp_deregister_style('pk_skin');
wp_register_style('pk_skin', PK_THEME_DIR.'/css/pk_skin_'.pk_get_option('selected_skin', 'light').((pk_get_option('selected_skin', 'light') == 'custom') ? '.php?path='.urlencode(ABSPATH."wp-load.php") : '.css'));
wp_enqueue_style('pk_skin');
wp_deregister_style('pretty-photo');
wp_register_style('pretty-photo', PK_THEME_DIR.'/prettyPhoto/css/prettyPhoto.css');
wp_enqueue_style('pretty-photo');
wp_deregister_style('pk_main_style');
wp_register_style('pk_main_style', get_stylesheet_uri());
wp_enqueue_style('pk_main_style');
else :
wp_register_style('pk', PK_THEME_DIR.'/css/pk_allinone_css.php?skin='.pk_get_option('selected_skin', 'light').'&path='.urlencode(ABSPATH."wp-load.php").'&ecommerce='.((function_exists('is_jigoshop')) ? 'jigoshop' : ((function_exists('is_woocommerce')) ? 'woocommerce' : '')).'&bbpress='.((function_exists('is_bbpress')) ? 'yes' : 'no'));
wp_enqueue_style('pk');
endif;
}
add_action('wp_enqueue_scripts', 'pk_enqueue_theme_styles');
?>

View File

@ -0,0 +1,356 @@
<?php
function pk_register_sidebars() {
$custom_sidebars_for = pk_get_option('custom_sidebars_for', array());
if (is_array($custom_sidebars_for) && count($custom_sidebars_for) > 0) :
foreach ($custom_sidebars_for as $key => $id) :
$title = get_the_title($id);
register_sidebar(array(
'name' => __('Sidebar - ', 'pk_translate').$title,
'id' => 'custom_sidebar_'.$id,
'description' => __('Applied to ', 'pk_translate').$title,
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
$post_template = get_post_meta($id, '_wp_page_template', true);
if (in_array(get_post_type($id), array('page', 'post', 'portfolio', 'product')) && !in_array($post_template, array('page-blog.php', 'page-portfolio.php', 'page-faq.php', 'page-home-agency.php', 'page-home-business.php', 'page-home-freelance.php', 'page-home-standard.php', 'page-home-jigoshop.php', 'page-home-woocommerce.php'))) register_sidebar(array(
'name' => __('After Content - ', 'pk_translate').$title,
'id' => 'custom_sidebar_after_content_'.$id,
'description' => __('Applied to ', 'pk_translate').$title,
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
endforeach;
endif;
register_sidebar(array(
'name' => __('Sidebar - All', 'pk_translate'),
'id' => 'sidebar_all',
'description' => __('Always applied.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Front Page', 'pk_translate'),
'id' => 'sidebar_front_page',
'description' => __('Applied to the front page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - JigoShop', 'pk_translate'),
'id' => 'sidebar_jigoshop',
'description' => __('Applied to the JigoShop pages.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - WooCommerce', 'pk_translate'),
'id' => 'sidebar_woocommerce',
'description' => __('Applied to the WooCommerce pages.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - BBPress Forum', 'pk_translate'),
'id' => 'sidebar_bbpress_forum',
'description' => __('Applied to the BBPress forum pages.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Pages', 'pk_translate'),
'id' => 'sidebar_pages',
'description' => __('Applied to every page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('After Page Content', 'pk_translate'),
'id' => 'sidebar_after_page_content',
'description' => __('Applied after every page content.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Blog', 'pk_translate'),
'id' => 'sidebar_blog',
'description' => __('Applied to every blog page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('After Blog Post Content', 'pk_translate'),
'id' => 'sidebar_after_post_content',
'description' => __('Applied after every blog post content.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Portfolio', 'pk_translate'),
'id' => 'sidebar_portfolio',
'description' => __('Applied to every portfolio grid page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget'=> '</div>',
'before_title'=> '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('After Work Content', 'pk_translate'),
'id' => 'sidebar_after_work_content',
'description' => __('Applied after every work content.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Search', 'pk_translate'),
'id' => 'sidebar_search',
'description' => __('Applied to the search results pages.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - 404', 'pk_translate'),
'id' => 'sidebar_404',
'description' => __('Applied to the "Error 404" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Agency - Slider', 'pk_translate'),
'id' => 'sidebar_home_page_agency_slider',
'description' => __('Applied to the "Home Page Agency" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Agency - Left', 'pk_translate'),
'id' => 'sidebar_home_page_agency_left',
'description' => __('Applied to the "Home Page Agency" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Agency - Middle', 'pk_translate'),
'id' => 'sidebar_home_page_agency_middle',
'description' => __('Applied to the "Home Page Agency" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Agency - Right', 'pk_translate'),
'id' => 'sidebar_home_page_agency_right',
'description' => __('Applied to the "Home Page Agency" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Business - Left', 'pk_translate'),
'id' => 'sidebar_home_page_business_left',
'description' => __('Applied to the "Home Page Business" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Business - Middle', 'pk_translate'),
'id' => 'sidebar_home_page_business_middle',
'description' => __('Applied to the "Home Page Business" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Business - Right', 'pk_translate'),
'id' => 'sidebar_home_page_business_right',
'description' => __('Applied to the "Home Page Business" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Freelance - Left', 'pk_translate'),
'id' => 'sidebar_home_page_freelance_left',
'description' => __('Applied to the "Home Page Freelance" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Freelance - Middle', 'pk_translate'),
'id' => 'sidebar_home_page_freelance_middle',
'description' => __('Applied to the "Home Page Freelance" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Freelance - Right', 'pk_translate'),
'id' => 'sidebar_home_page_freelance_right',
'description' => __('Applied to the "Home Page Freelance" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Standard - Left', 'pk_translate'),
'id' => 'sidebar_home_page_standard_left',
'description' => __('Applied to the "Home Page Standard" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home Standard - Right', 'pk_translate'),
'id' => 'sidebar_home_page_standard_right',
'description' => __('Applied to the "Home Page Standard" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home JigoShop - Left', 'pk_translate'),
'id' => 'sidebar_home_page_jigoshop_left',
'description' => __('Applied to the "Home Page JigoShop" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home JigoShop - Right', 'pk_translate'),
'id' => 'sidebar_home_page_jigoshop_right',
'description' => __('Applied to the "Home Page JigoShop" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home WooCommerce - Left', 'pk_translate'),
'id' => 'sidebar_home_page_woocommerce_left',
'description' => __('Applied to the "Home Page WooCommerce" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Sidebar - Home WooCommerce - Right', 'pk_translate'),
'id' => 'sidebar_home_page_woocommerce_right',
'description' => __('Applied to the "Home Page WooCommerce" page.', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Footer Column 1', 'pk_translate'),
'id' => 'footer_column_1',
'description' => __('The first column in the footer widgets area (Set the number of columns in the footer options panel.)', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Footer Column 2', 'pk_translate'),
'id' => 'footer_column_2',
'description' => __('The second column in the footer widgets area (Set the number of columns in the footer options panel.)', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Footer Column 3', 'pk_translate'),
'id' => 'footer_column_3',
'description' => __('The third column in the footer widgets area (Set the number of columns in the footer options panel.)', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Footer Column 4', 'pk_translate'),
'id' => 'footer_column_4',
'description' => __('The fourth column in the footer widgets area (Set the number of columns in the footer options panel.)', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Footer Column 5', 'pk_translate'),
'id' => 'footer_column_5',
'description' => __('The fifth column in the footer widgets area (Set the number of columns in the footer options panel.)', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
register_sidebar(array(
'name' => __('Footer Column 6', 'pk_translate'),
'id' => 'footer_column_6',
'description' => __('The sixth column in the footer widgets area (Set the number of columns in the footer options panel.)', 'pk_translate'),
'before_widget' => '<div id="%1$s" class="pk_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="pk_heading_uppercase">',
'after_title' => '</h5>'));
}
add_action('widgets_init', 'pk_register_sidebars');
?>

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