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

PHP vce_get_option函数代码示例

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

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



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

示例1: vce_add_mega_menu_support

 function vce_add_mega_menu_support()
 {
     if (vce_get_option('use_mega_menu')) {
         add_filter('wp_setup_nav_menu_item', 'vce_add_custom_nav_fields');
         add_action('wp_update_nav_menu_item', 'vce_update_custom_nav_fields', 10, 3);
         add_filter('wp_edit_nav_menu_walker', 'vce_edit_menu_walker', 10, 2);
         add_filter('nav_menu_css_class', 'vce_add_class_to_menu', 10, 2);
         add_filter('nav_menu_link_attributes', 'vce_nav_link_atts', 10, 3);
     }
 }
开发者ID:samoeba,项目名称:ultradia,代码行数:10,代码来源:mega-menu.php


示例2: vce_register_sidebars

function vce_register_sidebars()
{
    /* Default Sidebar */
    register_sidebar(array('id' => 'vce_default_sidebar', 'name' => __('Default Sidebar', THEME_SLUG), 'description' => __('This is default sidebar.', THEME_SLUG), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
    /* Default Sticky Sidebar */
    register_sidebar(array('id' => 'vce_default_sticky_sidebar', 'name' => __('Default Sticky Sidebar', THEME_SLUG), 'description' => __('This is default sticky sidebar. Sticky means that it will be always pinned to top while you are scrolling through your website content.', THEME_SLUG), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
    /* Add sidebars from theme options */
    $custom_sidebars = vce_get_option('add_sidebars');
    if ($custom_sidebars) {
        for ($i = 1; $i <= $custom_sidebars; $i++) {
            register_sidebar(array('id' => 'vce_sidebar_' . $i, 'name' => __('Sidebar', THEME_SLUG) . ' ' . $i, 'description' => '', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>'));
        }
    }
    /* Footer Sidebar Area 1*/
    register_sidebar(array('id' => 'vce_footer_sidebar_1', 'name' => __('Footer Column 1', THEME_SLUG), 'description' => __('This is sidebar to use in footer area column 1.', THEME_SLUG), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
    /* Footer Sidebar Area 2*/
    register_sidebar(array('id' => 'vce_footer_sidebar_2', 'name' => __('Footer Column 2', THEME_SLUG), 'description' => __('This is sidebar to use in footer area column 2.', THEME_SLUG), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
    /* Footer Sidebar Area 1*/
    register_sidebar(array('id' => 'vce_footer_sidebar_3', 'name' => __('Footer Column 3', THEME_SLUG), 'description' => __('This is sidebar to use in footer area column 3.', THEME_SLUG), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
}
开发者ID:greg3560,项目名称:plailly,代码行数:20,代码来源:sidebars.php


示例3: get_template_part

		<?php 
}
?>

		<?php 
if (vce_get_post_display('show_related')) {
    ?>
			<?php 
    get_template_part('sections/related-box');
    ?>
		<?php 
}
?>

		<?php 
if (vce_get_post_display('show_author_box') && vce_get_option('author_box_position') == 'down') {
    ?>
			<?php 
    get_template_part('sections/author-box');
    ?>
		<?php 
}
?>

		<?php 
comments_template();
?>

	</div>

	<?php 
开发者ID:samoeba,项目名称:ultradia,代码行数:31,代码来源:single.php


示例4: esc_url

<div class="vce-featured">

    <div class="vce-featured-header">
        <div class="vce-featured-info">
            <div class="vce-hover-effect">

                <?php 
if (vce_get_option('lay_fa_big_cat')) {
    ?>
                    <div class="vce-featured-section">
                        <?php 
    echo vce_get_category();
    ?>
                    </div>
                <?php 
}
?>

                <h2 class="vce-featured-title">
                    <a class="vce-featured-link-article" href="<?php 
echo esc_url(get_permalink());
?>
" title="<?php 
echo esc_attr(get_the_title());
?>
"><?php 
the_title();
?>
</a>        
                </h2>
开发者ID:samoeba,项目名称:ultradia,代码行数:30,代码来源:featured-full.php


示例5: get_option

?>


<?php 
/* Generate css for category colors */
$cat_colors = get_option('vce_cat_colors');
if (!empty($cat_colors)) {
    foreach ($cat_colors as $cat => $color) {
        if ($cat != 0) {
            echo 'a.category-' . $cat . ', .sidebar .widget .vce-post-list a.category-' . $cat . '{ color: ' . $color . ';}';
            echo 'body.category-' . $cat . ' .main-box-title, .main-box-title.cat-' . $cat . ' { border-top: 2px solid ' . $color . ';}';
            echo '.widget_categories li.cat-item-' . $cat . ' .count { background: ' . $color . ';}';
            echo '.widget_categories li.cat-item-' . $cat . ':before { background:' . $color . ';}';
            echo '.vce-featured-section .category-' . $cat . ', .vce-post-big .meta-category a.category-' . $cat . ', .vce-post-slider .meta-category a.category-' . $cat . '{ background-color: ' . $color . ';}';
            echo '.vce-lay-g .vce-featured-info .meta-category a.category-' . $cat . '{ background-color: ' . $color . ';}';
            echo '.vce-lay-h header .meta-category a.category-' . $cat . '{ background-color: ' . $color . ';}';
            if (vce_get_option('color_navigation_cat')) {
                echo '.main-navigation li.vce-cat-' . $cat . ' a:hover { color: ' . $color . ';}';
            }
        }
    }
}
/* Apply uppercase options */
$text_upper = vce_get_option('text_upper');
if (!empty($text_upper)) {
    foreach ($text_upper as $text_class => $val) {
        if ($val) {
            echo '.' . $text_class . '{text-transform: uppercase;}';
        }
    }
}
开发者ID:greg3560,项目名称:plailly,代码行数:31,代码来源:dynamic-css.php


示例6: while

while (have_posts()) {
    the_post();
    ?>

			<?php 
    get_template_part('sections/content', 'page');
    ?>

		<?php 
}
?>

		</main>

		<?php 
if (vce_get_option('page_show_comments')) {
    ?>
			<?php 
    comments_template();
    ?>
		<?php 
}
?>

	</div>

	<?php 
if ($vce_sidebar_opts['use_sidebar'] == 'right') {
    get_sidebar();
}
?>
开发者ID:samoeba,项目名称:ultradia,代码行数:31,代码来源:page.php


示例7: end_el

 public function end_el(&$output, $item, $depth = 0, $args = array())
 {
     $use_ajax_menu = vce_get_option('ajax_mega_menu') ? true : false;
     if ($depth == 0 && $item->mega_menu_cat) {
         $output .= '<ul class="vce-mega-menu-wrapper">';
         $output .= !$use_ajax_menu ? vce_load_mega_menu($item->object_id) : '';
         $output .= '</ul>';
     }
 }
开发者ID:greg3560,项目名称:plailly,代码行数:9,代码来源:mega-menu.php


示例8: the_title

	<?php 
}
?>

	<header class="entry-header">
		<h1 class="entry-title entry-title-page"><?php 
the_title();
?>
</h1>
	</header>

	<div class="entry-content page-content">
		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '', 'after' => '', 'next_or_number' => 'next'));
?>
	</div>

	<?php 
if (vce_get_option('page_show_share')) {
    ?>
	  	<?php 
    get_template_part('sections/share-bar');
    ?>
	<?php 
}
?>

</article>
开发者ID:samoeba,项目名称:ultradia,代码行数:31,代码来源:content-page.php


示例9: vce_get_bg_styles

 function vce_get_bg_styles($option = false)
 {
     $style = vce_get_option($option);
     $css = '';
     if (!empty($style) && is_array($style)) {
         foreach ($style as $key => $value) {
             if (!empty($value) && $key != "media") {
                 if ($key == "background-image") {
                     $css .= $key . ":url('" . $value . "');";
                 } else {
                     $css .= $key . ":" . $value . ";";
                 }
             }
         }
     }
     return $css;
 }
开发者ID:samoeba,项目名称:ultradia,代码行数:17,代码来源:helpers.php


示例10: esc_url

        ?>
"></i>
					</span>
				<?php 
    }
    ?>
			</a>
		</div>
	<?php 
}
?>
	

	<header class="entry-header">
		<?php 
if (vce_get_option('lay_d_cat')) {
    ?>
			<span class="meta-category"><?php 
    echo vce_get_category();
    ?>
</span>
		<?php 
}
?>
		<h2 class="entry-title"><a href="<?php 
echo esc_url(get_permalink());
?>
" title="<?php 
echo esc_attr(get_the_title());
?>
"><?php 
开发者ID:samoeba,项目名称:ultradia,代码行数:31,代码来源:layout-d.php


示例11: get_template_part

		<?php 
}
?>
		
		<?php 
if ($top_bar_right = vce_get_option('top_bar_right')) {
    ?>
			<div class="vce-wrap-right">
				<?php 
    get_template_part('sections/' . $top_bar_right);
    ?>
			</div>
		<?php 
}
?>

		<?php 
if ($top_bar_center = vce_get_option('top_bar_center')) {
    ?>
			<div class="vce-wrap-center">
				<?php 
    get_template_part('sections/' . $top_bar_center);
    ?>
			</div>
		<?php 
}
?>
		*/

	</div>
</div>
开发者ID:samoeba,项目名称:ultradia,代码行数:31,代码来源:top.php


示例12: __vce

	
	<div class="main-box vce-related-box">

	<h3 class="main-box-title"><?php 
    echo __vce('related_title');
    ?>
</h3>
	
	<div class="main-box-inside">

		<?php 
    while ($related_posts->have_posts()) {
        $related_posts->the_post();
        ?>
			<?php 
        get_template_part('sections/loops/layout', vce_get_option('related_layout'));
        ?>
		<?php 
    }
    ?>

	</div>

	</div>

<?php 
}
?>

<?php 
wp_reset_postdata();
开发者ID:greg3560,项目名称:plailly,代码行数:30,代码来源:related-box.php


示例13: vce_get_option

<?php

$in_same_cat = vce_get_option('prev_next_cat') ? true : false;
$prev = get_previous_post($in_same_cat);
$next = get_next_post($in_same_cat);
?>
<nav class="prev-next-nav">
	<?php 
if ($prev) {
    ?>
		<?php 
    $img = vce_featured_image('vce-lay-b', $prev->ID);
    ?>

		<div class="vce-prev-link">
			<?php 
    previous_post_link('%link', '<span class="img-wrp">' . $img . '<span class="vce-pn-ico"><i class="fa fa fa-chevron-left"></i></span></span><span class="vce-prev-next-link">%title</span>', $in_same_cat);
    ?>
		</div>

	<?php 
}
?>
	
	<?php 
if ($next) {
    ?>
		<?php 
    $img = vce_featured_image('vce-lay-b', $next->ID);
    ?>
开发者ID:samoeba,项目名称:ultradia,代码行数:30,代码来源:prev-next.php


示例14: array

<?php

$share = array();
$share['facebook'] = '<a class="fa fa-facebook" href="javascript:void(0);" data-url="http://www.facebook.com/sharer/sharer.php?u=' . get_permalink() . '&amp;t=' . esc_attr(get_the_title()) . '"></a>';
$share['twitter'] = '<a class="fa fa-twitter" href="javascript:void(0);" data-url="http://twitter.com/intent/tweet?url=' . get_permalink() . '&amp;text=' . esc_attr(get_the_title()) . '"></a>';
$share['gplus'] = '<a class="fa fa-google-plus" href="javascript:void(0);" data-url="https://plus.google.com/share?url=' . get_permalink() . '"></a>';
$pin_img = has_post_thumbnail() ? wp_get_attachment_image_src(get_post_thumbnail_id(), 'full') : '';
$pin_img = isset($pin_img[0]) ? $pin_img[0] : '';
$share['pinterest'] = '<a class="fa fa-pinterest" href="javascript:void(0);" data-url="http://pinterest.com/pin/create/button/?url=' . get_permalink() . '&amp;media=' . $pin_img . '&amp;description=' . esc_attr(get_the_title()) . '"></a>';
$share['linkedin'] = '<a class="fa fa-linkedin" href="javascript:void(0);" data-url="http://www.linkedin.com/shareArticle?mini=true&amp;url=' . get_permalink() . '&amp;title=' . esc_attr(get_the_title()) . '"></a>';
if (is_page()) {
    $share_options = vce_get_option('page_social_share');
} else {
    $share_options = vce_get_option('social_share');
}
$vce_share_html = '';
foreach ($share_options as $social => $value) {
    if ($value) {
        $vce_share_html .= '<li>' . $share[$social] . '</li>';
    }
}
?>

<?php 
if ($vce_share_html) {
    ?>
	<div class="vce-share-bar">
		<ul class="vce-share-items">
			<?php 
    echo $vce_share_html;
    ?>
开发者ID:greg3560,项目名称:plailly,代码行数:31,代码来源:share-bar.php


示例15: vce_get_excerpt

}
?>
	</header>

	<?php 
if (vce_get_option('lay_c_excerpt')) {
    ?>
		<div class="entry-content">
			<p><?php 
    echo vce_get_excerpt('lay-c');
    ?>
</p>
		</div>
	<?php 
}
?>

	<?php 
if (vce_get_option('lay_c_readmore')) {
    ?>
			<a href="<?php 
    echo esc_attr(get_permalink());
    ?>
" class="vce-read-more"><?php 
    echo __vce('read_more');
    ?>
</a>
	<?php 
}
?>
</article>
开发者ID:greg3560,项目名称:plailly,代码行数:31,代码来源:layout-c.php


示例16: bloginfo

    ?>
<img src="<?php 
    echo $logo['url'];
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
" /><?php 
} else {
    bloginfo('name');
}
?>
</a>
	</<?php 
echo $title_tag;
?>
>

<?php 
if (vce_get_option('header_description')) {
    ?>
<span class="site-description"><?php 
    echo get_bloginfo('description');
    ?>
</span>	
<?php 
}
?>
	

</div>
开发者ID:greg3560,项目名称:plailly,代码行数:31,代码来源:logo.php


示例17: get_the_title

"><?php 
echo get_the_title();
?>
</a></h2>
            <?php 
if ($meta = vce_get_meta_data('lay-g')) {
    ?>
<div class="entry-meta"><?php 
    echo $meta;
    ?>
</div><?php 
}
?>
        	
        	<?php 
if (vce_get_option('lay_g_excerpt')) {
    ?>
				<div class="entry-content"><p><?php 
    echo vce_get_excerpt('lay-g');
    ?>
</p></div>
			<?php 
}
?>
        </div>
        
        <div class="vce-featured-header-background"></div>
    </div>

	<?php 
global $vce_sidebar_opts;
开发者ID:greg3560,项目名称:plailly,代码行数:31,代码来源:layout-g.php


示例18:

			
				</div>
			</div>
		<?php 
}
?>


	</footer>


</div>
</div>

<?php 
if (vce_get_option('scroll_to_top')) {
    ?>
<a href="javascript:void(0)" id="back-top"><i class="fa fa-angle-up"></i></a>
<?php 
}
?>

<?php 
wp_footer();
?>

<!-- jQuery -->
<script type="text/javascript" src="http://blog.chronasleep.com/wp-content/themes/voice/js/jquery.js?ver=1.3.1"></script>

<!-- Bootstrap Core JavaScript -->
<script type="text/javascript" src="http://blog.chronasleep.com/wp-content/themes/voice/js/bootstrap.min.js?ver=1.3.1"></script>
开发者ID:samoeba,项目名称:ultradia,代码行数:30,代码来源:footer.php


示例19: get_template_part

    get_template_part('sections/paginated-nav');
    ?>
	<?php 
}
?>

	<?php 
if (vce_get_post_display('show_tags')) {
    ?>
		<footer class="entry-footer">
			<div class="meta-tags">
				<?php 
    the_tags(false, ' ', false);
    ?>
			</div>
		</footer>
	<?php 
}
?>

	<?php 
if (vce_get_option('show_share')) {
    ?>
	  	<?php 
    get_template_part('sections/share-bar');
    ?>
	<?php 
}
?>

</article>
开发者ID:greg3560,项目名称:plailly,代码行数:31,代码来源:content.php


示例20:

					<i class="fa <?php 
        echo $icon;
        ?>
"></i>
					</span>
				<?php 
    }
    ?>
			</a>
		</div>
	<?php 
}
?>

	<?php 
if (vce_get_option('lay_e_title')) {
    ?>
		<header class="entry-header">
			<h2 class="entry-title"><a href="<?php 
    echo esc_url(get_permalink());
    ?>
" title="<?php 
    echo esc_attr(get_the_title());
    ?>
"><?php 
    echo vce_get_title('lay-e');
    ?>
</a></h2>
			<?php 
    if ($meta = vce_get_meta_data('lay-e')) {
        ?>
开发者ID:samoeba,项目名称:ultradia,代码行数:31,代码来源:layout-e.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP vcex_inline_js函数代码示例发布时间:2022-05-23
下一篇:
PHP vc_verify_admin_nonce函数代码示例发布时间: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