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


PHP JEVHelper::checkRobotsMetaTag方法代码示例

本文整理汇总了PHP中JEVHelper::checkRobotsMetaTag方法的典型用法代码示例。如果您正苦于以下问题:PHP JEVHelper::checkRobotsMetaTag方法的具体用法?PHP JEVHelper::checkRobotsMetaTag怎么用?PHP JEVHelper::checkRobotsMetaTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JEVHelper的用法示例。


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

示例1: __construct

 function __construct($config = array())
 {
     include_once JPATH_ADMINISTRATOR . '/' . "includes" . '/' . "toolbar.php";
     parent::__construct($config);
     // used only for helper functions
     $this->jevlayout = "default";
     $this->addHelperPath(realpath(dirname(__FILE__) . "/../default/helpers"));
     $this->addHelperPath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . "helpers");
     // stop crawler and set meta tag.
     JEVHelper::checkRobotsMetaTag();
     // Call the MetaTag setter function.
     JEVHelper::SetMetaTags();
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:13,代码来源:view.html.php

示例2: defined

<?php

defined('_JEXEC') or die('Restricted access');
// stop crawler from indexing this site but allow follow
JEVHelper::checkRobotsMetaTag("robots", "noindex,follow");
echo $this->loadTemplate("body");
//$this->_footer();
开发者ID:madcsaba,项目名称:li-de,代码行数:7,代码来源:listevents.php

示例3: FlatViewHelperHeader16

function FlatViewHelperHeader16($view)
{
    $task = JRequest::getString("jevtask");
    $view->loadModules("jevprejevents");
    $view->loadModules("jevprejevents_" . $task);
    $dispatcher = JEventDispatcher::getInstance();
    $dispatcher->trigger('onJEventsHeader', array($view));
    $cfg = JEVConfig::getInstance();
    $version = JEventsVersion::getInstance();
    $jevtype = JRequest::getVar('jevtype');
    $evid = JRequest::getInt('evid');
    $pop = JRequest::getInt('pop', 0);
    $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
    $view->copyrightComment();
    // stop crawler and set meta tag
    JEVHelper::checkRobotsMetaTag();
    // Call the MetaTag setter function.
    if (is_callable(array("JEVHelper", "SetMetaTags"))) {
        JEVHelper::SetMetaTags();
    }
    $lang = JFactory::getLanguage();
    ?>
<div id="jevents">
<div class="contentpaneopen jeventpage<?php 
    echo $params->get('pageclass_sfx');
    echo $params->get("darktemplate", 0) ? " jeventsdark" : " ";
    echo $lang->isRTL() ? " jevrtl" : " ";
    ?>
   jevbootstrap" id="jevents_header">
	<?php 
    if ($params->get('show_page_heading', 0)) {
        ?>
	<h1>
		<?php 
        echo $view->escape($params->get('page_heading'));
        ?>
	</h1>
	<?php 
    }
    ?>
	<?php 
    $t_headline = '';
    switch ($cfg->get('com_calHeadline', 'comp')) {
        case 'none':
            $t_headline = '';
            break;
        case 'menu':
            $menu2 = JFactory::getApplication()->getMenu();
            $menu = $menu2->getActive();
            if (isset($menu) && isset($menu->title)) {
                $t_headline = $menu->title;
            }
            break;
        default:
            $t_headline = JText::_('JEV_EVENT_CALENDAR');
            break;
    }
    if ($t_headline != "") {
        ?>
		<h2 class="contentheading" ><?php 
        echo $t_headline;
        ?>
</h2>
		<?php 
    }
    $task = JRequest::getString("jevtask");
    $info = "";
    if ($cfg->get('com_print_icon_view', 1) || $cfg->get('com_email_icon_view', 1) || strpos($info, "<li>") !== false) {
        ?>
	<ul class="actions">
	<?php 
        if ($cfg->get('com_print_icon_view', 1)) {
            $print_link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink() . '&pop=1' . '&tmpl=component';
            $print_link = JRoute::_($print_link);
            if ($pop) {
                ?>
			<li class="print-icon">
			<a href="javascript:void(0);" onclick="javascript:window.print(); return false;" title="<?php 
                echo JText::_('JEV_CMN_PRINT');
                ?>
">
					<span class="icon-print"> </span>	
			</a>
			</li> <?php 
            } else {
                ?>
			<li class="print-icon">
			<a href="javascript:void(0);" onclick="window.open('<?php 
                echo $print_link;
                ?>
', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=600,directories=no,location=no');" title="<?php 
                echo JText::_('JEV_CMN_PRINT');
                ?>
">
					<span class="icon-print"> </span>
			</a>
			</li> <?php 
            }
        }
        if ($cfg->get('com_email_icon_view', 1)) {
//.........这里部分代码省略.........
开发者ID:hriggs,项目名称:cs-website,代码行数:101,代码来源:flatviewhelperheader16.php

示例4: DefaultViewHelperHeader16

function DefaultViewHelperHeader16($view)
{
    $dispatcher =& JDispatcher::getInstance();
    $dispatcher->trigger('onJEventsHeader', array($view));
    $cfg =& JEVConfig::getInstance();
    $version =& JEventsVersion::getInstance();
    $jevtype = JRequest::getVar('jevtype');
    $evid = JRequest::getInt('evid');
    $pop = JRequest::getInt('pop', 0);
    $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
    echo "\n" . '<!-- ' . $version->getLongVersion() . ', ' . utf8_encode(@html_entity_decode($version->getLongCopyright(), ENT_COMPAT, 'ISO-8859-1')) . ', ' . $version->getUrl() . ' -->' . "\n";
    // stop crawler and set meta tag
    JEVHelper::checkRobotsMetaTag();
    $lang =& JFactory::getLanguage();
    ?>
<div class="contentpaneopen jeventpage<?php 
    echo $params->get('pageclass_sfx');
    ?>
" id="jevents_header">
	<?php 
    if ($params->get('show_page_heading', 0)) {
        ?>
	<h1>
		<?php 
        echo $view->escape($params->get('page_heading'));
        ?>
	</h1>
	<?php 
    }
    ?>
	
	<?php 
    $t_headline = '&nbsp;';
    switch ($cfg->get('com_calHeadline', 'comp')) {
        case 'none':
            $t_headline = '';
            break;
        case 'menu':
            $menu2 =& JSite::getMenu();
            $menu = $menu2->getActive();
            if (isset($menu) && isset($menu->name)) {
                $t_headline = $menu->name;
            }
            break;
        default:
            $t_headline = JText::_('JEV_EVENT_CALENDAR');
            break;
    }
    if ($t_headline != "") {
        ?>
		<h2 class="contentheading" ><?php 
        echo $t_headline;
        ?>
</h2>
		<?php 
    }
    $task = JRequest::getString("jevtask");
    ob_start();
    $view->information16();
    $info = ob_get_clean();
    if ($cfg->get('com_print_icon_view', 1) || $cfg->get('com_email_icon_view', 1) || strpos($info, "<li>") !== false) {
        ?>
	<ul class="actions">
	<?php 
        if ($cfg->get('com_print_icon_view', 1)) {
            $print_link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink() . '&pop=1' . '&tmpl=component';
            $print_link = JRoute::_($print_link);
            if ($pop) {
                ?>
			<li class="print-icon">
			<a href="javascript:void(0);" onclick="javascript:window.print(); return false;" title="<?php 
                echo JText::_('JEV_CMN_PRINT');
                ?>
">
              	<?php 
                echo JHTML::_('image.site', 'printButton.png', '/media/system/images/', NULL, NULL, JText::_('JEV_CMN_PRINT'));
                ?>
			</a>
			</li> <?php 
            } else {
                ?>
			<li class="print-icon">
			<a href="javascript:void(0);" onclick="window.open('<?php 
                echo $print_link;
                ?>
', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=600,directories=no,location=no');" title="<?php 
                echo JText::_('JEV_CMN_PRINT');
                ?>
">
              	<?php 
                echo JHTML::_('image.site', 'printButton.png', '/media/system/images/', NULL, NULL, JText::_('JEV_CMN_PRINT'));
                ?>
			</a>
			</li> <?php 
            }
        }
        if ($cfg->get('com_email_icon_view', 1)) {
            $task = JRequest::getString("jevtask");
            $link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink();
            $link = JRoute::_($link);
//.........这里部分代码省略.........
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:101,代码来源:defaultviewhelperheader16.php

示例5: FlatViewHelperHeader

function FlatViewHelperHeader($view)
{
    if (version_compare(JVERSION, "1.6.0", 'ge')) {
        return $view->_header16();
    }
    $task = JRequest::getString("jevtask");
    $view->loadModules("jevprejevents");
    $view->loadModules("jevprejevents_" . $task);
    $dispatcher = JDispatcher::getInstance();
    $dispatcher->trigger('onJEventsHeader', array($view));
    $cfg = JEVConfig::getInstance();
    $version = JEventsVersion::getInstance();
    $jevtype = JRequest::getVar('jevtype');
    $evid = JRequest::getInt('evid');
    $pop = JRequest::getInt('pop', 0);
    $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
    echo "\n" . '<!-- ' . $version->getLongVersion() . ', ' . utf8_encode(@html_entity_decode($version->getLongCopyright(), ENT_COMPAT, 'ISO-8859-1')) . ', ' . $version->getUrl() . ' -->' . "\n";
    // stop crawler and set meta tag
    JEVHelper::checkRobotsMetaTag();
    // Call the MetaTag setter function.
    if (is_callable(array("JEVHelper", "SetMetaTags"))) {
        JEVHelper::SetMetaTags();
    }
    $lang = JFactory::getLanguage();
    ?>
<table class="contentpaneopen jeventpage <?php 
    echo $params->get('pageclass_sfx');
    echo $params->get("darktemplate", 0) ? " jeventsdark" : "jeventslight";
    echo $lang->isRTL() ? " jevrtl" : " ";
    ?>
" id="jevents_header">
	<tr>
	<td class="contentheading" width="100%">
	<?php 
    $t_headline = '&nbsp;';
    switch ($cfg->get('com_calHeadline', 'comp')) {
        case 'none':
            $t_headline = '&nbsp;';
            break;
        case 'menu':
            $menu2 = JFactory::getApplication()->getMenu();
            $menu = $menu2->getActive();
            if (isset($menu) && isset($menu->name)) {
                $t_headline = $menu->name;
            }
            break;
        default:
            $t_headline = JText::_('JEV_EVENT_CALENDAR');
            break;
    }
    echo $t_headline;
    ?>
	</td>
	<?php 
    $task = JRequest::getString("jevtask");
    if ($cfg->get('com_print_icon_view', 1)) {
        $print_link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink() . '&pop=1' . '&tmpl=component';
        $print_link = JRoute::_($print_link);
        if ($pop) {
            ?>
			<td width="20" class="buttonheading" align="right">
			<a href="javascript:void(0);" onclick="javascript:window.print(); return false;" title="<?php 
            echo JText::_('JEV_CMN_PRINT');
            ?>
">
				<?php 
            echo JEVHelper::imagesite('printButton.png', JText::_('JEV_CMN_PRINT'));
            ?>
			</a>
			</td> <?php 
        } else {
            ?>
			<td  width="20" class="buttonheading" align="right">
			<a href="javascript:void(0);" onclick="window.open('<?php 
            echo $print_link;
            ?>
', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=600,directories=no,location=no');" title="<?php 
            echo JText::_('JEV_CMN_PRINT');
            ?>
">
				<?php 
            echo JEVHelper::imagesite('printButton.png', JText::_('JEV_CMN_PRINT'));
            ?>
			</a>
			</td> <?php 
        }
    }
    if ($cfg->get('com_email_icon_view', 1)) {
        $task = JRequest::getString("jevtask");
        $link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink();
        $link = JRoute::_($link);
        if (strpos($link, "/") === 0) {
            $link = substr($link, 1);
        }
        $link = JURI::root() . $link;
        require_once JPATH_SITE . '/' . 'components' . '/' . 'com_mailto' . '/' . 'helpers' . '/' . 'mailto.php';
        $url = JRoute::_('index.php?option=com_mailto&tmpl=component&link=' . MailToHelper::addLink($link));
        $path = version_compare(JVERSION, "1.6.0", 'ge') ? "media/system/images" : '/images/M_images/';
        ?>
		<td width="20" class="buttonheading" align="right">
//.........这里部分代码省略.........
开发者ID:madcsaba,项目名称:li-de,代码行数:101,代码来源:flatviewhelperheader.php


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