Esempio n. 1
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>
Esempio n. 2
0
		<div id="sidebar">
		
			<div id="rss">
			<a href="<?php 
URL::out('atom_feed', array('index' => '1'));
?>
"><span>Subscribe</span></a>
			</div>
			
			<div id="sidebar_main">

			<h2>Search</h2>
			
			<div id="search_block">
			<form method="get" id="searchform" action="<?php 
URL::out('display_search');
?>
/">
			<div>
			<input type="text" name="criteria" id="s" class="field" value="Searching for ?" onfocus="if (this.value == 'Searching for ?') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Searching for ?';}" />
			<input type="image" src="<?php 
Site::out_url('theme');
?>
/img/search.gif" id="searchsibmit" class="submit" name="submit" />
			</div>
			</form>
			</div>
			
			<?php 
include "sidebar-text.php";
?>
Esempio n. 3
0
"><?php 
            echo $comment->date->out('d-m-Y / H:i');
            ?>
</a>, said:</p>
									<div class="response">
										<?php 
            echo $comment->content_out;
            ?>
									</div>
									<p>
										<?php 
            if ($user) {
                ?>
												
													<a href="<?php 
                URL::out('admin', 'page=comment&id=' . $comment->id);
                ?>
" title="<?php 
                _e('Edit this comment');
                ?>
"><?php 
                _e('Edit this comment');
                ?>
</a>
													
												<?php 
            }
            ?>
										
									</p>
								</li>
Esempio n. 4
0
<div id="search">
	<?php 
$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');
Esempio n. 5
0
</a></li>
			<?php 
            } else {
                ?>
			<li><a href="<?php 
                URL::out('admin', 'page=preview_theme&theme_dir=' . $inactive_theme['dir'] . '&theme_name=' . $inactive_theme['info']->name);
                ?>
"><?php 
                _e('Preview');
                ?>
</a></li>
			<?php 
            }
            ?>
			<li><a href="<?php 
            URL::out('admin', 'page=activate_theme&theme_dir=' . $inactive_theme['dir'] . '&theme_name=' . $inactive_theme['info']->name);
            ?>
"><?php 
            _e('Activate');
            ?>
</a></li>
		</ul>
	    <?php 
        }
        ?>
	</div> 	

<?php 
    }
}
?>
	<script type="text/javascript">
		$(document).ready(function(){
			$('#generate-guid').click(function(){
				spinner.start();
				$.get(
					'<?php 
URL::out('auth_ajax', array('context' => 'generate_guid'));
?>
',
					function(data) {
						$('#<?php 
echo $id;
?>
').val(data);
						$('#<?php 
echo $id;
?>
').focus();
						spinner.stop();
					}
				);
			});
		});
		</script>
		<div class="container">
		<button type="button" id="generate-guid" style="float:right">Generate New GUID</button>
		</div>
		<?php 
include HABARI_PATH . '/system/admin/formcontrols/admincontrol_text.php';
Esempio n. 7
0
        ?>
"> 
		 	<span class="checkbox"><input type="checkbox" class="checkbox" name="checkbox_ids[<?php 
        echo $tag->id;
        ?>
]" id="checkbox_ids[<?php 
        echo $tag->id;
        ?>
]"></span><label for="checkbox_ids[<?php 
        echo $tag->id;
        ?>
]"><?php 
        echo $tag->term_display;
        ?>
</label><span class="count"><a href="<?php 
        URL::out('admin', array('page' => 'posts', 'search' => 'tag:' . $tag->tag_text_searchable));
        ?>
" title="<?php 
        echo Utils::htmlspecialchars(_t('Manage posts tagged %1$s', array($tag->term_display)));
        ?>
"><?php 
        echo $tag->count;
        ?>
</a></span>
		 </li>
<?php 
    }
} else {
    ?>
<div class="message none">
	<p><?php 
Esempio n. 8
0
        ?>
</span> <a href="<?php 
        URL::out('admin', array('page' => 'posts', 'user_id' => $post->user_id, 'type' => $post->content_type, 'status' => 'any'));
        ?>
" title="<?php 
        _e('Search for other items by %s', array($post->author->displayname));
        ?>
"><?php 
        echo $post->author->displayname;
        ?>
</a></span>
		<span class="date pct15"><span class="dim"><?php 
        _e('on');
        ?>
</span> <a href="<?php 
        URL::out('admin', array('page' => 'posts', 'type' => $post->content_type, 'year_month' => $post->pubdate->get('Y-m')));
        ?>
" title="<?php 
        _e('Search for other items from %s', array($post->pubdate->get('M, Y')));
        ?>
"><?php 
        $post->pubdate->out(HabariDateTime::get_default_date_format());
        ?>
</a></span>
		<span class="time pct10"><span class="dim"><?php 
        _e('at');
        ?>
 <?php 
        $post->pubdate->out(HabariDateTime::get_default_time_format());
        ?>
</span></span>
Esempio n. 9
0
URL::out('atom_feed', array('index' => '1'));
?>
">Entries RSS</a> <a href="<?php 
URL::out('atom_feed_comments');
?>
">Comments RSS</a> <a href="http://validator.w3.org/check?uri=referer">XHTML</a> <?php 
if ($loggedin) {
    ?>
<a href="<?php 
    Site::out_url('admin');
    ?>
" title="Admin area">Site Admin</a><?php 
} else {
    ?>
<a href="<?php 
    URL::out('user', array('page' => 'login'));
    ?>
" title="login">Login</a><?php 
}
?>
</p>
		</div>
	</div>
	
	<?php 
$theme->footer();
?>
</body>
</html>
<!-- end footer.php -->
Esempio n. 10
0
<?php

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

<?php 
include 'navigator.php';
?>

<form method="post" action="<?php 
URL::out('admin', array('page' => 'logs'));
?>
" class="buttonform">

<div class="container transparent item controls">

	<input type="hidden" name="nonce" id="nonce" value="<?php 
echo $wsse['nonce'];
?>
">
	<input type="hidden" name="timestamp" id="timestamp" value="<?php 
echo $wsse['timestamp'];
?>
">
	<input type="hidden" name="password_digest" id="password_digest" value="<?php 
echo $wsse['digest'];
?>
">
Esempio n. 11
0
</a></li>
<?php 
    }
}
?>
</ul>
</div>

<?php 
if ($loggedin) {
    ?>
<p><?php 
    _e('You are logged in as');
    ?>
 <a href="<?php 
    URL::out('admin', 'page=user&user='******'Want to');
    ?>
 <a href="<?php 
    Site::out_url('habari');
    ?>
/auth/logout"><?php 
    _e('log out');
    ?>
?</a></p>
Esempio n. 12
0
} else {
    echo '<p>' . $da_blurbtext . '</p>';
}
?>
				</div>

				<?php 
$theme->twitter();
?>

				<?php 
if ($sidenotes->count()) {
    ?>
				<div id="sidenotes">
					<h3><a href="<?php 
    URL::out('atom_feed_tag', array('tag' => $theme->da_sidenotes_tag));
    ?>
" title="Side Notes Feed"><img alt="Side Notes Feed" src="<?php 
    echo $this->theme_url;
    ?>
/images/feed.png" /></a>&nbsp;Side Notes</h3>
					<ul>
					<?php 
    foreach ($sidenotes as $sidenote) {
        ?>
						<li><?php 
        echo $sidenote->content_out;
        ?>
</li>
					<?php 
    }
Esempio n. 13
0
            if ((string) $help['name'] == '') {
                echo '<div class="help">' . $help->value . '</div>';
            }
        }
    }
    ?>
	</div>

	<?php 
    if (isset($this->engine_vars['configure']) && $configure == $plugin['plugin_id']) {
        ?>
	<div id="pluginconfigure">
		<?php 
        Plugins::plugin_ui($configure, $configaction);
        ?>
		<a class="link_as_button" href="<?php 
        URL::out('admin', 'page=plugins');
        ?>
"><?php 
        _e('Close');
        ?>
</a>
	</div>
	<?php 
    }
    ?>

</div>

<?php 
}
" title="<?php 
_e('Go to Site');
?>
"><?php 
Options::out('title');
?>
</a></h1>

		<div class="container">
			<p><?php 
_e('Your comment did not pass our spam filter. Please enter the text you see on the box below to verify you are not a spam bot and your comment is valid. Thank You and sorry for the inconveneance', 'mollom');
?>
</p>

				<form method="post" action="<?php 
URL::out('mollom_fallback', array('fallback' => 'captcha'));
?>
">
					<p>
						<?php 
echo $theme->captcha['html'];
?>
<br />
						
						<?php 
echo $theme->audio_captcha['html'];
?>
 <br />
						
						<label><?php 
_e('Enter the text you see in the image above or press play to hear the text.', 'mollom');
Esempio n. 15
0
            </header>
            <div class="content"><?php 
        echo $comment->content_out;
        ?>
</div>
        </article>
        <?php 
    }
    ?>
    </div>
    <?php 
}
?>

        <form action="<?php 
URL::out('submit_feedback', array('id' => $post->id));
?>
" method="post">
        <fieldset>
            <dl>
            <dt></dt>
            <dd>
                <textarea name="content" id="comment-content" cols="20" rows="10"></textarea>
            </dd>

            <dt>
                <label for="name"><?php 
_e('Name');
if (Options::get('comments_require_id') == 1) {
    ?>
 <span class="required">*</span><?php 
Esempio n. 16
0
				<li><a href="<?php 
    URL::out('admin', array('page' => 'cronjob', 'cron_id' => $cron->cron_id));
    ?>
"><?php 
    _e('Edit', 'crontabmanager');
    ?>
</a></li>
				<li><a href="<?php 
    URL::out('admin', array('page' => 'crontab', 'action' => 'run', 'cron_id' => $cron->cron_id));
    ?>
"><?php 
    _e('Run Now', 'crontabmanager');
    ?>
</a></li>
				<li><a href="<?php 
    URL::out('admin', array('page' => 'crontab', 'action' => 'delete', 'cron_id' => $cron->cron_id));
    ?>
"><?php 
    _e('Delete', 'crontabmanager');
    ?>
</a></li>
			</ul>

		</div>
		
		<div class="description pct50">
			<p><?php 
    _e('Result:', 'crontabmanager');
    ?>
 <b><?php 
    echo $cron->result ? ucfirst($cron->result) : _t('Not Run', 'crontabmanager');
Esempio n. 17
0
		<input type="search" id="search" placeholder="<?php 
_e('search settings');
?>
" tabindex="2">
	</span>
</div>

<div class="container transparent groupstats">
<p><?php 
echo sprintf(_n('Group %1$s has <strong>%2$d</strong> member', 'Group %1$s has <strong>%2$d</strong> members', count($members)), "<strong>{$group->name}</strong>", count($members));
?>
</p>
</div>

<form name="update-group" id="update-group" action="<?php 
URL::out('admin', 'page=group');
?>
" method="post">
<div class="container settings group groupmembers" id="groupmembers">

	<h2><?php 
_e('Group Members');
?>
</h2>
	
	<div class="item clear" id="assignedusers">
		<span class="pct100" id="currentusers">
			<span class="pct20">
				<label><strong><?php 
_e('Members');
?>
Esempio n. 18
0
    ?>
">'));
	$('#delete').click(function(){
		$('#create-content')
			.append($('<input type="hidden" name="nonce" value="<?php 
    echo $wsse['nonce'];
    ?>
"><input type="hidden" name="timestamp" value="<?php 
    echo $wsse['timestamp'];
    ?>
"><input type="hidden" name="digest" value="<?php 
    echo $wsse['digest'];
    ?>
">'))
			.attr('action', '<?php 
    URL::out('admin', array('page' => 'delete_post', 'id' => $post->id));
    ?>
')
			.submit();
	});
	<?php 
}
?>

	// If the post hasn't been published, add a publish button
	<?php 
$show_publish = $post->id == 0 && User::identify()->can_any(array('own_posts' => 'create', 'post_any' => 'create', 'post_' . Post::type_name($post->content_type) => 'create')) || $post->id != 0 && ACL::access_check($post->get_access(), 'edit');
if (isset($statuses['published']) && $post->status != $statuses['published'] && $show_publish) {
    ?>
	$('.container.buttons').prepend($('<input type="button" id="publish" class="button publish" tabindex="5" value="<?php 
    _e('Publish');
Esempio n. 19
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 -->
Esempio n. 20
0
?>
" title="<?php 
echo $post->title;
?>
"><?php 
echo $post->title_out;
?>
</a></h2>
<h4><?php 
echo $post->pubdate_out;
?>
 <?php 
if ($user) {
    ?>
 <a href="<?php 
    URL::out('admin', 'page=publish&slug=' . $post->slug);
    ?>
" title="Edit post">(edit)</a><?php 
}
?>
</h4>

	<div>
<?php 
echo $post->content_out;
?>
	</div>

		<div class="meta">

			<p><?php 
Esempio n. 21
0
    ?>
" <?php 
    if ($pagelink->id == $post_id) {
        echo 'class="active"';
    }
    ?>
><?php 
    echo $pagelink->title;
    ?>
</a>
					</li>
				<?php 
}
?>
					<li><a href="<?php 
URL::out('atom_feed', array('index' => '1'));
?>
" title="<?php 
echo $da_feedtext;
?>
" class="feedlink"><?php 
echo $da_feedtext;
?>
</a></li>
				</ul>
			</div>
			<div class="sitetitle">
				<h1><?php 
Options::out('title');
?>
</h1>
Esempio n. 22
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>
Esempio n. 23
0
if ($request->display_entry && isset($post)) {
    echo " :: {$post->title}";
}
?>
</title>
	<meta name="generator" content="Habari">
	<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php 
$theme->feed_alternate();
?>
">
	<link rel="edit" type="application/atom+xml" title="Atom Publishing Protocol" href="<?php 
URL::out('atompub_servicedocument');
?>
">
	<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php 
URL::out('rsd');
?>
">
	<link rel="stylesheet" type="text/css" media="screen" href="<?php 
Site::out_url('theme');
?>
/style.css">
	<?php 
if ($localized_css) {
    ?>
	<link rel="stylesheet" type="text/css" media="screen" href="<?php 
    echo Site::get_url('theme', true) . $localized_css;
    ?>
">
	<?php 
}
Esempio n. 24
0
Site::out_url('habari');
?>
" title="<?php 
_e('Go to Site');
?>
"><?php 
Options::out('title');
?>
</a></h1>

		<div class="container">
			<?php 
Plugins::act('theme_loginform_before');
?>
				<form method="post" action="<?php 
URL::out('auth', array('page' => 'login'));
?>
">

					<p>
						<label for="habari_username" class="incontent abovecontent"><?php 
_e('Name');
?>
</label><input type="text" name="habari_username" id="habari_username"<?php 
if (isset($habari_username)) {
    ?>
 value="<?php 
    echo Utils::htmlspecialchars($habari_username);
    ?>
"<?php 
}
Esempio n. 25
0
        ?>
#comment-<?php 
        echo $comment->id;
        ?>
" title="<?php 
        _e('Go to %s', array($comment->post->title));
        ?>
"><?php 
        echo $comment->post->title;
        ?>
</a><span class="dim">'</span></span>
		<span class="date pct15"><span class="dim"><?php 
        _e('on');
        ?>
</span> <a href="<?php 
        URL::out('admin', array('page' => 'comments', 'status' => $comment->status, 'year' => $comment->date->year, 'month' => $comment->date->mon));
        ?>
" title="<?php 
        _e('Search for other comments from %s', array($comment->date->format('M, Y')));
        ?>
"><?php 
        $comment->date->out(HabariDateTime::get_default_date_format());
        ?>
</a></span>
		<span class="time pct10 dim"><?php 
        _e('at');
        ?>
 <span><?php 
        $comment->date->out(HabariDateTime::get_default_time_format());
        ?>
</span></span>
Esempio n. 26
0
<article id="post-<?php 
echo $content->id;
?>
" class="post proposal">
	<div class="postcontrols">
	<?php 
if ($post->get_access(User::identify())->edit) {
    ?>
	<a class="edit_post" href="<?php 
    URL::out('admin', array('page' => 'publish', 'id' => $content->id));
    ?>
">Edit Proposal</a>
	<?php 
}
?>
	</div>

	<header>
		<h2>Project Proposal</h2>
		<h1><a href="<?php 
echo $content->permalink;
?>
"><?php 
echo $content->title_out;
?>
</a></h1>

		<section>
			<b>Prepared For</b><br>
			<?php 
echo $content->client_contact->displayname;
Esempio n. 27
0
 post">
				<h2 class="title"><a href="<?php 
echo $post->permalink;
?>
" rel="bookmark" title="Permanent Link to <?php 
echo $post->title;
?>
"><?php 
echo $post->title_out;
?>
</a></h2>
				<div class="entry">
					<?php 
echo $post->content_out;
?>
				</div>
				
				<?php 
if ($user->loggedin) {
    ?>
<p class="meta"><a href="<?php 
    URL::out('admin', 'page=publish&id=' . $post->id);
    ?>
" title="Edit post">Edit</a></p><?php 
}
?>

			</div>
		</div>
<?php 
include 'footer.php';
Esempio n. 28
0
<?php

include HABARI_PATH . '/system/admin/header.php';
?>

<?php 
if (HabariPackages::require_updates()) {
    ?>
	<div class="container">
<span class="pct25">&nbsp;</span>
		<strong class="pct50"><a href="<?php 
    URL::out('admin', 'page=hpm&action=update' . ($type ? "&type={$type}" : ''));
    ?>
">Update Package List</a></strong>
	</div>
<?php 
}
?>

<div class="container navigator">
		<div class="search pct100"><input id="search" type="search" placeholder="Type and wait to search for any entry component" autosave="habaricontent" results="100" value=""></div>

		<a class="pct50" href="#" onclick="hpm.previous(); return false;">&lt; previous</a>
		<a class="pct50" style="text-align:right;" href="#" onclick="hpm.next(); return false;">next &gt;</a>
</div>

<div id="comments" class="container manage comments">
	<?php 
$theme->display('hpm_packages');
?>
</div>
Esempio n. 29
0
?>
		</div>

		<div class="track">
			<div class="handle">
				<span class="resizehandleleft"></span>
				<span class="resizehandleright"></span>
			</div>
		</div>

	</div>

</div>

<form method="post" name="moderation" action="<?php 
URL::out('admin', array('page' => 'comments', 'status' => $status));
?>
">
	<input type="hidden" name="search" value="<?php 
echo Utils::htmlspecialchars($search);
?>
">
	<input type="hidden" name="status" value="<?php 
echo Utils::htmlspecialchars($status);
?>
">
	<input type="hidden" id="nonce" name="nonce" value="<?php 
echo $wsse['nonce'];
?>
">
	<input type="hidden" id="timestamp" name="timestamp" value="<?php 
Esempio n. 30
0
 	color: red;
 }
 .success{
 	color: green;
 }
 </style>
<div class="container">
<script type="text/javascript">
</script>
<?php 
//echo $enctype;
$file_root = $_SERVER['DOCUMENT_ROOT'] . APP_PRO . APP_NAME;
?>
<h3>导入CSV</h3>
		<form enctype="multipart/form-data" method="get" action="<?php 
URL::out('admin', array('page' => 'import'));
?>
"> 
<table class="am-table  am-table-striped am-table-compact am-table-hover">
  <thead>
  <tr>
    <th>id</th>
    <th>文件名</th>
    <th class="am-text-right" style="margin-right:10px;">操作</th>
  </tr>
  </thead>
  <tbody>
  <?php 
// echo $_SERVER['DOCUMENT_ROOT'].APP_PRO.APP_NAME;exit;
// $dir="./tempEP/";
$file = scandir("./" . APP_NAME);