global $jw_options, $portAtts; if (have_posts()) { echo '<div class="row event-row" style="margin:0px;margin-bottom:40px;">'; echo '<div class="isotope-container">'; while (have_posts()) { the_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'; } $args = array('orderby' => 'none'); $class = isset($jw_options['column']) ? "span" . $jw_options['column'] : 'span4'; $height = !empty($jw_options['height']) ? $jw_options['height'] : jw_option('port_height'); $width = 370; if ($class == 'span6') { $width = 570; } elseif ($class == 'span4') { $width = 370; } $cats = wp_get_post_terms($post->ID, 'cat_event', $args); foreach ($cats as $catalog) { $class .= " category-" . $catalog->slug; } ?> <article class="span8 event-new" id="post-<?php the_ID(); ?> " <?php
<?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();
<!-- End Container --> <?php } ?> <!-- End Footer --> <?php if (jw_option('footer_text')) { ?> <div id="bottom"> <!-- Start Container --> <div class="container"> <div class="row"> <div class="span12"> <p class="copyright"><?php echo wp_kses_post(jw_option('copyright_text')); ?> </p> </div> </div> </div> <!-- End Container --> <?php } $gotop = __('Scroll to top', 'designinvento'); echo '<a id="scrollUp" title="' . $gotop . '"><i class=" icon-angle-up"></i></a>'; ?> </div> </footer>
$live_preview = jw_option('translate_livepreview') ? jw_option('translate_livepreview') : __('LIVE PREVIEW', 'designinvento'); echo wp_kses_post(get_the_content()); ?> <div class="cause-read"> <a href="<?php echo get_metabox('cause_donate'); ?> ">Donate Now</a> </div> </div> </div> <?php if (!jw_option('port_related')) { related_causes(); } ?> </div> <div class="pull-right"> <?php get_template_part("sidebar"); ?> </div> </div> </article>
function breadcrumbs() { /* === OPTIONS === */ $text['location'] = __('', 'designinvento'); // text for the 'Home' link $text['home'] = jw_option('br_home') ? jw_option('br_home') : __('Home', 'designinvento'); // text for the 'Home' link $text['category'] = jw_option('br_category') ? jw_option('br_category') . '" %s"' : __('Archive by Category "%s"', 'designinvento'); // text for a category page $text['search'] = jw_option('br_search') ? jw_option('br_search') . '" %s"' : __('Search Results for "%s" query', 'designinvento'); // text for a search results page $text['tag'] = jw_option('br_tag') ? jw_option('br_tag') . '" %s"' : __('Posts Tagged "%s"', 'designinvento'); // text for a tag page $text['author'] = jw_option('br_author') ? jw_option('br_author') . ' %s' : __('Articles Posted by %s', 'designinvento'); // text for an author page $text['404'] = jw_option('br_404') ? jw_option('br_404') : __('Error 404', 'designinvento'); // text for the 404 page $showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show $showOnHome = 1; // 1 - show breadcrumbs on the homepage, 0 - don't show $delimiter = '|'; // delimiter between crumbs $before = '<span class="current">'; // tag before the current crumb $after = '</span>'; // tag after the current crumb /* === END OF OPTIONS === */ global $post; $homeLink = home_url() . '/'; $linkBefore = '<span>'; $linkAfter = '</span>'; $linkAttr = ''; $link = $linkBefore . '<a' . $linkAttr . ' href="%1$s">%2$s</a>' . $linkAfter; echo '<div id="crumbs" class="jw-breadcrumb pull-right"><span class="statictext">You are Here</span>:' . $text['location']; if (is_home() || is_front_page()) { if ($showOnHome == 1) { echo '<span><a href="' . $homeLink . '">' . $text['home'] . '</a></span>'; } } else { echo sprintf($link, $homeLink, $text['home']) . $delimiter; if (is_category()) { $thisCat = get_category(get_query_var('cat'), false); if ($thisCat->parent != 0) { $cats = get_category_parents($thisCat->parent, TRUE, $delimiter); $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats); $cats = str_replace('</a>', '</a>' . $linkAfter, $cats); echo esc_attr($cats); } echo esc_attr($before) . sprintf($text['category'], single_cat_title('', false)) . $after; } elseif (is_search()) { echo esc_attr($before) . sprintf($text['search'], get_search_query()) . $after; } elseif (is_day()) { echo sprintf($link, get_year_link(get_the_time('Y')), get_the_time('Y')) . $delimiter; echo sprintf($link, get_month_link(get_the_time('Y'), get_the_time('m')), get_the_time('F')) . $delimiter; echo esc_attr($before) . get_the_time('d') . $after; } elseif (is_month()) { echo sprintf($link, get_year_link(get_the_time('Y')), get_the_time('Y')) . $delimiter; echo esc_attr($before) . get_the_time('F') . $after; } elseif (is_year()) { echo esc_attr($before) . get_the_time('Y') . $after; } elseif (is_single() && !is_attachment()) { if (get_post_type() != 'post') { $post_type = get_post_type_object(get_post_type()); $slug = $post_type->rewrite; printf($link, $homeLink . $slug['slug'] . '/', $post_type->labels->singular_name); if ($showCurrent == 1) { echo esc_attr($delimiter) . $before . get_the_title() . $after; } } else { $cat = get_the_category(); $cat = $cat[0]; $cats = get_category_parents($cat, TRUE, $delimiter); if ($showCurrent == 0) { $cats = preg_replace("#^(.+){$delimiter}\$#", "\$1", $cats); } $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats); $cats = str_replace('</a>', '</a>' . $linkAfter, $cats); echo esc_attr($cats); if ($showCurrent == 1) { echo esc_attr($before) . get_the_title() . $after; } } } elseif (!is_single() && !is_page() && get_post_type() != 'post' && !is_404()) { $post_type = get_post_type_object(get_post_type()); echo esc_attr($before) . $post_type->labels->singular_name . $after; } elseif (is_attachment()) { $parent = get_post($post->post_parent); $cat = get_the_category($parent->ID); $cat = $cat[0]; $cats = get_category_parents($cat, TRUE, $delimiter); $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats); $cats = str_replace('</a>', '</a>' . $linkAfter, $cats); echo esc_attr($cats); printf($link, get_permalink($parent), $parent->post_title); if ($showCurrent == 1) { echo esc_attr($delimiter) . esc_attr($before) . get_the_title() . $after; } } elseif (is_page() && !$post->post_parent) { if ($showCurrent == 1) { echo esc_attr($before) . get_the_title() . $after; } } elseif (is_page() && $post->post_parent) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = sprintf($link, get_permalink($page->ID), get_the_title($page->ID)); $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); for ($i = 0; $i < count($breadcrumbs); $i++) { echo esc_attr($breadcrumbs[$i]); if ($i != count($breadcrumbs) - 1) { echo esc_attr($delimiter); } } if ($showCurrent == 1) { echo esc_attr($delimiter) . esc_attr($before) . get_the_title() . $after; } } elseif (is_tag()) { echo esc_attr($before) . sprintf($text['tag'], single_tag_title('', false)) . $after; } elseif (is_author()) { global $author; $userdata = get_userdata($author); echo esc_attr($before) . sprintf($text['author'], $userdata->display_name) . $after; } elseif (is_404()) { echo esc_attr($before) . $text['404'] . $after; } if (get_query_var('paged')) { if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ' ('; } echo __('Page', 'designinvento') . ' ' . get_query_var('paged'); if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ')'; } } } echo '</div>'; }
function jw_social_share() { $post_link = get_permalink(); $output = '<div class="jw_post_sharebox clearfix">'; $output .= '<span>Share this story:</span>'; if (jw_option('facebook_share')) { $output .= '<div class="facebook_share"><iframe src="http' . (is_ssl() ? 's' : '') . '://www.facebook.com/plugins/like.php?href=' . urlencode($post_link) . '&layout=button_count&show_faces=false&width=70&action=like&font=verdana&colorscheme=light&height=21" scrolling="no" frameborder="0" allowTransparency="true"></iframe></div>'; } if (jw_option('googleplus_share')) { $output .= '<div class="googleplus_share"><g:plusone size="medium" href="' . $post_link . '"></g:plusone></div>'; } if (jw_option('twitter_share')) { $post_title = get_the_title(); $output .= '<div class="twitter_share"><a href="http' . (is_ssl() ? 's' : '') . '://twitter.com/share" class="twitter-share-button" data-url="' . $post_link . '" data-width="100" data-text="' . $post_title . '" data-count="horizontal"></a></div>'; } if (jw_option('pinterest_share')) { $post_image = post_image_show(0, 0, true); $output .= '<div class="pinterest_share"><a href="http' . (is_ssl() ? 's' : '') . '://pinterest.com/pin/create/button/?url=' . $post_link . '&media=' . $post_image . '" class="pin-it-button" count-layout="horizontal"></a></div>'; } if (jw_option('linkedin_share')) { $output .= '<div class="linkedin_share"><script type="in/share" data-url="' . $post_link . '" data-counter="right"></script></div>'; } $output .= '</div>'; return $output; }
$jw_address = jw_option('top_related'); if ($jw_address == 1) { ?> <div id="one-page-home"> <div class="jw-top-bar"> <div class="container"> <div class="row"> <div class="span6 top-bar-address"> <ul> <li class="span-color"><i class="icon-envelope-alt"></i><span > Email:</span> <?php echo wp_kses_post(jw_option('top_address')); ?> </li> <li class="span-color"><i class="icon-phone"></i> <span>Phone:</span><?php echo wp_kses_post(jw_option('top_phone')); ?> </li> </ul> </div> <div class="span6"> <ul class="top-icon pull-right"> <?php jw_social(); ?> </ul> </div> </div> </div> </div> </div>
function widget($args, $instance) { extract($args); $contact_title = apply_filters('widget_contact_title', empty($instance['contact_title']) ? '' : $instance['contact_title'], $instance); $contact_address = apply_filters('widget_contact_address', empty($instance['contact_address']) ? '' : $instance['contact_address'], $instance); $contact_address2 = apply_filters('widget_contact_address2', empty($instance['contact_address2']) ? '' : $instance['contact_address2'], $instance); $contact_phone = apply_filters('widget_contact_phone', empty($instance['contact_phone']) ? '' : $instance['contact_phone'], $instance); $contact_email = apply_filters('widget_contact_email', empty($instance['contact_email']) ? '' : $instance['contact_email'], $instance); $contact_email_url = apply_filters('widget_contact_email_url', empty($instance['contact_email_url']) ? '' : $instance['contact_email_url'], $instance); $contact_web = apply_filters('widget_contact_web', empty($instance['contact_web']) ? '' : $instance['contact_web'], $instance); $contact_web_url = apply_filters('widget_contact_web_url', empty($instance['contact_web_url']) ? '' : $instance['contact_web_url'], $instance); $contact_facebook = apply_filters('widget_contact_facebook', empty($instance['contact_facebook']) ? '' : $instance['contact_facebook'], $instance); $contact_facebook_url = apply_filters('widget_contact_facebook_url', empty($instance['contact_facebook_url']) ? '' : $instance['contact_facebook_url'], $instance); $class = apply_filters('widget_class', empty($instance['class']) ? '' : $instance['class'], $instance); echo wp_kses_post($before_widget); $contact_title = $contact_title; echo '<div class="footer-logo clearfix"><a href="/"><img src="' . jw_option('footer_logo') . '" alt="footer" /></a></div>'; if (!empty($contact_title)) { echo '<p class="contact-titl">' . $contact_title . '</p>'; } echo '<div class="contact-info-widget">'; echo '<ul>'; if (!empty($contact_address)) { echo '<li><i class="icon-map-marker"></i><div>' . $contact_address . '</div></li>'; } if (!empty($contact_address2)) { echo '<li><i class="icon-map-marker"></i><div>' . $contact_address2 . '</div></li>'; } if (!empty($contact_phone)) { echo '<li><i class="icon-phone"></i><div>' . $contact_phone . '</div></li>'; } if (!empty($contact_email)) { echo '<li><i class="icon-envelope-alt"></i><div><a target="_blank" href="' . $contact_email_url . '">' . $contact_email . '</a></div></li>'; } if (!empty($contact_web)) { echo '<li><i class="icon-globe"></i><div><a target="_blank" href="' . $contact_web_url . '">' . $contact_web . '</a></div></li>'; } if (!empty($contact_facebook)) { echo '<li><i class="icon-facebook"></i><div><a target="_blank" href="' . $contact_facebook_url . '">' . $contact_facebook . '</a></div></li>'; } echo '</ul>'; echo '</div>'; ?> <?php echo wp_kses_post($after_widget); }
<header id="header"<?php echo jw_option('menu_fixed') && !preg_match('/(alcatel|amoi|android|avantgo|blackberry|benq|cell|cricket|docomo|elaine|htc|iemobile|iphone|ipad|ipaq|ipod|j2me|java|midp|mini|mmp|mobi|motorola|nec-|nokia|palm|panasonic|philips|phone|sagem|sharp|sie-|smartphone|sony|symbian|t-mobile|telus|up\\.browser|up\\.link|vodafone|wap|webos|wireless|xda|xoom|zte)/i', $_SERVER['HTTP_USER_AGENT']) ? ' class="affix topheader"' : ''; ?> > <?php echo jw_option('logo_bg') ? '<div class="jw-logo-bg"></div>' : ''; ?> <div class="container"> <div class="row"> <div class="span3"> <?php theme_logo(); ?> </div> <div class="span9"> <nav class="menu-container visible-desktop clearfix"> <?php theme_menu(); ?> </nav> </div> <div class="show-mobile-menu hidden-desktop clearfix"> <div class="mobile-menu-text"><?php _e('Menu', 'designinvento'); ?> </div> <div class="mobile-menu-icon"> <span></span><span></span><span></span><span></span>
function facebookOpenGraphMeta() { global $post; if (!empty($post->ID)) { $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); $image = isset($image[0]) ? $image[0] : ''; if (!$image) { $image = jw_option("theme_logo"); } if (is_single()) { ?> <meta property="og:url" content="<?php the_permalink(); ?> "/> <meta property="og:title" content="<?php single_post_title(''); ?> " /> <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt()); ?> " /> <meta property="og:type" content="article" /> <meta property="og:image" content="<?php echo esc_url($image); ?> " /><?php } else { if (!is_page() && jw_option("theme_logo") !== '') { $image = jw_option("theme_logo"); } ?> <meta property="og:site_name" content="<?php bloginfo('name'); ?> " /> <meta property="og:description" content="<?php bloginfo('description'); ?> " /> <meta property="og:type" content="website" /> <meta property="og:image" content="<?php echo esc_url($image); ?> " /> <?php } } }
</div> </div><?php } ?> </div><?php $output = ob_get_clean(); return $output; } } if (!function_exists('pbSection')) { function pbSection() { add_meta_box('cmeta_pagebuilder', __('Page Builder', 'cmeta_pagebuilder_td'), 'pbSectionBox', 'page', 'normal', 'high'); } } if (jw_option('pagebuilder')) { add_action('admin_print_styles', 'pbSection', 1); } function pbGetRowTools($rowNewData = array()) { global $jw_pbRowSettings, $itemsTumb; $rowNewData['row_layout'] = isset($rowNewData['row_layout']) ? $rowNewData['row_layout'] : 'full'; $output = '<div class="list clearfix">'; $output .= '<div class="add-element">'; $output .= '<a href="#" class="elements-dropdown clearfix">Add Element</a>'; $output .= '<div class="pagebuilder-elements-container" class="clearfix">' . $itemsTumb . '</div>'; $output .= '</div>'; $output .= '<div class="change-layout">'; $output .= '<a href="#" class="sidebar left-sidebar tooltip' . ($rowNewData['row_layout'] === 'left' ? ' active' : '') . '" data-value="1-4,3-4,0-0" data-input="left" ><span>Left Sidebar</span></a>'; $output .= '<a href="#" class="sidebar full tooltip' . ($rowNewData['row_layout'] === 'full' ? ' active' : '') . '" data-value="0-0,1-1,0-0" data-input="full" ><span>Full Width</span></a>'; $output .= '<a href="#" class="sidebar right-sidebar tooltip' . ($rowNewData['row_layout'] === 'right' ? ' active' : '') . '" data-value="0-0,3-4,1-4" data-input="right"><span>Right Sidebar</span></a>';
function theme_option_styles() { function hex2rgb($hex) { $hex = str_replace("#", "", $hex); if (strlen($hex) == 3) { $r = hexdec(substr($hex, 0, 1) . substr($hex, 0, 1)); $g = hexdec(substr($hex, 1, 1) . substr($hex, 1, 1)); $b = hexdec(substr($hex, 2, 1) . substr($hex, 2, 1)); } else { $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); } $rgb = array($r, $g, $b); return implode(",", $rgb); // returns the rgb values separated by commas //return $rgb; // returns an array with the rgb values } ?> <!-- Custom CSS --> <style> body { font-family: <?php echo jw_option('body_text_font', 'face'); ?> , Arial, Helvetica, sans-serif; font-size: <?php echo jw_option('body_text_font', 'size'); ?> ; font-weight: <?php echo jw_option('body_text_font', 'style'); ?> ; color: <?php echo jw_option('body_text_font', 'color'); ?> ; } h1,h2,h3,h4,h5,h6,.team-member h3, .team-member h3 a,.wpcf7-form p {font-family: <?php echo jw_option('heading_font'); ?> ;} h1{ font-size: <?php echo jw_option('h1_spec_font', 'size'); ?> ; color: <?php echo jw_option('h1_spec_font', 'color'); ?> ; } h2{ font-size: <?php echo jw_option('h2_spec_font', 'size'); ?> ; color: <?php echo jw_option('h2_spec_font', 'color'); ?> ; } h3{ font-size: <?php echo jw_option('h3_spec_font', 'size'); ?> ; color: <?php echo jw_option('h3_spec_font', 'color'); ?> ; } h4{ font-size: <?php echo jw_option('h4_spec_font', 'size'); ?> ; color: <?php echo jw_option('h4_spec_font', 'color'); ?> ; } h5{ font-size: <?php echo jw_option('h5_spec_font', 'size'); ?> ; color: <?php echo jw_option('h5_spec_font', 'color'); ?> ; } h6{ font-size: <?php echo jw_option('h6_spec_font', 'size'); ?> ; color: <?php echo jw_option('h6_spec_font', 'color'); ?> ; } .jw-milestones-count>.jw-milestones-show>ul>li{ font-size: 60px; font-family: <?php echo jw_option('heading_font'); ?> ; } a,.jw-callout h1 a,#sidebar ul.menu .current_page_item a,.sf-menu > li.current_page_item > a{ color: <?php echo jw_option('link_color'); ?> ; } a:hover, a:focus,.loop-meta a:hover,article .loop-content a.more-link:hover{ color: <?php echo jw_option('link_hover_color'); ?> ; } h2 .word2,h1 .word3,h1 .word4,.container_title p .word9,.container_title p .word10,.container_title p .word11,.container_title p .word12,.jw-element p .word30,.jw-element p .word31,.jw-element p .word32,.jw-element p .word33,.jw-element p .word75,.jw-element p .word76,.jw-element p .word77, .jw-service-content p .word10, .jw-service-content p .word11{color:<?php echo jw_option('primary_color'); ?> ;} /* Top Bar ------------------------------------------------------------------------ */ .jw-top-bar{ background: <?php echo jw_option('top_bar_bg'); ?> ;} /* Header ------------------------------------------------------------------------ */ #header { background-color: <?php echo jw_option('header_background'); ?> ; } /* Navigation ------------------------------------------------------------------------ */ #header.stuck{ background:<?php echo "rgba(" . hex2rgb(jw_option('header_background')) . ",.9)"; ?> ; } ul.sf-menu > li a{ font-family: <?php echo jw_option('menu_font', 'face'); ?> , Arial, Helvetica, sans-serif; font-size: <?php echo jw_option('menu_font', 'size'); ?> ; font-weight: <?php echo jw_option('menu_font', 'style'); ?> ; color: <?php echo jw_option('menu_link_normal_color'); ?> ; } ul.sf-menu li ul li.current-menu-item a,ul.sf-menu li ul li a { color: <?php echo jw_option('submenu_link'); ?> ; } ul.sf-menu li ul li a:hover,ul.sf-menu li ul li.current-menu-item a,ul.sf-menu li ul li.current_page_item a { color: <?php echo jw_option('primary_color'); ?> ; } ul.sf-menu > li:hover > a{ color: <?php echo jw_option('menu_hover'); ?> ; } /* Main ------------------------------------------------------------------------ */ #main { background: <?php echo jw_option('body_background'); ?> ; } /* Services------------------------------------------------------------------------*/ .jw-service-content p a:hover, .jw-infinite-scroll a:hover{ background-color:<?php echo jw_option('primary_color'); ?> !important; color:#fff !important; transition: all 0.4s ease-out 0.1s; } .jw-service-content p a, .jwhistory .yearcat,.btn-slider{ border-color:<?php echo jw_option('primary_color'); ?> ; color:<?php echo jw_option('primary_color'); ?> !important; } .jw-servicebox .jw-service-icon{ border-color:<?php echo jw_option('primary_color'); ?> ; color:<?php echo jw_option('primary_color'); ?> ; } .jw-infinite-scroll a{ border:1px solid <?php echo jw_option('primary_color'); ?> ; color:<?php echo jw_option('primary_color'); ?> ; margin-top:30px } .jw-servicebox:hover{ border-color:<?php echo jw_option('primary_color'); ?> ; } .percentageinner{ background: none repeat scroll 0 0 <?php echo jw_option('primary_color'); ?> ; border-radius: 68%; height: 60%; left: 20%; line-height: 330%; color:#fff; position: absolute; top: 20%; width: 60%; } .pl-g,div.progressBar{ background: <?php echo jw_option('primary_color'); ?> ; } /* History ------------------------------------------------------------------------ */ .btn-slider:hover,.jwhistory li .history-content:hover, .jwhistory li .history-content:hover .angle-box-history, .historydividerbox { background:<?php echo jw_option('primary_color'); ?> !important; color:#fff !important; } /* Divider ------------------------------------------------------------------------ */ .member-title .bottomdivider, .portfolio-content .bottomdivider{ width: 50px; height: 1px; margin: 0px auto; border-bottom: 1px solid <?php echo jw_option('primary_color'); ?> ; margin-top:10px; } /* Icons ------------------------------------------------------------------------ */ #page-title span, .portfolio-plus-a i,.team-member .member-title span,.auther-name span,.top-bar-address .span-color{ color:<?php echo jw_option('primary_color'); ?> ; } .image-overlay:hover { background:<?php echo "rgba(" . hex2rgb(jw_option('primary_color')) . ",.3)"; ?> ; } .portfolio-plus, .jwhistory .yearcat p{ color:<?php echo jw_option('primary_color'); ?> ; } ul.loop-meta li a,ul.loop-meta li i, i.cm, .pagination-container .alignright:hover .npost, .pagination-container .alignleft:hover .npost,.cinfo i{ color:<?php echo jw_option('primary_color'); ?> ; } input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus { border: 1px solid <?php echo jw_option('primary_color'); ?> ; } /* Features ------------------------------------------------------------------------ */ .jw-features .jw-service-box:hover i{ transition: all 0.2s ease-out 0.1s; background:<?php echo jw_option('primary_color'); ?> !important; color:#fff !important; } /* blog ------------------------------------------------------------------------ */ .loop-meta span.date, .map-header-active,.tagcloud a:hover,#footer .tagcloud a:hover{ background:<?php echo jw_option('primary_color'); ?> !important; } .bx-wrapper .bx-pager.bx-default-pager a:hover,.bx-wrapper .bx-pager.bx-default-pager a.active { background:<?php echo jw_option('primary_color'); ?> ; border:1px solid <?php echo jw_option('primary_color'); ?> ; } .loop-block .read-more-container a{ } button:hover,input[type="reset"]:hover,input[type="button"]:hover,.loop-block .loop-divider{ background:<?php echo jw_option('primary_color'); ?> ; border:none; } .pagination-container li a:hover{ background:<?php echo jw_option('primary_color'); ?> !important; color:#fff !important; border:none !important; } .events .span6 .loop-image img{ border:2px solid <?php echo jw_option('primary_color'); ?> ; } #footer .tagcloud a:hover, a.live-preview:hover,input[type="submit"]:hover{ border:1px solid <?php echo jw_option('primary_color'); ?> ; background:<?php echo jw_option('primary_color'); ?> !important; } .progress .progress-bar{ background:<?php echo jw_option('primary_color'); ?> !important; } .jw-service-box .jw-service-icon i{ border:1px solid <?php echo jw_option('primary_color'); ?> !important; }.nav-style-2 ul li a:hover{ border:2px solid <?php echo jw_option('primary_color'); ?> !important; }.left-service:hover .jw-service-icon i{ border:0px solid <?php echo jw_option('primary_color'); ?> !important; } /* portfolio ------------------------------------------------------------------------ */ .read-more-container:hover .more-link,.jw-service-box .jw-service-icon i,.jw-milestones-count > .jw-milestones-show,.portfolio-content .portfolio-btn:hover,.event-link a:hover,.top-icon a:hover,.all-events .icon-long-arrow-right,.jw-filter ul li a:hover, .jw-filter ul li a.selected,.link:hover a i,.nav-style-2 ul.sf-menu > li a:hover{ color:<?php echo jw_option('primary_color'); ?> !important; } /* Pricing ------------------------------------------------------------------------ */ .jw-pricing-recommended-bottom, .jw-blog .isotope-item .image-overlay .loop-date { background:<?php echo jw_option('primary_color'); ?> ; transition: all 0.2s ease-out 0.1s; color:#fff; } .jw-pricing-bottom ul li i, .jw-pricing-recommended, a.live-preview:hover,.jw-callout:hover .btn,.blog-carsolmeta .one-auther i,.blog-carsolmeta .one-auther span i,.comment-count i,.callout-btn .btn-large,.comment-meta span.comment-replay-link,.comment-meta span.comment-replay-link a,.blog-carsolmeta .one-auther span a:hover,.jw-twitter .jtwt li span a{ color:<?php echo jw_option('primary_color'); ?> !important; } .text_btn-text:hover .btn, .jw-callout:hover .btn,.event-link a:hover,.jw-social-icon a:hover,#bottom .jw-social-icon:hover a,.nav-style-3 ul li a:hover,.nav-style-4 ul li a:hover{ border-color:<?php echo jw_option('primary_color'); ?> !important; } /* Footer ------------------------------------------------------------------------ */ #footer{ background-color: <?php echo jw_option('footer_background'); ?> ;background-image: url('<?php echo jw_option('footer_backgroundimg'); ?> ');background-repeat:repeat} #footer{ color: <?php echo jw_option('footer_text_color'); ?> ; } #footer a:hover, #footer .jw-recent-posts-widget h4 a:hover{ color: <?php echo jw_option('footer_link_hover_color'); ?> ; } #sidebar a{ color: <?php echo jw_option('body_text_font', 'color'); ?> } #sidebar li:hover a,.events .span6:hover .event-title h3,.carousel-arrow a.carousel-prev:hover i, .carousel-arrow a.carousel-next:hover i{ color:<?php echo jw_option('primary_color'); ?> ;} #footer h3.widget-title { font-family: <?php echo jw_option('footer_widgets_title', 'face'); ?> , Arial, Helvetica, sans-serif; font-size: <?php echo jw_option('footer_widgets_title', 'size'); ?> ; font-weight: <?php echo jw_option('footer_widgets_title', 'style'); ?> ; color: <?php echo jw_option('footer_widgets_title', 'color'); ?> ; } /* General Color ------------------------------------------------------------------------ */ ::selection{ background: <?php echo jw_option('primary_color'); ?> ; } ::-moz-selection{ background: <?php echo jw_option('primary_color'); ?> ; } .sub-title{color: <?php echo jw_option('body_text_font', 'color'); ?> ;} .ui-slider-handle,.team-member-overlay,.jw-service-box:hover .jw-service-icon i,.text_btn-text:hover .btn,.callout-btn a:hover,.jw-blog .read-more-container a:hover,.member-social .jw-social-icon a:hover,.loop-block .read-more-container a:hover,#sidebar aside.widget ul.jtwt li:before,#footer aside.widget ul.jtwt li:before,ul.jtwt li:before{ background: <?php echo jw_option('primary_color'); ?> !important; } .content-meta,.comment-block .comment span.comment-splash,.jw-pagination.pagination ul>li>a.selected,.jw-404-search-container,.woocommerce span.onsale, .woocommerce-page span.onsale, .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt{ background: <?php echo jw_option('primary_color'); ?> ; } .team-member ul.jw-social-icon li a:hover,ul.jw-social-icon li a:hover,.cause-read a:hover,.gri figure,.even-content .span1,.image-content .span1,.error4button a:hover{ background-color: <?php echo jw_option('primary_color'); ?> ; } .featured,.jw-dropcap,.progress .bar,.pagination ul>li>a.current,.carousel-content .post-format,span.post-format,.nav-tabs>li>a, .tabs-below>.nav-tabs>li>a,blockquote:before,.text_btn-text-line,.blog-main-loop .more:hover,#bottom,#page-title,.pagination ul>li>a.current, .pagination ul>li>span.current, .pagination ul>li>a:hover,.fancybox-skin{ background-color: <?php echo jw_option('primary_color'); ?> ; } footer#footer .jw-recent-posts-widget .meta a,.highlight,.jw-top-bar-info a,#bottom a,.jw-title-container h3 span,#sidebar ul.menu li.current_page_item a,ul.sf-menu > li.current_page_ancestor > a,ul.sf-menu > li.current-menu-ancestor >a,h3.error404 span,.total strong,.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price,.goes{ color: <?php echo jw_option('primary_color'); ?> ; } .jw-top-service-text div:last-child,h2.loop-title a:hover,#sidebar a:hover,.pagination ul>li>a.current, .pagination ul>li>span.current, .pagination ul>li>a:hover,.list_carousel li .carousel-content h3:hover a,h2.portfolio-title a:hover,.image-content h5,.event-title p i,.event-read a:hover,.event-new:hover .event-title h3 a{ color: <?php echo jw_option('primary_color'); ?> ; } .jw-testimonials .testimonial-author.active,.pagination ul>li>a.current, .pagination ul>li>span.current,.team-member .loop-image,ul.sf-menu > li.current-menu-item,.pagination ul>li>a:hover,ul.sf-menu > li.current_page_ancestor,.cause-read a:hover,.jw-blog .read-more-container a:hover,.blog-main-loop .more:hover,.member-social .jw-social-icon a:hover,.pagination ul>li>a.current, .pagination ul>li>span.current, .pagination ul>li>a:hover,.event-new .loop-image img,.error4button a:hover,.testimonial-author{ border-color: <?php echo jw_option('primary_color'); ?> ; } ul.sf-menu > li.current-page-item,.jw-testimonials .carousel-arrow a.carousel-prev:hover, .jw-testimonials .carousel-arrow a.carousel-next:hover,ul.sf-menu > li a:hover{ background:<?php echo jw_option('primary_color'); ?> ; } <?php $TeamHoverBg = '#fff'; ?> @media (min-width: 768px) and (max-width: 979px) { header#header,header#header.stuck{ background: <?php echo jw_option('logo_bg') ? jw_option('primary_color') : '#fff'; ?> ; } } @media (min-width: 768px) and (max-width: 979px) { .mobile-menu-icon span{ background: <?php echo jw_option('logo_bg') ? '#fff' : jw_option('primary_color'); ?> ; } } <?php echo jw_option('custom_css'); ?> </style> <?php }
$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 . ')"' : ''; ?> > <!-- Start Container --> <div class="container"> <div class="row"> <div class="<?php echo esc_attr($class); ?> ">
*/ get_header(); ?> <div class="container all-causes-page cause-right-sidebar"> <div class="span8 cause-right-sidebar"> <section class="content causes-page"> <?php global $jw_options, $jw_isArchive, $paged; $block = isset($jw_options['block']) ? intval($jw_options['block']) : 1; $layout = !empty($jw_options['layout']) ? $jw_options['layout'] : 'standard'; if (!empty($jw_options['more_text'])) { $readMore = $jw_options['more_text']; } else { $readMore = jw_option('translate_readmore') ? jw_option('translate_readmore') : __('Read More', 'designinvento'); } if ($jw_isArchive || is_tag() || is_search()) { $nofeatured = true; $layout = 'standard'; } //$the_query = new WP_Query('post_type=jw_cause&posts_per_page=8'); $query = array('post_type' => 'jw_cause', 'posts_per_page' => 6, 'paged' => $paged); query_posts($query); if (have_posts()) { $width = 770; $class = ''; if ($layout != 'standard') { $class = "span" . $layout; $width = 270; if ($class == 'span6') {
function shortcode_jw_sh_column_item($atts, $content) { extract(shortcode_atts(array('column_size' => '1 / 3', 'item_animation' => 'none', 'item_animation_offset' => 'bottom-in-view'), $atts)); if (isMobile() && !jw_option('moblile_animation')) { $atts['item_animation'] = 'none'; } $class = ''; $animated = false; if (isset($atts['item_animation']) && $atts['item_animation'] !== 'none') { $animated = true; $class .= ' jw-animate-gen'; $atts['item_animation_offset'] = isset($atts['item_animation_offset']) ? str_replace(' ', '', $atts['item_animation_offset']) : ''; $atts['item_animation_offset'] = empty($atts['item_animation_offset']) ? 'bottom-in-view' : $atts['item_animation_offset']; } $output = '<div class="' . pbTextToFoundation($column_size) . ' ' . $class . '"' . ($animated ? ' data-gen="' . $atts['item_animation'] . '" data-gen-offset="' . $atts['item_animation_offset'] . '" style="opacity:0;"' : '') . '>'; $output .= do_shortcode($content); $output .= '</div>'; return $output; }
} ?> <div class="content-block"> <div class="loop-format"> <span class="post-format <?php echo esc_attr($format); ?> "></span> </div> <h1 class="single-title single-post-title"><?php echo wp_kses_post(get_the_title()); ?> </h1> <?php if (jw_option('meta_on_single')) { ?> <div class="meta-containers"> <div class="carousel-meta clearfix blog-carsolmeta"> <div class="one-auther"><?php the_time(' F jS, Y'); ?> <span style="margin-left:10px;">by <?php the_author(); ?> </div> <div class="comment-count"><?php echo comment_count_isotop(); ?> </div> </div>
function event_register() { $slug = jw_option('translate_event') ? jw_option('translate_event') : 'event'; $labels = array('name' => $slug, 'singular_name' => $slug, 'add_new' => __('Add New', 'designinvento'), 'add_new_item' => __('Add New event', 'designinvento'), 'edit_item' => __('Edit event', 'designinvento'), 'new_item' => __('New event', 'designinvento'), 'all_items' => __('All event', 'designinvento'), 'view_item' => __('View event', 'designinvento'), 'search_items' => __('Search event', 'designinvento'), 'not_found' => __('No event found', 'designinvento'), 'not_found_in_trash' => __('No event found in Trash', 'designinvento'), 'menu_name' => __('event', 'designinvento')); $args = array('labels' => $labels, 'public' => true, 'has_archive' => false, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'hierarchical' => false, 'menu_icon' => THEME_DIR . '/inc/assets/images/portfolio.png', 'rewrite' => array('slug' => $slug), 'supports' => array('title', 'editor', 'page-attributes', 'thumbnail', 'revisions')); register_post_type('jw_event', $args); flush_rewrite_rules(); }