예제 #1
0
?>
 
							<?php 
echo jw_social_share();
?>
							
                        </div>
                        
                    </div>
								
			</div>
			
				<?php 
about_author();
?>
			
            <?php 
comments_template('', true);
?>
                   
        </article>
    </div>
    <?php 
if (get_metabox("layout") != "full") {
    get_sidebar();
}
?>
</div>

<?php 
get_footer();
예제 #2
0
<?php

if (is_page()) {
    if (get_metabox("header_type") == "slider") {
        ?>
        <section id="slider" class="header-options slider">
            <?php 
        echo do_shortcode(get_metabox("slider_id"));
        ?>
        </section>
        <?php 
    } else {
        get_template_part('page', 'title');
    }
} else {
    get_template_part('page', 'title');
}
예제 #3
0
<?php

get_header();
the_post();
if (jw_option('pagebuilder') && pbGetContentBuilder()) {
    echo apply_filters('widget_text', pbGetContentBuilder());
} else {
    echo '<div class="container">';
    echo '<div class="row">';
    if (get_metabox('layout') == "left" || get_metabox('layout') == "right") {
        get_sidebar();
        echo "<div class='span9'>";
        echo wp_kses_post(invento_content_filter());
        wp_link_pages();
        comments_template('', true);
        echo "</div>";
    } else {
        echo "<div class='span12'>";
        echo wp_kses_post(invento_content_filter());
        wp_link_pages();
        comments_template('', true);
        echo "</div>";
    }
    echo "</div>";
    echo "</div>";
}
get_footer();
										<div class="loop-content clearfix cause-conte">
												<?php 
                $content = get_the_content();
                $content = strip_tags($content);
                echo substr($content, 0, 130);
                ?>

										</div>
										 <div class="cause-read">
											<a href="<?php 
                the_permalink();
                ?>
" class="more-link"><?php 
                echo apply_filters("widget_title", $readMore);
                ?>
</a>
											<a href="<?php 
                echo get_metabox('cause_donate');
                ?>
" target="_blank">Donate Now</a>	
										</div>
									</div>
							<?php 
            }
            ?>

							</article>
							<?php 
        } else {
            ?>
							<?php 
예제 #5
0
            $class .= " category-" . $catalog->slug;
        }
        ?>
                <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class($class);
        ?>
><?php 
        $ids = get_metabox('gallery_image_ids');
        $video_embed = get_metabox('format_video_embed');
        $video_url = get_metabox('pretty_video_url');
        $image_url = get_metabox('preview_url');
        if (has_post_thumbnail($post->ID)) {
            if (!empty($video_url) && get_metabox('pretty_video') === 'true') {
                portfolio_image($width, $height, true, $video_url);
            } else {
                portfolio_image($width, $height);
            }
        } elseif ($ids != "false" && $ids != "") {
            portfolio_gallery($width, $height, $ids);
        } elseif (!empty($video_embed)) {
            echo apply_filters("the_content", htmlspecialchars_decode($video_embed));
        }
        ?>
					
                    
                </article><?php 
    }
    echo '</div>';
예제 #6
0
        ?>
</p>
										</div>	
										<div class="pull-left event-title">
												<h3><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
												<p class="event-loc"><i class="icon-time"></i> <?php 
        echo wp_kses_post(get_metabox('event_time'));
        ?>
 <i class="icon-map-marker sec"></i> <?php 
        echo wp_kses_post(get_metabox('location_name'));
        ?>
 </p>
										</div>
										<div class=" clearfix"></div>
										<div class="event-new-content clearfix">
												<?php 
        $content = get_the_content();
        $content = strip_tags($content);
        echo substr($content, 0, 260);
        ?>
										</div>
										<div class="event-read"><a href="<?php 
        the_permalink();
        ?>
" class="more-link">Read More</a></div>
예제 #7
0
    function about_author()
    {
        $jw_author = false;
        if (get_metabox("post_authorr") == "true") {
            $jw_author = true;
        } else {
            if (get_metabox("post_authorr") != "false") {
                if (jw_option('post_author')) {
                    $jw_author = true;
                }
            }
        }
        if ($jw_author) {
            ?>
			<div class="about-author">
				<div class="jw-author clearfix">
					<div class="author-image"><?php 
            $jw_author_email = get_the_author_meta('email');
            echo get_avatar($jw_author_email, $size = '70');
            ?>
					</div>
					<div class="author-title">Written By: <?php 
            if (is_author()) {
                the_author();
            } else {
                the_author_posts_link();
            }
            ?>
					</div>
					<div class="author-title-line"></div>
					<p><?php 
            $description = get_the_author_meta('description');
            if ($description != '') {
                echo esc_attr($description);
            } else {
                _e('The author didnt add any Information to his profile yet', 'designinvento');
            }
            ?>
					</p>
				</div>
			</div><?php 
        }
    }
global $post;
$likeit = get_post_meta($post->ID, 'post_likeit', true);
$likecount = empty($likeit) ? '0' : $likeit;
$likedclass = 'likeit';
if (isset($_COOKIE['likeit-' . $post->ID])) {
    $likedclass .= ' liked';
}
$ids = get_metabox('gallery_image_ids');
$video_embed = wp_kses_post(get_metabox('format_video_embed'));
if ($ids != "false" && $ids != "") {
    $height = wp_kses_post(get_metabox('format_image_height'));
    portfolio_gallery(770, $height, $ids, false);
} elseif (!empty($video_embed)) {
    echo apply_filters("the_content", htmlspecialchars_decode($video_embed));
} else {
    $height = wp_kses_post(get_metabox('image_height'));
    portfolio_image_single(770, $height, false);
}
?>
		
        
        
			<h3 style="margin-top:30px;border-bottom:1px solid #f1f1f1;padding-bottom:20px;">PROJECT DESCRIPTION</h3>
            <?php 
//echo do_shortcode('[jw_item_title title="'.$project_desc.'"]');
echo wp_kses_post(get_the_content());
?>
			
           
            </div>   
			<div class="pull-right"> <?php 
예제 #9
0
?>
<div class="row">
    <div class="">
        <div class="<?php 
echo esc_attr($col);
echo " content-" . $klas;
?>
">

				<?php 
$feature = false;
$class = "single";
if (get_metabox("feature_show") == "true") {
    $feature = true;
} else {
    if (get_metabox("feature_show") != "false") {
        if (jw_option("feature_show")) {
            $feature = true;
        }
    }
}
$format_options = get_post_meta($post->ID, 'themewave_post_format', true);
$format = get_post_format() == "" ? "standard" : get_post_format();
if ($format == "status") {
    if (preg_match("#http://instagr(\\.am|am\\.com)/p/.*#i", $format_options["status_url"])) {
        $class .= " instagram-post";
    } elseif (preg_match("|https?://(www\\.)?twitter\\.com/(#!/)?@?([^/]*)|", $format_options["status_url"])) {
        $class .= " twitter-post";
    }
}
?>
예제 #10
0
 function shortcode_jw_partner($atts, $content)
 {
     $category_list = isset($atts['partner_category_list']) ? $atts['partner_category_list'] : '';
     //$arrow = '<div class="carousel-arrow jw-carrow">';
     //$arrow .= '<a class="carousel-prev" href="#"><i class="icon-angle-left"></i></a>';
     //$arrow .= '<a class="carousel-next" href="#"><i class="icon-angle-right"></i></a>';
     //$arrow .= '</div>';
     $output = '<div class="carousel-container">';
     $output .= '<div class="jw-carousel-partner list_carousel">';
     $output .= '<ul class="jw-carousel">';
     $query = array('post_type' => 'jw_partner', 'posts_per_page' => -1);
     $cats = explode(",", $category_list);
     $imgwidth = 270;
     if (!empty($cats[0])) {
         $query['tax_query'] = array(array('taxonomy' => 'cat_partner', 'terms' => $cats, 'field' => 'id'));
     }
     if (!empty($atts['order'])) {
         switch ($atts['order']) {
             case "date_asc":
                 $query['orderby'] = 'date';
                 $query['order'] = 'ASC';
                 break;
             case "title_asc":
                 $query['orderby'] = 'title';
                 $query['order'] = 'ASC';
                 break;
             case "title_desc":
                 $query['orderby'] = 'title';
                 $query['order'] = 'DESC';
                 break;
             case "random":
                 $query['orderby'] = 'rand';
                 break;
         }
     }
     // START - LOOP
     query_posts($query);
     while (have_posts()) {
         the_post();
         $imgheight = $atts['image_height'];
         $output .= '<li>';
         if (get_metabox('link') != '') {
             $output .= '<a href="' . to_url(get_metabox('link')) . '" target="_blank">';
             $output .= post_image_show($imgwidth, $imgheight);
             $output .= '</a>';
         } else {
             $output .= post_image_show($imgwidth, $imgheight);
         }
         $output .= '</li>';
     }
     wp_reset_query();
     // END   - LOOP
     $output .= '</ul>';
     $output .= '<div class="clearfix"></div>';
     //$output .= $arrow;
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
예제 #11
0
function designinvento_footer_scripts()
{
    $latitude = get_metabox("google_map_latitude");
    $longitude = get_metabox("google_map_logtitude");
    if (!empty($latitude) && !empty($longitude)) {
        ?>

<script type="text/javascript">
//<![CDATA[
		var infowindow=new google.maps.InfoWindow();var markersmap=[];var sidebar_htmlmap='';var marker_htmlmap=[];var to_htmlsmap=[];var from_htmlsmap=[];var iconmap=[];iconmap['httpwwwbradwedellcomphpgooglemapapidemosimgtriangle_iconpng']={};iconmap['httpwwwbradwedellcomphpgooglemapapidemosimgtriangle_iconpng'].image=new google.maps.MarkerImage('wp-content/themes/open-heart/assets/js/areamap.png',new google.maps.Size(183,125),new google.maps.Point(0,0),new google.maps.Point(60,100));var mapmap=null;function onLoadmap(){var mapObjmap=document.getElementById("map");if(mapObjmap!='undefined'&&mapObjmap!=null){var mapOptionsmap={scrollwheel:false,zoom:16,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DEFAULT}};mapOptionsmap.center=new google.maps.LatLng(<?php 
        echo esc_attr($latitude);
        ?>
,<?php 
        echo esc_attr($longitude);
        ?>
);var stylesmap=1;mapmap=new google.maps.Map(mapObjmap,mapOptionsmap);mapmap.setOptions({styles:stylesmap});var point=new google.maps.LatLng(<?php 
        echo esc_attr($latitude);
        ?>
,<?php 
        echo esc_attr($longitude);
        ?>
);markersmap.push(createMarker(mapmap,point,"Marker Title","Marker Description",iconmap['httpwwwbradwedellcomphpgooglemapapidemosimgtriangle_iconpng'].image,'',"sidebar_map",''));}}
		function createMarker(map,point,title,html,icon,icon_shadow,sidebar_id,openers){var marker_options={position:point,map:map,title:title};if(icon!=''){marker_options.icon=icon;}
		if(icon_shadow!=''){marker_options.shadow=icon_shadow;}
		var new_marker=new google.maps.Marker(marker_options);if(html!=''){google.maps.event.addListener(new_marker,'click',function(){infowindow.close();infowindow.setContent(html);infowindow.open(map,new_marker);});if(openers!=''&&!isEmpty(openers)){for(var i in openers){var opener=document.getElementById(openers[i]);opener.onclick=function(){infowindow.close();infowindow.setContent(html);infowindow.open(map,new_marker);return false;};}}
		if(sidebar_id!=''){var sidebar=document.getElementById(sidebar_id);if(sidebar!=null&&sidebar!=undefined&&title!=null&&title!=''){var newlink=document.createElement('a');newlink.onclick=function(){infowindow.open(map,new_marker);return false};newlink.innerHTML=title;sidebar.appendChild(newlink);}}}
		return new_marker;}
		//]]>
	window.onload=onLoadmap;
</script>

<?php 
    }
}
예제 #12
0
<?php

$align = "right";
$woo = false;
if (is_singular() && get_metabox("layout") == "left") {
    $align = "left";
}
?>
    <div class="span4 <?php 
echo esc_attr($align);
?>
-sidebar">
        <section id="sidebar">
            <?php 
if (!dynamic_sidebar(get_metabox("custom_sidebar") != "" ? get_metabox("custom_sidebar") : 'default-sidebar')) {
    print 'There is no widget. You should add your widgets into <strong>';
    print 'Default';
    print '</strong> sidebar area on <strong>Appearance => Widgets</strong> of your dashboard. <br/><br/>';
    ?>
                <aside id="archives" class="widget">
                    <h3 class="widget-title">
                        <?php 
    _e('Archives', 'designinvento');
    ?>
                    </h3>
                    <ul class="side-nav">
                        <?php 
    wp_get_archives(array('type' => 'monthly'));
    ?>
                    </ul>
                </aside>
예제 #13
0
            }
            if (get_metabox("bg_image") != "") {
                $bgimage = get_metabox("bg_image");
            }
        } else {
            $title = get_featuredtext();
        }
    }
}
$breadcrumb = false;
$class = 'span12';
if (get_metabox("breadcrumps") == "true") {
    $breadcrumb = true;
    $class = 'span12';
} else {
    if (get_metabox("breadcrumps") != "false") {
        if (jw_option("breadcrumps")) {
            $breadcrumb = true;
            $class = 'span12';
        }
    }
}
$ebreadcrumb = "";
//if($breadcrumb){ ob_start(); echo '<div class="span6">'; breadcrumbs(); echo '</div>'; $ebreadcrumb = ob_get_clean();}
$background = isset($bgimage) ? $bgimage : jw_option('title_bg_image');
if (isset($title)) {
    ?>
    <!-- Start Feature -->
    <section id="page-title"<?php 
    echo !empty($background) ? ' style="background-image: url(' . $background . ')"' : '';
    ?>