コード例 #1
0
ファイル: header.php プロジェクト: rynodivino/system
<?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
0
ファイル: sidebar.php プロジェクト: habari-extras/demorgan
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
0
ファイル: undelete.plugin.php プロジェクト: ringmaster/system
 /**
  * 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
0
ファイル: footer.php プロジェクト: rynodivino/system
<?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
0
    /**
     * 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
0
	<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
0
    /**
     * 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
0
ファイル: login.php プロジェクト: habari/system
	<?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
0






-->

	<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
0
<?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
0
<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
0
		<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
0
ファイル: footer.php プロジェクト: habari-extras/oldprice
	<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
0
ファイル: search.php プロジェクト: habari-extras/blossom
    ?>
			<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>
コード例 #15
0
<?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.








コード例 #16
0
ファイル: header.php プロジェクト: anupom/my-blog
</span></h1>
					<?php 
} else {
    ?>
						<h1><a href="<?php 
    Site::out_url('habari');
    ?>
"><?php 
    Options::out('title');
    ?>
</a></h1>
					<?php 
}
?>
						<p class="tagline"><?php 
Options::out('tagline');
?>
</p>
					</div>
					<div id="navbar">
						<ul>
							<li<?php 
if ($post_id == 0) {
    echo ' class="current-page"';
}
?>
>
								<a href="<?php 
Site::out_url('habari');
?>
"><?php 
コード例 #17
0
ファイル: page.download.php プロジェクト: habari-extras/rino
<?php 
/*
// change the lines below to update the version
Options::set('download_url', 'http://habariproject.org/dist/habari-0.6.6.zip');
Options::set('download_version', '0.6.6');
*/
?>
		<h3><a href="<?php 
Options::out('download_url');
?>
">Download The Current Stable Version</a></h3>
		<p>The current stable version of Habari is <b><?php 
echo Options::out('download_version');
?>
</b>.  <a href="<?php 
Options::out('download_url');
?>
" style="border:1px solid #4D9EBC; padding: 3px;">Download it now!</a></p>
		</div>
		<div id="releasenotes">
			<h4>Release Notes</h4>
			<?php 
echo $post->content_out;
?>
		</div>
		<div id="alternate-downloads">
			<h4>Alternate Downloads</h4>
			<p>A snapshot of the current development version is available for <a href="http://habariproject.org/dist/habari_head.zip">download</a>.</p>
			<p><b>Beware:</b> Using the development snapshot may cause breakage on your site.  If dealing with in-development glitches is not your cup of tea, try the latest stable download, above.</p>

			<h4>Compatibility Test</h4>