• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getTheme函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: displayFooter

/**
 * displayFooter 
 * 
 * @return void
 */
function displayFooter()
{
    global $currentUserId, $TMPL;
    echo '
        </div><!-- /centercontent -->';
    include_once getTheme($currentUserId) . 'footer.php';
}
开发者ID:lmcro,项目名称:fcms,代码行数:12,代码来源:template.php


示例2: lessc

 public function lessc()
 {
     if (!isset($_GET['f'])) {
         $this->route->run('/error/404');
         return;
     }
     $f = $_GET['f'];
     $key = $this->config->site->mediaVersion;
     header('Content-type: text/css');
     header(sprintf('Last-Modified: %s GMT', gmdate('D, d M Y H:i:s', strtotime('-1 year'))));
     header(sprintf('Etag: %s', md5(sprintf('%s~%s', $key, $f))));
     if (!is_array($f)) {
         $f = (array) explode(',', $f);
     }
     $theme = getTheme();
     $less = new lessc();
     foreach ($f as $file) {
         $fullPath = realpath(sprintf('%s/%s/stylesheets/%s', $this->config->paths->themes, $theme->getThemeName(), $file));
         if (file_exists($fullPath) && preg_match('/\\.less$/', $file) === 1 && strpos($fullPath, $this->config->paths->themes) === 0) {
             if ($this->config->site->mode === 'prod') {
                 $cacheFile = realpath(sprintf('%s/assets/cache', $this->config->paths->docroot)) . '/' . md5($theme->getThemeName() . $file) . '-' . basename($file) . '.css.cache';
                 $cssOutput = $this->getCompiledLessFile($fullPath, $cacheFile, $less);
             } else {
                 $cssOutput = $this->pipeline->normalizeUrls(dirname($fullPath), $less->compileFile($fullPath));
             }
             echo $cssOutput;
         }
     }
 }
开发者ID:gg1977,项目名称:frontend,代码行数:29,代码来源:AssetsController.php


示例3: getZones

function getZones($position, $collapse = true, $dispmode = "STD")
{
    $module = CopixRequest::get('module');
    $user = _currentUser();
    $userstatus = $user->isConnected() ? 'connected' : 'visitor';
    $layout = getTheme("zones", $dispmode);
    $jzones_default = isset($layout->{$userstatus}->default->{$position}) ? $layout->{$userstatus}->default->{$position} : array();
    $jzones_module = isset($layout->{$userstatus}->{$module}->{$position}) ? $layout->{$userstatus}->{$module}->{$position} : array();
    $jzones = array_merge((array) $jzones_default, (array) $jzones_module);
    if (empty($jzones)) {
        if ($collapse) {
            echo '<div class="collapse"></div>';
        } else {
            echo '<div class="filler"></div>';
        }
    } else {
        foreach ($jzones as $zone) {
            if ($zone->params != "") {
                $params = $zone->params;
                $params = unserialize($params);
                $zoneContent = CopixZone::process($zone->supplier . '|' . $zone->zone, $params);
            } else {
                $zoneContent = CopixZone::process($zone->supplier . '|' . $zone->zone);
            }
            if (!$zoneContent) {
                continue;
            }
            $id = $position == 'popup' ? 'id="' . $module . '-' . $zone->zone . '" ' : '';
            echo '<div ' . $id . 'class="' . $module . ' ' . $zone->zone . '">';
            echo $zoneContent;
            echo '</div>';
        }
    }
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:34,代码来源:helper.php


示例4: renderFooterJavaScript

 public function renderFooterJavaScript()
 {
     parent::renderFooterJavaScript();
     $unseen = $this->tutorial->getUnseen();
     if (empty($unseen)) {
         return;
     }
     $init = false;
     $retval = '';
     foreach ($unseen as $k => $v) {
         if (isset($unseen['init']) && $unseen['init']) {
             $init = true;
         }
         $retval .= getTheme()->get('partials/tutorialJs.php', array_merge(array('step' => $k + 1), $v));
     }
     return $retval;
 }
开发者ID:gg1977,项目名称:frontend,代码行数:17,代码来源:TutorialPlugin.php


示例5: __construct

 public function __construct()
 {
     $this->api = getApi();
     $this->config = getConfig()->get();
     $this->plugin = getPlugin();
     $this->route = getRoute();
     $this->session = getSession();
     $this->template = getTemplate();
     $this->theme = getTheme();
     $this->utility = new Utility();
     $this->url = new Url();
     $this->template->template = $this->template;
     $this->template->config = $this->config;
     $this->template->plugin = $this->plugin;
     $this->template->session = $this->session;
     $this->template->theme = $this->theme;
     $this->template->utility = $this->utility;
     $this->template->url = $this->url;
     $this->template->user = new User();
 }
开发者ID:gg1977,项目名称:frontend,代码行数:20,代码来源:BaseController.php


示例6: lessc

 public function lessc()
 {
     if (!isset($_GET['f'])) {
         $this->route->run('/error/404');
         return;
     }
     $f = $_GET['f'];
     header('Content-type: text/css');
     header(sprintf('Last-Modified: %s GMT', gmdate('D, d M Y H:i:s', strtotime('-1 year'))));
     header(sprintf('Etag: %s', md5(sprintf('%s~%s', $key, $f))));
     if (!is_array($f)) {
         $f = (array) explode(',', $f);
     }
     $theme = getTheme();
     $less = new lessc();
     foreach ($f as $file) {
         $fullPath = realpath(sprintf('%s/%s/stylesheets/%s', $this->config->paths->themes, $theme->getThemeName(), $file));
         if (file_exists($fullPath) && preg_match('/\\.less$/', $file) === 1 && strpos($fullPath, $this->config->paths->themes) === 0) {
             echo $this->pipeline->normalizeUrls(dirname($fullPath), $less->compileFile($fullPath));
         }
     }
 }
开发者ID:hfiguiere,项目名称:frontend,代码行数:22,代码来源:AssetsController.php


示例7: SeleccionarModuloFoto

function SeleccionarModuloFoto($carpeta, $inicio, $subcatalogo)
{
    global $xoopsDB, $xoopsConfig, $xoopsTheme, $xoopsUser;
    $consulta2 = "SELECT ID, Carpeta, Imagen, Descripcion, Aleatorio, Bloque, MCatalogos, AnchoBloque, AltoBloque, AnchoImagenes, AltoImagenes, FotosAncho, FotosAlto, Anterior, Siguiente, InicioEncabezado, FinEncabezado, InicioPie, FinPie, InicioFoto, FinFoto, InicioMarcoFoto, FinMarcoFoto, EnviarFicheros, NombreFotoCarpeta, NombreFotoCarpetaSuperior, UsarBordes, BordesTema, BordeImagenPequenoIzquierda, BordeImagenPequenoDerecha, BordeImagenPequenoArriba, BordeImagenPequenoAbajo, UsarBordesGaleria, NombreFrameStyleGaleria, ForzarDescripcion, ForzarTamano, EspaciadoVertical, EspaciadoHorizontal, Espaciado, ColorFondo, ColorFondo1, ColorFondo2, ColorFondo3, ColorFondo4 FROM " . $xoopsDB->prefix("uskolag_carpeta") . " Where Carpeta like '" . $carpeta . "'";
    $myts = new MyTextSanitizer();
    $result2 = $xoopsDB->query($consulta2);
    while ($tbCarpeta2 = $xoopsDB->fetchArray($result2)) {
        $PERMITIRENVIARFICHEROS = $tbCarpeta2['EnviarFicheros'];
        $UsarBordesPequeno = $tbCarpeta2['UsarBordes'];
        $BordesTemaPequeno = $tbCarpeta2['BordesTema'];
        $ANCHOCARPETA = $tbCarpeta2['AnchoImagenes'];
        $ALTOCARPETA = $tbCarpeta2['AltoImagenes'];
        $ForzarDescripcion = $tbCarpeta2['ForzarDescripcion'];
        $ForzarTamano = $tbCarpeta2['ForzarTamano'];
        $ColorFondo = $tbCarpeta2['ColorFondo'];
        $ColorFondo1 = $tbCarpeta2['ColorFondo1'];
        $ColorFondo2 = $tbCarpeta2['ColorFondo2'];
        $ColorFondo3 = $tbCarpeta2['ColorFondo3'];
        $ColorFondo4 = $tbCarpeta2['ColorFondo4'];
        $EspaciadoVertical = $tbCarpeta2['EspaciadoVertical'];
        $EspaciadoHorizontal = $tbCarpeta2['EspaciadoHorizontal'];
        $Espaciado = $tbCarpeta2['Espaciado'];
        $descripcionCarpeta = $tbCarpeta2['Descripcion'];
        $ValorColorFondo = "";
        if ($ColorFondo1 == 1) {
            $ValorColorFondo = " class=bg1";
        }
        if ($ColorFondo1 == 2) {
            $ValorColorFondo = " class=bg2";
        }
        if ($ColorFondo1 == 3) {
            $ValorColorFondo = " class=bg3";
        }
        if ($ColorFondo1 == 4) {
            $ValorColorFondo = " class=bg4";
        }
        if ($ColorFondo1 == 5) {
            $ValorColorFondo = " class=bg5";
        }
        if ($ColorFondo1 == 6) {
            $ValorColorFondo = " class=bg6";
        }
        if (!$ValorColorFondo) {
            $ValorColorFondo = " " . $ColorFondo1;
        }
        if ($ColorFondo2) {
            $AnchoMatte = " cellpadding=" . $ColorFondo2;
        }
        if ($ColorFondo2 == 0) {
            $AnchoMatte = " cellpadding=" . "0";
        }
        $Espaciado = $ColorFondo2 * 2;
        $CadenaCarrete = "<table" . $ValorColorFondo . $AnchoMatte . ">";
        //	$CadenaCarrete ="<table bgcolor=pink cellpadding=20>";
        if ($tbCarpeta2['UsarBordesGaleria']) {
            if ($tbCarpeta2['BordesTema']) {
                if (file_exists(XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/images/small/" . "size.php")) {
                    include XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/images/small/" . "size.php";
                    $rutaGrande = XOOPS_URL . "/themes/" . getTheme() . "/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/images/small/";
                } else {
                    if (file_exists(XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/images/small/" . "size.php")) {
                        include XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/images/small/" . "size.php";
                        $rutaGrande = XOOPS_URL . "/themes/" . getTheme() . "/images/small/";
                    } else {
                        include XOOPS_ROOT_PATH . "/" . "/modules/uskolaxgallery/icons/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/small/" . "size.php";
                        $rutaGrande = XOOPS_URL . "/modules/uskolaxgallery/icons/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/small/";
                    }
                }
            } else {
                if (file_exists(XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/images/small/" . "size.php")) {
                    include XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/images/small/" . "size.php";
                    $rutaGrande = XOOPS_URL . "/themes/" . getTheme() . "/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/images/small/";
                } else {
                    if (file_exists(XOOPS_ROOT_PATH . "/" . "/modules/uskolaxgallery/icons/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/small/" . "size.php")) {
                        include XOOPS_ROOT_PATH . "/" . "/modules/uskolaxgallery/icons/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/small/" . "size.php";
                        $rutaGrande = XOOPS_URL . "/modules/uskolaxgallery/icons/" . $tbCarpeta2['NombreFrameStyleGaleria'] . "/small/";
                    } else {
                        include XOOPS_ROOT_PATH . "/" . "/themes/" . getTheme() . "/images/small/" . "size.php";
                        $rutaGrande = XOOPS_URL . "/themes/" . getTheme() . "/images/small/";
                    }
                }
            }
            $TBordeImagenGrandeIzquierdaArriba = "<td background=" . $rutaGrande . "top_left_corner.gif" . " width=" . $BloqueLeft . " height=" . $BloqueTop . "></td>";
            $TBordeImagenGrandeIzquierdaCentro = "<td background=" . $rutaGrande . "left.gif" . " width=" . $BloqueLeft . "></td>";
            $TBordeImagenGrandeIzquierdaAbajo = "<td background=" . $rutaGrande . "bottom_left_corner.gif" . " width=" . $BloqueLeft . " height=" . $BloqueBottom . "></td>";
            $TBordeImagenGrandeCentroArriba = "<td background=" . $rutaGrande . "top.gif" . " height=" . $BloqueTop . "></td>";
            $TBordeImagenGrandeCentroAbajo = "<td background=" . $rutaGrande . "bottom.gif" . " height=" . $BloqueBottom . "></td>";
            $TBordeImagenGrandeDerechaArriba = "<td background=" . $rutaGrande . "top_right_corner.gif" . " width=" . $BloqueRight . " height=" . $BloqueTop . "></td>";
            $TBordeImagenGrandeDerechaCentro = "<td background=" . $rutaGrande . "right.gif" . " width=" . $BloqueRight . "></td>";
            $TBordeImagenGrandeDerechaAbajo = "<td background=" . $rutaGrande . "bottom_right_corner.gif" . " width=" . $BloqueRight . " height=" . $BloqueBottom . "></td>";
            $USKOLAGALERYANEXT = "<img src=\"" . $rutaGrande . "next.gif" . "\">";
            $USKOLAGALERYAPREVIOUS = "<img src=\"" . $rutaGrande . "previous.gif" . "\">";
            $InicioEncabezado = $FInicioEncabezado;
            $FinEncabezado = $FFinEncabezado;
            $InicioFoto = $FInicioPie;
            $FinFoto = $FFinPie;
            $InicioMarcoFoto = $FInicioMarcoFoto;
            $FinMarcoFoto = $FFinMarcoFoto;
            $InicioPie = $FInicioPie;
            $FinPie = $FFinPie;
//.........这里部分代码省略.........
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:101,代码来源:seleccionarpequeno.php


示例8: strlen

 */
$url = $_GET['url'];
$url_count = strlen($url);
$slug_number = 1;
$slug = array();
for ($i = 0; $i <= $url_count; $i++) {
    $letter = substr($url, $i, 1);
    if ($letter == '/' || $letter == '') {
        $slug_number++;
    } else {
        $slug[$slug_number] .= $letter;
    }
}
/*
 *	This section decides wether the user is requesting the homepage or another page.
 *	It does this by checking wether slug 1 is defined, if not then it will load the
 *	home page.
 *
 *	If the root slug is defined then it will decide what file to load by accessing
 *	the page data and getting a file URL.
 *
 */
if (!isset($slug[1])) {
    include $_SERVER['DOCUMENT_ROOT'] . $INS_DIR . 'themes/' . getTheme() . '/home-page.php';
} else {
    if (slugActive($slug[1])) {
        include getSlugLocation($slug[1]);
    } else {
        include $_SERVER['DOCUMENT_ROOT'] . $INS_DIR . 'themes/' . getTheme() . '/404.php';
    }
}
开发者ID:austincollins,项目名称:myPersonalWebsite,代码行数:31,代码来源:index.php


示例9: function_exists

    $maxImageHeight = "600";
    $preloaderColor = "0xFFFFFF";
    $textColor = "0xFFFFFF";
    $frameColor = "0xFFFFFF";
    $frameWidth = "10";
    $stagePadding = "20";
    $thumbnailColumns = "3";
    $thumbnailRows = "5";
    $navPosition = "left";
    $enableRightClickOpen = "true";
    $backgroundImagePath = "";
    // End of Simpeviewer config
}
$map = function_exists('printGoogleMap');
if (!isset($_GET['format']) || $_GET['format'] != 'xml') {
    $themeResult = getTheme($zenCSS, $themeColor, 'kish-my father');
    if ($_noFlash) {
        $backgroundColor = "#0";
        // who cares, we won't use it
    } else {
        $backgroundColor = parseCSSDef($zenCSS);
    }
    ?>
<!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">
<head>
	<?php 
    zp_apply_filter('theme_head');
    ?>
	<title><?php 
    echo getBareGalleryTitle();
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:album.php


示例10: getTheme

<?php

if (!defined('WEBPATH')) {
    die;
}
$themeResult = getTheme($zenCSS, $themeColor, 'light');
$firstPageImages = normalizeColumns('2', '6');
?>
<!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">
<head>
	<?php 
zenJavascript();
?>
	<title><?php 
echo getBareGalleryTitle();
?>
 | <?php 
echo gettext("Archive View");
?>
</title>
	<link rel="stylesheet" href="<?php 
echo $zenCSS;
?>
" type="text/css" />
	<?php 
printRSSHeaderLink('Gallery', gettext('Gallery RSS'));
?>
</head>

<body>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:archive.php


示例11: getPlugin

    getPlugin()->load();
} else {
    $runUpgrade = false;
    $runSetup = true;
    // setup and enable routes for setup
    $baseDir = dirname(dirname(__FILE__));
    $paths = new stdClass();
    $paths->libraries = "{$baseDir}/libraries";
    $paths->configs = "{$baseDir}/configs";
    $paths->controllers = "{$baseDir}/libraries/controllers";
    $paths->docroot = "{$baseDir}/html";
    $paths->external = "{$baseDir}/libraries/external";
    $paths->adapters = "{$baseDir}/libraries/adapters";
    $paths->models = "{$baseDir}/libraries/models";
    $paths->templates = "{$baseDir}/templates";
    $paths->themes = "{$baseDir}/html/assets/themes";
    $configObj->set('paths', $paths);
    if (!$hasConfig) {
        require $configObj->get('paths')->libraries . '/dependencies.php';
    }
    require $configObj->get('paths')->libraries . '/routes-setup.php';
    require $configObj->get('paths')->libraries . '/routes-error.php';
    require $configObj->get('paths')->controllers . '/SetupController.php';
    $configObj->loadString(file_get_contents(sprintf('%s/html/assets/themes/%s/config/settings.ini', dirname(dirname(__FILE__)), getTheme()->getThemeName())));
    // Before we run the setup in edit mode, we need to validate ownership
    $userObj = new User();
    if (isset($_GET['edit']) && !$userObj->isOwner()) {
        $routeObj->run('/error/403');
        die;
    }
}
开发者ID:nicolargo,项目名称:frontend,代码行数:31,代码来源:initialize.php


示例12: loadTemplate

function loadTemplate()
{
    $ci =& get_instance();
    $ci->load->library('system');
    $ci->parser->parse($ci->system->theme['template'], getTheme());
}
开发者ID:ricardoambdev,项目名称:estudoci_painel,代码行数:6,代码来源:functions_helper.php


示例13: getTheme

">look at your photos</a>.</div>
<div class="message upload-warning"><img src="/assets/images/warning-big.png" align="absmiddle">Uh oh! <span class="failed"></span> of <span class="total"></span> photos failed to upload.</div>
<div class="message upload-progress"><img src="/assets/images/upload-big.gif" align="absmiddle">Currently uploading <span class="completed">0</span> of <span class="total">0</span> photos.</div>
<div class="upload-share row">
  <?php 
$this->plugin->invoke('renderPhotoUploaded', null);
?>
</div>

<form class="upload form-stacked">
  <div class="row">
    <div class="span8">
      <div id="uploader">
        <div class="insufficient">
          <img src="<?php 
echo getTheme()->asset('image', 'error.png');
?>
">
          <h1>Unfortunately, it doesn't look like we support your browser. :(</h1>
          <p>
            Try using <a href="http://www.mozilla.org/en-US/firefox/new/">Firefox</a>.
          </p>
        </div>
      </div>
      <em class="poweredby">Powered by <a href="http://www.plupload.com">Plupload</a>.</em>
    </div>
    <div class="span4">
      <h2>Use these settings.</h2>
      <label for="tags">Tags</label>
      <input type="text" name="tags" class="typeahead-tags tags tags-autocomplete" placeholder="Optional comma separated list">
开发者ID:nicolargo,项目名称:frontend,代码行数:30,代码来源:upload.php


示例14: MostrarCarpetas


//.........这里部分代码省略.........
        echo "</td><td align=center>";
        echo PreparaAyuda(_AM_USKOLAXGALLERY_ESPACIADO, _HELP_USKOLAXGALLERY_ESPACIADO);
        //	echo "</td><td align=center>";
        //	echo PreparaAyuda(_AM_USKOLAXGALLERY_COLORFONDO, _HELP_USKOLAXGALLERY_COLORFONDO);
        echo "</td></tr>";
        echo "<tr>";
        echo "<td align=center>";
        echo PreparaAyuda("<input type=\"text\" name=\"EspaciadoHorizontal\" value=\"" . $tbCarpeta['EspaciadoHorizontal'] . "\">", _HELP_USKOLAXGALLERY_ESPACIADOHORIZONTAL);
        echo "</td><td align=center>";
        echo PreparaAyuda("<input type=\"text\" name=\"EspaciadoVertical\" value=\"" . $tbCarpeta['EspaciadoVertical'] . "\">", _HELP_USKOLAXGALLERY_ESPACIADOVERTICAL);
        echo "</td><td align=center>";
        echo PreparaAyuda("<input type=\"text\" name=\"Espaciado\" value=\"" . $tbCarpeta['Espaciado'] . "\">", _HELP_USKOLAXGALLERY_ESPACIADO);
        //	echo "</td><td align=center>";
        //	echo PreparaAyuda("<input type=\"text\" name=\"ColorFondo\" value=\"". $tbCarpeta['ColorFondo']. "\">", _HELP_USKOLAXGALLERY_COLORFONDO);
        echo "</td></tr>";
        echo "</table>";
        echo "<br>";
        echo "</td></tr><tr>";
        echo "<td>";
        echo "<table cellspacing=3 cellpadding=3>";
        // webby Mattes
        echo "<tr><td colspan=2 align=center><b>";
        echo PreparaAyuda(_AM_USKOLAXGALLERY_THUMBNAILPICTUREMATTES, _HELP_USKOLAXGALLERY_THUMBNAILPICTUREMATTES);
        echo "</b></td></tr>\n";
        echo "<tr><td align=center>";
        echo PreparaAyuda(_AM_USKOLAXGALLERY_COLORFONDO1, _HELP_USKOLAXGALLERY_COLORFONDO1) . "<br>";
        echo PreparaAyuda("<input type=\"text\" name=\"ColorFondo1\" value=\"" . $tbCarpeta['ColorFondo1'] . "\"></td><td align=center>", _HELP_USKOLAXGALLERY_COLORFONDO1);
        echo PreparaAyuda(_AM_USKOLAXGALLERY_COLORFONDO2, _HELP_USKOLAXGALLERY_COLORFONDO2) . "<br>";
        echo PreparaAyuda("<input type=\"text\" name=\"ColorFondo2\" value=\"" . $tbCarpeta['ColorFondo2'] . "\">", _HELP_USKOLAXGALLERY_COLORFONDO2);
        echo "</td>\n";
        echo "</tr><tr>";
        echo "<td colspan=2 align=center> ";
        echo "\t<table bordercolor=black cellpadding=4>\r\n\t\t<tr>\r\n\t\t\t<td align=center><b>" . _AM_USKOLAXGALLERY_COORDINATING;
        $currenttheme = getTheme();
        echo $currenttheme;
        echo _AM_USKOLAXGALLERY_THEMECOLORHELP . "</td></tr><tr ><td bgcolor=FFFFFF>";
        echo "\r\n\t\t\t<table cellpadding=4 cellspacing=2>\r\n\t\t\t<tr>\r\n\t\t\t<td class=bg1 width=60 height=50 align=center valign=absmiddle><font face=\"monotype corsiva,verdana\"><big>1</td>\r\n\t\t\t<td class=bg2 width=60 height=50 align=center valign=absmiddle><font face=\"monotype corsiva,verdana\"><big>2</td>\r\n\t\t\t<td class=bg3 width=60 height=50 align=center valign=absmiddle><font face=\"monotype corsiva,verdana\"><big>3</td>\r\n\t\t\t<td class=bg4 width=60 height=50 align=center valign=absmiddle><font face=\"monotype corsiva,verdana\"><big>4</td>\r\n\t\t\t<td class=bg5 width=60 height=50 align=center valign=absmiddle><font face=\"monotype corsiva,verdana\"><big>5</td>\r\n\t\t\t<td class=bg6 width=60 height=50 align=center valign=absmiddle><font face=\"monotype corsiva,verdana\"><big>6</td>\r\n\t\t\t</tr>\r\n\t\t\t</table>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t</table>\n";
        echo "</td>";
        // end webby
        echo "</tr><tr>";
        echo "<td>";
        echo "<table cellspacing=3 cellpadding=3> <tr>";
        echo "<tr>";
        echo "<td colspan=4>";
        if ($tbCarpeta['ForzarDescripcion']) {
            echo PreparaAyuda("<input type=\"checkbox\" name=\"ForzarDescripcion\" value=\"1\"" . " checked" . ">" . _AM_USKOLAXGALLERY_FORZARDESCRIPCION, _HELP_USKOLAXGALLERY_FORZARDESCRIPCION);
        } else {
            echo PreparaAyuda("<input type=\"checkbox\" name=\"ForzarDescripcion\" value=\"1\"" . ">" . _AM_USKOLAXGALLERY_FORZARDESCRIPCION, _HELP_USKOLAXGALLERY_FORZARDESCRIPCION);
        }
        echo "</td><td>";
        if ($tbCarpeta['ForzarTamano']) {
            echo PreparaAyuda("<input type=\"checkbox\" name=\"ForzarTamano\" value=\"1\"" . " checked" . ">" . _AM_USKOLAXGALLERY_FORZARTAMANO, _HELP_USKOLAXGALLERY_FORZARTAMANO);
        } else {
            echo PreparaAyuda("<input type=\"checkbox\" name=\"ForzarTamano\" value=\"1\"" . ">" . _AM_USKOLAXGALLERY_FORZARTAMANO, _HELP_USKOLAXGALLERY_FORZARTAMANO);
        }
        echo "</td></tr>";
        echo "</table>";
        echo "<br>";
        // Picture Frames
        echo "<table width=100% cellspacing=3 cellpadding=3> <tr>";
        echo "<td colspan=4>";
        if ($tbCarpeta['UsarBordesGaleria']) {
            echo PreparaAyuda("<input type=\"checkbox\" name=\"UsarBordesGaleria\" value=\"1\"" . " checked" . ">" . _AM_USKOLAXGALLERY_USARBORDES, _HELP_USKOLAXGALLERY_USARBORDES);
        } else {
            echo PreparaAyuda("<input type=\"checkbox\" name=\"UsarBordesGaleria\" value=\"1\"" . ">" . _AM_USKOLAXGALLERY_USARBORDES, _HELP_USKOLAXGALLERY_USARBORDES);
        }
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:67,代码来源:mostrargaleria.php


示例15: getTheme

<?php

require 'customfunctions.php';
$themeResult = getTheme($zenCSS, $themeColor, 'effervescence');
?>
<!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">
<head>
	<?php 
zenJavascript();
?>
	<title><?php 
echo getBareGalleryTitle();
?>
 | <?php 
echo gettext('Object not found');
?>
</title>
	<link rel="stylesheet" href="<?php 
echo $zenCSS;
?>
" type="text/css" />
</head>

<body>

	<!-- Wrap Header -->
	<div id="header">
		<div id="gallerytitle">

		<!-- Logo -->
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:404.php


示例16: getAvatarFromEmail

 /**
  * Get an avatar given an email address
  * See http://en.gravatar.com/site/implement/images/ and http://en.gravatar.com/site/implement/hash/
  *
  * @return string
  */
 public function getAvatarFromEmail($size = 50, $email = null)
 {
     if ($email === null) {
         $email = $this->session->get('email');
     }
     // TODO return standard avatar
     if (empty($email)) {
         return;
     }
     $user = $this->getUserByEmail($email);
     if (isset($user['attrprofilePhoto']) && !empty($user['attrprofilePhoto'])) {
         return $user['attrprofilePhoto'];
     }
     $utilityObj = new Utility();
     if (empty($this->config->site->cdnPrefix)) {
         $hostAndProtocol = sprintf('%s://%s', $utilityObj->getProtocol(false), $utilityObj->getHost(false));
     } else {
         $hostAndProtocol = sprintf('%s%s', $utilityObj->getProtocol(false), $this->config->site->cdnPrefix);
     }
     if (!$this->themeObj) {
         $this->themeObj = getTheme();
     }
     $defaultUrl = sprintf('%s%s', $hostAndProtocol, $this->themeObj->asset('image', 'profile-default.png', false));
     $hash = md5(strtolower(trim($email)));
     return sprintf("http://www.gravatar.com/avatar/%s?s=%s&d=%s", $hash, $size, urlencode($defaultUrl));
 }
开发者ID:hfiguiere,项目名称:frontend,代码行数:32,代码来源:User.php


示例17: xoops_cp_header

function xoops_cp_header()
{
    global $xoopsConfig, $xoopsUser;
    if ($xoopsConfig['gzip_compression'] == 1) {
        ob_start("ob_gzhandler");
    } else {
        ob_start();
    }
    if (!headers_sent()) {
        header('Content-Type:text/html; charset=' . _CHARSET);
        header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
        header('Cache-Control: no-store, no-cache, must-revalidate');
        header("Cache-Control: post-check=0, pre-check=0", false);
        header("Pragma: no-cache");
    }
    echo "<!DOCTYPE html PUBLIC '//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
    echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _LANGCODE . '" lang="' . _LANGCODE . '">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />
    <meta http-equiv="content-language" content="' . _LANGCODE . '" />
    <title>' . htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES) . ' Administration</title>
    <script type="text/javascript" src="' . XOOPS_URL . '/include/xoops.js"></script>
    ';
    echo '<link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/xoops.css" />';
    echo '<link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/modules/system/style.css" />';
    include_once XOOPS_CACHE_PATH . '/adminmenu.php';
    $moduleperm_handler =& xoops_gethandler('groupperm');
    $admin_mids = $moduleperm_handler->getItemIds('module_admin', $xoopsUser->getGroups());
    $module_handler =& xoops_gethandler('module');
    $modules =& $module_handler->getObjects(new Criteria('mid', "(" . implode(',', $admin_mids) . ")", 'IN'), true);
    $admin_mids = array_keys($modules);
    ?>

<script type='text/javascript'>
<!--
var thresholdY = 15; // in pixels; threshold for vertical repositioning of a layer
var ordinata_margin = 20; // to start the layer a bit above the mouse vertical coordinate
// -->
</script>

<script type='text/javascript' src='<?php 
    echo XOOPS_URL . "/include/layersmenu.js";
    ?>
'></script>

<script type='text/javascript'>
<!--
<?php 
    echo $xoops_admin_menu_js;
    ?>
function moveLayers() {
<?php 
    foreach ($admin_mids as $adm) {
        if (isset($xoops_admin_menu_ml[$adm])) {
            echo $xoops_admin_menu_ml[$adm];
        }
    }
    ?>
}
function shutdown() {
<?php 
    foreach ($admin_mids as $adm) {
        if (isset($xoops_admin_menu_sd[$adm])) {
            echo $xoops_admin_menu_sd[$adm];
        }
    }
    ?>
}
if (NS4) {
document.onmousedown = function() { shutdown(); }
} else {
document.onclick = function() { shutdown(); }
}
// -->
</script>

<?php 
    $logo = file_exists(XOOPS_THEME_URL . "/" . getTheme() . "/images/logo.gif") ? XOOPS_THEME_URL . "/" . getTheme() . "/images/logo.gif" : XOOPS_URL . "/images/logo.gif";
    echo "</head>\n        <body>\n        <table border='0' width='100%' cellspacing='0' cellpadding='0'>\n          <tr>\n            <td bgcolor='#2F5376'><a href='http://xoopscube.org/' target='_blank'><img src='" . XOOPS_URL . "/modules/system/images/logo.gif' alt='" . htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES) . "' /></a></td>\n            <td align='right' bgcolor='#2F5376' colspan='2'><img src='" . XOOPS_URL . "/modules/system/images/xoops2.gif' alt='' /></td>\n          </tr>\n          <tr>\n            <td align='left' colspan='3' class='bg5'>\n              <table border='0' width='100%' cellspacing='0' cellpadding='0'>\n                <tr>\n                  <td width='1%'><img src='" . XOOPS_URL . "/modules/system/images/hbar_left.gif' width='10' height='23' /></td>\n                  <td background='" . XOOPS_URL . "/modules/system/images/hbar_middle.gif'>&nbsp;<a href='" . XOOPS_URL . "/admin.php'>" . _CPHOME . "</a><!--//&nbsp;|&nbsp;<a href='" . XOOPS_URL . "/admin.php?xoopsorgnews=1'>XOOPS News</a>//--></td>\n                  <td background='" . XOOPS_URL . "/modules/system/images/hbar_middle.gif' align='right'><a href='" . XOOPS_URL . "/user.php?op=logout'>" . _LOGOUT . "</a>&nbsp;|&nbsp;<a href='" . XOOPS_URL . "/'>" . _YOURHOME . "</a> &nbsp;</td>\n                  <td width='1%'><img src='" . XOOPS_URL . "/modules/system/images/hbar_right.gif' width='10' height='23' /></td>\n                </tr>\n              </table>\n            </td>\n          </tr>\n        </table>\n        <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n          <tr>\n            <td width='2%' valign='top' class='bg5'  background='" . XOOPS_URL . "/modules/system/images/bg_menu.gif' align='center'></td>\n            <td width='15%' valign='top' class='bg5' align='center'><img src='" . XOOPS_URL . "/modules/system/images/menu.gif' /><br />\n              <table border='0' cellpadding='4' cellspacing='0' width='100%'>";
    foreach ($admin_mids as $adm) {
        if (!empty($xoops_admin_menu_ft[$adm])) {
            echo "<tr><td align='center'>" . $xoops_admin_menu_ft[$adm] . "</td></tr>";
        }
    }
    echo "\n              </table>\n              <br />\n            </td>\n            <td align='left' valign='top' width='82%'>\n              <div class='content'><br />\n";
}
开发者ID:koki-h,项目名称:xoops_utf8,代码行数:87,代码来源:cp_functions.php


示例18: getAvatarFromEmail

 /**
  * Get an avatar given an email address
  * See http://en.gravatar.com/site/implement/images/ and http://en.gravatar.com/site/implement/hash/
  *
  * @return string
  */
 public function getAvatarFromEmail($size = 50, $email = null)
 {
     if ($email === null) {
         $email = $this->session->get('email');
     }
     // TODO return standard avatar
     if (empty($email)) {
         return;
     }
     $utilityObj = new Utility();
     $protocol = $utilityObj->getProtocol(false);
     if (empty($this->config->site->cdnPrefix)) {
         $hostAndProtocol = sprintf('%s://%s', $protocol, $utilityObj->getHost(false));
     } else {
         $hostAndProtocol = sprintf('%s:%s', $protocol, $this->config->site->cdnPrefix);
     }
     if (!$this->themeObj) {
         $this->themeObj = getTheme();
     }
     $defaultUrl = sprintf('%s%s', $hostAndProtocol, $this->themeObj->asset('image', 'profile-default.png', false));
     $user = $this->getUserByEmail($email);
     if (isset($user['attrprofilePhoto']) && !empty($user['attrprofilePhoto'])) {
         return $user['attrprofilePhoto'];
     }
     // if gravatar support is disabled and no profile photo exists then we immediately return the default url
     if ($this->config->site->useGravatar == 0) {
         return $defaultUrl;
     }
     if ($protocol === 'https') {
         $gravatarUrl = 'https://secure.gravatar.com/avatar/';
     } else {
         $gravatarUrl = 'http://www.gravatar.com/avatar/';
     }
     $hash = md5(strtolower(trim($email)));
     return sprintf('%s%s?s=%s&d=%s', $gravatarUrl, $hash, $size, urlencode($defaultUrl));
 }
开发者ID:gg1977,项目名称:frontend,代码行数:42,代码来源:User.php


示例19: b_uskolaxgallery_show

function b_uskolaxgallery_show()
{
    global $xoopsDB, $xoopsConfig, $xoopsTheme, $xoopsUser;
    $BloqueIniciado = 0;
    $consulta2 = "SELECT BloquesAleatorios, SoloImagenes FROM " . $xoopsDB->prefix("uskolag_master") . "";
    $myts = new MyTextSanitizer();
    if (!($result = $xoopsDB->query($consulta2))) {
        error_die("Problems");
    }
    while ($tbCarpeta = $xoopsDB->fetchArray($result)) {
        $RANDOMCARPETAS = $tbCarpeta['BloquesAleatorios'];
        $SoloImagen = $tbCarpeta['SoloImagenes'];
    }
    $block = array();
    $block['title'] = _MB_USKOLAXGALLERY_NAME;
    $block['content'] = "<div align=\"left\">";
    $consulta = "SELECT ID, Carpeta, Imagen, Descripcio 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getThemeOption函数代码示例发布时间:2022-05-15
下一篇:
PHP getTests函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap