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


PHP smarty_function_sitename函数代码示例

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


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

示例1: content_51f3dccd330343_74916793


//.........这里部分代码省略.........
        } 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"> 
          <h2 class="accessibility">Navigation</h2>
           
          <hr class="accessibility" />
        </div>
        <!-- END TOP NAVIGATION -->
        
      </div>
    </div> 
    <!-- END HEADER -->

    
    <!-- SLIDER -->
    <div id="sliderWrapper">
      <div class="bannerHolder">
        <ul id="bannerNav">
        </ul>
        <a href="#"><span id="prevBanner">Previous</span></a> 
        <a href="#"><span id="nextBanner">Next</span></a> 	
        
		   
        
      </div>
开发者ID:Alexkuva,项目名称:Beaupotager,代码行数:67,代码来源:parser1374936269^92a32c5fcb9e764779b9c12ad66b2e6d540dbbd1.template.24.php

示例2: content_56b3277d7604d2_98777959

    function content_56b3277d7604d2_98777959($_smarty_tpl)
    {
        if (!is_callable('smarty_function_title')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.title.php';
        }
        if (!is_callable('smarty_function_sitename')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.sitename.php';
        }
        if (!is_callable('smarty_function_metadata')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.metadata.php';
        }
        if (!is_callable('smarty_cms_function_cms_stylesheet')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_stylesheet.php';
        }
        if (!is_callable('smarty_function_cms_selflink')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_selflink.php';
        }
        ?>
<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><?php 
        echo smarty_function_title(array(), $_smarty_tpl);
        ?>
 | <?php 
        echo smarty_function_sitename(array(), $_smarty_tpl);
        ?>
</title>


<?php 
        echo smarty_function_metadata(array(), $_smarty_tpl);
        ?>



<?php 
        echo smarty_cms_function_cms_stylesheet(array(), $_smarty_tpl);
        ?>



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

<?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><?php 
    }
开发者ID:RTR-ITF,项目名称:usse-cms,代码行数:93,代码来源:3408016ffadd3d0bf8f68f519b2e552d72a8c875.tpl_head.22.php

示例3: content_51f3bfcf854621_40671827

    function content_51f3bfcf854621_40671827($_smarty_tpl)
    {
        if (!is_callable('smarty_function_sitename')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.sitename.php';
        }
        if (!is_callable('smarty_function_title')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.title.php';
        }
        if (!is_callable('smarty_function_metadata')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.metadata.php';
        }
        if (!is_callable('smarty_cms_function_cms_stylesheet')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.cms_stylesheet.php';
        }
        if (!is_callable('smarty_function_cms_selflink')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.cms_selflink.php';
        }
        ?>
<head>
<title><?php 
        echo smarty_function_sitename(array(), $_smarty_tpl);
        ?>
 - <?php 
        if (isset($_smarty_tpl->tpl_vars['newstitle']->value)) {
            echo $_smarty_tpl->tpl_vars['newstitle']->value;
        } else {
            echo smarty_function_title(array(), $_smarty_tpl);
        }
        ?>
</title>

<?php 
        echo smarty_function_metadata(array(), $_smarty_tpl);
        ?>

<?php 
        echo smarty_cms_function_cms_stylesheet(array(), $_smarty_tpl);
        ?>


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

<?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);
        ?>


<!-- JAVASCRIPT CALLS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="/uploads/tpl-buddy-001/jquery.cycle.all.js" type="text/javascript"></script> 
<script src="/uploads/tpl-buddy-001/init.js" type="text/javascript"></script>
<!-- END JS CALLS -->


<!--[if IE 7]>
<style type="text/css">
#mainNav {margin:-60px 0 0;}
</style>
<![endif]-->



<!--[if lte IE 8]>
<style type="text/css">
#search input {padding: 8px 0 0;height:26px;}
</style>
<![endif]-->


</head><?php 
    }
开发者ID:Alexkuva,项目名称:Beaupotager,代码行数:77,代码来源:931e1e9eac676a7613090088c9d8b4df6c1f1c50.tpl_head.24.php

示例4: content_523730db70b506_68136762

    function content_523730db70b506_68136762($_smarty_tpl)
    {
        if (!is_callable('smarty_function_sitename')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.sitename.php';
        }
        if (!is_callable('smarty_function_cms_jquery')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.cms_jquery.php';
        }
        if (!is_callable('smarty_function_root_url')) {
            include '/homepages/26/d480780604/htdocs/plugins/function.root_url.php';
        }
        ?>
<!doctype html>
<html>
	<head>
		<meta charset="<?php 
        echo $_smarty_tpl->tpl_vars['encoding']->value;
        ?>
" />
		<title><?php 
        echo lang('logintitle');
        ?>
 - <?php 
        echo smarty_function_sitename(array(), $_smarty_tpl);
        ?>
</title>
		<base href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/" />
		<meta name="generator" content="CMS Made Simple - Copyright (C) 2004-12 Ted Kulp. All rights reserved." />
		<meta name="robots" content="noindex, nofollow" />
		<meta name="viewport" content="initial-scale=1.0 maximum-scale=1.0 user-scalable=no" />
		<meta name="HandheldFriendly" content="True"/>
		<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/cmsms-favicon.ico"/>
		<link rel="stylesheet" href="loginstyle.php" />
		<!-- learn IE html5 -->
		<!--[if lt IE 9]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<?php 
        echo smarty_function_cms_jquery(array('exclude' => "jquery.ui.nestedSortable-1.3.4.js,jquery.json-2.2.js", 'append' => (string) $_smarty_tpl->tpl_vars['config']->value['admin_url'] . "/themes/OneEleven/includes/login.js"), $_smarty_tpl);
        ?>

	</head>
	<body id="login">
		<div id="wrapper">
			<div class="login-container">
				<div class="login-box cf"<?php 
        if (isset($_smarty_tpl->tpl_vars['error']->value)) {
            ?>
 id="error"<?php 
        }
        ?>
>
					<div class="logo">
						<img src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/layout/cmsms_login_logo.png" width="180" height="36" alt="CMS Made Simple&trade;" />
					</div>
					<div class="info-wrapper open">
					<aside class="info">
					<h2><?php 
        echo lang('login_info_title');
        ?>
</h2>
						<p><?php 
        echo lang('login_info');
        ?>
</p>
							<?php 
        echo lang('login_info_params');
        ?>

							<p><strong>(<?php 
        echo $_SERVER['HTTP_HOST'];
        ?>
)</strong></p>					
						<p class="warning"><?php 
        echo lang('warn_admin_ipandcookies');
        ?>
</p>
					</aside>
					<a href="#" title="<?php 
        echo lang('open');
        ?>
/<?php 
        echo lang('close');
        ?>
" class="toggle-info"><?php 
        echo lang('open');
        ?>
/<?php 
        echo lang('close');
        ?>
</a>
//.........这里部分代码省略.........
开发者ID:Alexkuva,项目名称:Beaupotager,代码行数:101,代码来源:c13d7d9262556ed611bf2b0545f967f679aeafe2.file.login.tpl.php

示例5: content_56b328bd90ad29_08480200

    function content_56b328bd90ad29_08480200($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_truncate')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\lib\\smarty\\plugins\\modifier.truncate.php';
        }
        if (!is_callable('smarty_function_sitename')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.sitename.php';
        }
        if (!is_callable('smarty_function_cms_jquery')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_jquery.php';
        }
        if (!is_callable('smarty_cms_function_module_available')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.module_available.php';
        }
        if (!is_callable('smarty_function_cms_module')) {
            include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_module.php';
        }
        ?>
<!doctype html>
<html lang="<?php 
        echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['lang']->value, '2', '');
        ?>
" dir="<?php 
        echo $_smarty_tpl->tpl_vars['lang_dir']->value;
        ?>
">
	<head>
		<meta charset="utf-8" />
		<title><?php 
        if (!empty($_smarty_tpl->tpl_vars['pagetitle']->value)) {
            echo $_smarty_tpl->tpl_vars['pagetitle']->value;
            ?>
 - <?php 
        }
        echo smarty_function_sitename(array(), $_smarty_tpl);
        ?>
</title>
		<base href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/" />
		<meta name="generator" content="CMS Made Simple - Copyright (C) 2004-12 Ted Kulp. All rights reserved." />
		<meta name="robots" content="noindex, nofollow" />
		<meta name="viewport" content="initial-scale=1.0 maximum-scale=1.0 user-scalable=no" />
		<meta name="HandheldFriendly" content="True"/>
		<link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/cmsms-favicon.ico"/>
		<link rel='apple-touch-icon' href='<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/apple-touch-icon-iphone.png' /> 
		<link rel='apple-touch-icon' sizes='72x72' href='<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/apple-touch-icon-ipad.png' /> 
		<link rel='apple-touch-icon' sizes='114x114' href='<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/apple-touch-icon-iphone4.png' />
		<link rel='apple-touch-icon' sizes='144x144' href='<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/apple-touch-icon-ipad3.png' />		
		<meta name='msapplication-TileImage' content='<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/images/favicon/ms-application-icon.png' />
		<meta name='msapplication-TileColor' content='#f89938'>
		<link rel="stylesheet" href="style.php?<?php 
        echo $_smarty_tpl->tpl_vars['secureparam']->value;
        ?>
" />
		<!-- learn IE html5 -->
		<!--[if lt IE 9]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<?php 
        echo smarty_function_cms_jquery(array('append' => (string) $_smarty_tpl->tpl_vars['config']->value['admin_url'] . "/themes/OneEleven/includes/jquery.cookie.min.js," . (string) $_smarty_tpl->tpl_vars['config']->value['admin_url'] . "/themes/OneEleven/includes/standard.js"), $_smarty_tpl);
        ?>

		<!-- THIS IS WHERE HEADER STUFF SHOULD GO -->
	 	<?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['headertext']->value) === null || $tmp === '' ? '' : $tmp;
        ?>

		<!-- custom jQueryUI Theme 1.8.21 see style.css or link in UI Stylesheet for color reference //-->
		<link href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['admin_url'];
        ?>
/themes/OneEleven/css/default-cmsms/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
        <?php 
        echo smarty_cms_function_module_available(array('name' => 'FileManager', 'assign' => 'fmgood'), $_smarty_tpl);
        ?>

        <?php 
        if (isset($_smarty_tpl->tpl_vars['fmgood']->value) && $_smarty_tpl->tpl_vars['fmgood']->value) {
            echo smarty_function_cms_module(array('module' => 'FileManager', 'action' => 'javascript'), $_smarty_tpl);
        }
//.........这里部分代码省略.........
开发者ID:RTR-ITF,项目名称:usse-cms,代码行数:101,代码来源:43bcfba1029bac8dcdc7da15a25d76885327b13b.file.pagetemplate.tpl.php

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