HomeHelpTrac

Changeset 15922 for trunk/inc


Ignore:
Timestamp:
01/25/12 00:01:17 (4 months ago)
Author:
Alexander Trofimov
Message:

Menu in Popup and Design Box

Location:
trunk/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/design.inc.php

    r15698 r15922  
    5151 
    5252/** 
    53  * Put "design box" HTML code 
     53 * Display "design box" HTML code 
    5454 * 
    55  * @param string - $title title text 
    56  * @param string - $content content 
    57  * @param int $db_num - number of design box template, use predefined contants only, default is BX_DB_DEF, 
    58  * @param string $caption_item - item to put at the box top, it is applicable for BX_DB_PADDING_DEF and BX_DB_DEF only 
    59  * @param string $bottom_item - item to put at the bottom, it is applicable for BX_DB_PADDING_DEF and BX_DB_DEF only 
    60  * @return ready HTML code 
     55 * @see BxBaseFunctions::DesignBoxContent 
    6156 * 
    6257 * @see BX_DB_CONTENT_ONLY 
     
    6863 * @see BX_DB_PADDING_NO_CAPTION 
    6964 */ 
    70 function DesignBoxContent ( $title, $content, $db_num = BX_DB_DEF, $caption_item = '', $bottom_item = '' ) { 
    71     return BxDolTemplate::getInstance()->parseHtmlByName('designbox_' . (int)$db_num . '.html', array( 
    72         'title' => $title, 
    73         'caption_item' => $caption_item, 
    74         'designbox_content' => $content, 
    75         'bottom_item' => $bottom_item 
    76     )); 
     65function DesignBoxContent ($sTitle, $sContent, $iTemplateNum = BX_DB_DEF, $mixedMenu = false) { 
     66    bx_import('BxTemplFunctions'); 
     67    return BxTemplFunctions::getInstance()->designBoxContent ($sTitle, $sContent, $iTemplateNum, $mixedMenu); 
    7768} 
    7869 
  • trunk/inc/js/jquery.dolPopup.js

    r15840 r15922  
    177177                $el.find('.bx-popup-box-pointer').css('display', 'block').position({ 
    178178                    of: ePointAt, 
    179                     my: 'right top', 
     179                    my: 'center top', 
    180180                    at: 'center bottom', 
    181181                    offset: (parseInt(aOffsetPointer[0]) + parseInt(aOffsetPointer[0])) + ' ' + (parseInt(aOffsetPointer[1]) + parseInt(aOffset[1])) 
Note: See TracChangeset for help on using the changeset viewer.