本文整理汇总了PHP中nimbus_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP nimbus_get_option函数的具体用法?PHP nimbus_get_option怎么用?PHP nimbus_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nimbus_get_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
}
?>
开发者ID:Gnarwind,项目名称:BoatPunkMeetup,代码行数:15,代码来源:header-logo.php
示例2: nimbus_gravatar
function nimbus_gravatar($avatar_defaults)
{
$myavatar = nimbus_get_option('gravatar');
$avatar_defaults[$myavatar] = "Custom Gravatar";
return $avatar_defaults;
}
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:6,代码来源:functions.php
示例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
}
?>
开发者ID:kabsurd,项目名称:Hunter-Base,代码行数:22,代码来源:bio.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
开发者ID:EasyDayCleaning,项目名称:Easy-Day-Team2,代码行数:31,代码来源: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>
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:13,代码来源:banner-full_content.php
示例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
}
开发者ID:EasyDayCleaning,项目名称:Easy-Day-Team2,代码行数:28,代码来源:tax_tags.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
}
}
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:14,代码来源:blog-tags.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
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:31,代码来源:featured.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; ?> ">
<? }; ?>
开发者ID:kabsurd,项目名称:Hunter-Base,代码行数:30,代码来源:footer.php
示例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>
开发者ID:Gnarwind,项目名称:BoatPunkMeetup,代码行数:29,代码来源:header-content.php
示例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
}
}
开发者ID:kabsurd,项目名称:Hunter-Base,代码行数:20,代码来源:image-140_137.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>
开发者ID:pixwind,项目名称:pixwind,代码行数:31,代码来源:header.php
示例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>
开发者ID:pixwind,项目名称:pixwind,代码行数:31,代码来源:frontpage-about.php
示例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>
开发者ID:kabsurd,项目名称:Hunter-Base,代码行数:24,代码来源:banner.php
示例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>
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:31,代码来源:header-ribbon.php
示例16: nimbus_get_option
<?php
/*
Template Name: Full Width
*/
?>
<?php
$top_scripts = nimbus_get_option('top_scripts_multi');
$bottom_scripts = nimbus_get_option('bottom_scripts_multi');
get_header();
?>
<div id="content_wrap">
<div class="row">
<div id="content_full" class="editable span12 center none">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<?php
if (get_post_meta($post->ID, 'include_image_on_page', true) == "true") {
?>
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('nimbus-post-full', array('class' => 'page_image'));
}
?>
<?php
}
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:31,代码来源:full_width.php
示例17: nimbus_get_option
</div>
</div>
</div>
</section>
<?php
} else {
if (nimbus_get_option('fp-team-toggle') == '3') {
// Don't do anything
} else {
?>
<section id="<?php
if (nimbus_get_option('fp-team-slug') == '') {
echo "team";
} else {
echo nimbus_get_option('fp-team-slug');
}
?>
" class="frontpage-row frontpage-team preview">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="team-title h1">Meet the Team</div>
<div class="team-sub-title h4">Showcase the great people behind your company.</div>
<div class="row row-centered">
<div class="col-sm-3 col-centered">
<div class="team-item" data-sr="wait 0.3s, enter right and move 50px after 1s">
<h4 class="team-item-title">Sally Brown</h4>
<img class="img-responsive center-block" src="<?php
开发者ID:pixwind,项目名称:pixwind,代码行数:31,代码来源:frontpage-team.php
示例18: the_post_thumbnail
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('nimbus_375_225', array('class' => 'nimbus_375_225 img-responsive'));
} else {
if (nimbus_get_option('reminder_images') == "on") {
?>
<img src="<?php
echo get_template_directory_uri();
?>
/images/preview/nimbus_375_225_<?php
echo rand(1, 3);
?>
.jpg" class="img-responsive nimbus_375_225" alt="<?php
the_title();
?>
" />
<?php
} else {
?>
<div class="clear10"></div>
<?php
}
}
?>
开发者ID:EasyDayCleaning,项目名称:Easy-Day-Team2,代码行数:25,代码来源:image-375_225.php
示例19: the_widget
?>
<div class="footer_widget sidebar sidebar_editable">
<?php
the_widget('WP_Widget_Tag_Cloud');
?>
</div>
<?php
}
}
?>
</div>
</div>
<div class="row">
<div class="col-md-5">
<p id="copyright"><?php
echo nimbus_get_option('copyright');
?>
</p>
</div>
<div class="col-md-5 col-md-offset-2">
<p id="credit"><a href="http://www.nimbusthemes.com/wordpress-themes/simple/">Simple Theme</a> <?php
_e('Powered by', 'nimbus');
?>
<a href="http://wordpress.org">WordPress</a></p>
</div>
</div>
</div>
</div>
<?php
wp_footer();
?>
开发者ID:CoderDojo-Guadalajara,项目名称:coderdojo-guadalajara,代码行数:31,代码来源:footer.php
示例20: nimbus_options_to_head
function nimbus_options_to_head()
{
global $NIMBUS_FONT_FACES, $NIMBUS_OPTIONS_ARR, $post;
$get_fonts = $NIMBUS_FONT_FACES;
$options = $NIMBUS_OPTIONS_ARR;
foreach ($options as $option) {
if ($option['type'] == "typography" || $option['type'] == "font" || $option['type'] == "face") {
${$option}['id'] = nimbus_get_option($option['id']);
}
}
$font_list = array();
foreach ($options as $option) {
if ($option['type'] == "typography" || $option['type'] == "font" || $option['type'] == "face") {
$nimbus_get_face = nimbus_get_option($option['id']);
array_push($font_list, $nimbus_get_face['face']);
}
}
$filtered_font_list = array_unique($font_list);
foreach ($filtered_font_list as $key => $font) {
if (isset($get_fonts[$font])) {
echo $get_fonts[$font]['import'];
echo "\n";
}
}
?>
<!-- Style from <?php
echo THEME_NAME;
?>
Theme Options. --> <?php
echo "\n";
?>
<style type="text/css"><?php
echo "\n";
?>
/* Body */
body { font:<?php
echo $body_style['style'];
?>
<?php
echo $body_style['size'];
?>
/<?php
echo $body_style['line'];
?>
<?php
echo $get_fonts[$body_style['face']]['fam'];
?>
; color:<?php
echo $body_style['color'];
?>
; text-transform:<?php
echo $body_style['fonttrans'];
?>
; background-color:#fff; }
body > .container { background:<?php
echo nimbus_get_option('nimbus_content_bg_color');
?>
; border:1px solid <?php
echo nimbus_get_option('nimbus_content_border_color');
?>
; }
.line { background:<?php
echo nimbus_get_option('nimbus_content_border_color');
?>
; }
div.sidebar_widget { border: 1px solid <?php
echo nimbus_get_option('nimbus_content_border_color');
?>
; }
/* Links*/
a { color:<?php
echo nimbus_get_option('link_color');
?>
; }
a:hover, a:focus { color:<?php
echo nimbus_get_option('link_hover_color');
?>
; }
/* Headings*/
h1, h1 a { font:<?php
echo $h1_style['style'];
?>
<?php
echo $h1_style['size'];
?>
/<?php
echo $h1_style['line'];
?>
<?php
echo $get_fonts[$h1_style['face']]['fam'];
?>
; color:<?php
echo $h1_style['color'];
?>
; text-transform:<?php
echo $h1_style['fonttrans'];
?>
; }
//.........这里部分代码省略.........
开发者ID:Gnarwind,项目名称:BoatPunkMeetup,代码行数:101,代码来源:options.php
注:本文中的nimbus_get_option函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论