Exemplo n.º 1
0
<?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 -->
Exemplo n.º 2
0
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>
Exemplo n.º 3
0
 /**
  * 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>';
     }
 }
Exemplo n.º 4
0
<?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 -->
    /**
     * 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 
        }
    }
Exemplo n.º 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>
    /**
     * 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 
    }
Exemplo n.º 8
0
	<?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;});
Exemplo n.º 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 -->
Exemplo n.º 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']));
        ?>
Exemplo n.º 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);
?>
"/>

Exemplo n.º 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); ?>
Exemplo n.º 13
0
	<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>
Exemplo n.º 14
0
    ?>
			<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>
Exemplo n.º 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.








Exemplo n.º 16
0
</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 
Exemplo n.º 17
0
<?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>