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


PHP smarty_function_anchor函数代码示例

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


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

示例1: content_51f3dccd330343_74916793


//.........这里部分代码省略.........
    <?php 
        if (empty($_smarty_tpl->tpl_vars['display_validation']->value)) {
            if (isset($_smarty_tpl->tpl_vars["display_validation"])) {
                $_smarty_tpl->tpl_vars["display_validation"] = clone $_smarty_tpl->tpl_vars["display_validation"];
                $_smarty_tpl->tpl_vars["display_validation"]->value = "+";
                $_smarty_tpl->tpl_vars["display_validation"]->nocache = null;
                $_smarty_tpl->tpl_vars["display_validation"]->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars["display_validation"] = new Smarty_variable("+", null, 0);
            }
        }
        $_smarty_tpl->_capture_stack[0][] = array('default', 'pagetitle', null);
        ob_start();
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

    <!-- END TEMPLATE BLOCKS -->
    
    <!-- ACCESSIBILITY SKIP LINKS -->
    <ul class="accessibility">
      <li></li>
      <li><?php 
        echo smarty_function_anchor(array('anchor' => 'main', 'title' => 'Skip to content', 'accesskey' => 's', 'text' => 'Skip to content'), $_smarty_tpl);
        ?>
</li>
    </ul>
    <!-- END ACCESSIBILITY SKIP LINKS -->
    <hr class="accessibility" />
    
    <!-- NEWS SLIDER SCRIPT --> 
    <?php 
        if ($_smarty_tpl->tpl_vars['display_news_slider']->value == "+") {
            ?>
      <script src="/uploads/tpl-buddy-001/news-banner.js" type="text/javascript"></script>
    <?php 
        }
        ?>
    <!-- END NEWS SLIDER SCRIPT --> 
    
    <!-- HEADER -->
    <div id="headerWrapper">
      <div id="header" class="span-950">
        <div id="logo">
          <h1><a href="" title="<?php 
        echo smarty_function_sitename(array(), $_smarty_tpl);
        ?>
"><img alt="<?php 
        echo smarty_function_sitename(array(), $_smarty_tpl);
        ?>
" src="/uploads/tpl-buddy-001/logo.png" /></a></h1>
          <hr class="accessibility" />
        </div>
        
        <!-- TOP NAVIGATION -->
        <div id="mainNav"> 
开发者ID:Alexkuva,项目名称:Beaupotager,代码行数:67,代码来源:parser1374936269^92a32c5fcb9e764779b9c12ad66b2e6d540dbbd1.template.24.php

示例2: content_56b3277d0ac3f4_92884917

    function content_56b3277d0ac3f4_92884917($_smarty_tpl)
    {
        if (!is_callable('smarty_function_anchor')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.anchor.php';
        }
        if (!is_callable('smarty_function_cms_selflink')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_selflink.php';
        }
        if (!is_callable('Search::function_plugin')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.search.php';
        }
        if (!is_callable('smarty_function_cms_version')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_version.php';
        }
        if (!is_callable('smarty_function_cms_versionname')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_versionname.php';
        }
        if (!is_callable('News::function_plugin')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.news.php';
        }
        if (!is_callable('smarty_function_title')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.title.php';
        }
        if (!is_callable('smarty_function_global_content')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.global_content.php';
        }
        ?>
  <body>
    <div id="ncleanblue">
      <div id="pagewrapper" class="core-wrap-960 core-center">

        <ul class="accessibility">
          <li><?php 
        echo smarty_function_anchor(array('anchor' => 'menu_vert', 'title' => 'Skip to navigation', 'accesskey' => 'n', 'text' => 'Skip to navigation'), $_smarty_tpl);
        ?>
</li>
          <li><?php 
        echo smarty_function_anchor(array('anchor' => 'main', 'title' => 'Skip to content', 'accesskey' => 's', 'text' => 'Skip to content'), $_smarty_tpl);
        ?>
</li>
        </ul>

        <hr class="accessibility" />



        <div id="header" class="util-clearfix">

          <div id="logo" class="core-float-left">
            <?php 
        echo smarty_function_cms_selflink(array('dir' => "start", 'text' => (string) $_smarty_tpl->tpl_vars['sitename']->value), $_smarty_tpl);
        ?>

          </div>
          

          <div id="search" class="core-float-right">
            <?php 
        echo Search::function_plugin(array('search_method' => "post"), $_smarty_tpl);
        ?>

          </div>

          <span class="util-clearb">&nbsp;</span>
          

          <h2 class="accessibility util-clearb">Navigation</h2>

          <div class="page-menu util-clearfix">
          <?php 
        echo MenuManager::function_plugin(array('loadprops' => 0, 'template' => 'cssmenu_ulshadow.tpl'), $_smarty_tpl);
        ?>

          </div>
          <hr class="accessibility util-clearb" />


        </div>



        <div id="content" class="util-clearfix"> 


          <div title="CMS - <?php 
        echo smarty_function_cms_version(array(), $_smarty_tpl);
        ?>
 - <?php 
        echo smarty_function_cms_versionname(array(), $_smarty_tpl);
        ?>
" id="version">
          <?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', 'cms_version', null);
        ob_start();
        ob_start();
        echo smarty_function_cms_version(array(), $_smarty_tpl);
        echo mb_strtolower(ob_get_clean(), 'UTF-8');
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
//.........这里部分代码省略.........
开发者ID:RTR-ITF,项目名称:usse-cms,代码行数:101,代码来源:f86d86ab39c1bb93a1b057df0c3d0155eccd402c.tpl_body.22.php

示例3: content_56b328666a8544_50817537

    function content_56b328666a8544_50817537($_smarty_tpl)
    {
        if (!is_callable('smarty_function_global_content')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.global_content.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">



  <head>
<?php 
        if (isset($_smarty_tpl->tpl_vars['canonical']->value)) {
            ?>
<link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['canonical']->value;
            ?>
" /><?php 
        } elseif (isset($_smarty_tpl->tpl_vars['content_obj']->value)) {
            ?>
<link rel="canonical" href="<?php 
            echo $_smarty_tpl->tpl_vars['content_obj']->value->GetURL();
            ?>
" /><?php 
        }
        ?>

<title> | </title>









<?php 
        echo smarty_function_cms_selflink(array('dir' => "prev", 'rellink' => 1), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_cms_selflink(array('dir' => "next", 'rellink' => 1), $_smarty_tpl);
        ?>



<!--[if IE 6]>
<script type="text/javascript" src="modules/MenuManager/CSSMenu.js"></script>
<![endif]-->





<!--[if IE 6]>
<script type="text/javascript"  src="uploads/NCleanBlue/js/ie6fix.js"></script>
<script type="text/javascript">
 // argument is a CSS selector
 DD_belatedPNG.fix('.sbar-top,.sbar-bottom,.main-top,.main-bottom,#version');
</script>
<style type="text/css">
/* enable background image caching in IE6 */
html {filter:expression(document.execCommand("BackgroundImageCache", false, true));} 
</style>
<![endif]-->


  </head>
  <body>
    <div id="ncleanblue">
      <div id="pagewrapper" class="core-wrap-960 core-center">

        <ul class="accessibility">
          <li></li>
          <li><?php 
        echo smarty_function_anchor(array('anchor' => 'main', 'title' => 'Skip to content', 'accesskey' => 's', 'text' => 'Skip to content'), $_smarty_tpl);
        ?>
</li>
        </ul>

        <hr class="accessibility" />



        <div id="header" class="util-clearfix">

          <div id="logo" class="core-float-left">
            <?php 
        echo smarty_function_cms_selflink(array('dir' => "start", 'text' => (string) $_smarty_tpl->tpl_vars['sitename']->value), $_smarty_tpl);
        ?>

          </div>
          

          <div id="search" class="core-float-right">
            
          </div>
//.........这里部分代码省略.........
开发者ID:RTR-ITF,项目名称:usse-cms,代码行数:101,代码来源:parser1454581862^1b864ad7ed6372e95e393299471aba4ba4fe4e21.template.22.php

示例4: content_51f3bfcf494341_20472597

    function content_51f3bfcf494341_20472597($_smarty_tpl)
    {
        if (!is_callable('smarty_function_anchor')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.anchor.php';
        }
        if (!is_callable('smarty_function_root_url')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.root_url.php';
        }
        if (!is_callable('smarty_function_sitename')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.sitename.php';
        }
        if (!is_callable('smarty_function_breadcrumbs')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.breadcrumbs.php';
        }
        if (!is_callable('Search::function_plugin')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.search.php';
        }
        if (!is_callable('News::function_plugin')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.news.php';
        }
        if (!is_callable('smarty_function_valid_css')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.valid_css.php';
        }
        if (!is_callable('smarty_function_valid_xhtml')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.valid_xhtml.php';
        }
        if (!is_callable('smarty_function_global_content')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.global_content.php';
        }
        ?>
<body>
    <a id="top"></a>

    <!-- TEMPLATE BLOCKS --> 
<?php 
        CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Header Slider", 'oneline' => "true", 'size' => "1", 'default' => "-", 'assign' => "display_slider", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl);
        ?>
    <?php 
        if (empty($_smarty_tpl->tpl_vars['display_slider']->value)) {
            if (isset($_smarty_tpl->tpl_vars["display_slider"])) {
                $_smarty_tpl->tpl_vars["display_slider"] = clone $_smarty_tpl->tpl_vars["display_slider"];
                $_smarty_tpl->tpl_vars["display_slider"]->value = "-";
                $_smarty_tpl->tpl_vars["display_slider"]->nocache = null;
                $_smarty_tpl->tpl_vars["display_slider"]->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars["display_slider"] = new Smarty_variable("-", null, 0);
            }
        }
        ?>
 
    <?php 
        $_smarty_tpl->_capture_stack[0][] = array('default', "galleryfolder", null);
        ob_start();
        CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "galleryfolder", 'oneline' => "true", 'label' => "Gallery Module foldername for Header Slideshow", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl);
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
    <?php 
        CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Breadcrumbs", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_breadcrumbs", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl);
        ?>
    <?php 
        if (empty($_smarty_tpl->tpl_vars['display_breadcrumbs']->value)) {
            if (isset($_smarty_tpl->tpl_vars["display_breadcrumbs"])) {
                $_smarty_tpl->tpl_vars["display_breadcrumbs"] = clone $_smarty_tpl->tpl_vars["display_breadcrumbs"];
                $_smarty_tpl->tpl_vars["display_breadcrumbs"]->value = "+";
                $_smarty_tpl->tpl_vars["display_breadcrumbs"]->nocache = null;
                $_smarty_tpl->tpl_vars["display_breadcrumbs"]->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars["display_breadcrumbs"] = new Smarty_variable("+", null, 0);
            }
        }
        ?>
    <?php 
        CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Sidebar Menu", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_sidebar_menu", 'tab' => 'Sidebar', 'wysiwyg' => 'false'), $_smarty_tpl);
        ?>
    <?php 
        if (empty($_smarty_tpl->tpl_vars['display_sidebar_menu']->value)) {
            if (isset($_smarty_tpl->tpl_vars["display_sidebar_menu"])) {
                $_smarty_tpl->tpl_vars["display_sidebar_menu"] = clone $_smarty_tpl->tpl_vars["display_sidebar_menu"];
                $_smarty_tpl->tpl_vars["display_sidebar_menu"]->value = "+";
                $_smarty_tpl->tpl_vars["display_sidebar_menu"]->nocache = null;
                $_smarty_tpl->tpl_vars["display_sidebar_menu"]->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars["display_sidebar_menu"] = new Smarty_variable("+", null, 0);
            }
        }
        ?>
 
    <?php 
        CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Search", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_search", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl);
//.........这里部分代码省略.........
开发者ID:Alexkuva,项目名称:Beaupotager,代码行数:101,代码来源:ad83cfdd496e0d74150f5e8179bf0ea1e88e3ac2.tpl_body.24.php


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