Exemplo n.º 1
0
// | 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: column_left.php 290 2004-09-15 19:48:26Z wilt $
//
$column_box_default = 'tpl_box_default_left.php';
// Check if there are boxes for the column
$column_left_display = $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where layout_box_location = 0 and layout_box_status= '1' and layout_template ='" . $template_dir . "'" . ' order by layout_box_sort_order');
// safety row stop
$box_cnt = 0;
while (!$column_left_display->EOF and $box_cnt < 100) {
    $box_cnt++;
    if (file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_left_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name'])) {
        $column_box_spacer = 'column_box_spacer_left';
        $column_width = BOX_WIDTH_LEFT;
        if (file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name'])) {
            $box_id = zen_get_box_id($column_left_display->fields['layout_box_name']);
            require DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name'];
        } else {
            $box_id = zen_get_box_id($column_left_display->fields['layout_box_name']);
            require DIR_WS_MODULES . 'sideboxes/' . $column_left_display->fields['layout_box_name'];
        }
    }
    // file_exists
    $column_left_display->MoveNext();
}
// while column_left
Exemplo n.º 2
0
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
// Check if there are boxes for the column
$column_box_default = 'tpl_box_default_single.php';
$column_single_display = $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where (layout_box_location=0 or layout_box_location=1) and layout_box_status_single=1 and layout_template ='" . $template_dir . "'" . ' order by LPAD(layout_box_sort_order_single,11,"0")');
// safety row stop
$box_cnt = 0;
while (!$column_single_display->EOF and $box_cnt < 100) {
    $box_cnt++;
    if (file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_single_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_single_display->fields['layout_box_name'])) {
        // $column_box_spacer = 'column_box_spacer_single';
        if (defined('BOX_WIDTH_SINGLE')) {
            $column_width = BOX_WIDTH_SINGLE;
        } else {
            $column_width = BOX_WIDTH_LEFT;
        }
        if (file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_single_display->fields['layout_box_name'])) {
            $box_id = zen_get_box_id($column_single_display->fields['layout_box_name']);
            require DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_single_display->fields['layout_box_name'];
        } else {
            $box_id = zen_get_box_id($column_single_display->fields['layout_box_name']);
            require DIR_WS_MODULES . 'sideboxes/' . $column_single_display->fields['layout_box_name'];
        }
    }
    // file_exists
    $column_single_display->MoveNext();
}
// while column_single
$box_id = '';
function zen_addOnModules_get_sidebox($_block)
{
    extract($GLOBALS);
    $return = false;
    ob_start();
    $column_box_default = 'tpl_box.php';
    $module = 'sideboxes';
    $column_width = BOX_WIDTH_LEFT;
    $box_id = zen_get_box_id($_block);
    if (file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $_block)) {
        require DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $_block;
    } else {
        require DIR_WS_MODULES . 'sideboxes/' . $_block;
    }
    $return = ob_get_contents();
    ob_end_clean();
    return $return;
}