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


PHP zen_get_module_directory函数代码示例

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


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

示例1: prepareConfirmation


//.........这里部分代码省略.........
             $messageStack->add_session('checkout_payment', ERROR_CONDITIONS_NOT_ACCEPTED, 'error');
         }
     }
     // echo $messageStack->size('checkout_payment');
     // load the selected payment module
     require DIR_WS_CLASSES . 'payment.php';
     $payment_modules = new payment($_POST['payment']);
     $payment_modules->update_status();
     if (($_POST['payment'] == '' || !is_object($payment_modules->paymentClass)) && $credit_covers === FALSE) {
         $messageStack->add_session('checkout_payment', ERROR_NO_PAYMENT_MODULE_SELECTED, 'error');
     }
     $GLOBALS[$_POST['payment']] = $payment_modules->paymentClass;
     require DIR_WS_CLASSES . 'order.php';
     $order = new order();
     // load the selected shipping module
     require DIR_WS_CLASSES . 'shipping.php';
     $shipping_modules = new shipping($_SESSION['shipping']);
     require DIR_WS_CLASSES . 'order_total.php';
     $order_total_modules = new order_total();
     $order_total_modules->collect_posts();
     $order_total_modules->pre_confirmation_check();
     if (!isset($credit_covers)) {
         $credit_covers = FALSE;
     }
     // echo 'credit covers'.$credit_covers;
     if ($credit_covers) {
         unset($_SESSION['payment']);
         $_SESSION['payment'] = '';
     }
     // @debug echo ($credit_covers == true) ? 'TRUE' : 'FALSE';
     if (is_array($payment_modules->modules)) {
         $payment_modules->pre_confirmation_check();
     }
     if ($messageStack->size('checkout_payment') > 0) {
         zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
     }
     // Stock Check
     $flagAnyOutOfStock = false;
     $stock_check = array();
     if (STOCK_CHECK == 'true') {
         for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
             if ($stock_check[$i] = zen_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) {
                 $flagAnyOutOfStock = true;
             }
         }
         // Out of Stock
         if (STOCK_ALLOW_CHECKOUT != 'true' && $flagAnyOutOfStock == true) {
             zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
         }
     }
     // update customers_referral with $_SESSION['gv_id']
     if ($_SESSION['cc_id']) {
         $discount_coupon_query = "SELECT coupon_code\n                            FROM " . TABLE_COUPONS . "\n                            WHERE coupon_id = :couponID";
         $discount_coupon_query = $db->bindVars($discount_coupon_query, ':couponID', $_SESSION['cc_id'], 'integer');
         $discount_coupon = $db->Execute($discount_coupon_query);
         $customers_referral_query = "SELECT customers_referral\n                               FROM " . TABLE_CUSTOMERS . "\n                               WHERE customers_id = :customersID";
         $customers_referral_query = $db->bindVars($customers_referral_query, ':customersID', $_SESSION['customer_id'], 'integer');
         $customers_referral = $db->Execute($customers_referral_query);
         // only use discount coupon if set by coupon
         if ($customers_referral->fields['customers_referral'] == '' and CUSTOMERS_REFERRAL_STATUS == 1) {
             $sql = "UPDATE " . TABLE_CUSTOMERS . "\n            SET customers_referral = :customersReferral\n            WHERE customers_id = :customersID";
             $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
             $sql = $db->bindVars($sql, ':customersReferral', $discount_coupon->fields['coupon_code'], 'string');
             $db->Execute($sql);
         } else {
             // do not update referral was added before
         }
     }
     if (isset(${$_SESSION}['payment']->form_action_url)) {
         $form_action_url = ${$_SESSION}['payment']->form_action_url;
     } else {
         $form_action_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
     }
     // if shipping-edit button should be overridden, do so
     $editShippingButtonLink = zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL');
     if (method_exists(${$_SESSION}['payment'], 'alterShippingEditButton')) {
         $theLink = ${$_SESSION}['payment']->alterShippingEditButton();
         if ($theLink) {
             $editShippingButtonLink = $theLink;
         }
     }
     // deal with billing address edit button
     $flagDisablePaymentAddressChange = false;
     if (isset(${$_SESSION}['payment']->flagDisablePaymentAddressChange)) {
         $flagDisablePaymentAddressChange = ${$_SESSION}['payment']->flagDisablePaymentAddressChange;
     }
     $current_page_base = FILENAME_CHECKOUT_CONFIRMATION;
     require_once DIR_WS_LANGUAGES . $_SESSION['language'] . '.php';
     require_once DIR_WS_MODULES . zen_get_module_directory('require_languages.php');
     require_once DIR_WS_MODULES . zen_get_module_directory('meta_tags.php');
     $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
     $breadcrumb->add(NAVBAR_TITLE_2);
     $breadCrumbHtml = $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR);
     $body_code = DIR_FS_CATALOG . $template->get_template_dir('tpl_ajax_checkout_confirmation_default.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_ajax_checkout_confirmation_default.php';
     ob_start();
     require_once $body_code;
     $confirmationHtml = ob_get_clean();
     ob_flush();
     return array('breadCrumbHtml' => $breadCrumbHtml, 'confirmationHtml' => $confirmationHtml, 'pageTitle' => META_TAG_TITLE);
 }
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:101,代码来源:zcAjaxPayment.php

示例2: sort

    $dir->close();
}
if (sizeof($directory_array)) {
    sort($directory_array);
}
for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
    if (file_exists($extras_dir . $directory_array[$i])) {
        include $extras_dir . $directory_array[$i];
    }
}
// build show flags from product type layout settings
//  $flag_show_product_info_starting_at = zen_get_show_product_switch($_GET['products_id'], 'starting_at');
//  $flag_show_product_info_model = zen_get_show_product_switch($_GET['products_id'], 'model');
//  $flag_show_product_info_weight = zen_get_show_product_switch($_GET['products_id'], 'weight');
//  $flag_show_product_info_quantity = zen_get_show_product_switch($_GET['products_id'], 'quantity');
//  $flag_show_product_info_manufacturer = zen_get_show_product_switch($_GET['products_id'], 'manufacturer');
//  $flag_show_product_info_in_cart_qty = zen_get_show_product_switch($_GET['products_id'], 'in_cart_qty');
$flag_show_product_info_tell_a_friend = zen_get_show_product_switch($_GET['products_id'], 'tell_a_friend');
$flag_show_product_info_reviews = zen_get_show_product_switch($_GET['products_id'], 'reviews');
$flag_show_product_info_reviews_count = zen_get_show_product_switch($_GET['products_id'], 'reviews_count');
$flag_show_product_info_date_available = zen_get_show_product_switch($_GET['products_id'], 'date_available');
$flag_show_product_info_date_added = zen_get_show_product_switch($_GET['products_id'], 'date_added');
$flag_show_product_info_url = zen_get_show_product_switch($_GET['products_id'], 'url');
$flag_show_product_info_additional_images = zen_get_show_product_switch($_GET['products_id'], 'additional_images');
$flag_show_product_info_free_shipping = zen_get_show_product_switch($_GET['products_id'], 'always_free_shipping_image_switch');
require DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCTS_QUANTITY_DISCOUNTS);
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_DOCUMENT_GENERAL_INFO');
require $template->get_template_dir($tpl_page_body, DIR_WS_TEMPLATE, $current_page_base, 'templates') . $tpl_page_body;
//require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS));
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_END_DOCUMENT_GENERAL_INFO');
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:main_template_vars.php

示例3: zen_get_module_directory

<?php

/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 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_modules_downloads.php 6374 2007-05-25 20:24:42Z drbyte $
 */
/**
 * require the downloads module
 */
require DIR_WS_MODULES . zen_get_module_directory('downloads.php');
?>

<?php 
// download is available
if ($downloads->RecordCount() > 0) {
    ?>

<table border="0" width="100%" cellspacing="0" cellpadding="0"
	id="downloads">
	<caption>
		<h4><?php 
    echo HEADING_DOWNLOAD;
    ?>
</h4>
	</caption>
	<tr class="tableHeading">
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:tpl_modules_downloads.php

示例4: zen_get_module_directory

<?php

/**
 * Module 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_modules_whats_new.php 2935 2006-02-01 11:12:40Z birdbrain $
 */
$zc_show_new_products = false;
include DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS);
?>

<!-- bof: whats_new -->
<?php 
if ($zc_show_new_products == true) {
    ?>
<div class="centerBoxWrapper" id="whatsNew">
<?php 
    require $template->get_template_dir('tpl_columnar_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_columnar_display.php';
    ?>
</div>
<?php 
}
?>
<!-- eof: whats_new -->
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:28,代码来源:tpl_modules_whats_new.php

示例5: zen_get_module_directory

/**
 * Links Submit 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_links_submit_default.php 3.4.0 3/27/2008 Clyde Jones $
 */
?>
<div class="minframe fl">
<?php 
//require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/box_contact_us.php'));
require DIR_WS_MODULES . zen_get_module_directory('sideboxes/ezpages.php');
require DIR_WS_MODULES . zen_get_module_directory('sideboxes/' . $template_dir . '/subscribe.php');
?>
</div>
<div class="right_big_con margin_t">
<?php 
echo '<h3 class="line_30px border_b">' . HEADING_TITLE . '</h3>';
echo zen_draw_form('submit_link', zen_href_link(FILENAME_LINKS_SUBMIT, 'action=send', 'SSL'), 'post', 'enctype="multipart/form-data"');
if (isset($_GET['action']) && $_GET['action'] == 'success') {
    ?>
	<div class="mainContent success"><?php 
    echo LINKS_SUCCESS;
    ?>
</div>
	<div class="buttonRow back"><?php 
    echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>';
    ?>
开发者ID:happyxlq,项目名称:lt_svn,代码行数:30,代码来源:tpl_links_submit_default.php

示例6: zen_get_module_directory

<?php

/**
 * Override Template for common/tpl_main_page.php
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 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_main_page.php 3155 2006-03-10 23:19:39Z drbyte $
 */
?>

<body id="popupShippingEstimator">
<div class="shippingEstimatorWrapper biggerText">
<p><?php 
echo '<a href="javascript:window.close()">' . TEXT_CURRENT_CLOSE_WINDOW . '</a>';
?>
</p>
      <?php 
require DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php');
?>
<p><?php 
echo '<a href="javascript:window.close()">' . TEXT_CURRENT_CLOSE_WINDOW . '</a>';
?>
</p>
</div>
</body>
开发者ID:zenmagick,项目名称:zencart,代码行数:28,代码来源:tpl_main_page.php

示例7: zen_get_module_directory

/**
 * Common Template
 *
 * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2010 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: html_header.php 15761 2010-03-31 19:31:27Z drbyte $
 */
/**
 * load the module for generating page meta-tags
 */
require DIR_WS_MODULES . zen_get_module_directory('meta_tags.php');
/**
 * output main page HEAD tag and related headers/meta-tags, etc
 */
?>
<!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" <?php 
echo HTML_PARAMS;
?>
>
<head>
<title><?php 
echo META_TAG_TITLE;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
开发者ID:dalinhuang,项目名称:kennbikyou,代码行数:30,代码来源:html_header.php

示例8: zen_get_module_directory

<?php

/**
 * index category_row.php
 *
 * Prepares the content for displaying a category's sub-category listing in grid format.  
 * Once the data is prepared, it calls the standard tpl_list_box_content template for display.
 *
 * @package page
 * @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_modules_category_row.php 2986 2006-02-07 22:27:29Z drbyte $
 */
require DIR_WS_MODULES . zen_get_module_directory('in_category_row.php');
require $template->get_template_dir('tpl_in_row_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_in_row_display.php';
开发者ID:happyxlq,项目名称:lt_svn,代码行数:16,代码来源:tpl_modules_in_category_row.php

示例9: zen_href_link

echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL');
?>
">View Orders</a></li>
  <li><a href="<?php 
echo zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL');
?>
">Account Settings</a></li>
  <li><a href="<?php 
echo zen_href_link(FILENAME_MANAGER_ADDRESS, '', 'SSL');
?>
">Manage Address Book</a></li>
  </ul>
  </div>
</div>
<?
 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/'.$template_dir.'/account_order_search.php'));
?>
<div class="bg_box_gray margin_t allborder clear">
  <h3 class="in_1em line_30px">Need help</h3>
    <span class="pad_10px pad_t block">If you have questions or need help with your account, you may <a class="u" href="<?php 
echo zen_href_link(FILENAME_FAQS, '', 'SSL');
?>
">contact us</a> to assist you.  </span>
</div>
</div>
<div class="right_big_con margin_t line_30px">
<h2 class="border_b"><?php 
echo HEADING_TITLE;
?>
</h2>
开发者ID:happyxlq,项目名称:lt_svn,代码行数:30,代码来源:tpl_account_history_default.php

示例10: zen_get_module_directory

    ?>
<td id="navColumnTwo" class="columnRight" style="width: <?php 
    echo COLUMN_WIDTH_RIGHT;
    ?>
">
<?php 
    /**
     * prepares and displays right column sideboxes
     *
     */
    ?>
<div id="navColumnTwoWrapper" style="width: <?php 
    echo BOX_WIDTH_RIGHT;
    ?>
"><?php 
    require DIR_WS_MODULES . zen_get_module_directory('column_right.php');
    ?>
</div></td>
<?php 
}
?>
  </tr>
</table>

<?php 
/**
 * prepares and displays footer output
 *
 */
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_footer = true;
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:tpl_main_page.php

示例11: implode

    }
    if (sizeof($newArg) > 0) {
        return $cleanUrl . '?' . implode('&', $newArg);
    } else {
        return $cleanUrl;
    }
}
function postfixUrl()
{
    global $_SERVER;
    $posbool = strpos($_SERVER['REQUEST_URI'], '?');
    return is_int($posbool) ? substr($_SERVER['REQUEST_URI'], $posbool) : '';
}
echo '<div class="minframe fl">';
require DIR_WS_MODULES . zen_get_module_directory('sideboxes/' . $template_dir . '/popular_searches.php');
require DIR_WS_MODULES . zen_get_module_directory('sideboxes/' . $template_dir . '/customers_say.php');
echo '</div>';
?>


<div class="right_big_con margin_t">
<h2 class="border_b line_30px"><?php 
echo HEADING_TITLE;
?>
</h2>
<br class="clear" />

<?php 
if ($products_new_split->number_of_rows > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
    ?>
<div class="pagebar border_b gray_bg"><span class="fl"><?php 
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_featured_products_default.php

示例12: zen_rss_products

function zen_rss_products($sql_products, $random)
{
    global $db, $currencies, $rss, $additionalURL;
    $imageSize = isset($_GET['imgsize']) ? $_GET['imgsize'] : RSS_DEFAULT_IMAGE_SIZE;
    //IFNULL(, 0)??????
    $sql_maxdate = "SELECT GREATEST(MAX(products_date_added), MAX(IFNULL(products_last_modified, 0))) as max_date\n                    FROM " . TABLE_PRODUCTS . "\n                    WHERE products_status = 1";
    $maxdate = $db->Execute($sql_maxdate);
    if (!$maxdate->EOF) {
        $rss->rss_feed_set('lastBuildDate', date('r', strtotime($maxdate->fields['max_date'])));
    }
    if ($random) {
        $products = zen_random_select($sql_products);
    } else {
        $products = $db->Execute($sql_products);
    }
    $cashTaxRate = array();
    while (!$products->EOF) {
        $info_page = zen_get_info_page($products->fields['products_id']);
        $xtags = array();
        if (RSS_PRODUCTS_PRICE == 'true' && $products->fields['price'] > 0) {
            if (!isset($cashTaxRate[$products->fields['products_tax_class_id']])) {
                $cashTaxRate[$products->fields['products_tax_class_id']] = zen_get_tax_rate($products->fields['products_tax_class_id']);
            }
            $xtags['g:price'] = number_format(zen_add_tax($products->fields['price'] * $currencies->get_value($_SESSION['currency']), $cashTaxRate[$products->fields['products_tax_class_id']]), $currencies->get_decimal_places($_SESSION['currency']), '.', '');
            //      $xtags['c:price_formatted type="string"'] = zen_get_products_display_price($products->fields['products_id']);
            //        $xtags['c:price_formatted type="string"'] = $currencies->display_price($products->fields['price'], $cashTaxRate[$products->fields['products_tax_class_id']]);
        }
        if (RSS_PRODUCTS_CURRENCY == 'true') {
            $xtags['g:currency'] = $_SESSION["currency"] == 'RUR' ? 'RUB' : $_SESSION["currency"];
        }
        if (RSS_PRODUCTS_ID == 'true') {
            $xtags['g:id'] = $products->fields['products_id'];
        }
        if (RSS_PRODUCTS_WEIGHT == 'true' && $products->fields['products_weight'] > 0) {
            $xtags['g:weight'] = $products->fields['products_weight'];
        }
        if (RSS_PRODUCTS_BRAND == 'true' && zen_not_null($products->fields['manufacturers_name'])) {
            $xtags['g:brand'] = $rss->_clear_string($products->fields['manufacturers_name']);
        }
        if (RSS_PRODUCTS_QUANTITY == 'true' && $products->fields['products_quantity'] > 0) {
            $xtags['g:quantity'] = $products->fields['products_quantity'];
        }
        if (RSS_PRODUCTS_MODEL == 'true' && zen_not_null($products->fields['products_model'])) {
            $xtags['g:model_number'] = $rss->_clear_string($products->fields['products_model']);
        }
        if (RSS_PRODUCTS_RATING == 'true' && zen_not_null($products->fields['reviews_rating'])) {
            $xtags['g:rating'] = $products->fields['reviews_rating'];
        }
        // rating - The rating of the item. Format: Text. XML example: <g:rating>4 stars</g:rating>
        /*
        image_link
        The URL of an associated image for the item. Use your full-sized images; do not use thumbnail images.
        If you do not have an image available, leave the attribute blank.
        Do not include logos or an image that says, "Image not available."
        Format:
        URL. (Must include the http:// portion.) Up to 10 URLs can be included.
        For XML, include each URL as a separate <image_link> attribute.
        XML example:
        <g:image_link>http://www.example.com/image1.jpg</g:image_link>
        <g:image_link>http://www.example.com/image2.jpg</g:image_link>
        */
        if (RSS_PRODUCTS_IMAGES == 'true' && zen_not_null($products->fields['products_image'])) {
            $products_image = ltrim($products->fields['products_image'], '/');
            require DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE);
            switch ($imageSize) {
                case 'small':
                    $xtags['g:image_link'][0] = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $rss->_clear_url($products_image);
                    break;
                case 'medium':
                    $xtags['g:image_link'][0] = HTTP_SERVER . DIR_WS_CATALOG . $rss->_clear_url($products_image_medium);
                    break;
                case 'large':
                default:
                    $xtags['g:image_link'][0] = HTTP_SERVER . DIR_WS_CATALOG . $rss->_clear_url($products_image_large);
                    break;
            }
            if (isset($_GET['products_id']) || isset($_GET['products_model'])) {
                require DIR_WS_MODULES . zen_get_module_directory('additional_images.php');
                $num_images = min(9, $num_images);
                for ($i = 0, $n = $num_images; $i < $n; $i++) {
                    $file = $images_array[$i];
                    $products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
                    $flag_has_large = file_exists($products_image_large);
                    $products_image_large = $flag_has_large ? $products_image_large : $products_image_directory . $file;
                    $xtags['g:image_link'][] = HTTP_SERVER . DIR_WS_CATALOG . $rss->_clear_url($products_image_large);
                }
            }
        }
        $link = zen_href_link($info_page, 'products_id=' . $products->fields['products_id'] . $additionalURL, 'NONSSL', false);
        $products_description = $products->fields['products_description'];
        if (RSS_PRODUCTS_DESCRIPTION_IMAGE == 'true' && zen_not_null($products->fields['products_image'])) {
            $image_url = zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'style="float: left; margin: 0px 8px 8px 0px;"');
            $image_url = str_replace('<img src="', '<img src="' . HTTP_SERVER . DIR_WS_CATALOG, $image_url);
            $image_link = '<a href="' . $link . '">' . $image_url . '</a>';
            if (RSS_STRIP_TAGS == 'true') {
                $products_description = '<![CDATA[' . $image_link . ']]>' . $products_description;
            } else {
                $products_description = $image_link . $products_description;
            }
        }
//.........这里部分代码省略.........
开发者ID:happyxlq,项目名称:lt_svn,代码行数:101,代码来源:header_php.php

示例13: zen_get_module_directory

<?php

/**
 * Module Template:
 * Loaded by product-type template to display additional product images.
 *
 * @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_modules_additional_images.php 3215 2006-03-20 06:05:55Z birdbrain $
 */
require DIR_WS_MODULES . zen_get_module_directory('additional_images.php');
?>
 <?php 
if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
    ?>
<div id="productAdditionalImages">
<?php 
    require $template->get_template_dir('tpl_columnar_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_columnar_display.php';
    ?>
</div>
<?php 
}
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:24,代码来源:tpl_modules_additional_images.php

示例14: zen_draw_input_field

?>
</fieldset>
<fieldset class="floatLeft">
    <legend><?php 
echo ENTRY_DATE_TO;
?>
</legend>
    <?php 
echo zen_draw_input_field('dto', $sData['dto'], 'onfocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"');
?>
</fieldset>
</fieldset>
<br class="clear" />
<br />


<div class="buttonRow fr"><?php 
echo zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT);
?>
</div>
<div class="buttonRow fl"><?php 
echo zen_back_link() . zen_image_button(BUTTON_BACK_ALT, BUTTON_BACK_ALT) . '</a>';
?>
</div>

</form>

</div>
<?php 
require DIR_WS_MODULES . zen_get_module_directory('sideboxes/recommendations.php');
开发者ID:happyxlq,项目名称:lt_svn,代码行数:30,代码来源:tpl_advanced_search_default.php

示例15: zen_get_module_directory

 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_footer = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2010 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_footer.php 15511 2010-02-18 07:19:44Z drbyte $
 */
require DIR_WS_MODULES . zen_get_module_directory('footer.php');
?>

<?php 
if (!isset($flag_disable_footer) || !$flag_disable_footer) {
    ?>

<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<ul>
<li><?php 
    echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
    echo HEADER_TITLE_CATALOG;
    ?>
</a></li>
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:tpl_footer.php


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