예제 #1
0
 // Password Protected
 //project key details to add before sidebar
 if (trim($project_info)) {
     $before_sidebar = '<div class="box first box-shadow box_layout widget project_notes">';
     $before_sidebar .= '<div class="head_text nomargin"><div class="arrow"></div><h4>';
     $before_sidebar .= get_post_meta($post->ID, 'rttheme_project_info_title', true);
     $before_sidebar .= '</h4><div class="space margin-b10"></div></div>';
     $before_sidebar .= do_shortcode(fixshortcode(wpautop(str_replace("<ul", '<ul class="check"', $project_info))));
     $before_sidebar .= '</div>';
 } else {
     $before_sidebar = "";
 }
 //next and previous links
 if (get_option(THEMESLUG . '_hide_portfolio_navigation')) {
     $prev = is_array($terms) ? mod_get_adjacent_post(true, true, '', 'portfolio_categories', 'date') : get_adjacent_post("", "", true);
     $next = is_array($terms) ? mod_get_adjacent_post(true, false, '', 'portfolio_categories', 'date') : get_adjacent_post("", "", false);
     $prev_post_link_url = $prev ? get_permalink($prev->ID) : "";
     $next_post_link_url = $next ? get_permalink($next->ID) : "";
     $next_post_link = $next_post_link_url ? '<a href="' . $next_post_link_url . '" title="" class="p_next"><span>' . __('Next →', 'rt_theme') . '</span></a>' : false;
     $prev_post_link = $prev_post_link_url ? '<a href="' . $prev_post_link_url . '" title="" class="p_prev"><span>' . __('← Previous', 'rt_theme') . '</span></a>' : false;
     $add_class = $prev_post_link == false ? "single" : "";
     // if previous link is empty add class to fix white border
     $before_sidebar .= $next_post_link || $prev_post_link ? '<div class="post-navigations  margin-b20 ' . $add_class . '">' . $prev_post_link . '' . $next_post_link . '</div>' : "";
 }
 $crop = $crop ? true : false;
 $w = $sidebar == "full" ? 940 : 606;
 $h = $h == "" ? 400 : $h;
 // Resize Portfolio Image
 if ($image) {
     $image_thumb = @vt_resize('', $image, $w, $h, $crop);
 }
예제 #2
0
       </div>

       <!-- <div class="stick">
       		<div class="container">
       			<div class="row">
       			

       			</div>
       		</div>
       	</div> -->

  	<div class="row next-prev">

  		<?php 
        $prev = mod_get_adjacent_post('prev', array('post', 'collection-archive'));
        $next = mod_get_adjacent_post('next', array('post', 'collection-archive'));
        ?>

  		<div class="columns four next-prev-thumb">
  			<?php 
        if ($prev) {
            ?>
    			<a href="<?php 
            echo get_permalink($prev->ID);
            ?>
">
    				<?php 
            echo get_the_post_thumbnail($prev->ID, 'grid-thumb');
            ?>
    				<div class="center-title-overlay next-prev-title">
    					<div class="center-title-table">
예제 #3
0
 //values
 $rt_attached_documents = get_post_meta($post->ID, THEMESLUG . 'attached_documents', true);
 $content = apply_filters('the_content', get_the_content());
 $title = get_the_title();
 $permalink = get_permalink();
 $order_button = get_post_meta($post->ID, THEMESLUG . 'order_button', true);
 $order_button_text = get_post_meta($post->ID, THEMESLUG . 'order_button_text', true);
 $order_button_link = get_post_meta($post->ID, THEMESLUG . 'order_button_link', true);
 $related_products = get_post_meta($post->ID, THEMESLUG . 'related_products[]', true);
 $short_desc = get_post_meta($post->ID, THEMESLUG . 'short_description', true);
 $password_protected = post_password_required($post) ? true : false;
 // Password Protected
 //next and previous links
 if (get_option(THEMESLUG . '_hide_product_navigation')) {
     $prev = is_array($terms) ? mod_get_adjacent_post(true, true, '', $taxonomy, 'date') : get_adjacent_post("", "", true);
     $next = is_array($terms) ? mod_get_adjacent_post(true, false, '', $taxonomy, 'date') : get_adjacent_post("", "", false);
     $prev_post_link_url = $prev ? get_permalink($prev->ID) : "";
     $next_post_link_url = $next ? get_permalink($next->ID) : "";
     $next_post_link = $next_post_link_url ? '<a href="' . $next_post_link_url . '" title="" class="p_next"><span>' . __('Next →', 'rt_theme') . '</span></a>' : false;
     $prev_post_link = $prev_post_link_url ? '<a href="' . $prev_post_link_url . '" title="" class="p_prev"><span>' . __('← Previous', 'rt_theme') . '</span></a>' : false;
     $add_class = $prev_post_link == false ? "single" : "";
     // if previous link is empty add class to fix white border
     $before_sidebar = $next_post_link || $prev_post_link ? '<div class="post-navigations  margin-b20 ' . $add_class . '">' . $prev_post_link . '' . $next_post_link . '</div>' : "";
 }
 //free tabs count
 $tab_count = 3;
 for ($i = 0; $i < $tab_count + 1; $i++) {
     if (trim(get_post_meta($post->ID, THEMESLUG . 'free_tab_' . $i . '_title', true))) {
         $tabbed_page = "yes";
     }
 }