本文整理汇总了PHP中nimbus_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP nimbus_get_option函数的具体用法?PHP nimbus_get_option怎么用?PHP nimbus_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nimbus_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
<?php
$nimbus_text_logo = trim(nimbus_get_option('nimbus_text_logo'));
if (!empty($nimbus_text_logo)) {
?>
<h1 class="text_logo"><a href="<?php
echo esc_url(home_url('/'));
?>
"><?php
echo $nimbus_text_logo;
?>
</a></h1>
<?php
}
?>
示例2: nimbus_gravatar
function nimbus_gravatar($avatar_defaults)
{
$myavatar = nimbus_get_option('gravatar');
$avatar_defaults[$myavatar] = "Custom Gravatar";
return $avatar_defaults;
}
示例3:
<?php
if (nimbus_get_option('display_bio') == 1) {
?>
<div class="bio_wrap">
<?php
echo get_avatar(get_the_author_meta('email'), '105');
?>
<h3><?php
the_author_posts_link();
?>
</h3>
<p><?php
the_author_meta('description');
?>
</p>
<div class="clear"></div>
</div>
<?php
}
?>
示例4: nimbus_get_option
<?php
// set variables if front-page
if (is_front_page()) {
$nimbus_left_featured = nimbus_get_option('nimbus_left_featured');
$nimbus_center_featured = nimbus_get_option('nimbus_center_featured');
$nimbus_right_featured = nimbus_get_option('nimbus_right_featured');
$toggle = nimbus_get_option('nimbus_toggle_featured');
// set variables if alternate template
} else {
if (is_page_template('alt_frontpage.php')) {
$nimbus_left_featured = trim(get_post_meta($post->ID, 'left_featured', true));
$nimbus_center_featured = trim(get_post_meta($post->ID, 'center_featured', true));
$nimbus_right_featured = trim(get_post_meta($post->ID, 'right_featured', true));
$toggle = trim(get_post_meta($post->ID, 'toggle_featured', true));
}
}
if (is_front_page() && !is_paged() || is_page_template('alt_frontpage.php')) {
$nimbus_featured = array('nimbus_left_featured' => $nimbus_left_featured, 'nimbus_center_featured' => $nimbus_center_featured, 'nimbus_right_featured' => $nimbus_right_featured);
if ($toggle == 1) {
?>
<div class="container frontpage_featured">
<div class="row">
<?php
foreach ($nimbus_featured as $key => $featured) {
?>
<div id="<?php
echo $key;
?>
" class="col-sm-4 featured">
<?php
示例5: get_template_part
<div class="container">
<?php
get_template_part('parts/logo');
$nimbus_banner_content = trim(get_post_meta($post->ID, 'frontpage_banner_content', true));
if (empty($nimbus_banner_content)) {
if (nimbus_get_option('nimbus_example_content') == "on") {
get_template_part('parts/example', 'banner_content');
}
} else {
echo apply_filters('the_content', $nimbus_banner_content);
}
?>
</div>
示例6: nimbus_get_option
<?php
$nimbus_post_meta_blog = nimbus_get_option('nimbus_post_meta_blog');
if (has_category() || has_tag()) {
?>
<div class="row tax_tags">
<div class="col-xs-6 tax">
<?php
if ($nimbus_post_meta_blog['categories'] == 1) {
if (has_category()) {
_e('Posted in: ', 'nimbus');
the_category(', ');
}
}
?>
</div>
<div class="col-xs-6 tags">
<?php
if ($nimbus_post_meta_blog['tags'] == 1) {
if (has_tag()) {
the_tags('Tags: ', ', ', '');
}
}
?>
</div>
</div>
<?php
}
示例7: nimbus_get_option
<?php
$nimbus_post_meta = nimbus_get_option('nimbus_post_meta_single');
if ($nimbus_post_meta['tags'] == 1) {
if (has_tag()) {
?>
<div id="tags_wrap">
<?php
the_tags('Tagged: ', ', ', '');
?>
</div>
<?php
}
}
示例8: the_ID
Post ID <?php
the_ID();
} else {
the_title();
}
?>
</a></h3>
<?php
if (nimbus_get_option('toggle_featured_exerpt') != '1') {
the_excerpt();
?>
<p class="featured_more"><a href="<?php
the_permalink();
?>
"><?php
echo esc_html(nimbus_get_option('read_more'));
?>
</a></p>
<?php
}
?>
<div class="clear10"></div>
<?php
}
} else {
?>
<p><?php
_e('Sorry, no page matched your criteria.', 'nimbus');
?>
</p>
<?php
示例9: site_url
</div>
<div class="clear"></div>
</div>
</div>
<?
$url = site_url();
$footerimgurl = nimbus_get_option('landing_footer');
?>
<? if (is_front_page()) {
?>
<br>
<? };
?>
<?php
wp_footer();
?>
<?php if(is_front_page() ) { ?>
<? } else { ?>
<img id="footerimg" src=" <? echo $footerimgurl; ?> ">
<? }; ?>
示例10: nimbus_get_option
echo $key;
?>
fa-socialcircle" style="color:<?php
echo nimbus_get_option('social_media_font_color');
?>
;"></i></a>
<?php
}
}
if (nimbus_get_option('nimbus_hide_rss_icon') == 0) {
?>
<a href="<?php
echo get_bloginfo('rss2_url');
?>
"><i class="fa fa-rss fa-socialcircle" style="color:<?php
echo nimbus_get_option('social_media_font_color');
?>
;"></i></a>
<?php
}
?>
</p>
</div>
<div class="col-sm-6 col-sm-pull-6">
<?php
get_template_part('parts/header', 'logo');
?>
</div>
</div>
示例11: the_post_thumbnail
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('nimbus_140_137', array('class' => 'nimbus_140_137'));
} else {
if (nimbus_get_option('reminder_images') == "on" || in_the_loop() == false) {
?>
<img class="nimbus_140_137" src="<?php
echo get_template_directory_uri();
?>
/images/preview/cirrus<?php
echo rand(1, 6);
?>
sm.jpg" alt="<?php
the_title();
?>
" />
<?php
}
}
示例12: wp_title
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php
wp_title();
?>
</title>
<link rel="pingback" href="<?php
bloginfo('pingback_url');
?>
" />
<?php
wp_head();
?>
</head>
<body <?php
body_class();
?>
>
<header id="<?php
if (nimbus_get_option('home-slug') == '') {
echo "action2";
} else {
echo nimbus_get_option('home-slug');
}
?>
">
<?php
get_template_part('parts/header', 'menu');
get_template_part('parts/header', 'banner');
?>
</header>
示例13: nimbus_get_option
</div>
</div>
</div>
</section>
<?php
} else {
if (nimbus_get_option('fp-about-toggle') == '3') {
// Don't do anything
} else {
?>
<section id="<?php
if (nimbus_get_option('fp-about-slug') == '') {
echo "about";
} else {
echo nimbus_get_option('fp-about-slug');
}
?>
" class="frontpage-row frontpage-about preview">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="about-title h1">About Us</div>
<div class="about-sub-title h4">A little bit of background on our fabulous company.</div>
<p class="about-desc">Uenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.Cum sociis natoque penatibus.</p>
<div class="row frontpage-about-row" data-sr="enter left and move 50px after 1s">
<div class="col-sm-4">
<div class="about-content">
Uenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.Cum sociis natoque penatibus. Uenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.Cum sociis natoque penatibus.
</div>
</div>
示例14: trim
<?php
$reminder_images = trim(nimbus_get_option('reminder_images'));
?>
<div class="banner">
<?php
/* if (is_front_page()) {
if (nimbus_get_option('nimbus_banner_option') == 'static_banner') {
if (nimbus_get_option('banner_image') != '') {
?>
<? // <img src="<?php echo nimbus_get_option('banner_image'); ?>" /> ?>
<?php
} else {
if ($reminder_images == "on" ) {
// get_template_part( 'parts/image', '1170_315');
}
}
}
} else {
// No layout
} */
?>
</div>
示例15: get_home_url
<div id="ribbon_wrap">
<div class="row">
<div id="ribbon" class="span12 center none">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<h1 class="text_logo"><a href="<?php
echo get_home_url();
?>
"><?php
echo nimbus_get_option('text_logo');
?>
</a></h1>
<a class="btn btn-navbar" data-toggle="collapse" data-target="#mobile_menu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="clear"></div>
<?php
wp_nav_menu(array('theme_location' => 'mobile', 'menu' => 'Primary Menu', 'depth' => 3, 'menu_class' => 'collapse', 'menu_id' => 'mobile_menu', 'container' => false));
?>
</div>
</div>
</div>
<?php
get_template_part('parts/logo');
wp_nav_menu(array('theme_location' => 'primary', 'menu' => 'Primary Menu', 'depth' => 3, 'menu_id' => 'menu', 'container' => 'div', 'container_class' => 'menu'));
?>
</div>
</div>