当前位置: 首页>>代码示例>>PHP>>正文


PHP menu_pagetitle函数代码示例

本文整理汇总了PHP中menu_pagetitle函数的典型用法代码示例。如果您正苦于以下问题:PHP menu_pagetitle函数的具体用法?PHP menu_pagetitle怎么用?PHP menu_pagetitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了menu_pagetitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: menu_pagetitle

<?php

menu_pagetitle("Who's On Joind.in?");
echo "<h2>Who's on Joind.in?</h2>";
$rand = array_rand($users, 63);
echo '<table cellpadding="0" cellspacing="0" border=0"><tr>';
$ct = 1;
foreach ($rand as $v) {
    echo '<td style="padding:3px"><a href="/user/view/' . $users[$v] . '"><img src="' . $gravatar_cache_url_fragment . '/user' . $users[$v] . '.jpg" height="60"></a></td>';
    if ($ct % 9 == 0 && $ct != 0) {
        echo '</tr><tr>';
    }
    $ct++;
}
echo '</tr></table>';
开发者ID:Bittarman,项目名称:joind.in,代码行数:15,代码来源:who.php

示例2: menu_pagetitle

<?php

menu_pagetitle('Unlink Talk Claim');
if (isset($talkId)) {
    echo form_open('talk/unlink/' . $talkId . '/' . $speakerId);
    ?>

    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            Are you sure you wish to unlink this talk claim?<br/>
            <input type="submit" value="yes" name="answer"> 
            <input type="button" value="no" onClick="document.location='/talk/view/<?php 
    echo $talkId;
    ?>
'">
        </td>
    </tr>
    </table>

    <?php 
    echo form_close();
} else {
    if (isset($error) && $error == '') {
        echo 'talk removed!';
    } else {
        echo 'Error: ' . htmlentities($error);
    }
}
开发者ID:jaytaph,项目名称:joind.in,代码行数:29,代码来源:unlink.php

示例3: menu_pagetitle

<?php

menu_pagetitle('Blog');
?>
<h1 class="icon-event">
	<?php 
if (user_is_admin()) {
    ?>
	<span style="float:left">
	<?php 
}
?>
	Blog
	<?php 
if (user_is_admin()) {
    ?>
	</span>
	<?php 
}
?>
	<?php 
if (user_is_admin()) {
    ?>
	<a class="btn" style="float:right" href="/blog/add">Add blog post</a>
	<div class="clear"></div>
    <?php 
}
?>
</h1>

<?php 
开发者ID:rdohms,项目名称:joind.in,代码行数:31,代码来源:main.php

示例4: menu_pagetitle

<script type="text/javascript" src="/inc/js/jq.joindIn.js"></script>
<script type="text/javascript" src="/inc/js/event.js"></script>
<?php 
menu_pagetitle('Event: ' . escape($event_detail->event_name));
// Load up our detail view
$data = array('event_detail' => $event_detail, 'attend' => $attend, 'admins' => $admins);
$this->load->view('event/modules/_event_detail', $data);
// These are our buttons below the event detail
$data = array('admin' => $admin, 'event_detail' => $event_detail);
$this->load->view('event/modules/_event_buttons', $data);
?>

<?php 
$data = array('talks' => $talks, 'comments' => $comments, 'slides_list' => $slides_list, 'admin' => $admin, 'tracks' => $tracks, 'talk_stats' => $talk_stats, 'event_detail' => $event_detail, 'event_url' => '/event/view/' . $event_detail->ID . '/', 'tab' => $tab);
if ($prompt_event_comment) {
    $this->load->view('event/_event_prompt_comment', array());
}
$this->load->view('event/modules/_event_tabs', $data);
?>

<script type="text/javascript">
(function($) {
    $(document).ready(function() {
        $('#event-tabs').joindIn_tabs();
        <?php 
if (count($talks) == 0) {
    ?>
            $('a[rel=comments]').click();
            <?php 
}
?>
开发者ID:weaverryan,项目名称:joind.in,代码行数:31,代码来源:detail.php

示例5: foreach

foreach ($langs as $k => $v) {
    $lang_list[$v->ID] = $v->lang_name;
}
if (!empty($this->validation->error_string)) {
    $this->load->view('msg_info', array('msg' => $this->validation->error_string));
}
if (isset($this->edit_id)) {
    $actionUrl = 'talk/edit/' . $this->edit_id;
    $sub = 'Save Edits';
    $title = 'Edit Session: ' . $detail[0]->talk_title;
    menu_pagetitle('Edit Session: ' . $detail[0]->talk_title);
} else {
    $actionUrl = 'talk/add/event/' . $ev->ID;
    $sub = 'Add Session';
    $title = 'Add Session';
    menu_pagetitle('Add Session');
}
echo '<h2>' . $title . '</h2>';
if (isset($msg) && !empty($msg)) {
    $this->load->view('msg_info', array('msg' => $msg));
}
if (isset($err) && !empty($err)) {
    $this->load->view('msg_info', array('msg' => $err));
}
$priv = $evt_priv === true ? ', Private Event' : '';
?>

<?php 
echo form_open($actionUrl);
?>
开发者ID:Bittarman,项目名称:joind.in,代码行数:30,代码来源:add.php

示例6: menu_pagetitle

<?php

menu_pagetitle('User: ' . escape($details[0]->full_name));
if ($gravatar) {
    echo '<img src="' . $gravatar . '" height="80" width="80" alt="" /><br/><br/>';
}
?>
<h1><?php 
echo !empty($details[0]->full_name) ? $details[0]->full_name : $details[0]->username;
?>
</h1>
<?php 
if ($is_admin) {
    $txt = $details[0]->active == 1 ? 'Disable User Account' : 'Enable User Account';
    ?>
    <a class="btn-small" href="/user/changestat/<?php 
    echo $details[0]->ID;
    ?>
"><?php 
    echo $txt;
    ?>
</a>
    <?php 
    $atxt = $details[0]->admin == 1 ? 'Remove as Admin' : 'Add as Admin';
    ?>
    <a class="btn-small" href="/user/changeastat/<?php 
    echo $details[0]->ID;
    ?>
"><?php 
    echo $atxt;
    ?>
开发者ID:rkhassen,项目名称:joind.in,代码行数:31,代码来源:view.php

示例7: menu_pagetitle

<?php

menu_pagetitle('API Documentation');
?>

<style>
b.req_title { color: #767676; }
b.req_name { font-size: 12px; }
</style>

<h1 style="margin-top:0px;margin-bottom:2px;color:#B86F09"><?php 
echo $this->config->item('site_name');
?>
 API</h1>

<p><b>There is a new API under development.  <a href="/api/v2docs">click here</a> to find out more about the replacement RESTful API.  Both APIs are currently supported</b></p>


<p>
The <?php 
echo $this->config->item('site_name');
?>
 API allows for the fetching and updating of information in the service's database. You can use both XML and JSON messaging to communicate with it. Here's an XML-based example structure each request should follow:
</p>

<h3>Sample Request</h3>
<div style="padding:3px;border:1px solid #000000;background-color:#F8F8F8">
<pre>
<?php 
echo escape('<request>
        <auth>
开发者ID:jaytaph,项目名称:joind.in,代码行数:31,代码来源:doc.php

示例8: menu_pagetitle

<?php

menu_pagetitle('Delete Talk');
if (isset($tid)) {
    echo form_open('talk/delete/' . $tid);
    ?>

    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            Are you sure you wish to delete this talk?<br/>
            <input type="submit" value="yes" name="answer"> 
            <input type="button" value="no" onClick="document.location='/talk/view/<?php 
    echo $tid;
    ?>
'">
        </td>
    </tr>
    </table>

    <?php 
    echo form_close();
} else {
    if (isset($error) && $error == '') {
        echo 'talk removed!';
    } else {
        echo 'Error: ' . htmlentities($error);
    }
}
开发者ID:jaytaph,项目名称:joind.in,代码行数:29,代码来源:delete.php

示例9: menu_pagetitle

<?php

menu_pagetitle('Pending Claims for ' . $event_detail[0]->event_name);
?>

<?php 
echo '<h2>Pending Claims</h2>';
?>

<style>
#claims_table { width: 100%; }
#claims_table td { padding: 3px; }
#claims_table td.app_den { width: 30px; font-size: 9px; }
</style>

<p>
Below you'll find a list of claims visitors to the site have made on the sessions for this event. 
The "Speaker" field shows the speaker name(s) and the "Claiming User" is the <?php 
echo $this->config->item('site_name');
?>
 user trying to
claim the session. You can then accept/deny based on any match between them.
</p>

<?php 
if (!empty($msg)) {
    $this->load->view('msg_info', array('msg' => $msg));
}
?>

<?php 
开发者ID:Bittarman,项目名称:joind.in,代码行数:31,代码来源:claim.php

示例10: menu_pagetitle

<?php

menu_pagetitle('Contact');
?>
<h1 class="icon-about">Contact</h1>
<?php 
if (!empty($msg)) {
    $this->load->view('msg_info', array('msg' => $msg));
}
?>

<div class="box">
	<p>
    We value any and all feedback you can give us about the site or what features you might like to see.
	Use the form below to contact us directly! Thanks for your comments!
    </p>
    
    <?php 
echo form_open('about/contact', array('class' => 'form-contact'));
?>
    
    <?php 
if (!empty($this->validation->error_string)) {
    ?>
            <?php 
    $this->load->view('msg_error', array('msg' => $this->validation->error_string));
    ?>
    <?php 
}
?>
    
开发者ID:rdohms,项目名称:joind.in,代码行数:30,代码来源:contact.php

示例11: escape

<?php

$v = $details[0];
$bid = $v->ID;
if (isset($full_name)) {
    $this->validation->name = escape($full_name);
}
menu_pagetitle('Blog: ' . escape($v->title));
?>
<div class="detail">

	<h1><?php 
echo $v->title;
?>
</h1>

	<p class="info">
		Written <strong><?php 
echo date('M j, Y', $v->date_posted);
?>
</strong> at <strong><?php 
echo date('H:i', $v->date_posted);
?>
</strong> (<?php 
echo $v->author_id;
?>
)
	</p>

	<div class="desc">
		<?php 
开发者ID:bradley-holt,项目名称:joind.in,代码行数:31,代码来源:view.php

示例12: menu_pagetitle

<?php

menu_pagetitle('Iphone Support');
?>
<h1 class="icon-about">iPhone Support</h1>

<p>
<a href="/about/iphone_support"><img src="/inc/img/iphone.jpg" height="70" style="margin-right:10px" align="left" border="0"/></a>
    Welcome, iPhone app user!  Whether you want to tell us that you love the <?php 
echo $this->config->item('site_name');
?>
 app or hate it, we want to hear from you - simply drop us an email at <a href="mailto:<?php 
echo $this->config->item('email_iphone');
?>
"><?php 
echo $this->config->item('email_iphone');
?>
</a>.  Comments, suggestions, questions and feature requests are all welcome - we'll add an FAQ here once the questions start coming in.
</p>

<hr/>
<p>
<b>Q: Why is the app free?</b><br/>
A: We want to make our service as accesible as possible and this means making it as simple as 
possible for attendees to leave their feedback and use the site. By offering the application for
no charge, we make it as easy as hitting "Install" in the App Store.
</p>
<hr/>

<p>
<b>Q: This app would be perfect if...</b><br/>
开发者ID:asgrim,项目名称:joind.in,代码行数:31,代码来源:iphone_support.php

示例13: menu_pagetitle

<?php

/* 
 * Add/create a speaker profile access
 * 
 */
menu_pagetitle('Manage Speaker Profile Access');
$this->load->view('user/_nav_sidebar');
$edit_select = array();
if ($curr_access) {
    foreach ($curr_access as $curr) {
        $edit_select[] = is_object($curr) ? $curr->field_name : $curr;
    }
}
?>

<div class="menu">
    <ul>
    <li><a href="/speaker/profile">Speaker Profile</a>
    <li class="active"><a href="/speaker/access">Profile Access</a>
    </ul>
    <div class="clear"></div>
</div>

<p>
    Select the items from the list below to include in this Speaker Profile Access:
</p>

<?php 
if (!empty($msg)) {
    $this->load->view('msg_info', array('msg' => $msg));
开发者ID:jaytaph,项目名称:joind.in,代码行数:31,代码来源:access_add.php

示例14: switch

}
switch ($type) {
    case 'hot':
        $title = 'Hot Events';
        break;
    case 'upcoming':
        $title = 'Upcoming Events';
        break;
    case 'past':
        $title = 'Past Events';
        break;
    default:
        $title = 'Events';
        break;
}
menu_pagetitle($title);
$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 
开发者ID:jaytaph,项目名称:joind.in,代码行数:31,代码来源:main.php

示例15: menu_pagetitle

<?php

menu_pagetitle('About');
?>
<h1 class="icon-about">About</h1>

<h3 style="color:#5181C1">Online Event Feedback</h3>
<p><?php 
echo $this->config->item('site_name');
?>
 is the replacement for all those paper submission forms that get left on  the floor at the end of an event.  The site gives details of events past, present and future, the sessions, timetable and speakers at each, and allows all attendees to register and leave feedback - for the sessions and for the event itself.</p>

<p>As well as the website, there is an open API and applications are freely available for iphone and android, and there is a wordpress plugin to show your event information on your own site.</p>

<p>To get to grips with how to do various tasks, visit the <a href="/help">help page</a>.</p>

<h3 style="color:#5181C1">For Developers</h3>
<p><?php 
echo $this->config->item('site_name');
?>
 is an open source project, written in PHP, and we welcome new contributors, commenters and observers.  You can make contact with the project in many ways:<ul>
<li>The code and a wiki with developer documentation is on github <a href="https://github.com/joindin/joind.in">https://github.com/joindin/joind.in</a></li>
<li>The issue tracker is <b>now on JIRA <a href="http://joindin.jira.com">http://joindin.jira.com</a></b> - if you see a problem on the site, feel free to report it here</li>
<li>We have mailing lists - one for <a href="https://groups.google.com/group/joindin-announce">announcements only</a>, one for discussion of <a href="https://groups.google.com/group/joindin-features">features</a> and one for <a href="https://groups.google.com/group/joindin-developers">development discussion</a>.  They are public and we welcome new additions</li>
<li>There is an IRC channel (#joind.in) on irc.freenode.net that you are welcome to join as well</li>
</ul>

<p>For those wishing to integrate with Joind.in, we have both an <a href="http://joindin.github.io/joindin-api/">API</a>, and some ready-made <a href="/about/widgets">JavaScript widgets</a> that you can simply drop into place on your site - more information can be found on those pages.</p>

<h3 style="color:#5181C1">Get In Touch</h3>
<p>If you have any comments, questions, feedback or anything else you'd like us to know, then do please <a href="/about/contact">get in touch</a> - we'd be delighted to hear from you!</p>
开发者ID:asgrim,项目名称:joind.in,代码行数:31,代码来源:main.php


注:本文中的menu_pagetitle函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。