Пример #1
0
	<?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>
				</div>
Пример #2
0
?>
</textarea>
      <p><input type="submit" name="submit" value="Save Changes" /><?php 
if (!is_writable($file)) {
    echo " &nbsp; <span style=\"color:#B00;font-weight:bold;\">File not writable!</span>";
}
?>
</p>
      <input type="hidden" name="file" class="file" value="<?php 
echo $file;
?>
" />
     </form>
    </div>
   </td>
   <td class="browser">
    <div class="fileman">
     <p>Base Dir: <?php 
Site::out_url("user");
?>
</p><br />
     <div id="jQueryFileTree"></div>
    </div>
   </td>
  </tr>
 </table>
 <p style="text-align:center;color:#555;font-size:10px;">FileMan Plugin for <a href="http://habariproject.org">Habari</a> made by <a href="http://mattsd.com">Matt-SD</a></p>
</div>
<?php 
$theme->display('footer');
//Get Habari footer
Пример #3
0
<?php if ( !defined( 'HABARI_PATH' ) ) { die( 'No direct access' ); } ?>
	<ul class="items">

		<?php foreach((array)$recent_posts as $post): ?>
		<li class="item clear">
			<?php /* @locale Time formats according to http://php.net/manual/en/function.date.php */ $ptime = $post->pubdate->get( _t( 'g:i' ) ); ?>
			<?php /* @locale Date formats according to http://php.net/manual/en/function.date.php */ $pdate = $post->pubdate->get( _t( 'F jS, Y' ) ); ?>
			<span class="date pct15 minor"><a href="<?php echo URL::get('display_entries_by_date', array('year' => $post->pubdate->get( 'Y' ), 'month' => $post->pubdate->get( 'm' ), 'day' => $post->pubdate->get( 'd' ) ) ); ?>" title="<?php printf(_t('Posted at %1$s on %2$s'), $ptime, $pdate ); ?>"><?php /* @locale Date formats according to http://php.net/manual/en/function.date.php */ $post->pubdate->out(  _t( 'M j' ) ); ?></a></span>
			<span class="title pct75"><a href="<?php URL::out('admin', 'page=publish&id=' . $post->id); ?>" title="<?php printf( _t('Edit \'%s\''), $post->title ); ?>"><?php echo $post->title; ?></a> <span class="dim"><?php _e('by'); ?></span> <a class="minor" href="<?php Site::out_url('admin'); ?>/user/<?php echo $post->author->username; ?>"><?php echo $post->author->displayname; ?></a></span>
			<span class="comments pct10"><a href="<?php echo $post->permalink; ?>#comments"><?php echo $post->comments->approved->count; ?></a></span>
		</li>
		<?php endforeach; ?>

	</ul>
Пример #4
0
        }
        ?>
				 </ul>
				<?php 
    }
    ?>
				</li>
			<?php 
}
?>
			</ul>
		</div>
	</div>

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

</div>

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

<div id="page">
Пример #5
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.








Пример #6
0
			<?php 
include "sidebar-text.php";
?>
		
			<h2>Categories</h2>
			<ul>
			<?php 
if (count($all_tags) > 0) {
    ?>
			  <ul class="tags">
			    <?php 
    foreach ($all_tags as $tag) {
        ?>
			      <li>
			        <a href="<?php 
        Site::out_url('habari');
        ?>
/tag/<?php 
        echo $tag->slug;
        ?>
/" rel="tag" title="See posts with <?php 
        echo $tag->tag;
        ?>
 tag">
			          <?php 
        echo $tag->tag;
        ?>
			        </a>
			      </li>
			    <?php 
    }
Пример #7
0
</div>
<div id="page-bottom">
	<div id="wrapper-bottom">
		<div id="bottom-primary">
			<div id="prev-posts">
			<?php while ($post =next($posts)) : ?>
				<div class="prev-post">
					<div class="prev-post-title">
						<h2>
							<a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a>
						</h2>
					</div>
					<div class="prev-post-excerpt">
						<p>
							<?php echo $post->content_excerpt; ?>
							<a href="<?php echo $post->permalink; ?>" title="<?php printf( _t("Continue reading %s"), $post->title ); ?>"><img src="<?php Site::out_url( 'theme' ); ?>/images/arrow.png" alt="<?php _e( "more" ); ?>"></a>
						</p>
					</div>
				</div>
			<?php endwhile; ?>
			</div>
			<div id="prev-posts-footer">
				<span class="nav-next"><?php echo $theme->prev_page_link( _t('Newer Posts') ); ?></span>
				<span class="nav-prev"><?php echo $theme->next_page_link( _t('Older Posts') ); ?></span>
				<br class="clear">
			</div>
			<?php //$theme->prevnext($page, Utils::archive_pages($posts->count_all())); ?>
			<?php $theme->display_archives() ;?>
			
<?php include 'footer.php'; ?>
Пример #8
0
						<span class="post-date"><?php $post->pubdate->out(); ?></span>
						<span class="post-comments-link">
							<a href="<?php echo $post->permalink.'#comment-form'; ?>" title="<?php _e( "Comments on this post" ); ?>"><?php $theme->post_comments_link( $post ); ?></a>
						</span>
						<span class="clear"></span>
					</div>
					<div class="post-entry">
						<?php echo $post->content_excerpt; ?>
					</div>
				</div>
		<?php endforeach; ?>
			</div>
		</div>
		<div id="top-secondary">
		<?php include'sidebar.php' ?>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div id="page-bottom">
	<div id="wrapper-bottom">
		<div id="bottom-primary">
			<div id="prev-posts-footer">
				<span class="nav-next"><?php echo $theme->prev_page_link( _t('Newer Posts') ); ?><img class="hidden" src="<?php Site::out_url('theme'); ?>/images/nav-right.png" alt=""></span>
				<span class="nav-prev"><img class="hidden" src="<?php Site::out_url('theme'); ?>/images/nav-left.png" alt=""><?php echo $theme->next_page_link( _t('Older Posts') ); ?></span>
				<br class="clear">
			</div>
			<?php $theme->display_archives() ;?>

<?php include 'footer.php'; ?>
Пример #9
0
        ?>
								<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 
    }
    ?>
						<?php 
}
?>
Пример #10
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); ?>
Пример #11
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 -->
Пример #12
0
        ?>
#pingback-<?php 
        echo $pingback->id;
        ?>
" ><time datetime="<?php 
        $pingback->date->out('Y-m-d\\TH:i:sP');
        ?>
" pubdate><?php 
        echo $pingback->date->out();
        ?>
</time></a>
							<?php 
        if ($loggedin) {
            ?>
							<a class="pingback-edit-link" href="<?php 
            Site::out_url('admin', true);
            ?>
comment?id=<?php 
            echo $pingback->id;
            ?>
">Edit</a>
							<?php 
        }
        ?>
						</li>
					</ol>
					<?php 
    }
    ?>
				</aside>
				<?php 
Пример #13
0
     root: '<?php 
site::out_dir("user");
?>
/',
     script: '<?php 
Site::out_url("habari");
?>
/user/plugins/fileman/jqueryFileTree/jqueryFileTree.php',
     expandSpeed: 1000,
     collapseSpeed: 1000,
     multiFolder: true,
     loadMessage: 'Loading...'
     }, function(file) {
      window.location="?file="+file;
    });
    $('form.fileman').submit(function(){
     $.post(
      '<?php 
Site::out_url("habari");
?>
/user/plugins/fileman/save.php',
      'file='+$('form.fileman input.file').val()+'&contents='+$('form.fileman textarea').val(),
      function(data) {
       $('form.fileman p.status span').html(data);
      }
     )
     return false;
    });
   });
  </script>
Пример #14
0
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<?php if ( isset( $error ) ) { ?>

<p><?php _e('That login is incorrect.'); ?></p>

<?php } ?>

<?php if ( $loggedin ) { ?>

<p><?php _e('You are logged in as'); ?> <?php echo $user->username; ?>.</p>
<p><?php _e('Want to'); ?> <a href="<?php Site::out_url( 'habari' ); ?>/auth/logout"><?php _e('log out'); ?></a>?</p>

<?php } else { ?>

<?php Plugins::act( 'theme_loginform_before' ); ?>

<form 
    method="post" 
    action="<?php URL::out( 'auth', array( 'page' => 'login' ) ); ?>">
	
	<fieldset>
	
    	<div>
            <label for="habari_username"><small><strong><?php _e('Name:'); ?></strong></small></label>
            <input 
                type="text" 
                size="25" 
                name="habari_username" 
                id="habari_username" 
                tabindex="1" />
Пример #15
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 -->
Пример #16
0
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div id="search">
	<?php echo $theme->search_form() ?>
</div>
<div id="feeds">
	<div class="feedlink"><a href="<?php URL::out( 'atom_feed', array( 'index' => '1' ) ); ?>"><?php _e( "{blog entries}" ); ?></a></div>
	<div class="feedlink"><a href="<?php URL::out( 'atom_feed_comments' ); ?>"><?php _e( "{comments}" ); ?></a></div>
</div>
<div id="habari-link">
<?php if ($show_powered) : ?>
	<a href="http://habariproject.org/" title="<?php _e( "Powered by Habari" ); ?>"><img src="<?php Site::out_url('theme'); ?>/images/pwrd_habari.png" alt="<?php _e( "Powered by Habari" ); ?>"></a>
<?php  endif; ?>
</div>
<div id="sidebar">
<!-- Call your plugins theme functions here-->
<?php echo $theme->area('sidebar'); ?>
</div>
Пример #17
0
URL::out('atom_feed_comments');
?>
"><?php 
_e("{comments}");
?>
</a></div>
</div>
<div id="habari-link">
<?php 
if ($show_powered) {
    ?>
	<a href="http://habariproject.org/" title="<?php 
    _e("Powered by Habari");
    ?>
"><img src="<?php 
    Site::out_url('theme');
    ?>
/images/pwrd_habari.png" alt="<?php 
    _e("Powered by Habari");
    ?>
"></a>
<?php 
}
?>
</div>
<div id="sidebar">
<!-- Call your plugins theme functions here-->
<?php 
$theme->area('sidebar');
?>
</div>
Пример #18
0
		url: {
			habari: '<?php 
Site::out_url('habari');
?>
',
		}
	};
	</script>
	<?php 
Plugins::act('admin_header', $this);
Stack::out('admin_header_javascript', array('Stack', 'scripts'));
Stack::out('admin_stylesheet', array('Stack', 'styles'));
?>
	<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="<?php 
Site::out_url('admin_theme');
?>
/css/ie.css" media="screen">
	<![endif]-->

	<?php 
Plugins::act('admin_header_after', $this);
?>

</head>
<body class="page-<?php 
echo $page;
?>
 modal">

<div id="spinner"></div>
Пример #19
0
    ?>
"><?php 
    $post->pubdate->out('M j');
    ?>
</a></span>
			<span class="title pct75"><a href="<?php 
    URL::out('admin', 'page=publish&id=' . $post->id);
    ?>
" title="<?php 
    printf(_t('Edit \'%s\''), $post->title);
    ?>
"><?php 
    echo $post->title;
    ?>
</a> <a class="minor" href="<?php 
    Site::out_url('admin');
    ?>
/user/<?php 
    echo $post->author->username;
    ?>
"> <?php 
    _e('by');
    ?>
 <?php 
    echo $post->author->displayname;
    ?>
</a></span>
			<span class="comments pct10"><a href="<?php 
    echo $post->permalink;
    ?>
#comments"><?php 
Пример #20
0
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="en"/>
	<meta name="robots" content="no index,no follow" />
	<link rel="shortcut icon" href="<?php Site::out_url('habari'); ?>/favicon.ico" />
	<link href="<?php Site::out_url('habari'); ?>/system/installer/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<?php Site::out_url('vendor'); ?>/jquery.js"></script>
	<title><?php _e('Install Habari'); ?></title>
</head>
<body id="installer">
	<div id="wrapper">
		<?php $tab = 1; ?>
		<div id="masthead">
			<h1>Habari</h1>
			<div id="footer">
				<p class="left"><a href="<?php Site::out_url( 'habari' ); ?>/doc/manual/index.html" onclick="popUp(this.href); return false;" title="<?php _e('Read the user manual'); ?>" tabindex="<?php echo $tab++ ?>"><?php _e('Manual'); ?></a> &middot;
					<a href="http://wiki.habariproject.org/" title="<?php _e('Read the Habari wiki'); ?>" tabindex="<?php echo $tab++ ?>">Wiki</a> &middot;
					<a href="http://groups.google.com/group/habari-users" title="<?php _e('Ask the community'); ?>" tabindex="<?php echo $tab++ ?>"><?php _e('Mailing List'); ?></a>
				</p>
			</div>
		</div>
		<?php include "locale_dropdown.php"; ?>