" /> <?php wp_get_archives('type=monthly&format=link'); ?> <?php //comments_popup_script(); // off by default ?> <?php wp_head(); ?> </head> <body <?php if (is_home()) { echo 'id="home"'; } elseif (is_category(get_option('boldy_portfolio')) || post_is_in_descendant_category(get_option('boldy_portfolio')) && !is_single()) { echo 'id="portfolio"'; } ?> > <!-- BEGINN MAINWRAPPER --> <div id="mainWrapper"> <!-- BEGIN WRAPPER --> <div id="wrapper"> <!-- BEGIN HEADER --> <div id="header"> <div id="logo"><a href="<?php bloginfo('url'); ?> /"><img src="<?php echo get_option('boldy_logo_img');
/* Template Name: Portfolio */ ?> <div id="colFull"> <?php $current = get_the_category(); $current_id = $current[0]->cat_ID; $categs_list = get_category_parents($current_id); $pieces = explode("/", $categs_list); $category_name = strtolower($pieces[0]); $categs = get_cat_id($category_name); ?> <?php if (is_category() && in_category($current_id) || post_is_in_descendant_category($current_id)) { ?> <h1><?php single_cat_title(); ?> </h1> <ul class="portfolioCategs"> <li><a href="<?php echo get_category_link(get_option('boldy_portfolio')); ?> ">All projects</a></li> <?php $categories = get_categories('hide_empty=1&child_of=' . $categs); foreach ($categories as $cat) { echo '<li><a href="'; echo get_category_link($cat->cat_ID) . '">' . $cat->cat_name . '</a></li>';
<?php get_header(); if (is_category(get_option('boldy_portfolio')) || post_is_in_descendant_category(get_option('boldy_portfolio'))) { include TEMPLATEPATH . '/portfolio.php'; } else { ?> <!-- Begin #colLeft --> <div id="colLeft"> <!-- archive-title --> <?php if (is_month()) { ?> <div id="archive-title"> Browsing articles from "<strong><?php the_time('F, Y'); ?> </strong>" </div> <?php } ?> <?php if (is_category()) { ?> <div id="archive-title"> Browsing articles in "<strong><?php $current_category = single_cat_title("", true); ?> </strong>" </div>
<!-- Begin #colRight --> <div id="colRight"> <?php if (get_option('boldy_blog') != '' && is_category(get_option('boldy_blog')) || post_is_in_descendant_category(get_option('boldy_blog'))) { $current = get_the_category(); if (sizeof($current) > 0) { $current_id = $current[0]->cat_ID; $categs_list = get_category_parents($current_id); $pieces = explode("/", $categs_list); $category_name = strtolower($pieces[0]); $categs = get_cat_id($category_name); ?> <div class="rightBox"> <h2><?php echo get_cat_name(get_option('boldy_blog')); ?> Categories </h2> <ul > <?php $categories = get_categories('hide_empty=1&child_of=' . $categs); foreach ($categories as $cat) { echo '<li><a href="'; echo get_category_link($cat->cat_ID) . '">' . $cat->cat_name . '</a></li>'; } ?> </ul> </div> <?php } }
?> <h2 class="pagetitle">Author Archive</h2> <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2 class="pagetitle">Blog Archives</h2> <?php } ?> <?php while (have_posts()) { the_post(); ?> <?php if (in_category('Links Vault') || post_is_in_descendant_category(48)) { ?> <div class="post" style="margin:0;"> <div class="link-wrap"> <table> <tr> <td> <?php the_content(); ?> </td> <td> <h3> <?php the_excerpt(); ?>
* The Sidebar containing the main widget area * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ ?> <div id="secondary"> <?php if (has_nav_menu('secondary')) { ?> <nav role="navigation" class="navigation site-navigation secondary-navigation"> <?php if (is_home() or post_is_in_descendant_category(26) or is_search()) { wp_nav_menu(array('theme_location' => 'secondary_homepage_navigation')); } elseif (is_page(1321) or is_page() && $post->post_parent == 1321) { wp_nav_menu(array('theme_location' => 'secondary_myprofile_navigation')); } else { wp_nav_menu(array('theme_location' => 'secondary')); } ?> </nav> <?php } ?> <?php if (is_active_sidebar('sidebar-1')) { ?>
<?php get_header(); global $recipeObject; global $recipePost; $recipePost = false; if (in_category(array(2, 70, 81), get_the_ID()) || post_is_in_descendant_category(array(2, 70, 81), get_the_ID())) { $recipePost = true; } ?> <div id="social"> <p>Share</p> <?php global $wp; $title = get_the_title(); $currentUrl = add_query_arg($wp->query_string, '', home_url($wp->request)); ?> <ul> <li class="pinterest"> <a href="http://pinterest.com/pin/create/bookmarklet/?url=<?php echo $currentUrl; ?> &is_video=false&description=<?php echo $title; ?> "> <span class="fa-stack fa-lg"> <i class="fa fa-pinterest-p fa-inverse"></i> </span> </a>
function wprp_attach_report($text) { # Get Report option to Validate Custom Fields $rp_if = (int) get_option("rp_if"); global $post; if ($rp_if == 2) { $custom_field = (int) get_post_meta($post->ID, 'wprp', true); if (!$custom_field || empty($custom_field) || !is_numeric($custom_field) || $custom_field != 1) { return $text; } // Return Contents as it is.... } //get_the_category() # Validate Category IF SELECTED! $cat_selected = get_option("rp_categories"); if ($cat_selected && !empty($cat_selected) && $cat_selected != 0 && !is_page()) { $cat_selected = explode(",", $cat_selected); // CONVERT TO ARRAY if (in_category($cat_selected) || post_is_in_descendant_category($cat_selected)) { return wprp_report_form($text); } return $text; } // Call Attach to Add HTML at the END! // Allways Return the Contents... Or it will Display EMPTY STRING! return wprp_report_form($text); }
<?php if (post_is_in_descendant_category(20)) { include TEMPLATEPATH . '/category-library-cat.php'; } else { include TEMPLATEPATH . '/category-basic.php'; }
<?php if (get_option('WJSJthemes_newsid')) { $newsCats = get_option('WJSJthemes_newsid'); $newsArrays = explode(",", $newsCats); } if (in_category($newsArrays) || post_is_in_descendant_category($newsArrays)) { include TEMPLATEPATH . '/newslist.php'; } else { include TEMPLATEPATH . '/prolist.php'; }