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


PHP Layout::getTheme方法代码示例

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


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

示例1: getTplDir

 /**
  * Grabs the THEME template directory unless layout is not
  * operational
  */
 public static function getTplDir($module)
 {
     if ($module == 'core') {
         return PHPWS_SOURCE_DIR . 'core/templates/';
     }
     if (!class_exists('Layout')) {
         return PHPWS_SOURCE_DIR . "mod/{$module}/templates/";
     }
     $theme = Layout::getThemeDirRoot() . Layout::getTheme();
     return sprintf('%s/templates/%s/', $theme, $module);
 }
开发者ID:HaldunA,项目名称:phpwebsite,代码行数:15,代码来源:Template.php

示例2: getThemeDir

 public static function getThemeDir()
 {
     Layout::checkSettings();
     $themeDir = Layout::getTheme();
     //return PHPWS_SOURCE_DIR . "themes/$themeDir/";
     return "themes/{$themeDir}/";
 }
开发者ID:sysulsj,项目名称:phpwebsite,代码行数:7,代码来源:Layout.php

示例3: view

 /**
  * Returns a menu and its links for display
  */
 public function view($admin = false)
 {
     $key = Key::getCurrent();
     if ($key && $key->isDummy(true)) {
         return;
     }
     $theme_tpl_dir = \PHPWS_Template::getTplDir('menu') . 'menu_layout/';
     $menu_tpl_dir = PHPWS_SOURCE_DIR . 'mod/menu/templates/menu_layout/';
     $theme_path = $theme_tpl_dir . $this->template . '/';
     $menu_path = $menu_tpl_dir . $this->template . '/';
     if (is_file($theme_path . 'menu.tpl')) {
         $file = $theme_path . 'menu.tpl';
         $path = $theme_path;
         $http = 'themes/' . Layout::getTheme() . '/templates/menu/menu_layout/' . $this->template . '/';
     } elseif (is_file($menu_path . 'menu.tpl')) {
         $file = $menu_path . 'menu.tpl';
         $path = $menu_path;
         $http = 'mod/menu/templates/menu_layout/' . $this->template . '/';
     } else {
         $this->template = 'basic';
         $this->save();
         $path = $menu_tpl_dir . 'basic/';
         $http = 'mod/menu/templates/menu_layout/basic/';
         $file = $path . '/menu.tpl';
     }
     $this->parseIni($path);
     if ($this->_style) {
         $style = $http . 'style.css';
         Layout::addToStyleList($style);
     }
     $tpl['TITLE'] = $this->getTitle();
     $tpl['LINKS'] = $this->displayLinks($admin);
     $tpl['MENU_ID'] = sprintf('menu-%s', $this->id);
     $content = PHPWS_Template::process($tpl, 'menu', $file, true);
     return $content;
 }
开发者ID:HaldunA,项目名称:phpwebsite,代码行数:39,代码来源:Menu_Item.php

示例4: utf8_encode

	$anuncio = $anuncioDAO->getAnuncioPorId($id);		
	$key['local']  = "ABQIAAAAdYDULndWHw73mv6IA5TzQxRMtg-kJ86tYRuSzULgUSI7o9IM_xTBnZ5iDcBkLKVAq13VtrFrxJwhxA";
	$key['online'] = "ABQIAAAAdYDULndWHw73mv6IA5TzQxRQnSlT4KQ-GYzt3qGqXg8vKTdKzBSXAZnS0UBwi2weHwDkS7HX_OEF6Q";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title><?php 
echo utf8_encode($anuncio->getNome());
?>
</title>
    <?php 
echo $layout->getTheme("");
?>
	<link rel="shortcut icon" href="<?php 
echo $layout->image_path;
?>
icones/favicon.ico" >
	<script type="text/javascript" src="<?php 
echo $layout->image_path;
?>
js/jquery.js"></script>
	<script type="text/javascript" src="<?php 
echo $layout->image_path;
?>
js/funcoes.js"></script>
	<script>
	$(document).ready(function(){
开发者ID:heritonvarelapinto,项目名称:iwsproject,代码行数:31,代码来源:anunciante.php


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