function vw_setup_rtl() { $site_enable_rtl = vw_get_option('site_enable_rtl'); if ($site_enable_rtl) { wp_enqueue_style('vwcss-bootstrap-rtl', get_template_directory_uri() . '/css/bootstrap-rtl.css', array('vwcss-theme'), VW_THEME_VERSION); wp_enqueue_style('vwcss-rtl', get_template_directory_uri() . '/css/rtl.css', array('vwcss-theme'), VW_THEME_VERSION); add_filter('body_class', 'vw_body_class_rtl'); } }
function vw_custom_post_gallery($null, $attr = array()) { global $post, $wp_locale; static $instance = 0; $instance++; extract(shortcode_atts(array('order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => 'figure', 'captiontag' => 'figcaption', 'columns' => 3, 'size' => 'vw_medium', 'include' => '', 'exclude' => ''), $attr)); $id = intval($id); if ('RAND' == $order) { $orderby = 'none'; } if (!empty($include)) { $include = preg_replace('/[^0-9,]+/', '', $include); $_attachments = get_posts(array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby)); $attachments = array(); foreach ($_attachments as $key => $val) { $attachments[$val->ID] = $_attachments[$key]; } } elseif (!empty($exclude)) { $exclude = preg_replace('/[^0-9,]+/', '', $exclude); $attachments = get_children(array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby)); } else { $attachments = get_children(array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby)); } if (empty($attachments)) { return ''; } if (is_feed()) { $output = "\n"; foreach ($attachments as $att_id => $attachment) { $output .= wp_get_attachment_link($att_id, $size, true) . "\n"; } return $output; } $itemtag = tag_escape($itemtag); $captiontag = tag_escape($captiontag); $float = is_rtl() ? 'right' : 'left'; $gallery_layout = vw_get_option('blog_custom_gallery_layout', '213'); $output = "<div id='gallery-{$instance}' class='custom-gallery galleryid-{$id} clearfix' data-gallery-layout='{$gallery_layout}'>"; if ($itemtag != '' && $captiontag != '') { $i = 1; foreach ($attachments as $id => $attachment) { $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, false, false); $link = str_replace('<a', '<a title="' . $attachment->post_excerpt . '" ', $link); $output .= "<{$itemtag} class='gallery-item'>"; $output .= "{$link}"; if ($captiontag && trim($attachment->post_excerpt)) { $output .= "\r\n\t\t\t\t\t<{$captiontag} class='gallery-caption'>\r\n\t\t\t\t\t" . wptexturize($attachment->post_excerpt) . "\r\n\t\t\t\t\t</{$captiontag}>"; } $output .= "</{$itemtag}>"; $i++; } } $output .= "</div>\n"; return $output; }
function vw_enqueue_front_assets() { wp_enqueue_script('vwjs-main', get_template_directory_uri() . '/js/main.js', array('jquery', 'jquery-effects-fade', 'vwjs-fitvids', 'vwjs-isotope', 'vwjs-flexslider', 'vwjs-swipebox', 'vwjs-asset'), VW_THEME_VERSION, true); if (vw_get_option('icon_elusive')) { wp_enqueue_style('vwcss-icon-elusive'); } if (vw_get_option('icon_awesome')) { wp_enqueue_style('vwcss-icon-awesome'); } if (vw_get_option('icon_iconic')) { wp_enqueue_style('vwcss-icon-iconic'); } if (vw_get_option('icon_typicons')) { wp_enqueue_style('vwcss-icon-typicons'); } wp_enqueue_style('vwcss-theme', get_template_directory_uri() . '/css/SdTV.css', array('vwcss-flexslider', 'vwcss-icon-social', 'vwcss-icon-entypo', 'vwcss-icon-symbol', 'vwcss-swipebox', 'vwcss-bootstrap'), VW_THEME_VERSION); }
function vw_render_default_flexslider() { ?> $( '.flexslider' ).flexslider({ animation: "<?php echo vw_get_option('flexslider_animation'); ?> ", easing: "<?php echo vw_get_option('flexslider_easing'); ?> ", slideshow: <?php echo vw_get_option('flexslider_slideshow') ? 'true' : 'false'; ?> , slideshowSpeed: <?php echo vw_get_option('flexslider_slideshowspeed'); ?> , animationSpeed: <?php echo vw_get_option('flexslider_animationspeed'); ?> , randomize: <?php echo vw_get_option('flexslider_randomize') ? 'true' : 'false'; ?> , pauseOnHover: <?php echo (bool) vw_get_option('flexslider_pauseonhover') ? 'true' : 'false'; ?> , prevText: '', nextText: '', start: function( slider ) { slider.css( 'opacity', '1' ); slider.find( '.post-thumbnail-wrapper' ).css( 'height', '500px' ).imgLiquid().fadeIn(250); }, }); <?php }
?> <div id="page-wrapper" class="container"> <div class="row"> <div id="page-content" class="col-sm-7 col-md-8"> <?php if (have_posts()) { ?> <?php get_template_part('templates/page-title'); ?> <?php $blog_layout = vw_get_option('blog_layout'); ?> <?php if ('classic' == $blog_layout) { ?> <div class="row archive-posts post-box-list"> <?php while (have_posts()) { the_post(); ?> <div class="col-sm-12 post-box-wrapper"> <?php get_template_part('templates/post-box/classic', get_post_format()); ?>
<footer id="footer"> <?php get_sidebar('footer'); ?> <div class="copyright"> <div class="container"> <div class="row"> <div class="col-sm-11 copyright-left"><?php echo vw_get_option('copyright_text'); ?> </div> <div class="col-sm-1 copyright-right"> <a class="back-to-top" href="#top">↑ <?php _e('Back to top', 'envirra'); ?> </a> </div> </div> </div> </div> </footer> </div> <!-- Off canvas body inner --> <?php wp_footer(); ?> </body> </html>
function vw_options_saved() { if (function_exists('icl_register_string')) { $copyright_text = vw_get_option('copyright_text'); icl_register_string(VW_THEME_NAME . ' Copyright', strtolower(VW_THEME_NAME . '_copyright'), $copyright_text); } }
<a class="social-digg" href="http://digg.com/submit?phase=2&url=<?php echo urlencode(get_permalink()); ?> &bodytext=&tags=&title=<?php echo esc_attr(the_title('', '', false)); ?> " target="_blank" title="<?php esc_attr_e('Share on Digg', 'envirra'); ?> "><i class="icon-social-digg"></i></a> <?php } ?> <?php if (vw_get_option('sharebox_email')) { ?> <a class="social-email" href="mailto:?subject=<?php echo esc_attr(the_title('', '', false)); ?> &body=<?php echo urlencode(get_permalink()); ?> " title="<?php esc_attr_e('Share on E-Mail', 'envirra'); ?> " target="_blank"><i class="icon-social-email"></i></a> <?php } ?> </div>
<div class="sidebar-inner"> <?php if (is_page() || function_exists('is_woocommerce') && is_woocommerce()) { /* Page Sidebar */ if (function_exists('is_woocommerce') && is_woocommerce()) { $page_id = woocommerce_get_page_id('shop'); } else { $page_id = get_the_id(); } $page_sidebar = get_post_meta($page_id, 'vw_page_sidebar', true); dynamic_sidebar($page_sidebar); } else { /* Blog Sidebar */ $blog_sidebar = vw_get_option('blog_sidebar'); dynamic_sidebar($blog_sidebar); } ?> </div>
function vw_render_custom_css() { global $vw_presso; ?> <!-- Theme's Custom CSS --> <style type="text/css"> ::selection { color: white; background-color: <?php echo $vw_presso['color_primary']; ?> ; } h1 { line-height: 1.1; } h2 { line-height: 1.2; } h3, h4, h5, h6 { line-height: 1.4; } .header-font, woocommerce div.product .woocommerce-tabs ul.tabs li, .woocommerce-page div.product .woocommerce-tabs ul.tabs li, .woocommerce #content div.product .woocommerce-tabs ul.tabs li, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li { font-family: <?php echo $vw_presso['h1']['font-family']; ?> ; font-weight: <?php echo $vw_presso['h1']['font-weight']; ?> ; } .header-font-color { color: <?php echo $vw_presso['h1']['color']; ?> ; } .wp-caption p.wp-caption-text { color: <?php echo $vw_presso['h1']['color']; ?> ; border-bottom-color: <?php echo $vw_presso['h1']['color']; ?> ; } .body-font { font-family: <?php echo $vw_presso['body']['font-family']; ?> ; font-weight: <?php echo $vw_presso['body']['font-weight']; ?> ; } /* Only header font, No font-weight */ .mobile-nav, .top-nav, .comment .author > span, .pingback .author > span, .label, .tagcloud a, .woocommerce .product_meta .post-tags a, .bbp-topic-tags a, .woocommerce div.product span.price, .woocommerce-page div.product span.price, .woocommerce #content div.product span.price, .woocommerce-page #content div.product span.price, .woocommerce div.product p.price, .woocommerce-page div.product p.price, .woocommerce #content div.product p.price, .woocommerce-page #content div.product p.price, .main-nav .menu-link { font-family: <?php echo $vw_presso['h1']['font-family']; ?> ; } /* Primary Color */ .primary-bg, .label, .tagcloud a, .woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce-page nav.woocommerce-pagination ul li span.current, .woocommerce #content nav.woocommerce-pagination ul li span.current, .woocommerce-page #content nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce-page nav.woocommerce-pagination ul li a:hover, .woocommerce #content nav.woocommerce-pagination ul li a:hover, .woocommerce-page #content nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce-page nav.woocommerce-pagination ul li a:focus, .woocommerce #content nav.woocommerce-pagination ul li a:focus, .woocommerce-page #content nav.woocommerce-pagination ul li a:focus, #pagination > span { background-color: <?php echo $vw_presso['color_primary']; ?> ; } a, .social-share a:hover, .site-social-icons a:hover, .bbp-topic-header a:hover, .bbp-forum-header a:hover, .bbp-reply-header a:hover { color: <?php echo $vw_presso['color_primary']; ?> ; } .button-primary { color: <?php echo $vw_presso['color_primary']; ?> ; border-color: <?php echo $vw_presso['color_primary']; ?> ; } .primary-border { border-color: <?php echo $vw_presso['color_primary']; ?> ; } /* Top-bar Colors */ .top-bar { background-color: <?php echo $vw_presso['color_topbar_bg']; ?> ; color: <?php echo $vw_presso['color_topbar_font']; ?> ; } #open-mobile-nav, .top-nav a, .top-bar-right > a { color: <?php echo $vw_presso['color_topbar_font']; ?> ; } #open-mobile-nav:hover, .top-nav a:hover, .top-bar-right > a:hover { background-color: <?php echo $vw_presso['color_topbar_highlight']; ?> ; color: <?php echo $vw_presso['color_topbar_highlight_font']; ?> ; } .top-nav .menu-item:hover { background-color: <?php echo $vw_presso['color_topbar_highlight']; ?> ; } .top-nav .menu-item:hover > a { color: <?php echo $vw_presso['color_topbar_highlight_font']; ?> ; } /* Header Colors */ .main-bar { background-color: <?php echo $vw_presso['color_header_bg']; ?> ; color: <?php echo $vw_presso['color_header_font']; ?> ; } /* Main Navigation Colors */ .main-nav-bar { background-color: <?php echo $vw_presso['color_nav_bg']; ?> ; } .main-nav-bar, .main-nav > .menu-item > a { color: <?php echo $vw_presso['color_nav_font']; ?> ; } .main-nav .menu-item:hover > .menu-link, .main-nav > .current-menu-ancestor > a, .main-nav > .current-menu-item > a { background-color: <?php echo $vw_presso['color_nav_highlight']; ?> ; color: <?php echo $vw_presso['color_nav_highlight_font']; ?> ; } /* Widgets */ .widget_vw_widget_social_subscription .social-subscription:hover .social-subscription-icon { background-color: <?php echo $vw_presso['color_primary']; ?> ; } .widget_vw_widget_social_subscription .social-subscription:hover .social-subscription-count { color: <?php echo $vw_presso['color_primary']; ?> ; } .widget_vw_widget_categories a:hover { color: <?php echo $vw_presso['color_primary']; ?> ; } /* Footer Colors */ #footer { background-color: <?php echo $vw_presso['color_footer_bg']; ?> ; } #footer .widget-title { color: <?php echo $vw_presso['color_primary']; ?> ; } #footer, #footer .title, #footer .comment-author, #footer .social-subscription-count { color: <?php echo $vw_presso['color_footer_font']; ?> ; } .copyright { background-color: <?php echo $vw_presso['color_copyright_bg']; ?> ; } .copyright, .copyright a { color: <?php echo $vw_presso['color_copyright_font']; ?> ; } /* Custom Styles */ <?php do_action('vw_render_custom_css'); ?> <?php echo vw_get_option('custom_css'); ?> </style> <?php }
<article class="post-<?php the_ID(); ?> post-box fly-in animated-content post-box-large-thumbnail"> <?php if (has_post_thumbnail()) { ?> <div class="post-thumbnail-wrapper"> <?php $video_url = get_post_meta(get_the_ID(), 'vw_post_format_video_oembed', true); if (vw_get_option('blog_show_video_player_for_thumbnail') && 'video' == get_post_format() && !empty($video_url)) { ?> <a class="swipebox swipebox-video" href="<?php echo $video_url; ?> " title="<?php printf(esc_attr__('Permalink to %s', 'envirra'), the_title_attribute('echo=0')); ?> " rel="youtube"> <span class="post-play-video"></span> <?php } else { ?> <a href="<?php the_permalink(); ?> " title="<?php printf(esc_attr__('Permalink to %s', 'envirra'), the_title_attribute('echo=0')); ?> " rel="bookmark">
} ?> <?php $fav_icon_ipad = vw_get_option('fav_icon_ipad'); if (!empty($fav_icon_ipad['url'])) { ?> <link rel="apple-touch-icon" sizes="72x72" href="<?php echo esc_url($fav_icon_ipad['url']); ?> "><?php } ?> <?php $fav_icon_ipad_retina = vw_get_option('fav_icon_ipad_retina'); if (!empty($fav_icon_ipad_retina['url'])) { ?> <link rel="apple-touch-icon" sizes="144x144" href="<?php echo esc_url($fav_icon_ipad_retina['url']); ?> "><?php } ?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php
} else { ?> <h2><?php _e('Not Found', 'envirra'); ?> </h2> <?php } ?> </div> <?php if ($enable_sidebar) { ?> <aside id="page-sidebar" class="sidebar-wrapper col-sm-5 col-md-4"> <div class="sidebar-inner"> <?php dynamic_sidebar(vw_get_option('bbpress_sidebar')); ?> </div> </aside> <?php } ?> </div> </div> <?php get_footer();
echo $review_summary; ?> </p> <?php } ?> <div class="review-box-dial"> <?php $avg_score = get_post_meta(get_the_id(), 'vw_review_average_score', true); ?> <input type="text" value="<?php echo esc_attr($avg_score); ?> " class="dial" data-readOnly="true" data-width="150" data-height="150" data-thickness="0.12" data-min="0" data-max="10" data-displayPrevious="true" data-fgColor="<?php echo vw_get_option('color_primary'); ?> "> </div> <div class="chart-bars"> <?php $counter = 1; for ($counter = 1; $counter <= 10; $counter++) { $label = get_post_meta(get_the_id(), 'vw_review_score_' . $counter . '_label', true); $score = get_post_meta(get_the_id(), 'vw_review_score_' . $counter . '_score', true); if (empty($score)) { break; } ?> <div class="chart-bar">
function vw_body_class_options($classes) { // Site layout option $site_layout = vw_get_option('site_layout'); if (empty($site_layout) || !$site_layout) { $site_layout = 'full-large'; } $classes[] = sprintf('site-layout-%s', $site_layout); // Post box effect option $site_enable_post_box_effects = vw_get_option('site_enable_post_box_effects'); if ($site_enable_post_box_effects == '1') { $classes[] = 'site-enable-post-box-effects'; } else { $classes[] = 'site-disable-post-box-effects'; } return $classes; }
<!-- Barra Principal --> <a href="<?php echo esc_url(home_url()); ?> /"> <?php if (vw_get_option('logo_url') != '') { ?> <img src="<?php echo esc_url(vw_get_option('logo_url')); ?> " alt="<?php bloginfo('name'); ?> " class="logotipo" /> <?php } ?> <?php if (get_bloginfo('description')) { ?> <?php
function vw_render_custom_font() { ?> <style id="vw-custom-font" type="text/css"> <?php $font_url_format = "url( '%s' ) format('%s')"; ?> <?php $font1_urls = array(); $custom_font1_ttf = vw_get_option('custom_font1_ttf'); if (!empty($custom_font1_ttf['url'])) { $font1_urls[] = sprintf($font_url_format, $custom_font1_ttf['url'], 'truetype'); } $custom_font1_woff = vw_get_option('custom_font1_woff'); if (!empty($custom_font1_woff['url'])) { $font1_urls[] = sprintf($font_url_format, $custom_font1_woff['url'], 'woff'); } $custom_font1_svg = vw_get_option('custom_font1_svg'); if (!empty($custom_font1_svg['url'])) { $font1_urls[] = sprintf($font_url_format, $custom_font1_svg['url'], 'svg'); } $custom_font1_eot = vw_get_option('custom_font1_eot'); if (!empty($custom_font1_eot['url'])) { $font1_urls[] = sprintf($font_url_format, $custom_font1_eot['url'], 'embedded-opentype'); } if (!empty($font1_urls)) { ?> @font-face { font-family: 'custom_font_1'; src: <?php echo implode(",", $font1_urls); ?> ; } <?php } ?> <?php $font2_urls = array(); $custom_font2_ttf = vw_get_option('custom_font2_ttf'); if (!empty($custom_font2_ttf['url'])) { $font2_urls[] = sprintf($font_url_format, $custom_font2_ttf['url'], 'truetype'); } $custom_font2_woff = vw_get_option('custom_font2_woff'); if (!empty($custom_font2_woff['url'])) { $font2_urls[] = sprintf($font_url_format, $custom_font2_woff['url'], 'woff'); } $custom_font2_svg = vw_get_option('custom_font2_svg'); if (!empty($custom_font2_svg['url'])) { $font2_urls[] = sprintf($font_url_format, $custom_font2_svg['url'], 'svg'); } $custom_font2_eot = vw_get_option('custom_font2_eot'); if (!empty($custom_font2_eot['url'])) { $font2_urls[] = sprintf($font_url_format, $custom_font2_eot['url'], 'embedded-opentype'); } if (!empty($font2_urls)) { ?> @font-face { font-family: 'custom_font_2'; src: <?php echo implode(",", $font2_urls); ?> ; } <?php } ?> </style> <?php }
function vw_render_custom_css() { global $Redux_Options; /** * Render Google Fonts */ require_once 'google-fonts.php'; /** * Render Styles */ $options =& $Redux_Options->options; ?> <style type="text/css"> <?php $font_url_format = "url( '%s' )"; ?> <?php $font1_urls = array(); if (vw_get_option('custom_font1_ttf')) { $font1_urls[] = sprintf($font_url_format, vw_get_option('custom_font1_ttf')); } if (vw_get_option('custom_font1_woff')) { $font1_urls[] = sprintf($font_url_format, vw_get_option('custom_font1_woff')); } if (vw_get_option('custom_font1_svg')) { $font1_urls[] = sprintf($font_url_format, vw_get_option('custom_font1_svg')); } if (vw_get_option('custom_font1_eot')) { $font1_urls[] = sprintf($font_url_format, vw_get_option('custom_font1_eot')); } if (!empty($font1_urls)) { ?> @font-face { font-family: 'Custom Font 1'; src: <?php echo implode(",", $font1_urls); ?> ; } <?php } ?> <?php $font2_urls = array(); if (vw_get_option('custom_font2_ttf')) { $font2_urls[] = sprintf($font_url_format, vw_get_option('custom_font2_ttf')); } if (vw_get_option('custom_font2_woff')) { $font2_urls[] = sprintf($font_url_format, vw_get_option('custom_font2_woff')); } if (vw_get_option('custom_font2_svg')) { $font2_urls[] = sprintf($font_url_format, vw_get_option('custom_font2_svg')); } if (vw_get_option('custom_font2_eot')) { $font2_urls[] = sprintf($font_url_format, vw_get_option('custom_font2_eot')); } if (!empty($font2_urls)) { ?> @font-face { font-family: 'Custom Font 2'; src: <?php echo implode(",", $font2_urls); ?> ; } <?php } ?> ::selection { color: white; background-color: <?php echo $options['color_primary']; ?> ; } h1, h2, h3, h4, h5, h6 { font-family: <?php echo $options['h1']['family']; ?> , sans-serif; font-weight: <?php echo $options['h1']['weight']; ?> ; color: <?php echo $options['h1']['color']; ?> ; } h1 { line-height: 1.1; } h2 { line-height: 1.2; } h3, h4, h5, h6 { line-height: 1.4; } body { font-family: <?php echo $options['body']['family']; ?> , sans-serif; font-size: <?php echo $options['body']['size']; ?> ; font-weight: <?php echo $options['body']['weight']; ?> ; color: <?php echo $options['body']['color']; ?> ; } .header-font, { font-family: <?php echo $options['h1']['family']; ?> , sans-serif; font-weight: <?php echo $options['h1']['weight']; ?> ; } .header-font-color { color: <?php echo $options['h1']['color']; ?> ; } .wp-caption p.wp-caption-text { color: <?php echo $options['h1']['color']; ?> ; border-bottom-color: <?php echo $options['h1']['color']; ?> ; } .body-font { font-family: <?php echo $options['body']['family']; ?> , sans-serif; font-weight: <?php echo $options['body']['weight']; ?> ; } /* Only header font, No font-weight */ .mobile-nav, .top-nav, .comment .author > span, .pingback .author > span, .label, .tagcloud a, .main-nav .menu-link { font-family: <?php echo $options['h1']['family']; ?> , sans-serif; } /* Primary Color */ .primary-bg, .label, .tagcloud a, #pagination > span { background-color: <?php echo $options['color_primary']; ?> ; } a, .social-share a:hover, .site-social-icons a:hover, .bbp-topic-header a:hover, .bbp-forum-header a:hover, .bbp-reply-header a:hover { color: <?php echo $options['color_primary']; ?> ; } .button-primary { color: <?php echo $options['color_primary']; ?> ; border-color: <?php echo $options['color_primary']; ?> ; } .primary-border { border-color: <?php echo $options['color_primary']; ?> ; } /* Top-bar Colors */ .top-bar { background-color: <?php echo $options['color_topbar_bg']; ?> ; color: <?php echo $options['color_topbar_font']; ?> ; } #open-mobile-nav, .top-nav a, .top-bar-right > a { color: <?php echo $options['color_topbar_font']; ?> ; } #open-mobile-nav:hover, .top-nav a:hover, .top-bar-right > a:hover { background-color: <?php echo $options['color_topbar_highlight']; ?> ; color: <?php echo $options['color_topbar_highlight_font']; ?> ; } .top-nav .menu-item:hover { background-color: <?php echo $options['color_topbar_highlight']; ?> ; } .top-nav .menu-item:hover > a { color: <?php echo $options['color_topbar_highlight_font']; ?> ; } /* Header Colors */ .main-bar { background-color: <?php echo $options['color_header_bg']; ?> ; color: <?php echo $options['color_header_font']; ?> ; } /* Main Navigation Colors */ .main-nav-bar { background-color: <?php echo $options['color_nav_bg']; ?> ; } .main-nav-bar, .main-nav > .menu-item > a { color: <?php echo $options['color_nav_font']; ?> ; } .main-nav .menu-item:hover > .menu-link, .main-nav > .current-menu-ancestor > a, .main-nav > .current-menu-item > a { background-color: <?php echo $options['color_nav_highlight']; ?> ; color: <?php echo $options['color_nav_highlight_font']; ?> ; } /* Widgets */ .widget_vw_widget_social_subscription .social-subscription:hover .social-subscription-icon { background-color: <?php echo $options['color_primary']; ?> ; } .widget_vw_widget_social_subscription .social-subscription:hover .social-subscription-count { color: <?php echo $options['color_primary']; ?> ; } .widget_vw_widget_categories a:hover { color: <?php echo $options['color_primary']; ?> ; } /* Footer Colors */ #footer { background-color: <?php echo $options['color_footer_bg']; ?> ; } #footer .widget-title { color: 444; } #footer, #footer .title, #footer .comment-author, #footer .social-subscription-count { color: <?php echo $options['color_footer_font']; ?> ; } .copyright { background-color: <?php echo $options['color_copyright_bg']; ?> ; } .copyright, .copyright a { color: <?php echo $options['color_copyright_font']; ?> ; } /* Custom Styles */ <?php do_action('vw_render_custom_css'); ?> <?php echo vw_get_option('custom_css'); ?> </style> <?php }
?> <?php if (vw_get_option('fav_icon_ipad_url')) { ?> <link rel="apple-touch-icon" sizes="72x72" href="<?php echo esc_url(vw_get_option('fav_icon_ipad_url')); ?> "><?php } ?> <?php if (vw_get_option('fav_icon_ipad_retina_url')) { ?> <link rel="apple-touch-icon" sizes="144x144" href="<?php echo esc_url(vw_get_option('fav_icon_ipad_retina_url')); ?> "><?php } ?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php if (is_singular()) { wp_enqueue_script('comment-reply'); }
function vw_render_site_social_icons() { $url = vw_get_option('social_delicious'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Delicious" target="_blank"><i class="icon-social-delicious"></i></a>', $url); } $url = vw_get_option('social_digg'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Digg" target="_blank"><i class="icon-social-digg"></i></a>', $url); } $url = vw_get_option('social_dribbble'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Dribbble" target="_blank"><i class="icon-social-dribbble"></i></a>', $url); } $url = vw_get_option('social_facebook'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Facebook" target="_blank"><i class="icon-social-facebook"></i></a>', $url); } $url = vw_get_option('social_flickr'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Flickr" target="_blank"><i class="icon-social-flickr"></i></a>', $url); } $url = vw_get_option('social_forrst'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Forrst" target="_blank"><i class="icon-social-forrst"></i></a>', $url); } $url = vw_get_option('social_github'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="GitHub" target="_blank"><i class="icon-social-github"></i></a>', $url); } $url = vw_get_option('social_googleplus'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Google+" target="_blank"><i class="icon-social-gplus"></i></a>', $url); } $url = vw_get_option('social_instagram'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Instagram" target="_blank"><i class="icon-social-instagram"></i></a>', $url); } $url = vw_get_option('social_linkedin'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="LinkedIn" target="_blank"><i class="icon-social-linkedin"></i></a>', $url); } $url = vw_get_option('social_pinterest'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Pinterest" target="_blank"><i class="icon-social-pinterest"></i></a>', $url); } $url = vw_get_option('social_twitter'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Twitter" target="_blank"><i class="icon-social-twitter"></i></a>', $url); } $url = vw_get_option('social_rss'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="RSS" target="_blank"><i class="icon-social-rss"></i></a>', $url); } $url = vw_get_option('social_skype'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Skype" target="_blank"><i class="icon-social-skype"></i></a>', $url); } $url = vw_get_option('social_tumblr'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Tumblr" target="_blank"><i class="icon-social-tumblr"></i></a>', $url); } $url = vw_get_option('social_vimeo'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Vimeo" target="_blank"><i class="icon-social-vimeo"></i></a>', $url); } $url = vw_get_option('social_yahoo'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Yahoo" target="_blank"><i class="icon-social-yahoo"></i></a>', $url); } $url = vw_get_option('social_youtube'); if (!empty($url)) { printf('<a class="site-social-icon" href="%s" title="Youtube" target="_blank"><i class="icon-social-youtube"></i></a>', $url); } }
</div> <?php } ?> </article> <?php } ?> <?php get_template_part('templates/pagination'); ?> <?php if (vw_get_option('blog_enable_related_post')) { get_template_part('templates/post-related'); } ?> <?php comments_template(); ?> <?php } else { ?> <h2><?php _e('Sorry, no posts were found', 'envirra'); ?>
<?php $blog_show_featured_image_single_post = vw_get_option('blog_show_featured_image_single_post'); if ('0' == $blog_show_featured_image_single_post) { return; } if (has_post_thumbnail()) { $full_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); $image_caption = get_post(get_post_thumbnail_id($post->ID))->post_excerpt; ?> <div class="post-thumbnail-wrapper"> <a class="swipebox" href="<?php echo $full_image_url[0]; ?> " title="<?php printf(esc_attr__('Permalink to image of %s', 'envirra'), the_title_attribute('echo=0')); ?> " rel="bookmark"> <?php the_post_thumbnail('vw_large'); ?> </a> <?php if (!empty($image_caption)) { ?> <div class="vw-featured-image-caption-wrapper"> <div class="vw-featured-image-caption"> <i class="icon-entypo-camera"></i> <?php echo $image_caption; ?> </div>
<h2 id="site-tagline" class="subtitle"><?php bloginfo('description'); ?> </h2> <?php } ?> </a> </div> <?php if (vw_get_option('header_ads_code') != '') { ?> <div class="header-ads"> <?php echo do_shortcode(vw_get_option('header_ads_code')); ?> </div> <?php } ?> </div> </div> </div> </header> <!-- End Main Bar --> <!-- Main Navigation Bar --> <div class="main-nav-bar <?php echo 'header-layout-' . esc_attr($header_layout);