• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vw_get_option函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中vw_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP vw_get_option函数的具体用法?PHP vw_get_option怎么用?PHP vw_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了vw_get_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: vw_setup_rtl

 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');
     }
 }
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:9,代码来源:rtl.php


示例2: vw_custom_post_gallery

 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;
 }
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:55,代码来源:gallery.php


示例3: vw_enqueue_front_assets

 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);
 }
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:17,代码来源:enqueue.php


示例4: vw_render_default_flexslider

    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 
    }
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:41,代码来源:custom-js.php


示例5: get_template_part

?>

<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());
            ?>
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:31,代码来源:index.php


示例6: get_sidebar

				<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">&uarr;	<?php 
_e('Back to top', 'envirra');
?>
</a>
								</div>
							</div>
						</div>
					</div>
				</footer>
				
			</div> <!-- Off canvas body inner -->
		
		<?php 
wp_footer();
?>
	</body>
</html>
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:30,代码来源:footer.php


示例7: vw_options_saved

 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);
     }
 }
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:7,代码来源:options.php


示例8: urlencode

	<a class="social-digg" href="http://digg.com/submit?phase=2&amp;url=<?php 
    echo urlencode(get_permalink());
    ?>
&amp;bodytext=&amp;tags=&amp;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));
    ?>
&amp;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>
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:31,代码来源:social-share.php


示例9: woocommerce_get_page_id

<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>
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:18,代码来源:sidebar.php


示例10: vw_render_custom_css


//.........这里部分代码省略.........
			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 
    }
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:101,代码来源:custom-css.php


示例11: the_ID

<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">
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:31,代码来源:large-thumbnail.php


示例12: vw_get_option

}
?>

<?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 
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:31,代码来源:header-meta.php


示例13: _e

} 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();
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:31,代码来源:bbpress.php


示例14: get_post_meta

        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">
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:31,代码来源:post-review.php


示例15: vw_body_class_options

 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;
 }
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:17,代码来源:functions.php


示例16: esc_url

				

				<!-- 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 
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:28,代码来源:header.php


示例17: vw_render_custom_font

    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 
    }
开发者ID:wilxsv,项目名称:prevensionPublicLibrary,代码行数:71,代码来源:custom-font.php


示例18: vw_render_custom_css

    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'];
        ?>
;
//.........这里部分代码省略.........
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:101,代码来源:custom-css.php


示例19: esc_url

?>

<?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');
}
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:31,代码来源:header-meta.php


示例20: vw_render_site_social_icons

 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);
     }
 }
开发者ID:JJProductionsPT,项目名称:SdTVv2,代码行数:75,代码来源:template-tags.php



注:本文中的vw_get_option函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP w函数代码示例发布时间:2022-05-23
下一篇:
PHP vtws_retrieve函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap