コード例 #1
0
ファイル: template2.php プロジェクト: rickogden/joind.in
        <div class="grid_8">
			<div class="main">
			    <?php 
if (isset($info_block)) {
    echo $info_block;
}
?>
                <?php 
echo $content;
?>
            </div>
        </div>
    	<div class="grid_4">
        	<div class="sidebar">
        	<?php 
foreach (menu_sidebar() as $box) {
    ?>
        		<div class="box<?php 
    if (!empty($box['class'])) {
        ?>
 <?php 
        echo $box['class'];
    }
    ?>
">
        		<?php 
    if (!empty($box['title'])) {
        ?>
                	<h4><?php 
        echo $box['title'];
        ?>
コード例 #2
0
ファイル: main.php プロジェクト: bradley-holt/joind.in
if (!empty($this->validation->error_string)) {
    ?>
	<?php 
    $this->load->view('msg_error', array('msg' => $this->validation->error_string));
}
echo form_open('user/main');
echo form_input(array('name' => 'talk_code', 'style' => 'width:95%'));
echo form_submit(array('name' => 'sub', 'class' => 'btn'), 'Submit');
echo form_close();
?>
		<p>
		Enter your talk code above to claim your talk and have access to private comments from visitors. <a href="/about/contact">Contact Us</a> to have the code for your talk sent via email.
		</p>

<?php 
menu_sidebar('Claim a talk', ob_get_clean());
?>
<div class="menu">
	<ul>
		<li class="active"><a href="/user/main">Dashboard</a>
		<li><a href="/user/manage">Manage Account</a>
	<?php 
if (user_is_admin()) {
    ?>
		<li><a href="/user/admin">User Admin</a>
		<li><a href="/event/pending">Pending Events</a>
	<?php 
}
?>
	</ul>
	<div class="clear"></div>
コード例 #3
0
<?php

/* 
 * User pages navigation
 */
$admin_nav_lnks = '';
if (user_is_admin()) {
    $admin_nav_lnks = sprintf('
    <li><b>Admin Links</b>
    <ul>
	<li><a href="/user/admin">User Admin</a>
	<li><a href="/event/pending">Pending Events</a>
	<li><a href="/talk/claim">Talk Claims</a>
	<li><a href="/talk/claim">Event Claims</a>
    </ul>
    ');
}
$nav = sprintf('
<ul>
<li><a href="/user/main">Dashboard</a>
<li><a href="/user/manage">Manage Account</a>
<li><a href="/speaker/profile">Speaker Profile</a>
<ul>
    <li><a href="/user/main">My Talks</a>
    <li><a href="/user/main">My Sessions</a>
</ul>
%s
</ul>', $admin_nav_lnks);
menu_sidebar('Navigation', $nav);
コード例 #4
0
ファイル: main.php プロジェクト: bradley-holt/joind.in
        $title = 'Hot Events';
        break;
    case 'upcoming':
        $title = 'Upcoming Events';
        break;
    case 'past':
        $title = 'Past Events';
        break;
    default:
        $title = 'Events';
        break;
}
menu_pagetitle($title);
//ob_start();
//buildCal($mo,$day,$yr,$evt);
menu_sidebar('Calendar', mycal_get_calendar($year, $month, $day));
$subtitle = '';
if (!empty($year) && !empty($month)) {
    if (!empty($day)) {
        $subtitle .= ' for ' . date('F j, Y', mktime(0, 0, 0, $month, $day, $year));
    } else {
        $subtitle .= ' for ' . date('F Y', mktime(0, 0, 0, $month, 1, $year));
    }
}
?>
<h1 class="icon-event">
	<?php 
if (user_is_admin()) {
    ?>
	<span style="float:left">
	<?php