本文整理汇总了PHP中zen_display_banner函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_display_banner函数的具体用法?PHP zen_display_banner怎么用?PHP zen_display_banner使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_display_banner函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_banner_box.php 2982 2006-02-07 07:56:41Z birdbrain $
*/
$content = '';
// if no active banner in the specified banner group then the box will not show
if ($banner = zen_banner_exists('dynamic', $banner_box_group)) {
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_display_banner('static', $banner);
$content .= '</div>';
}
示例2: zen_display_banner
<div id="siteinfoIP"><?php
echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR'];
?>
</div>
<?php
}
?>
<!--eof-ip address display -->
<!--bof-banner #5 display -->
<?php
if (SHOW_BANNERS_GROUP_SET5 != '' && ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5))) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFive" class="banners"><?php
echo zen_display_banner('static', $banner);
?>
</div>
<?php
}
}
?>
<!--eof-banner #5 display -->
<!--bof- site copyright display -->
<div id="siteinfoLegal" class="legalCopyright"><?php
echo FOOTER_TEXT_BODY;
?>
</div>
<!--eof- site copyright display -->
示例3: str_replace
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_banner_box_all.php 2982 2006-02-07 07:56:41Z birdbrain $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
// select banners_group to be used
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET_ALL);
// secure pages
switch ($request_type) {
case 'SSL':
$my_banner_filter = " and banners_on_ssl= " . "1 ";
break;
case 'NONSSL':
$my_banner_filter = '';
break;
}
$sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search . $my_banner_filter . " order by banners_sort_order";
$banners_all = $db->Execute($sql);
// if no active banner in the specified banner group then the box will not show
$banner_cnt = 0;
while (!$banners_all->EOF) {
$banner_cnt++;
$banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL);
$content .= zen_display_banner('static', $banners_all->fields['banners_id']);
// add spacing between banners
if ($banner_cnt < $banners_all->RecordCount()) {
$content .= '';
}
$banners_all->MoveNext();
}
$content .= '</div>';
示例4: zen_build_banners_group
// | to obtain it through the world-wide-web, please send a note to |
// | license@zen-cart.com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id$
//
global $gBitDb, $gCommerceSystem, $gBitProduct;
require_once BITCOMMERCE_PKG_PATH . 'includes/bitcommerce_start_inc.php';
// INSERT INTO configuration (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `use_function`, `set_function`, `date_added`) VALUES ('Banner Display Group - Side Box banner_box_all', 'SHOW_BANNERS_GROUP_SET_ALL', 'BannersAll', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All sidebox<br /><br />Default Group is BannersAll<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all?<br />Leave blank for none', '19', '72', '', '', 'NOW');
// ALTER TABLE `banners` ADD `banners_sort_order` INT( 11 ) DEFAULT '0' NOT NULL;
$banner_box_group = SHOW_BANNERS_GROUP_SET_ALL;
// require($template->get_template_dir('tpl_banner_box_all.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box_all.php');
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET_ALL);
// secure pages
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$my_banner_filter = " and banners_on_ssl= " . "'1' ";
} else {
$my_banner_filter = '';
}
$sql = "select banners_id from " . TABLE_BANNERS . " where status = '1' " . $new_banner_search . $my_banner_filter . " order by banners_sort_order";
if ($rs = $gBitDb->Execute($sql)) {
$sideboxBannersAll = array();
// if no active banner in the specified banner group then the box will not show
// uses banners in the defined group $banner_box_group
while ($banners_all = $rs->fetchRow()) {
$banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL);
array_push($sideboxBannersAll, zen_display_banner('static', $banners_all['banners_id']));
}
}
if (empty($moduleTitle)) {
$_template->tpl_vars['moduleTitle'] = new Smarty_variable('Sponsors');
}
示例5: require
$flag_disable_footer = true;
}
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>
</div>
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
<!--bof- easy embed template bottom-->
<?php echo $sangEmbed->bottom() ?>
<!--bof- easy embed template bottom-->
</body>
示例6: zen_display_banner
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license@zen-cart.com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id$
//
require_once DIR_FS_INCLUDES . 'functions/banner.php';
if ($banner = zen_banner_exists('dynamic', '468x50')) {
if ($banner->RecordCount() > 0) {
print '<div id="banner">' . zen_display_banner('static', $banner) . '</div>';
}
}
示例7: Smarty_variable
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license@zen-cart.com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id$
//
global $gBitDb, $gCommerceSystem, $gBitProduct, $banner;
require_once BITCOMMERCE_PKG_PATH . 'includes/bitcommerce_start_inc.php';
require_once DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'banner.php';
require_once DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'html_output.php';
$banner_box_group = SHOW_BANNERS_GROUP_SET7;
if ($bannerRs = zen_banner_exists('dynamic', $banner_box_group)) {
$_template->tpl_vars['bannerContent'] = new Smarty_variable(zen_display_banner('static', $bannerRs));
}
if (empty($moduleTitle)) {
$_template->tpl_vars['moduleTitle'] = new Smarty_variable('Sponsors');
}
示例8: Smarty_variable
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license@zen-cart.com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id$
//
global $gBitDb, $gCommerceSystem, $gBitProduct;
require_once BITCOMMERCE_PKG_PATH . 'includes/bitcommerce_start_inc.php';
$banner_box_group = SHOW_BANNERS_GROUP_SET8;
if ($bannerRs = zen_banner_exists('dynamic', $banner_box_group)) {
$_template->tpl_vars['sideboxBannerBox2'] = new Smarty_variable(zen_display_banner('static', $bannerRs));
}
if (empty($moduleTitle)) {
$_template->tpl_vars['moduleTitle'] = new Smarty_variable('Sponsors');
}