當前位置: 首頁>>代碼示例>>PHP>>正文


PHP nimbus_get_option函數代碼示例

本文整理匯總了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 
}
?>

開發者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


注:本文中的nimbus_get_option函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。