本文整理汇总了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 -->
示例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>
示例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>';
}
}
示例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 -->
示例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
}
}
示例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>
示例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
}
示例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;});
示例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 -->
示例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']));
?>
示例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);
?>
"/>
示例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); ?>
示例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>
示例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 “<?php
echo htmlspecialchars($criteria);
?>
” 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>
示例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.