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


PHP camp_html_breadcrumbs函数代码示例

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


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

示例1: camp_html_display_error

require_once $GLOBALS['g_campsiteDir'] . "/classes/Topic.php";
// Check permissions
if (!$g_user->hasPermission('ManageArticleTypes')) {
    camp_html_display_error(getGS("You do not have the right to reassign a field type."));
    exit;
}
$articleTypeName = Input::Get('f_article_type');
$articleTypeFieldName = Input::Get('f_field_name');
$articleField = new ArticleTypeField($articleTypeName, $articleTypeFieldName);
$crumbs = array();
$crumbs[] = array(getGS("Configure"), "");
$crumbs[] = array(getGS("Article Types"), "/{$ADMIN}/article_types/");
$crumbs[] = array($articleTypeName, '');
$crumbs[] = array(getGS("Article type fields"), "/{$ADMIN}/article_types/fields/?f_article_type=" . urlencode($articleTypeName));
$crumbs[] = array(getGS("Reassign a field type"), "");
echo camp_html_breadcrumbs($crumbs);
include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php";
$lang = camp_session_get('LoginLanguageId', 1);
$languageObj = new Language($lang);
// Verify the merge rules
$options = array();
$convertibleFromTypes = $articleField->getConvertibleToTypes();
foreach ($convertibleFromTypes as $type) {
    $options[$type] = ArticleTypeField::VerboseTypeName($type, $languageObj->getLanguageId());
}
?>
<script>
function UpdateArticleFieldContext() {
	var my_form = document.forms["add_field_form"]
	var field_type = my_form.elements["f_article_field_type"].value
	var is_topic = my_form.elements["is_topic"].value
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:retype.php

示例2: camp_html_add_msg

    }
    camp_html_add_msg($translator->trans("Author saved.", array(), 'users'), "ok");
} elseif ($del_id_alias < 1 && $id > -1 && !$can_save) {
    camp_html_add_msg($translator->trans("Please fill at least first name and last name.", array(), 'users'));
}
if (!$id || $id == -1) {
    $author = new Author(1);
    if ($id == -1) {
        $id = 0;
    }
}
$controller->view->headTitle($translator->trans('Authors') . ' - Newscoop Admin', 'SET');
$crumbs = array();
$crumbs[] = array($translator->trans("Configure"), "");
$crumbs[] = array($translator->trans("Authors"), "");
$breadcrumbs = camp_html_breadcrumbs($crumbs);
echo $breadcrumbs;
?>

<?php 
include dirname(__FILE__) . '/../javascript_common.php';
?>
<script type="text/javascript" src="<?php 
echo $Campsite['WEBSITE_URL'];
?>
/js/campsite-checkbox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $('.filter-button').click(function() {
        $('.container').toggle('fast');
        $(this).toggleClass("close");
开发者ID:kartoffelkage,项目名称:Newscoop,代码行数:31,代码来源:authors.php

示例3: camp_html_display_error

    camp_html_display_error(getGS('You do not have the right to manage debates.'));
    exit;
}
$allLanguages = Language::GetLanguages();
$f_debate_nr = Input::Get('f_debate_nr', 'int');
$f_fk_language_id = Input::Get('f_fk_language_id', 'int');
$debate = new Debate($f_fk_language_id, $f_debate_nr);
if ($debate->exists()) {
    foreach ($debate->getTranslations() as $translation) {
        $existing[$translation->getLanguageId()] = true;
    }
    $title = $debate->getProperty('title');
    $question = $debate->getProperty('question');
    $is_used_as_default = false;
}
echo camp_html_breadcrumbs(array(array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'), array(getGS('Debates'), $Campsite['WEBSITE_URL'] . '/admin/debate/index.php'), array(getGS('Translate Debate'), '')));
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
    <TD><A HREF="index.php"><IMG SRC="<?php 
echo $Campsite["ADMIN_IMAGE_BASE_URL"];
?>
/left_arrow.png" BORDER="0"></A></TD>
    <TD><A HREF="index.php"><B><?php 
putGS("Debate List");
?>
</B></A></TD>
</TR>
</TABLE>

<?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:translate.php

示例4: foreach

    $poll_answers = $poll->getAnswers();

    foreach ($poll_answers as $poll_answer) {
        $answers[$poll_answer->getProperty('nr_answer')] = $poll_answer->getProperty('answer');
    }

} else {
    // language_id may preset from from assign_popup.php
    $fk_language_id = Input::Get('f_language_id', 'int');
}

if (empty($GLOBALS['_popup'])) {
    $title = $poll->exists() ? getGS('Edit Poll') : getGS('Add new Poll');
    echo camp_html_breadcrumbs(array(
        array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'),
        array(getGS('Polls'), $Campsite['WEBSITE_URL'] . '/admin/poll/index.php'),
        array($title, ''),
    ));
}

if (!$f_include) { ?>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
        <TR>
            <TD><A HREF="index.php"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></A></TD>
            <TD><A HREF="index.php"><B><?php  putGS("Poll List"); ?></B></A></TD>
        </TR>
    </TABLE>
<?php
} else {
?>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例5: camp_html_add_msg

    $f_recaptcha_enabled = Input::Get('f_recaptcha_enabled', 'string', 'N');
    $f_recaptcha_subscriptions_enabled = Input::Get('f_recaptcha_subscriptions_enabled', 'string', 'N');
    $f_recaptcha_public_key = Input::Get('f_recaptcha_public_key', 'string');
    $f_recaptcha_private_key = Input::Get('f_recaptcha_private_key', 'string');

    SystemPref::Set('PLUGIN_RECAPTCHA_ENABLED', $f_recaptcha_enabled);
    SystemPref::Set('PLUGIN_RECAPTCHA_SUBSCRIPTIONS_ENABLED', $f_recaptcha_subscriptions_enabled);
    SystemPref::Set('PLUGIN_RECAPTCHA_PUBLIC_KEY', $f_recaptcha_public_key);
    SystemPref::Set('PLUGIN_RECAPTCHA_PRIVATE_KEY', $f_recaptcha_private_key);

    camp_html_add_msg(getGS('reCAPTCHA preferences updated.'), 'ok');
}

echo camp_html_breadcrumbs(array(
    array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'),
    array(getGS('reCAPTCHA'), ''),
    array(getGS('reCAPTCHA Settings'), ''),
));

camp_html_display_msgs();
?>
<p></p>

<table border="0" width="600" cellspacing="0" cellpadding="0" class="box_table">
<tr>
  <td width="190">
    <img src="<?php echo $Campsite['WEBSITE_URL']; ?>/plugins/recaptcha/css/recaptcha-logo.gif" />
  </td>
  <td valign="top">
    <p><?php putGS('reCAPTCHA provides a simple way to place a CAPTCHA on your Newscoop website, helping you stop bots from abusing it.'); ?></p>
    <p><?php putGS('To use this plugin you need'); ?>:</p>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:recaptcha_prefs.php

示例6: camp_html_content_top

/**
 * Common header for all content screens.
 *
 * @param string $p_title
 *		The title of the page.  This should have a translation in the language
 *		files.
 *
 * @param array $p_objArray
 *		This represents your current location in the content tree.  This
 * 		can have the following index values, each containing the appropriate
 *		object: 'Pub', 'Issue', 'Section', 'Article'
 *
 * @param boolean $p_includeLinks
 *		Whether to include the links underneath the title or not.  Default TRUE.
 *
 * @param boolean $p_fValidate
 *		Whether to include the fValidate javascript files in the HTML header.
 *      Default FALSE.
 *
 * @param array $p_extraBreadcrumbs
 *		An array in the form 'text' => 'link' for more breadcrumbs.
 *
 * @return void
 */
function camp_html_content_top($p_title, $p_objArray, $p_includeLinks = true, $p_fValidate = false, $p_extraBreadcrumbs = null)
{
    global $Campsite;
    global $ADMIN;
    global $ADMIN_DIR;
    $publicationObj = camp_array_get_value($p_objArray, 'Pub', null);
    $issueObj = camp_array_get_value($p_objArray, 'Issue', null);
    $sectionObj = camp_array_get_value($p_objArray, 'Section', null);
    $articleObj = camp_array_get_value($p_objArray, 'Article', null);
    $breadcrumbs = array();
    $breadcrumbs[] = array("Content", "");
    if (!is_null($publicationObj)) {
        $prompt = getGS("Publication") . ":";
        $name = $publicationObj->getName();
        $breadcrumbs[] = array($prompt, "/{$ADMIN}/pub/", false);
        $breadcrumbs[] = array($name, "/{$ADMIN}/pub/edit.php?Pub=" . $publicationObj->getPublicationId());
    }
    if ($issueObj instanceof Issue) {
        $prompt = getGS("Issue") . ":";
        $breadcrumbs[] = array($prompt, "/{$ADMIN}/issues/" . "?Pub=" . $issueObj->getPublicationId() . "&Issue=" . $issueObj->getIssueNumber() . "&Language=" . $issueObj->getLanguageId(), false);
        $name = $issueObj->getName() . ' (' . $issueObj->getLanguageName() . ')';
        $breadcrumbs[] = array($name, "/{$ADMIN}/issues/edit.php" . "?Pub=" . $issueObj->getPublicationId() . "&Issue=" . $issueObj->getIssueNumber() . "&Language=" . $issueObj->getLanguageId());
    }
    if ($sectionObj instanceof Section) {
        $prompt = getGS("Section") . ":";
        $breadcrumbs[] = array($prompt, "/{$ADMIN}/sections/" . "?Pub=" . $sectionObj->getPublicationId() . "&Issue=" . $sectionObj->getIssueNumber() . "&Language=" . $sectionObj->getLanguageId() . "&Section=" . $sectionObj->getSectionNumber(), false);
        $name = $sectionObj->getName();
        $breadcrumbs[] = array($name, "/{$ADMIN}/sections/edit.php" . "?Pub=" . $sectionObj->getPublicationId() . "&Issue=" . $sectionObj->getIssueNumber() . "&Language=" . $sectionObj->getLanguageId() . "&Section=" . $sectionObj->getSectionNumber());
    }
    if ($articleObj instanceof Article) {
        $prompt = getGS("Article") . ":";
        $breadcrumbs[] = array($prompt, "/{$ADMIN}/articles/index.php" . "?f_publication_id=" . $articleObj->getPublicationId() . "&f_issue_number=" . $articleObj->getIssueNumber() . "&f_language_id=" . $articleObj->getLanguageId() . "&f_section_number=" . $articleObj->getSectionNumber() . "&f_article_number=" . $articleObj->getArticleNumber(), false);
        $name = $articleObj->getName() . ' (' . $articleObj->getLanguageName() . ')';
        $breadcrumbs[] = array($name, "/{$ADMIN}/articles/edit.php" . "?f_publication_id=" . $articleObj->getPublicationId() . "&f_issue_number=" . $articleObj->getIssueNumber() . "&f_language_id=" . $articleObj->getLanguageId() . "&f_section_number=" . $articleObj->getSectionNumber() . "&f_article_number=" . $articleObj->getArticleNumber() . "&f_language_selected=" . $articleObj->getLanguageId());
    }
    if (is_array($p_extraBreadcrumbs)) {
        foreach ($p_extraBreadcrumbs as $text => $link) {
            $breadcrumbs[] = array($text, $link);
        }
    }
    $breadcrumbs[] = array($p_title, "");
    if ($p_fValidate) {
        include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php";
    }
    echo camp_html_breadcrumbs($breadcrumbs);
}
开发者ID:nidzix,项目名称:Newscoop,代码行数:70,代码来源:camp_html.php

示例7: dirname

<?php

require_once dirname(dirname(__FILE__)) . '/db_connect.php';
require_once dirname(dirname(__FILE__)) . '/classes/Input.php';
require_once dirname(dirname(__FILE__)) . '/classes/Extension/WidgetContext.php';
require_once dirname(dirname(__FILE__)) . '/classes/Extension/WidgetManager.php';
camp_load_translation_strings('home');
camp_load_translation_strings('articles');
camp_load_translation_strings('api');
camp_load_translation_strings('extensions');
camp_load_translation_strings('globals');
// install default widgets for admin
WidgetManager::SetDefaultWidgetsAll();
// add title
echo camp_html_breadcrumbs(array(array(getGS('Dashboard'), '')));
if (!SystemPref::get('stat_ask_time')) {
    SystemPref::set('stat_ask_time', 0);
}
if (!SystemPref::get('installation_id')) {
    $installationId = sha1($_SERVER['SERVER_ADDR'] . $_SERVER['SERVER_NAME'] . mt_rand());
    SystemPref::set('installation_id', $installationId);
}
$request_only = false;
if (!SystemPref::get('support_send') && SystemPref::get('stat_ask_time') <= time() && empty($_SESSION['statDisplayed'])) {
    $statUrl = $Campsite['WEBSITE_URL'] . '/admin/support/popup';
    $request_only = true;
    ?>
<a style="display: none;" id="dummy_stat_link" href="<?php 
    echo $statUrl;
    ?>
"></a><?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:home.php

示例8: camp_html_add_msg

    $f_blog_root_topic_id = Input::Get('f_blog_root_topic_id', 'int', 0);
    $f_blog_root_mood_id = Input::Get('f_blog_root_mood_id', 'int', 0);
    $f_blog_image_derivates = Input::Get('f_blog_image_derivates', 'string');

    SystemPref::Set('PLUGIN_BLOGCOMMENT_USE_CAPTCHA', $f_blogcomment_use_captcha);
    SystemPref::Set('PLUGIN_BLOGCOMMENT_MODE', $f_blogcomment_mode);
    SystemPref::Set('PLUGIN_BLOG_ROOT_TOPIC_ID', $f_blog_root_topic_id);
    SystemPref::Set('PLUGIN_BLOG_ROOT_MOOD_ID', $f_blog_root_mood_id);
    SystemPref::Set('PLUGIN_BLOG_IMAGE_DERIVATES', $f_blog_image_derivates);

    camp_html_add_msg(getGS("Blog preferences updated."), "ok");
}

echo camp_html_breadcrumbs(array(
    array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'),
    array(getGS('Blogs'), $Campsite['WEBSITE_URL'] . '/admin/blog/admin/list_blogs.php'),
    array(getGS('Blog Settings'), ''),
));

camp_html_display_msgs();
?>

<FORM name="selector" method="post">
<?php echo SecurityToken::FormParameter(); ?>
<table border="0" cellspacing="6" align="left" class="table_input" width="600px">
    <tr>
        <td align="left"><?php putGS("Use captcha for blog comments form"); ?></td>
        <td><input type="checkbox" name="f_blogcomment_use_captcha" value="Y" <?php if (SystemPref::Get("PLUGIN_BLOGCOMMENT_USE_CAPTCHA") == 'Y') p("checked"); ?> /></td>
    </tr>
    <tr>
        <td align="left"><?php putGS("Allow post comments to"); ?></td>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:blog_prefs.php

示例9: dirname

<?php

require_once dirname(dirname(__FILE__)) . '/db_connect.php';
require_once dirname(dirname(__FILE__)) . '/classes/Extension/WidgetManager.php';
$translator = \Zend_Registry::get('container')->getService('translator');
echo camp_html_breadcrumbs(array(array($translator->trans('Dashboard', array(), 'home'), $Campsite['WEBSITE_URL'] . '/admin/home.php'), array($translator->trans('Widgets', array(), 'home'), '')));
?>

<div class="links">
    <a href="<?php 
echo $Campsite['WEBSITE_URL'];
?>
/admin/" title="<?php 
echo $translator->trans('Go to dashboard', array(), 'home');
?>
"><?php 
echo $translator->trans('Go to dashboard', array(), 'home');
?>
</a>
</div>

<ul id="widgets">
    <?php 
foreach (WidgetManager::GetAvailable() as $widget) {
    ?>
    <li>
        <h3><?php 
    echo $widget->getTitle();
    ?>
</h3>
        <p><a href="#<?php 
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:widgets.php

示例10: dirname

<?php

require_once dirname(dirname(__FILE__)) . '/db_connect.php';
require_once dirname(dirname(__FILE__)) . '/classes/Extension/WidgetManager.php';

camp_load_translation_strings('home');
camp_load_translation_strings('api');
camp_load_translation_strings('extensions');
camp_load_translation_strings('articles');

echo camp_html_breadcrumbs(array(
    array(getGS('Dashboard'), $Campsite['WEBSITE_URL'] . '/admin/home.php'),
    array(getGS('Widgets'), ''),
));
?>

<div class="links">
    <a href="<?php echo $Campsite['WEBSITE_URL']; ?>/admin/" title="<?php putGS('Go to dashboard'); ?>"><?php putGS('Go to dashboard'); ?></a>
</div>

<ul id="widgets">
    <?php foreach (WidgetManager::GetAvailable() as $widget) { ?>
    <li>
        <h3><?php echo $widget->getTitle(); ?></h3>
        <p><a href="#<?php echo $widget->getExtension()->getId(); ?>" class="add"><?php putGS('Add to dashboard'); ?></a>&nbsp;</p>
        <p><?php echo $widget->getDescription(); ?></p>
        <?php $widget->renderMeta(); ?>
    </li>
    <?php } ?>
</ul>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:widgets.php

示例11: camp_load_translation_strings

<?php
camp_load_translation_strings("plugin_interview");

echo camp_html_breadcrumbs(array(
    array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'),
    array(getGS('Interviews'), $Campsite['WEBSITE_URL'] . '/admin/interview/admin/index.php'),
    array(getGS('List Items'), ''),
));
?>

<script type="text/javascript">
function ajax_action(action)
{
    $('#f_action').val(action);

    // save & reload
    var myAjax = $.get(
        '<?php echo $Campsite['WEBSITE_URL']; ?>/admin/<?php p(dirname($GLOBALS['call_script'])) ?>/ajax_action.php',
        $('#items_list').serialize(),
        function() {
            window.location.reload();
        });
}
</script>
<?php

// User role depend on path to this file. Tricky: moderator and guest folders are just symlink to admin files!
if (strpos($call_script, '/interview/admin/') !== false && $g_user->hasPermission('plugin_interview_admin')) {
    $is_admin = true;   
}
if (strpos($call_script, '/interview/moderator/') !== false && $g_user->hasPermission('plugin_interview_moderator')) { $is_moderator = true;   
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:list_items.php

示例12: camp_html_breadcrumbs

<?php

/**
 * @package Newscoop
 * @subpackage SoundCloud plugin
 * @copyright 2011 Sourcefabric o.p.s.
 * @license http://www.gnu.org/licenses/gpl-3.0.txt
 */
echo camp_html_breadcrumbs(array(array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'), array('SoundCloud', ''), array(getGS('Track manager'), '')));
$attachement = false;
include 'master.php';
开发者ID:nidzix,项目名称:Newscoop,代码行数:11,代码来源:manager.php


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