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


PHP Options::out方法代碼示例

本文整理匯總了PHP中Options::out方法的典型用法代碼示例。如果您正苦於以下問題:PHP Options::out方法的具體用法?PHP Options::out怎麽用?PHP Options::out使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Options的用法示例。


在下文中一共展示了Options::out方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title><?php echo $theme->page_title; ?></title>
<meta name="generator" content="Habari">

<link rel="stylesheet" type="text/css" media="screen" href="<?php Site::out_url( 'theme' ); ?>/style.css">

<?php echo $theme->header(); ?>
</head>

<body class="<?php echo $theme->body_class(); ?>">
<div id="page">
	<div id="header">

	<h1><a href="<?php Site::out_url( 'habari' ); ?>"><?php Options::out( 'title' ); ?></a></h1>
	<p class="description"><?php Options::out( 'tagline' ); ?></p>

	<?php echo $theme->area('nav'); ?>

	</div>

	<hr>
<!-- /header -->
開發者ID:rynodivino,項目名稱:system,代碼行數:26,代碼來源:header.php

示例2: _e

if (Plugins::is_loaded('FreshSurf')) {
    $theme->display('freshsurf.widget');
}
?>
		</ul>
		<ul id="sidebar-2" class="xoxo">
<?php 
if (strlen(Options::get('about')) > 0) {
    ?>
			<li id="widget-about" class="widget">
				<h3><?php 
    _e('About', 'demorgan');
    ?>
</h3>
				<p><?php 
    Options::out('about');
    ?>
</p>
			</li>
<?php 
}
$theme->display('tagcloud.widget');
$theme->jaiku();
$theme->twitter();
$theme->twitterlitte();
$theme->audioscrobbler();
$theme->display('feedlink.widget');
$theme->display('admin.widget');
?>
		</ul>
	</div>
開發者ID:habari-extras,項目名稱:demorgan,代碼行數:31,代碼來源:sidebar.php

示例3: action_template_header

 /**
  * this method will inject some CSS into the <head>
  * of the public facing theme so that deleted posts
  * will show up differently
  */
 public function action_template_header()
 {
     // only show the style to logged in users
     if (User::identify()->loggedin) {
         echo '<style type="text/css">';
         Options::out('undelete__style');
         echo '</style>';
     }
 }
開發者ID:ringmaster,項目名稱:system,代碼行數:14,代碼來源:undelete.plugin.php

示例4: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<!-- footer -->
<div class="clear"></div>
</div>

<hr>

<p id="footer">
<small><?php Options::out('title'); _e(' is powered by'); ?> <a href="http://www.habariproject.org/" title="Habari">Habari</a> <?php _e('and a huge amount of '); ?>
<a href="http://en.wikipedia.org/wiki/Caffeine" title="<?php _e('Caffeine'); ?>" rel="nofollow">C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub></a></small><br>
<small><a href="<?php URL::out( 'atom_feed', array( 'index' => '1' ) ); ?>"><?php _e('Atom Entries'); ?></a> <?php _e('and'); ?> <a href="<?php URL::out( 'atom_feed_comments' ); ?>"><?php _e('Atom Comments'); ?></a></small>
</p>

<?php echo $theme->footer(); ?>

<?php
/* In order to see DB profiling information:
1. Insert this line in your config file: define( 'DEBUG', true );
2.Uncomment the followng line
*/
// include 'db_profiling.php';
?>
</body>
</html>
<!-- /footer -->
開發者ID:rynodivino,項目名稱:system,代碼行數:26,代碼來源:footer.php

示例5: action_template_header

    /**
     * action: template_header
     *
     * @access public
     * @return void
     */
    public function action_template_header($theme)
    {
        if ($theme->request->display_entry == true || $theme->request->display_page == true) {
            $load_message = Options::get('twiple_tweetback__load_message');
            $notweets_message = Options::get('twiple_tweetback__notweets_message');
            ?>
<script type="text/javascript" src="http://static.twiple.jp/js/tweetback.js"></script>
<script type="text/javascript">
tweetback.options.default_style = <?php 
            Options::out('twiple_tweetback__default_style');
            ?>
;
tweetback.options.limit = <?php 
            Options::out('twiple_tweetback__limit');
            ?>
;
<?php 
            if (!empty($load_message)) {
                ?>
tweetback.options.load_message = '<?php 
                echo htmlspecialchars($load_message, ENT_QUOTES);
                ?>
';
<?php 
            }
            if (!empty($notweets_message)) {
                ?>
tweetback.options.notweets_message = '<?php 
                echo htmlspecialchars($notweets_message, ENT_QUOTES);
                ?>
';
<?php 
            }
            ?>
</script>
<?php 
        }
    }
開發者ID:habari-extras,項目名稱:twiple_tweetback,代碼行數:44,代碼來源:twiple_tweetback.plugin.php

示例6: if

	<script src="<?php Site::out_url( 'theme' ); ?>/scripts/fixpngs.js" type="text/javascript" charset="utf-8"></script>
	<![endif]-->
	<?php $theme->header(); ?>
</head>
<body class="<?php $theme->body_class(); ?>">
	<div id="page-top">
		<div id="wrapper-top">
			<div id="top-primary">
				<div id="header">
					<div id="title">
					<?php if ( $show_title_image ) : ?>
						<h1><a href="<?php Site::out_url( 'habari' ); ?>"><img src="<?php Site::out_url( 'theme' ); ?>/images/sample-title.png" alt="<?php Options::out( 'title' ); ?>" ></a><span class="hidden"><?php Options::out( 'title' ); ?></span></h1>
					<?php else : ?>
						<h1><a href="<?php Site::out_url( 'habari' ); ?>"><?php Options::out( 'title' ); ?></a></h1>
					<?php endif; ?>
						<p class="tagline"><?php Options::out( 'tagline' ); ?></p>
					</div>
					<div id="navbar">
						<ul>
						<?php $theme->area('nav'); ?>
						<?php if ($display_login): ?>
							<li class="login">
							<?php if ( $loggedin ) : ?>
								<a href="<?php Site::out_url( 'admin' ); ?>" title="<?php _e( "Admin area" ); ?>"><?php _e( "Admin" ); ?></a>
							<?php else: ?>
								<a href="<?php Site::out_url( 'login' ); ?>" title="<?php _e( "Login" ); ?>"><?php _e( "Login" ); ?></a>
							</li>
							<?php endif; ?>
						<?php endif; ?>
						</ul>
					</div>
開發者ID:nerdfiles,項目名稱:habari_boilerplate,代碼行數:31,代碼來源:header.php

示例7: action_template_header

    /**
     * action: template_header
     *
     * @access public
     * @param object $theme
     * @return void
     */
    public function action_template_header($theme)
    {
        ?>
<script type="text/javascript">
var habari_googlemaps = {
	map_width: <?php 
        Options::out('googlemaps__map_width');
        ?>
,
	map_height: <?php 
        Options::out('googlemaps__map_height');
        ?>
,
	streetview_width: <?php 
        Options::out('googlemaps__streetview_width');
        ?>
,
	streetview_height: <?php 
        Options::out('googlemaps__streetview_height');
        ?>
};
</script>
<?php 
    }
開發者ID:habari-extras,項目名稱:googlemaps,代碼行數:31,代碼來源:googlemaps.plugin.php

示例8: _e

	<?php 
Plugins::act('admin_header', $this);
Stack::out('admin_header_javascript', Method::create('\\Habari\\Stack', 'scripts'));
Stack::out('admin_stylesheet', Method::create('\\Habari\\Stack', 'styles'));
?>

</head>
<body class="login">
	<div id="page" class="container">
		<div class="columns six offset-by-five">
			<?php 
echo $form;
?>
			<p class="poweredby"><?php 
_e('%1$s is powered by %2$s', array(Options::out('title'), '<a href="http://habariproject.org/" title="' . _t('Go to the Habari site') . '">Habari ' . Version::get_habariversion() . '</a>'));
?>
</p>
		</div>
	</div>
<?php 
Plugins::act('admin_footer', $this);
Stack::out('admin_footer_javascript', ' <script src="%s" type="text/javascript"></script>' . "\r\n");
?>

<script type="text/javascript">
	$(document).ready( function() {
		<?php 
Session::messages_out(true, Method::create('\\Habari\\Format', 'humane_messages'));
?>
		$('.reset_link').click(function(){$(this).closest('form').toggleClass('do_reset'); return false;});
開發者ID:habari,項目名稱:system,代碼行數:30,代碼來源:login.php

示例9: foreach








-->

	<div id="wrapper" class="container">
	
		<header id="masthead">
		
			<hgroup id="branding">
				<h1><a href="<?php Site::out_url( 'habari'); ?>" title="<?php Options::out( 'title' ); ?>"> <?php Options::out( 'title' ); ?></a></h1>
				<h2 class=""><?php Options::out( 'tagline' ); ?></h2>
			</hgroup>
			
        	<nav id="nav">
            	<ul>
            		<li><a href="<?php Site::out_url( 'habari' ); ?>"><?php _e('Home'); ?></a></li>
            		<?php foreach($pages as $page): ?>
                    <li>
                        <a href="<?php echo $page->permalink; ?>" title="<?php echo $page->title; ?>"><?php echo $page->title; ?></a>
                    </li>
            		<?php endforeach; ?>
            	</ul>
        	</nav>

		</header><!-- End #masthead -->
開發者ID:nerdfiles,項目名稱:habari_boilerplate,代碼行數:23,代碼來源:header.php

示例10: array

<?php

namespace Habari;

?>
<div id="addons-header">
<small><a href="<?php 
URL::out(array("display_addon_basepath", "display_basepath"));
?>
"><?php 
Options::out('addon_catalog__basepath', 'explore');
?>
</a>
<?php 
switch (true) {
    case $request->display_addons:
        ?>
/ <a href="<?php 
        URL::out("display_addons", array('addon' => $matched_rule->named_arg_values['addon']));
        ?>
"><?php 
        echo $matched_rule->named_arg_values['addon'];
        ?>
</a>
<?php 
        break;
    case $request->display_addon:
        ?>
/ <a href="<?php 
        URL::out("display_addons", array('addon' => $matched_rule->named_arg_values['addon']));
        ?>
開發者ID:habari-extras,項目名稱:addon_catalog,代碼行數:31,代碼來源:catalog_header.php

示例11:

<meta property="og:title" content="<?php 
echo $post->title;
?>
"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="<?php 
echo $post->permalink;
?>
"/>
<meta property="og:site_name" content="<?php 
Options::out('title');
?>
"/>
<meta property="fb:admins" content="<?php 
Options::out('share__fb_admins');
?>
"/>
<meta property="og:description" content="<?php 
$theme->get_post_description($post);
?>
"/>

開發者ID:habari-extras,項目名稱:share,代碼行數:21,代碼來源:share_metadata.php

示例12: foreach

		<div id="menulist" class="dropbuttonlist">
			<ul>
			<?php foreach($mainmenu as $menu_id => $menu): ?>
				<li id="link-<?php echo $menu_id ?>" class="<?php if ($menu['selected'] == true) { echo 'selected'; } ?><?php if (isset($menu['submenu'])): ?> submenu<?php endif; ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo $menu['url']; ?>"><?php echo $menu['text']; ?>
				<?php if ( isset($menu['hotkey']) && $menu['hotkey'] != '' ): ?><span class="hotkey"><?php echo $menu['hotkey']; ?></span><?php endif; ?>
				</a>
				<?php if ( isset($menu['submenu']) ): ?>
				<ul class="submenu">
				 <?php foreach($menu['submenu'] as $submenu_id => $submenu_item): ?>
				 	<li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if (isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != ''): ?> hotkey-<?php echo $submenu_item['hotkey']; ?><?php endif; ?>"><a href="<?php echo $submenu_item['url']; ?>"><?php echo $submenu_item['text']; ?>
				 	<?php if ( isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != '' ): ?><span class="hotkey"><?php echo $submenu_item['hotkey']; ?></span><?php endif; ?>
				 	</a></li>
				 <?php endforeach; ?>
				 </ul>
				<?php endif; ?>
				</li>
			<?php endforeach; ?>
			</ul>
		</div>
	</div>

	<a href="<?php Site::out_url('habari'); ?>" id="site" title="<?php _e('Go to Site'); ?>"><?php Options::out('title'); ?></a>

</div>

<div id="spinner"></div>

<div id="page">

<?php Plugins::act('admin_info', $theme, $page); ?>
開發者ID:nerdfiles,項目名稱:habari_boilerplate,代碼行數:30,代碼來源:header.php

示例13: _e

	<div id="footer">
		<span id="generator-link"><?php 
_e('%s is powered by', array(Options::out('title')));
?>
 <a href="http://habariproject.org/" title="Habari">Habari <?php 
echo Version::HABARI_VERSION;
?>
</a> and <a href="http://fireyy.com/archives/oldprice-theme-for-habari-180" title="oldprice theme for Habari">oldprice</a></span>
	</div><!-- #footer -->
</div><!-- #wrapper .hfeed -->
<div id="wrapper_footer">footer</div>
<?php 
$theme->footer();
?>

<?php 
// Uncomment this to view your DB profiling info
// include 'db_profiling.php';
?>
</body>
</html>
開發者ID:habari-extras,項目名稱:oldprice,代碼行數:21,代碼來源:footer.php

示例14: htmlspecialchars

    ?>
			<h1>No posts found. Try a different search?</h1>
		<?php 
}
?>

		</div>

		<div class="secondary">
			<h2>Search</h2>
			<div class="featured">
				<p>You searched for &ldquo;<?php 
echo htmlspecialchars($criteria);
?>
&rdquo; at <?php 
Options::out('title');
?>
. There were
				<?php 
if (!$posts) {
    echo "no results, better luck next time.";
} elseif (1 == count($posts)) {
    echo "one result found. It must be your lucky day.";
} else {
    echo count($posts) . " results found.";
}
?>
				</p>

			</div>
		</div>
開發者ID:habari-extras,項目名稱:blossom,代碼行數:31,代碼來源:search.php

示例15: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

	<footer id="footer">
	   <section>
	       <p><?php Options::out('title'); ?> <?php _e('is powered by'); ?> <a href="http://www.habariproject.org/" title="Habari">Habari</a> | <a href="<?php Site::out_url('admin'); ?>">Dashboard</a></p>
	   </section>
	</footer><!-- End #footer -->
	
</div><!-- End #wrapper -->

<!--










          This section has been intentionally left blank.








開發者ID:nerdfiles,項目名稱:habari_boilerplate,代碼行數:22,代碼來源:footer.php


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