Просмотр исходного кода

#140 - auto-loader in samples and base template

Alex Trofimov 11 лет назад
Родитель
Сommit
852c72ea78
81 измененных файлов с 6 добавлено и 314 удалено
  1. 0 4
      samples/BxCmtsMy.php
  2. 0 5
      samples/BxGridMy.php
  3. 0 2
      samples/BxSampleForm.php
  4. 0 2
      samples/ajax.php
  5. 0 2
      samples/buttons.php
  6. 0 4
      samples/comments.php
  7. 0 4
      samples/connections.php
  8. 0 4
      samples/designbox.php
  9. 0 4
      samples/editor.php
  10. 0 4
      samples/email.php
  11. 0 4
      samples/form_objects.php
  12. 0 4
      samples/forms.php
  13. 0 4
      samples/grid.php
  14. 0 4
      samples/image_resize.php
  15. 1 4
      samples/interface.php
  16. 0 4
      samples/menu.php
  17. 0 4
      samples/page.php
  18. 0 3
      samples/palette.php
  19. 0 4
      samples/permalinks.php
  20. 0 3
      samples/popup.php
  21. 0 4
      samples/transcoder.php
  22. 0 7
      samples/transcoder_custom.php
  23. 0 7
      samples/transcoder_video.php
  24. 0 6
      template/scripts/BxBaseAccountForms.php
  25. 0 2
      template/scripts/BxBaseAcl.php
  26. 0 1
      template/scripts/BxBaseAclServices.php
  27. 0 4
      template/scripts/BxBaseCaptchaReCAPTCHA.php
  28. 0 3
      template/scripts/BxBaseCaptchaReCAPTCHANew.php
  29. 0 19
      template/scripts/BxBaseCmts.php
  30. 0 3
      template/scripts/BxBaseCmtsForm.php
  31. 0 2
      template/scripts/BxBaseCmtsMenuActions.php
  32. 0 2
      template/scripts/BxBaseCmtsMenuManage.php
  33. 0 2
      template/scripts/BxBaseCmtsServices.php
  34. 0 2
      template/scripts/BxBaseCmtsUploaderSimple.php
  35. 0 3
      template/scripts/BxBaseEditorTinyMCE.php
  36. 0 7
      template/scripts/BxBaseFormAccount.php
  37. 0 1
      template/scripts/BxBaseFormConfirmEmail.php
  38. 0 1
      template/scripts/BxBaseFormForgotPassword.php
  39. 0 3
      template/scripts/BxBaseFormLogin.php
  40. 0 10
      template/scripts/BxBaseFormView.php
  41. 1 6
      template/scripts/BxBaseFunctions.php
  42. 1 9
      template/scripts/BxBaseGrid.php
  43. 0 2
      template/scripts/BxBaseImageServices.php
  44. 0 2
      template/scripts/BxBaseInformer.php
  45. 0 1
      template/scripts/BxBaseLanguagesServices.php
  46. 0 3
      template/scripts/BxBaseLiveUpdates.php
  47. 0 1
      template/scripts/BxBaseLiveUpdatesServices.php
  48. 0 4
      template/scripts/BxBaseMenu.php
  49. 0 2
      template/scripts/BxBaseMenuAccount.php
  50. 0 3
      template/scripts/BxBaseMenuAccountNotifications.php
  51. 0 3
      template/scripts/BxBaseMenuAccountPopup.php
  52. 0 2
      template/scripts/BxBaseMenuCustom.php
  53. 0 4
      template/scripts/BxBaseMenuFooter.php
  54. 0 2
      template/scripts/BxBaseMenuInteractive.php
  55. 0 2
      template/scripts/BxBaseMenuProfileStats.php
  56. 0 3
      template/scripts/BxBaseMenuSetAclLevel.php
  57. 0 2
      template/scripts/BxBaseMenuSite.php
  58. 0 3
      template/scripts/BxBaseMenuSubmenu.php
  59. 0 4
      template/scripts/BxBaseMenuSwitchLanguage.php
  60. 0 2
      template/scripts/BxBaseMenuSwitchTemplate.php
  61. 0 3
      template/scripts/BxBaseMenuToolbar.php
  62. 0 6
      template/scripts/BxBasePage.php
  63. 0 7
      template/scripts/BxBasePageAccount.php
  64. 0 2
      template/scripts/BxBasePageDashboard.php
  65. 0 2
      template/scripts/BxBasePageHome.php
  66. 0 2
      template/scripts/BxBasePaginate.php
  67. 0 2
      template/scripts/BxBasePrivacy.php
  68. 1 6
      template/scripts/BxBaseRss.php
  69. 0 4
      template/scripts/BxBaseSearch.php
  70. 2 8
      template/scripts/BxBaseSearchResult.php
  71. 0 19
      template/scripts/BxBaseServiceAccount.php
  72. 0 2
      template/scripts/BxBaseServiceConnections.php
  73. 0 2
      template/scripts/BxBaseServiceLogin.php
  74. 0 1
      template/scripts/BxBaseServiceMetatags.php
  75. 0 9
      template/scripts/BxBaseServiceProfiles.php
  76. 0 3
      template/scripts/BxBaseServices.php
  77. 0 4
      template/scripts/BxBaseSocialSharing.php
  78. 0 3
      template/scripts/BxBaseUploaderHTML5.php
  79. 0 2
      template/scripts/BxBaseUploaderSimple.php
  80. 0 2
      template/scripts/BxBaseView.php
  81. 0 3
      template/scripts/BxBaseVote.php

+ 0 - 4
samples/BxCmtsMy.php

@@ -84,8 +84,6 @@ INSERT INTO `sys_objects_privacy`(`object`, `module`, `action`, `title`, `defaul
 
 
 require_once(BX_DOL_DIR_STUDIO_INC . "utils.inc.php");
 require_once(BX_DOL_DIR_STUDIO_INC . "utils.inc.php");
 
 
-bx_import('BxTemplCmts');
-
 class BxCmtsMy extends BxTemplCmts
 class BxCmtsMy extends BxTemplCmts
 {
 {
     function BxCmtsMy( $sSystem, $iId, $iInit = 1 )
     function BxCmtsMy( $sSystem, $iId, $iInit = 1 )
@@ -97,7 +95,6 @@ class BxCmtsMy extends BxTemplCmts
     {
     {
         $iCmtId = is_array($mixedCmt) ? (int)$mixedCmt['cmt_id'] : (int)$mixedCmt;
         $iCmtId = is_array($mixedCmt) ? (int)$mixedCmt['cmt_id'] : (int)$mixedCmt;
 
 
-        bx_import('BxDolPrivacy');
         $oPrivacy = BxDolPrivacy::getObjectInstance('comments_view');
         $oPrivacy = BxDolPrivacy::getObjectInstance('comments_view');
         if(!$oPrivacy->check($iCmtId))
         if(!$oPrivacy->check($iCmtId))
             return '';
             return '';
@@ -109,7 +106,6 @@ class BxCmtsMy extends BxTemplCmts
     {
     {
         $oForm = parent::_getFormObject($sAction, $iId);
         $oForm = parent::_getFormObject($sAction, $iId);
 
 
-        bx_import('BxDolPrivacy');
         $sFieldName = BxDolPrivacy::getFieldName('view');
         $sFieldName = BxDolPrivacy::getFieldName('view');
         $aFieldDescriptor = BxDolPrivacy::getGroupChooser('comments_view');
         $aFieldDescriptor = BxDolPrivacy::getGroupChooser('comments_view');
         $aFieldDescriptor['caption'] = '';
         $aFieldDescriptor['caption'] = '';

+ 0 - 5
samples/BxGridMy.php

@@ -82,8 +82,6 @@ INSERT INTO `sample_grid_data` VALUES
 
 
 */
 */
 
 
-bx_import('BxTemplGrid');
-
 class BxGridMy extends BxTemplGrid
 class BxGridMy extends BxTemplGrid
 {
 {
     public function __construct ($aOptions, $oTemplate = false)
     public function __construct ($aOptions, $oTemplate = false)
@@ -99,7 +97,6 @@ class BxGridMy extends BxTemplGrid
         parent::_addJsCss();
         parent::_addJsCss();
         $this->_oTemplate->addJs('jquery.form.min.js');
         $this->_oTemplate->addJs('jquery.form.min.js');
 
 
-        bx_import('BxTemplFormView');
         $oForm = new BxTemplFormView(array());
         $oForm = new BxTemplFormView(array());
         $oForm->addCssJs();
         $oForm->addCssJs();
     }
     }
@@ -188,7 +185,6 @@ class BxGridMy extends BxTemplGrid
             ),
             ),
         );
         );
 
 
-        bx_import('BxTemplFormView');
         $oForm = new BxTemplFormView($aForm);
         $oForm = new BxTemplFormView($aForm);
         $oForm->initChecker();
         $oForm->initChecker();
 
 
@@ -204,7 +200,6 @@ class BxGridMy extends BxTemplGrid
 
 
         } else { // if form is not submitted or some fields are invalid, display popup with form
         } else { // if form is not submitted or some fields are invalid, display popup with form
 
 
-            bx_import('BxTemplFunctions');
             // we need to use 'transBox' function to properly display 'popup'
             // we need to use 'transBox' function to properly display 'popup'
             $s = BxTemplFunctions::getInstance()->transBox('', '
             $s = BxTemplFunctions::getInstance()->transBox('', '
                 <div class="bx-def-padding-top bx-def-padding-left bx-def-padding-right bx-def-color-bg-block" style="width:300px;">' . $oForm->getCode() . '</div>
                 <div class="bx-def-padding-top bx-def-padding-left bx-def-padding-right bx-def-color-bg-block" style="width:300px;">' . $oForm->getCode() . '</div>

+ 0 - 2
samples/BxSampleForm.php

@@ -129,8 +129,6 @@ INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_fo
 
 
 */
 */
 
 
-bx_import('BxTemplFormView');
-
 class BxSampleForm extends BxTemplFormView
 class BxSampleForm extends BxTemplFormView
 {
 {
     public function __construct ($aInfo, $oTemplate = false)
     public function __construct ($aInfo, $oTemplate = false)

+ 0 - 2
samples/ajax.php

@@ -16,8 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
 
 
 if  (bx_get('ajax') || (isset( $_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')) {
 if  (bx_get('ajax') || (isset( $_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')) {
     sleep(3);
     sleep(3);

+ 0 - 2
samples/buttons.php

@@ -33,8 +33,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
 
 
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);

+ 0 - 4
samples/comments.php

@@ -21,10 +21,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolAcl');
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ('Comments');
 $oTemplate->setPageHeader ('Comments');

+ 0 - 4
samples/connections.php

@@ -30,8 +30,6 @@
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
 
 
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
@@ -80,7 +78,6 @@ function PageCompMainCode()
         $iProfileId2 = $oDb->getOne($sQueryPrepared);
         $iProfileId2 = $oDb->getOne($sQueryPrepared);
     }
     }
 
 
-    bx_import('BxDolConnection');
     $oConnection = BxDolConnection::getObjectInstance($sObject);
     $oConnection = BxDolConnection::getObjectInstance($sObject);
     if (!$oConnection)
     if (!$oConnection)
         die ("'$sObject' object is not defined.");
         die ("'$sObject' object is not defined.");
@@ -177,7 +174,6 @@ function GenerateData($iMutual = 3, $iOneWay = 1, $sTable, $sType, $sObject)
 {
 {
     $oDb = BxDolDb::getInstance();
     $oDb = BxDolDb::getInstance();
 
 
-    bx_import('BxDolConnection');
     $oConnection = BxDolConnection::getObjectInstance($sObject);
     $oConnection = BxDolConnection::getObjectInstance($sObject);
     if (!$oConnection)
     if (!$oConnection)
         die ("'$sObject' object is not defined.");
         die ("'$sObject' object is not defined.");

+ 0 - 4
samples/designbox.php

@@ -16,9 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageContent ('page_main_code', PageCompMainCode());
 $oTemplate->setPageContent ('page_main_code', PageCompMainCode());
@@ -43,7 +40,6 @@ function PageCompMainCode()
 
 
     $s .= DesignBoxContent("Design box - BX_DB_DEF-".BX_DB_DEF, $sContent . ' BX_DB_DEF-'.BX_DB_DEF.' / menu - string', BX_DB_DEF, 'sys_site');
     $s .= DesignBoxContent("Design box - BX_DB_DEF-".BX_DB_DEF, $sContent . ' BX_DB_DEF-'.BX_DB_DEF.' / menu - string', BX_DB_DEF, 'sys_site');
 
 
-    bx_import('BxTemplMenu');
     $oMenuSite = BxTemplMenu::getObjectInstance('sys_toolbar_member');
     $oMenuSite = BxTemplMenu::getObjectInstance('sys_toolbar_member');
     $s .= DesignBoxContent("Design box - BX_DB_DEF-".BX_DB_DEF, $sContent . ' BX_DB_DEF-'.BX_DB_DEF.' / menu - object', BX_DB_DEF, $oMenuSite);
     $s .= DesignBoxContent("Design box - BX_DB_DEF-".BX_DB_DEF, $sContent . ' BX_DB_DEF-'.BX_DB_DEF.' / menu - object', BX_DB_DEF, $oMenuSite);
 
 

+ 0 - 4
samples/editor.php

@@ -16,9 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Visual editor");
 $oTemplate->setPageHeader ("Visual editor");
@@ -40,7 +37,6 @@ function PageCompMainCode()
     echo '<input type="submit" value="Submit" class="bx-btn bx-def-margin-sec-top" style="float:none;" />';
     echo '<input type="submit" value="Submit" class="bx-btn bx-def-margin-sec-top" style="float:none;" />';
     echo '</form>';
     echo '</form>';
 
 
-    bx_import('BxDolEditor'); // import editor class
     $oEditor = BxDolEditor::getObjectInstance(); // get default editor object instance
     $oEditor = BxDolEditor::getObjectInstance(); // get default editor object instance
     if ($oEditor) // check if editor is available for using
     if ($oEditor) // check if editor is available for using
         echo $oEditor->attachEditor ('#my_textarea'); // output HTML which will automatically apply editor to textarea element by its id
         echo $oEditor->attachEditor ('#my_textarea'); // output HTML which will automatically apply editor to textarea element by its id

+ 0 - 4
samples/email.php

@@ -16,9 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Send Email Example");
 $oTemplate->setPageHeader ("Send Email Example");
@@ -32,7 +29,6 @@ function PageCompMainCode()
 {
 {
     ob_start();
     ob_start();
 
 
-    bx_import('BxDolAccount');
     $oAccount = BxDolAccount::getInstance();
     $oAccount = BxDolAccount::getInstance();
     $aAccountInfo = $oAccount ? $oAccount->getInfo() : false;
     $aAccountInfo = $oAccount ? $oAccount->getInfo() : false;
     if (!$aAccountInfo)
     if (!$aAccountInfo)

+ 0 - 4
samples/form_objects.php

@@ -20,10 +20,6 @@
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolForm');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Sample Form Object");
 $oTemplate->setPageHeader ("Sample Form Object");

+ 0 - 4
samples/forms.php

@@ -10,9 +10,6 @@
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Sample form");
 $oTemplate->setPageHeader ("Sample form");
@@ -199,7 +196,6 @@ function PageCompMainCode()
         ),
         ),
     );
     );
 
 
-    bx_import('BxTemplFormView');
     $oForm = new BxTemplFormView($aForm);
     $oForm = new BxTemplFormView($aForm);
     $oForm->initChecker();
     $oForm->initChecker();
     if ( $oForm->isSubmittedAndValid() ) {
     if ( $oForm->isSubmittedAndValid() ) {

+ 0 - 4
samples/grid.php

@@ -21,9 +21,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Sample grid");
 $oTemplate->setPageHeader ("Sample grid");
@@ -37,7 +34,6 @@ function PageCompMainCode()
 {
 {
     ob_start();
     ob_start();
 
 
-    bx_import('BxDolGrid');
     $oGrid = BxDolGrid::getObjectInstance('sample'); // it automatically creates instance of default or custom class by object name
     $oGrid = BxDolGrid::getObjectInstance('sample'); // it automatically creates instance of default or custom class by object name
     if ($oGrid)
     if ($oGrid)
         echo $oGrid->getCode(); // print grid object
         echo $oGrid->getCode(); // print grid object

+ 0 - 4
samples/image_resize.php

@@ -16,10 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-bx_import('BxDolImageResize');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ('Image Resize');
 $oTemplate->setPageHeader ('Image Resize');

+ 1 - 4
samples/interface.php

@@ -20,9 +20,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-
 $GLOBALS['SAMPLE_TEXT'] = 'Lorem ipsum dolor sit amet, <b>vitae tractatos philosophia ius ei</b>, per id causae integre voluptatibus. An iusto <a href="javascript:void(0);">rationibus concludaturque vix</a>, ei dicat admodum minimum vix. Vim ne eruditi scripserit. Nonumy dolorem ex eum, <i>te quo aliquid mnesarchum</i>, ea mel dico populo. Accumsan platonem salutandi te mei, nostro epicurei per ea. Sed ut nonumy sapientem, <u>stet postea periculis eu nec</u>, et purto erat facilisis sed.
 $GLOBALS['SAMPLE_TEXT'] = 'Lorem ipsum dolor sit amet, <b>vitae tractatos philosophia ius ei</b>, per id causae integre voluptatibus. An iusto <a href="javascript:void(0);">rationibus concludaturque vix</a>, ei dicat admodum minimum vix. Vim ne eruditi scripserit. Nonumy dolorem ex eum, <i>te quo aliquid mnesarchum</i>, ea mel dico populo. Accumsan platonem salutandi te mei, nostro epicurei per ea. Sed ut nonumy sapientem, <u>stet postea periculis eu nec</u>, et purto erat facilisis sed.
 ';
 ';
 
 
@@ -142,7 +139,7 @@ function PageCompMainCode()
     }
     }
     $sMenu .= '</ul>';
     $sMenu .= '</ul>';
 
 
-    return DesignBoxContent("Interface elements", $sMenu . $s, BX_DB_NO_CAPTION);
+    return DesignBoxContent("Interface elements", $sMenu . $s, BX_DB_PADDING_NO_CAPTION);
 }
 }
 
 
 function Samples_Buttons()
 function Samples_Buttons()

+ 0 - 4
samples/menu.php

@@ -49,9 +49,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Sample menu");
 $oTemplate->setPageHeader ("Sample menu");
@@ -65,7 +62,6 @@ function PageCompMainCode()
 {
 {
     ob_start();
     ob_start();
 
 
-    bx_import('BxDolMenu');
     $oMenu = BxDolMenu::getObjectInstance('samples'); // it automatically creates instance of default or custom class by object name
     $oMenu = BxDolMenu::getObjectInstance('samples'); // it automatically creates instance of default or custom class by object name
     if ($oMenu)
     if ($oMenu)
         echo $oMenu->getCode(); // print menu object
         echo $oMenu->getCode(); // print menu object

+ 0 - 4
samples/page.php

@@ -33,9 +33,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageContent ('page_main_code', PageCompMainCode());
 $oTemplate->setPageContent ('page_main_code', PageCompMainCode());
@@ -48,7 +45,6 @@ function PageCompMainCode()
 {
 {
     ob_start();
     ob_start();
 
 
-    bx_import('BxDolPage');
     $oPage = BxDolPage::getObjectInstance('sample'); // it automatically creates instance of default or custom class by object name
     $oPage = BxDolPage::getObjectInstance('sample'); // it automatically creates instance of default or custom class by object name
     if ($oPage)
     if ($oPage)
         echo $oPage->getCode(); // print page
         echo $oPage->getCode(); // print page

+ 0 - 3
samples/palette.php

@@ -20,9 +20,6 @@
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Palette");
 $oTemplate->setPageHeader ("Palette");

+ 0 - 4
samples/permalinks.php

@@ -16,9 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Permalinks");
 $oTemplate->setPageHeader ("Permalinks");
@@ -32,7 +29,6 @@ function PageCompMainCode()
 {
 {
     ob_start();
     ob_start();
 
 
-    bx_import('BxDolPermalinks');
     $oPermalinks = BxDolPermalinks::getInstance();
     $oPermalinks = BxDolPermalinks::getInstance();
 
 
     $a = array (
     $a = array (

+ 0 - 3
samples/popup.php

@@ -16,9 +16,6 @@ $aPathInfo = pathinfo(__FILE__);
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxTemplFunctions');
-
 if( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) {
 if( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) {
     sleep(2); // to see AJAX loader
     sleep(2); // to see AJAX loader
     echo date(DATE_RFC822);
     echo date(DATE_RFC822);

+ 0 - 4
samples/transcoder.php

@@ -48,9 +48,6 @@
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Sample transcoder");
 $oTemplate->setPageHeader ("Sample transcoder");
@@ -65,7 +62,6 @@ function PageCompMainCode()
     ob_start();
     ob_start();
 
 
     $iProfileId = 123;
     $iProfileId = 123;
-    bx_import('BxDolTranscoderImage');
     $oTranscoder = BxDolTranscoderImage::getObjectInstance('sample');
     $oTranscoder = BxDolTranscoderImage::getObjectInstance('sample');
     if (!$oTranscoder)
     if (!$oTranscoder)
         die('Transcoder object isn\'t defined');
         die('Transcoder object isn\'t defined');

+ 0 - 7
samples/transcoder_custom.php

@@ -15,10 +15,6 @@
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-bx_import('BxTemplFunctions');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Custom images transcoder");
 $oTemplate->setPageHeader ("Custom images transcoder");
@@ -41,7 +37,6 @@ function PageCompMainCode()
         exit;
         exit;
     }
     }
 
 
-    bx_import('BxDolTranscoderImage');
     $iPrunedFiles = BxDolTranscoder::pruning();
     $iPrunedFiles = BxDolTranscoder::pruning();
     if ($iPrunedFiles) {
     if ($iPrunedFiles) {
         echo "iPrunedFiles: $iPrunedFiles";
         echo "iPrunedFiles: $iPrunedFiles";
@@ -54,8 +49,6 @@ function PageCompMainCode()
     }
     }
     //echo "registerHandlers: [" . $oTranscoderObject->registerHandlers() . "] <br />\n";
     //echo "registerHandlers: [" . $oTranscoderObject->registerHandlers() . "] <br />\n";
 
 
-
-    bx_import('BxDolStorage');
     $oStorageOrig = BxDolStorage::getObjectInstance($sStorageObjectOrig);
     $oStorageOrig = BxDolStorage::getObjectInstance($sStorageObjectOrig);
     if (!$oStorageOrig) {
     if (!$oStorageOrig) {
         echo "Storage object is not available: " . $sStorageObjectOrig;
         echo "Storage object is not available: " . $sStorageObjectOrig;

+ 0 - 7
samples/transcoder_video.php

@@ -70,10 +70,6 @@ INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_par
 require_once('./../inc/header.inc.php');
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolLanguages');
-bx_import('BxDolTemplate');
-bx_import('BxTemplFunctions');
-
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate = BxDolTemplate::getInstance();
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
 $oTemplate->setPageHeader ("Sample video transcoder");
 $oTemplate->setPageHeader ("Sample video transcoder");
@@ -98,7 +94,6 @@ function PageCompMainCode()
         exit;
         exit;
     }
     }
 
 
-    bx_import('BxDolTranscoderVideo');
     $iPrunedFiles = BxDolTranscoder::pruning();
     $iPrunedFiles = BxDolTranscoder::pruning();
     if ($iPrunedFiles) {
     if ($iPrunedFiles) {
         echo "iPrunedFiles: $iPrunedFiles";
         echo "iPrunedFiles: $iPrunedFiles";
@@ -115,8 +110,6 @@ function PageCompMainCode()
     echo "registerHandlers mp4: [" . $oTranscoderMP4->registerHandlers() . "] <br />\n";
     echo "registerHandlers mp4: [" . $oTranscoderMP4->registerHandlers() . "] <br />\n";
     echo "registerHandlers webm: [" . $oTranscoderWebM->registerHandlers() . "] <hr class='bx-def-hr' />\n";
     echo "registerHandlers webm: [" . $oTranscoderWebM->registerHandlers() . "] <hr class='bx-def-hr' />\n";
 
 
-
-    bx_import('BxDolStorage');
     $oStorageOrig = BxDolStorage::getObjectInstance($sStorageObjectOrig);
     $oStorageOrig = BxDolStorage::getObjectInstance($sStorageObjectOrig);
     if (!$oStorageOrig) {
     if (!$oStorageOrig) {
         echo "Storage object is not available: " . $sStorageObjectOrig;
         echo "Storage object is not available: " . $sStorageObjectOrig;

+ 0 - 6
template/scripts/BxBaseAccountForms.php

@@ -7,10 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolProfileForms');
-bx_import('BxDolForm');
-bx_import('BxDolAccount');
-
 /**
 /**
  * System profile(account) forms functions
  * System profile(account) forms functions
  * @see BxDolProfileForms
  * @see BxDolProfileForms
@@ -69,7 +65,6 @@ class BxBaseAccountForms extends BxDolProfileForms
             $oAccount->sendConfirmationEmail($iAccountId);
             $oAccount->sendConfirmationEmail($iAccountId);
 
 
         // add account and content association
         // add account and content association
-        bx_import('BxDolProfile');
         $iProfileId = BxDolProfile::add(BX_PROFILE_ACTION_MANUAL, $iAccountId, $iAccountId, BX_PROFILE_STATUS_PENDING, 'system');
         $iProfileId = BxDolProfile::add(BX_PROFILE_ACTION_MANUAL, $iAccountId, $iAccountId, BX_PROFILE_STATUS_PENDING, 'system');
         $oProfile = BxDolProfile::getInstance($iProfileId);
         $oProfile = BxDolProfile::getInstance($iProfileId);
 
 
@@ -196,7 +191,6 @@ class BxBaseAccountForms extends BxDolProfileForms
         // check if other text info was changed - if auto-appproval is off
         // check if other text info was changed - if auto-appproval is off
         $isAutoApprove = $oForm->isSetPendingApproval() ? false : true;
         $isAutoApprove = $oForm->isSetPendingApproval() ? false : true;
         if (!$isAutoApprove) {
         if (!$isAutoApprove) {
-            bx_import('BxDolProfile');
             $oProfile = BxDolProfile::getInstanceAccountProfile($aAccountInfo['id']); // get profile associated with account, not current porfile
             $oProfile = BxDolProfile::getInstanceAccountProfile($aAccountInfo['id']); // get profile associated with account, not current porfile
             $aProfileInfo = $oProfile->getInfo();
             $aProfileInfo = $oProfile->getInfo();
             unset($aTrackTextFieldsChanges['changed_fields']['email']); // email confirmation is automatic and separate, don't need to deactivate whole profile if email is changed
             unset($aTrackTextFieldsChanges['changed_fields']['email']); // email confirmation is automatic and separate, don't need to deactivate whole profile if email is changed

+ 0 - 2
template/scripts/BxBaseAcl.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolAcl');
-
 /**
 /**
  * Acl representation.
  * Acl representation.
  * @see BxDolAcl
  * @see BxDolAcl

+ 0 - 1
template/scripts/BxBaseAclServices.php

@@ -19,7 +19,6 @@ class BxBaseAclServices extends BxDol
 
 
     public function serviceGetMemberships($bPurchasableOnly = false, $bActiveOnly = false, $isTranslate = true)
     public function serviceGetMemberships($bPurchasableOnly = false, $bActiveOnly = false, $isTranslate = true)
     {
     {
-        bx_import('BxDolAcl');
         return BxDolAcl::getInstance()->getMemberships($bPurchasableOnly, $bActiveOnly, $isTranslate);
         return BxDolAcl::getInstance()->getMemberships($bPurchasableOnly, $bActiveOnly, $isTranslate);
     }
     }
 }
 }

+ 0 - 4
template/scripts/BxBaseCaptchaReCAPTCHA.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolCaptcha');
-
 /**
 /**
  * reCAPTCHA representation.
  * reCAPTCHA representation.
  * @see BxDolCaptcha
  * @see BxDolCaptcha
@@ -43,8 +41,6 @@ class BxBaseCaptchaReCAPTCHA extends BxDolCaptcha
     {
     {
         // TODO: captcha don't display error in javascript mode, try to find the way on how to pass error code in this mode
         // TODO: captcha don't display error in javascript mode, try to find the way on how to pass error code in this mode
 
 
-        bx_import('BxDolLanguages');
-
         $sId = 'sys-captcha-' . time() . rand(0, PHP_INT_MAX);
         $sId = 'sys-captcha-' . time() . rand(0, PHP_INT_MAX);
         $sInit = "
         $sInit = "
             Recaptcha.create('" . $this->_sKeyPublic . "', '" . $sId . "', {
             Recaptcha.create('" . $this->_sKeyPublic . "', '" . $sId . "', {

+ 0 - 3
template/scripts/BxBaseCaptchaReCAPTCHANew.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplCaptchaReCAPTCHA');
-
 /**
 /**
  * reCAPTCHA representation.
  * reCAPTCHA representation.
  * @see BxDolCaptcha
  * @see BxDolCaptcha
@@ -63,7 +61,6 @@ class BxBaseCaptchaReCAPTCHANew extends BxTemplCaptchaReCAPTCHA
         	$sCode .= '<div class="g-recaptcha" data-sitekey="' . $this->_sKeyPublic . '" data-theme="' . $this->_sSkin . '"></div>';
         	$sCode .= '<div class="g-recaptcha" data-sitekey="' . $this->_sKeyPublic . '" data-theme="' . $this->_sSkin . '"></div>';
         }
         }
 
 
-        bx_import('BxDolLanguages');
         $aApiParams['hl'] = BxDolLanguages::getInstance()->getCurrentLanguage();
         $aApiParams['hl'] = BxDolLanguages::getInstance()->getCurrentLanguage();
         $sCodeJs = $this->_oTemplate->addJs(bx_append_url_params($this->sApiUrl, $aApiParams), $bDynamicMode);
         $sCodeJs = $this->_oTemplate->addJs(bx_append_url_params($this->sApiUrl, $aApiParams), $bDynamicMode);
 
 

+ 0 - 19
template/scripts/BxBaseCmts.php

@@ -7,10 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolCmts');
-bx_import('BxDolProfile');
-bx_import('BxTemplPaginate');
-
 /**
 /**
  * @see BxDolCmts
  * @see BxDolCmts
  */
  */
@@ -41,7 +37,6 @@ class BxBaseCmts extends BxDolCmts
         $oTemplate->addCss(array('cmts.css'));
         $oTemplate->addCss(array('cmts.css'));
         $oTemplate->addJs(array('jquery.anim.js', 'jquery.form.min.js', 'BxDolCmts.js'));
         $oTemplate->addJs(array('jquery.anim.js', 'jquery.form.min.js', 'BxDolCmts.js'));
 
 
-        bx_import('BxDolForm');
         $oForm = BxDolForm::getObjectInstance($this->_sFormObject, $this->_sFormDisplayPost);
         $oForm = BxDolForm::getObjectInstance($this->_sFormObject, $this->_sFormDisplayPost);
         $oForm->addCssJs();
         $oForm->addCssJs();
     }
     }
@@ -89,7 +84,6 @@ class BxBaseCmts extends BxDolCmts
 		//add live update
 		//add live update
 		$sServiceCall = BxDolService::getSerializedService('system', 'get_live_updates_comments', array($this->_sSystem, $this->_iId, $this->_getAuthorId(), '{count}'), 'TemplCmtsServices');
 		$sServiceCall = BxDolService::getSerializedService('system', 'get_live_updates_comments', array($this->_sSystem, $this->_iId, $this->_getAuthorId(), '{count}'), 'TemplCmtsServices');
 
 
-		bx_import('BxDolLiveUpdates');
 		BxDolLiveUpdates::getInstance()->add($this->_sSystem . '_live_updates_cmts_' . $this->_iId, 1, $sServiceCall);
 		BxDolLiveUpdates::getInstance()->add($this->_sSystem . '_live_updates_cmts_' . $this->_iId, 1, $sServiceCall);
 		//add live update
 		//add live update
 
 
@@ -225,10 +219,8 @@ class BxBaseCmts extends BxDolCmts
         if($this->isAttachImageEnabled()) {
         if($this->isAttachImageEnabled()) {
             $aImages = $this->_oQuery->getImages($this->_aSystem['system_id'], $aCmt['cmt_id']);
             $aImages = $this->_oQuery->getImages($this->_aSystem['system_id'], $aCmt['cmt_id']);
             if(!empty($aImages) && is_array($aImages)) {
             if(!empty($aImages) && is_array($aImages)) {
-                bx_import('BxDolStorage');
         		$oStorage = BxDolStorage::getObjectInstance($this->getStorageObjectName());
         		$oStorage = BxDolStorage::getObjectInstance($this->getStorageObjectName());
 
 
-            	bx_import('BxDolTranscoderImage');
                 $oTranscoder = BxDolTranscoderImage::getObjectInstance($this->getTranscoderPreviewName());
                 $oTranscoder = BxDolTranscoderImage::getObjectInstance($this->getTranscoderPreviewName());
 
 
                 foreach($aImages as $aImage)
                 foreach($aImages as $aImage)
@@ -389,7 +381,6 @@ class BxBaseCmts extends BxDolCmts
     		}
     		}
     	}
     	}
 
 
-    	bx_import('BxDolTemplate');
     	$oTemplate = BxDolTemplate::getInstance();
     	$oTemplate = BxDolTemplate::getInstance();
 
 
     	$sReloadLinkContent = _t('_cmt_txt_reload_page');
     	$sReloadLinkContent = _t('_cmt_txt_reload_page');
@@ -427,7 +418,6 @@ class BxBaseCmts extends BxDolCmts
                 array('id' => $this->_sSystem . '-threaded', 'name' => $this->_sSystem . '-threaded', 'class' => '', 'title' => '_cmt_display_threaded', 'target' => '_self', 'onclick' => 'javascript:' . $this->_sJsObjName . '.cmtChangeDisplay(this, \'threaded\');')
                 array('id' => $this->_sSystem . '-threaded', 'name' => $this->_sSystem . '-threaded', 'class' => '', 'title' => '_cmt_display_threaded', 'target' => '_self', 'onclick' => 'javascript:' . $this->_sJsObjName . '.cmtChangeDisplay(this, \'threaded\');')
             );
             );
 
 
-            bx_import('BxTemplMenuInteractive');
             $oMenu = new BxTemplMenuInteractive(array('template' => 'menu_interactive_vertical.html', 'menu_id'=> $this->_sSystem . '-display', 'menu_items' => $aDisplayLinks));
             $oMenu = new BxTemplMenuInteractive(array('template' => 'menu_interactive_vertical.html', 'menu_id'=> $this->_sSystem . '-display', 'menu_items' => $aDisplayLinks));
             $oMenu->setSelected('', $this->_sSystem . '-' . $this->_sDisplayType);
             $oMenu->setSelected('', $this->_sSystem . '-' . $this->_sDisplayType);
             $sDisplay = $oMenu->getCode();
             $sDisplay = $oMenu->getCode();
@@ -442,7 +432,6 @@ class BxBaseCmts extends BxDolCmts
                 array('id' => $this->_sSystem . '-popular', 'name' => $this->_sSystem . '-popular', 'class' => '', 'title' => '_cmt_browse_popular', 'target' => '_self', 'onclick' => 'javascript:' . $this->_sJsObjName . '.cmtChangeBrowse(this, \'popular\');'),
                 array('id' => $this->_sSystem . '-popular', 'name' => $this->_sSystem . '-popular', 'class' => '', 'title' => '_cmt_browse_popular', 'target' => '_self', 'onclick' => 'javascript:' . $this->_sJsObjName . '.cmtChangeBrowse(this, \'popular\');'),
             );
             );
 
 
-            bx_import('BxTemplMenuInteractive');
             $oMenu = new BxTemplMenuInteractive(array('template' => 'menu_interactive_vertical.html', 'menu_id'=> $this->_sSystem . '-browse', 'menu_items' => $aBrowseLinks));
             $oMenu = new BxTemplMenuInteractive(array('template' => 'menu_interactive_vertical.html', 'menu_id'=> $this->_sSystem . '-browse', 'menu_items' => $aBrowseLinks));
             $oMenu->setSelected('', $this->_sSystem . '-' . $this->_sBrowseType);
             $oMenu->setSelected('', $this->_sSystem . '-' . $this->_sBrowseType);
             $sBrowseType = $oMenu->getCode();
             $sBrowseType = $oMenu->getCode();
@@ -492,7 +481,6 @@ class BxBaseCmts extends BxDolCmts
 
 
 		if(!$bViewOnly) {
 		if(!$bViewOnly) {
 	        //--- Actions Menu
 	        //--- Actions Menu
-	        bx_import('BxDolMenu');
 	        $oMenuActions = BxDolMenu::getObjectInstance($this->_sMenuObjActions);
 	        $oMenuActions = BxDolMenu::getObjectInstance($this->_sMenuObjActions);
 	        $oMenuActions->setCmtsData($this, $aCmt['cmt_id']);
 	        $oMenuActions->setCmtsData($this, $aCmt['cmt_id']);
 	        $sMenuActions = $oMenuActions->getCode();
 	        $sMenuActions = $oMenuActions->getCode();
@@ -513,7 +501,6 @@ class BxBaseCmts extends BxDolCmts
 	                'content' => $sMenuManage
 	                'content' => $sMenuManage
 	            ));
 	            ));
 	
 	
-	            bx_import('BxTemplFunctions');
 	            $sMenuManage = BxTemplFunctions::getInstance()->transBox($this->_sSystem . '-manage-' . $aCmt['cmt_id'], $sMenuManage, true);
 	            $sMenuManage = BxTemplFunctions::getInstance()->transBox($this->_sSystem . '-manage-' . $aCmt['cmt_id'], $sMenuManage, true);
 	        }
 	        }
 		}
 		}
@@ -598,7 +585,6 @@ class BxBaseCmts extends BxDolCmts
                 if($this->isAttachImageEnabled()) {
                 if($this->isAttachImageEnabled()) {
                     $aImages = $oForm->getCleanValue('cmt_image');
                     $aImages = $oForm->getCleanValue('cmt_image');
                     if(!empty($aImages) && is_array($aImages)) {
                     if(!empty($aImages) && is_array($aImages)) {
-                        bx_import('BxDolStorage');
                         $oStorage = BxDolStorage::getObjectInstance($this->getStorageObjectName());
                         $oStorage = BxDolStorage::getObjectInstance($this->getStorageObjectName());
 
 
                         foreach($aImages as $iImageId)
                         foreach($aImages as $iImageId)
@@ -618,12 +604,10 @@ class BxBaseCmts extends BxDolCmts
                 $this->isPostReplyAllowed(true);
                 $this->isPostReplyAllowed(true);
 
 
                 if ($this->_sMetatagsObj) {
                 if ($this->_sMetatagsObj) {
-                    bx_import('BxDolMetatags');
                     $oMetatags = BxDolMetatags::getObjectInstance($this->_sMetatagsObj);
                     $oMetatags = BxDolMetatags::getObjectInstance($this->_sMetatagsObj);
                     $oMetatags->keywordsAdd($this->_oQuery->getUniqId($this->_aSystem['system_id'], $iCmtId), $sCmtText);
                     $oMetatags->keywordsAdd($this->_oQuery->getUniqId($this->_aSystem['system_id'], $iCmtId), $sCmtText);
                 }
                 }
 
 
-                bx_import('BxDolAlerts');
                 $oZ = new BxDolAlerts($this->_sSystem, 'commentPost', $this->getId(), $iCmtAuthorId, array('comment_id' => $iCmtId, 'comment_author_id' => $iCmtAuthorId));
                 $oZ = new BxDolAlerts($this->_sSystem, 'commentPost', $this->getId(), $iCmtAuthorId, array('comment_id' => $iCmtId, 'comment_author_id' => $iCmtAuthorId));
                 $oZ->alert();
                 $oZ->alert();
 
 
@@ -660,12 +644,10 @@ class BxBaseCmts extends BxDolCmts
                 $this->isEditAllowed(true);
                 $this->isEditAllowed(true);
 
 
                 if ($this->_sMetatagsObj) {
                 if ($this->_sMetatagsObj) {
-                    bx_import('BxDolMetatags');
                     $oMetatags = BxDolMetatags::getObjectInstance($this->_sMetatagsObj);
                     $oMetatags = BxDolMetatags::getObjectInstance($this->_sMetatagsObj);
                     $oMetatags->keywordsAdd($this->_oQuery->getUniqId($this->_aSystem['system_id'], $iCmtId), $sCmtText);
                     $oMetatags->keywordsAdd($this->_oQuery->getUniqId($this->_aSystem['system_id'], $iCmtId), $sCmtText);
                 }
                 }
 
 
-                bx_import('BxDolAlerts');
                 $oZ = new BxDolAlerts($this->_sSystem, 'commentUpdated', $this->getId(), $iCmtAuthorId, array('comment_id' => $aCmt['cmt_id'], 'comment_author_id' => $aCmt['cmt_author_id']));
                 $oZ = new BxDolAlerts($this->_sSystem, 'commentUpdated', $this->getId(), $iCmtAuthorId, array('comment_id' => $aCmt['cmt_id'], 'comment_author_id' => $aCmt['cmt_author_id']));
                 $oZ->alert();
                 $oZ->alert();
 
 
@@ -776,7 +758,6 @@ class BxBaseCmts extends BxDolCmts
     		'image_url' => ''
     		'image_url' => ''
     	));
     	));
 
 
-    	bx_import('BxTemplFunctions');
     	return BxTemplFunctions::getInstance()->transBox($sViewImagePopupId, $sViewImagePopupContent, true);
     	return BxTemplFunctions::getInstance()->transBox($sViewImagePopupId, $sViewImagePopupContent, true);
     }
     }
     protected function _echoResultJson($a, $isAutoWrapForFormFileSubmit = false)
     protected function _echoResultJson($a, $isAutoWrapForFormFileSubmit = false)

+ 0 - 3
template/scripts/BxBaseCmtsForm.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplFormView');
-
 class BxBaseCmtsForm extends BxTemplFormView
 class BxBaseCmtsForm extends BxTemplFormView
 {
 {
 	protected $_sStorageObject;
 	protected $_sStorageObject;
@@ -32,7 +30,6 @@ class BxBaseCmtsForm extends BxTemplFormView
                 'inputs' => array(),
                 'inputs' => array(),
             );
             );
 
 
-            bx_import('BxDolFormNested');
             $oFormNested = new BxDolFormNested('cmt_image', $aFormNested, 'cmt_submit');
             $oFormNested = new BxDolFormNested('cmt_image', $aFormNested, 'cmt_submit');
 
 
             $this->aInputs['cmt_image']['storage_object'] = $this->_sStorageObject;
             $this->aInputs['cmt_image']['storage_object'] = $this->_sStorageObject;

+ 0 - 2
template/scripts/BxBaseCmtsMenuActions.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenuCustom');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu

+ 0 - 2
template/scripts/BxBaseCmtsMenuManage.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu

+ 0 - 2
template/scripts/BxBaseCmtsServices.php

@@ -19,7 +19,6 @@ class BxBaseCmtsServices extends BxDol
 
 
     public function serviceGetMenuItemAddonVote($sSystem, $iId, $iCmtId)
     public function serviceGetMenuItemAddonVote($sSystem, $iId, $iCmtId)
     {
     {
-        bx_import('BxDolCmts');
         $oCmts = BxDolCmts::getObjectInstance($sSystem, $iId);
         $oCmts = BxDolCmts::getObjectInstance($sSystem, $iId);
 
 
         $oVote = $oCmts->getVoteObject($iCmtId);
         $oVote = $oCmts->getVoteObject($iCmtId);
@@ -31,7 +30,6 @@ class BxBaseCmtsServices extends BxDol
 
 
     public function serviceGetLiveUpdatesComments($sSystem, $iContentId, $iProfileId, $iCount = 0)
     public function serviceGetLiveUpdatesComments($sSystem, $iContentId, $iProfileId, $iCount = 0)
     {
     {
-    	bx_import('BxDolCmts');
         $oCmts = BxDolCmts::getObjectInstance($sSystem, $iContentId);
         $oCmts = BxDolCmts::getObjectInstance($sSystem, $iContentId);
         if(!$oCmts || !$oCmts->isEnabled())
         if(!$oCmts || !$oCmts->isEnabled())
             return false;
             return false;

+ 0 - 2
template/scripts/BxBaseCmtsUploaderSimple.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import ('BxTemplUploaderSimple');
-
 /**
 /**
  * Upload files using standard HTML forms.
  * Upload files using standard HTML forms.
  * @see BxBaseUploaderSimple, BxDolUploader
  * @see BxBaseUploaderSimple, BxDolUploader

+ 0 - 3
template/scripts/BxBaseEditorTinyMCE.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolEditor');
-
 /**
 /**
  * TinyMCE editor representation.
  * TinyMCE editor representation.
  * @see BxDolEditor
  * @see BxDolEditor
@@ -154,7 +152,6 @@ class BxBaseEditorTinyMCE extends BxDolEditor
         }
         }
 
 
         // detect language
         // detect language
-        bx_import('BxDolLanguages');
         $sLang = BxDolLanguages::getInstance()->detectLanguageFromArray (self::$CONF_LANGS);
         $sLang = BxDolLanguages::getInstance()->detectLanguageFromArray (self::$CONF_LANGS);
 
 
         // initialize editor
         // initialize editor

+ 0 - 7
template/scripts/BxBaseFormAccount.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplFormView');
-
 class BxFormAccountCheckerHelper extends BxDolFormCheckerHelper
 class BxFormAccountCheckerHelper extends BxDolFormCheckerHelper
 {
 {
     /**
     /**
@@ -24,8 +22,6 @@ class BxFormAccountCheckerHelper extends BxDolFormCheckerHelper
      */
      */
     function checkPasswordCurrent ($s)
     function checkPasswordCurrent ($s)
     {
     {
-
-        bx_import('BxDolAccount');
         $oAccount = BxDolAccount::getInstance();
         $oAccount = BxDolAccount::getInstance();
         if (!$oAccount)
         if (!$oAccount)
             return false;
             return false;
@@ -43,9 +39,6 @@ class BxFormAccountCheckerHelper extends BxDolFormCheckerHelper
         if (!$this->checkEmail($s))
         if (!$this->checkEmail($s))
             return false;
             return false;
 
 
-        bx_import('BxDolAccount');
-        bx_import('BxDolPermalinks');
-
         $oAccount = BxDolAccount::getInstance();
         $oAccount = BxDolAccount::getInstance();
         if ($oAccount) { // user is logged in
         if ($oAccount) { // user is logged in
             $aAccountInfo = $oAccount->getInfo();
             $aAccountInfo = $oAccount->getInfo();

+ 0 - 1
template/scripts/BxBaseFormConfirmEmail.php

@@ -16,7 +16,6 @@ class BxFormConfirmEmailCheckerHelper extends BxDolFormCheckerHelper
      */
      */
     function checkCodeExist ($s)
     function checkCodeExist ($s)
     {
     {
-        bx_import('BxDolKey');
         $oKey = BxDolKey::getInstance();
         $oKey = BxDolKey::getInstance();
         return $oKey && $oKey->isKeyExists(trim($s));
         return $oKey && $oKey->isKeyExists(trim($s));
     }
     }

+ 0 - 1
template/scripts/BxBaseFormForgotPassword.php

@@ -19,7 +19,6 @@ class BxFormForgotPasswordCheckerHelper extends BxDolFormCheckerHelper
         if (!$this->checkEmail($s))
         if (!$this->checkEmail($s))
             return false;
             return false;
 
 
-        bx_import('BxDolAccountQuery');
         return BxDolAccountQuery::getInstance()->getIdByEmail($s) ? true : _t('_sys_form_forgot_password_email_not_recognized');
         return BxDolAccountQuery::getInstance()->getIdByEmail($s) ? true : _t('_sys_form_forgot_password_email_not_recognized');
     }
     }
 
 

+ 0 - 3
template/scripts/BxBaseFormLogin.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplFormView');
-
 /**
 /**
  * Login Form.
  * Login Form.
  */
  */
@@ -50,7 +48,6 @@ class BxBaseFormLogin extends BxTemplFormView
 
 
     protected function genCustomInputSubmitText ($aInput)
     protected function genCustomInputSubmitText ($aInput)
     {
     {
-        bx_import('BxDolPermalinks');
         return '<div class="bx-form-right-line-aligned">
         return '<div class="bx-form-right-line-aligned">
                     <a href="' . BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password') . '">' . _t("_sys_txt_forgot_pasword") . '</a>
                     <a href="' . BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password') . '">' . _t("_sys_txt_forgot_pasword") . '</a>
                 </div>
                 </div>

+ 0 - 10
template/scripts/BxBaseFormView.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolForm');
-
 class BxBaseFormView extends BxDolForm
 class BxBaseFormView extends BxDolForm
 {
 {
     protected static $_isToggleJsAdded = false;
     protected static $_isToggleJsAdded = false;
@@ -769,7 +767,6 @@ BLAH;
 
 
     function addHtmlEditor($iViewMode, &$aInput)
     function addHtmlEditor($iViewMode, &$aInput)
     {
     {
-        bx_import('BxDolEditor');
         $oEditor = BxDolEditor::getObjectInstance();
         $oEditor = BxDolEditor::getObjectInstance();
         if (!$oEditor)
         if (!$oEditor)
             return false;
             return false;
@@ -811,8 +808,6 @@ BLAH;
      */
      */
     function genInputFiles(&$aInput, $sInfo = '', $sError = '')
     function genInputFiles(&$aInput, $sInfo = '', $sError = '')
     {
     {
-        bx_import('BxDolUploader');
-
         $sUniqId = genRndPwd (8, false);
         $sUniqId = genRndPwd (8, false);
         $sUploaders = '';
         $sUploaders = '';
         $oUploader = null;
         $oUploader = null;
@@ -830,13 +825,11 @@ BLAH;
 
 
             } elseif (isset($aInput['ghost_template']) && is_array($aInput['ghost_template']) && isset($aInput['ghost_template']['inputs'])) { // form is not submitted and ghost template is form array
             } elseif (isset($aInput['ghost_template']) && is_array($aInput['ghost_template']) && isset($aInput['ghost_template']['inputs'])) { // form is not submitted and ghost template is form array
 
 
-                bx_import('BxDolFormNested');
                 $oFormNested = new BxDolFormNested($aInput['name'], $aInput['ghost_template'], $this->aParams['db']['submit_name'], $this->oTemplate);
                 $oFormNested = new BxDolFormNested($aInput['name'], $aInput['ghost_template'], $this->aParams['db']['submit_name'], $this->oTemplate);
                 $sGhostTemplate = $oFormNested->getCode();
                 $sGhostTemplate = $oFormNested->getCode();
 
 
             } elseif (isset($aInput['ghost_template']) && is_array($aInput['ghost_template']) && $aInput['ghost_template']) { // form is submitted and ghost template is array of BxDolFormNested objects
             } elseif (isset($aInput['ghost_template']) && is_array($aInput['ghost_template']) && $aInput['ghost_template']) { // form is submitted and ghost template is array of BxDolFormNested objects
 
 
-                bx_import('BxDolFormNested');
                 $sGhostTemplate = array ();
                 $sGhostTemplate = array ();
                 foreach ($aInput['ghost_template'] as $iFileId => $oFormNested)
                 foreach ($aInput['ghost_template'] as $iFileId => $oFormNested)
                     if (is_object($oFormNested) && $oFormNested instanceof BxDolFormNested)
                     if (is_object($oFormNested) && $oFormNested instanceof BxDolFormNested)
@@ -1056,7 +1049,6 @@ BLAH;
 
 
         $sAttrs = bx_convert_array2attrs($aAttrs, "bx-form-input-{$aInput['type']}");
         $sAttrs = bx_convert_array2attrs($aAttrs, "bx-form-input-{$aInput['type']}");
 
 
-        bx_import('BxDolCaptcha');
         $oCaptcha = BxDolCaptcha::getObjectInstance();
         $oCaptcha = BxDolCaptcha::getObjectInstance();
 
 
         return "<div $sAttrs>" . ($oCaptcha ? $oCaptcha->display($this->_bDynamicMode) : _t('_sys_txt_captcha_not_available')) . "</div>";
         return "<div $sAttrs>" . ($oCaptcha ? $oCaptcha->display($this->_bDynamicMode) : _t('_sys_txt_captcha_not_available')) . "</div>";
@@ -1199,7 +1191,6 @@ BLAH;
 
 
             $aCalendarLangs = array ('af' => 1, 'am' => 1, 'bg' => 1, 'ca' => 1, 'cs' => 1, 'da' => 1, 'de' => 1, 'el' => 1, 'es' => 1, 'et' => 1, 'eu' => 1, 'fi' => 1, 'fr' => 1, 'gl' => 1, 'he' => 1, 'hr' => 1, 'hu' => 1, 'id' => 1, 'it' => 1, 'ja' => 1, 'ko' => 1, 'lt' => 1, 'nl' => 1, 'no' => 1, 'pl' => 1, 'pt-BR' => 1, 'pt' => 1, 'ro' => 1, 'ru' => 1, 'sk' => 1, 'sr-RS' => 1, 'sr-YU' => 1, 'sv' => 1, 'th' => 1, 'tr' => 1, 'uk' => 1, 'vi' => 1, 'zh-CN' => 1, 'zh-TW' => 1);
             $aCalendarLangs = array ('af' => 1, 'am' => 1, 'bg' => 1, 'ca' => 1, 'cs' => 1, 'da' => 1, 'de' => 1, 'el' => 1, 'es' => 1, 'et' => 1, 'eu' => 1, 'fi' => 1, 'fr' => 1, 'gl' => 1, 'he' => 1, 'hr' => 1, 'hu' => 1, 'id' => 1, 'it' => 1, 'ja' => 1, 'ko' => 1, 'lt' => 1, 'nl' => 1, 'no' => 1, 'pl' => 1, 'pt-BR' => 1, 'pt' => 1, 'ro' => 1, 'ru' => 1, 'sk' => 1, 'sr-RS' => 1, 'sr-YU' => 1, 'sv' => 1, 'th' => 1, 'tr' => 1, 'uk' => 1, 'vi' => 1, 'zh-CN' => 1, 'zh-TW' => 1);
 
 
-            bx_import('BxDolLanguages');
             $sCalendarLang = BxDolLanguages::getInstance()->detectLanguageFromArray ($aCalendarLangs);
             $sCalendarLang = BxDolLanguages::getInstance()->detectLanguageFromArray ($aCalendarLangs);
             $sUiLang = BxDolLanguages::getInstance()->detectLanguageFromArray ($aUiLangs);
             $sUiLang = BxDolLanguages::getInstance()->detectLanguageFromArray ($aUiLangs);
 
 
@@ -1223,7 +1214,6 @@ BLAH;
                 if (!isset($aInput['type']) || 'files' != $aInput['type'] || !isset($aInput['uploaders']))
                 if (!isset($aInput['type']) || 'files' != $aInput['type'] || !isset($aInput['uploaders']))
                     continue;
                     continue;
 
 
-                bx_import('BxDolUploader');
                 foreach ($aInput['uploaders'] as $sUploaderObject) {
                 foreach ($aInput['uploaders'] as $sUploaderObject) {
                     $oUploader = BxDolUploader::getObjectInstance($sUploaderObject, $aInput['storage_object'], '');
                     $oUploader = BxDolUploader::getObjectInstance($sUploaderObject, $aInput['storage_object'], '');
                     if ($oUploader)
                     if ($oUploader)

+ 1 - 6
template/scripts/BxBaseFunctions.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolTemplate');
-
 class BxBaseFunctions extends BxDol implements iBxDolSingleton
 class BxBaseFunctions extends BxDol implements iBxDolSingleton
 {
 {
     protected $_oTemplate;
     protected $_oTemplate;
@@ -219,7 +217,6 @@ class BxBaseFunctions extends BxDol implements iBxDolSingleton
 
 
             if (is_string($mixedMenu)) {
             if (is_string($mixedMenu)) {
 
 
-                bx_import('BxTemplMenu');
                 $oMenu = BxTemplMenu::getObjectInstance($mixedMenu);
                 $oMenu = BxTemplMenu::getObjectInstance($mixedMenu);
                 $sMenu = $oMenu ? $oMenu->getCode () : $mixedMenu;
                 $sMenu = $oMenu ? $oMenu->getCode () : $mixedMenu;
 
 
@@ -233,7 +230,7 @@ class BxBaseFunctions extends BxDol implements iBxDolSingleton
                     $aMenu = $mixedMenu;
                     $aMenu = $mixedMenu;
                 else
                 else
                     $aMenu = array ('template' => 'menu_vertical.html', 'menu_items' => $mixedMenu);
                     $aMenu = array ('template' => 'menu_vertical.html', 'menu_items' => $mixedMenu);
-                bx_import('BxTemplMenu');
+
                 $oMenu = new BxTemplMenu($aMenu, $this->_oTemplate);
                 $oMenu = new BxTemplMenu($aMenu, $this->_oTemplate);
                 $sMenu = $oMenu->getCode ();
                 $sMenu = $oMenu->getCode ();
             }
             }
@@ -284,7 +281,6 @@ class BxBaseFunctions extends BxDol implements iBxDolSingleton
         if (!$iFileId) 
         if (!$iFileId) 
             return false;
             return false;
 
 
-        bx_import('BxDolTranscoder');
         $oStorage = BxDolTranscoder::getObjectInstance('sys_custom_images');
         $oStorage = BxDolTranscoder::getObjectInstance('sys_custom_images');
         $sFileUrl = $oStorage->getFileUrl($iFileId);
         $sFileUrl = $oStorage->getFileUrl($iFileId);
         if (!$sFileUrl) 
         if (!$sFileUrl) 
@@ -326,7 +322,6 @@ class BxBaseFunctions extends BxDol implements iBxDolSingleton
         $sImageUrlFav = $sImageUrlFcb = $sImageUrlApl = '';
         $sImageUrlFav = $sImageUrlFcb = $sImageUrlApl = '';
 
 
         if(!empty($iId)) {
         if(!empty($iId)) {
-            bx_import('BxDolTranscoderImage');
 
 
             // favicon icon
             // favicon icon
             $oTranscoder = BxDolTranscoderImage::getObjectInstance(BX_DOL_TRANSCODER_OBJ_ICON_FAVICON);
             $oTranscoder = BxDolTranscoderImage::getObjectInstance(BX_DOL_TRANSCODER_OBJ_ICON_FAVICON);

+ 1 - 9
template/scripts/BxBaseGrid.php

@@ -7,9 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolGrid');
-bx_import('BxDolPaginate');
-
 /**
 /**
  * Grid representation.
  * Grid representation.
  * @see BxDolGrid
  * @see BxDolGrid
@@ -155,7 +152,6 @@ class BxBaseGrid extends BxDolGrid
                 'page_url' =>  $sPageUrl ? $sPageUrl : "javascript:glGrids." . $this->_sObject . ".reload('{start}'); void(0);",
                 'page_url' =>  $sPageUrl ? $sPageUrl : "javascript:glGrids." . $this->_sObject . ".reload('{start}'); void(0);",
             );
             );
 
 
-            bx_import('BxTemplPaginate');
             $oPaginate = new BxTemplPaginate($aPaginateParams, $this->_oTemplate);
             $oPaginate = new BxTemplPaginate($aPaginateParams, $this->_oTemplate);
             $oPaginate->setNumFromDataArray($aData);
             $oPaginate->setNumFromDataArray($aData);
 
 
@@ -437,7 +433,6 @@ class BxBaseGrid extends BxDolGrid
             isset($aField['width']) ? 'width:' . $aField['width'] : false  // add default styles
             isset($aField['width']) ? 'width:' . $aField['width'] : false  // add default styles
         );
         );
 
 
-        bx_import('BxTemplFormView');
         $oForm = new BxTemplFormView(array(), $this->_oTemplate);
         $oForm = new BxTemplFormView(array(), $this->_oTemplate);
         $oForm->addCssJs();
         $oForm->addCssJs();
         $aInput = array(
         $aInput = array(
@@ -545,7 +540,6 @@ class BxBaseGrid extends BxDolGrid
 
 
     protected function _getFilterControls ()
     protected function _getFilterControls ()
     {
     {
-        bx_import('BxTemplStudioFormView');
         $oForm = new BxTemplStudioFormView(array());
         $oForm = new BxTemplStudioFormView(array());
 
 
         $aInput = array(
         $aInput = array(
@@ -562,10 +556,8 @@ class BxBaseGrid extends BxDolGrid
 
 
     protected function _limitMaxLength ($mixedValue, $sKey, $aField, $aRow, $isDisplayPopupOnTextOverflow, $bReturnString = true)
     protected function _limitMaxLength ($mixedValue, $sKey, $aField, $aRow, $isDisplayPopupOnTextOverflow, $bReturnString = true)
     {
     {
-        if ($aField['chars_limit'] > 0) {
-            bx_import('BxTemplFunctions');
+        if ($aField['chars_limit'] > 0)
             $mixedValue = BxTemplFunctions::getInstance()->getStringWithLimitedLength($mixedValue, $aField['chars_limit'], $isDisplayPopupOnTextOverflow, $bReturnString);
             $mixedValue = BxTemplFunctions::getInstance()->getStringWithLimitedLength($mixedValue, $aField['chars_limit'], $isDisplayPopupOnTextOverflow, $bReturnString);
-        }
         return $mixedValue;
         return $mixedValue;
     }
     }
 
 

+ 0 - 2
template/scripts/BxBaseImageServices.php

@@ -19,13 +19,11 @@ class BxBaseImageServices extends BxDol
 
 
     public function serviceAlertResponseFileDeleteLocal($oAlert, $sObject)
     public function serviceAlertResponseFileDeleteLocal($oAlert, $sObject)
     {
     {
-        bx_import('BxDolTranscoderImage');
         BxDolTranscoderImage::onAlertResponseFileDeleteLocal($oAlert, $sObject);
         BxDolTranscoderImage::onAlertResponseFileDeleteLocal($oAlert, $sObject);
     }
     }
 
 
     public function serviceAlertResponseFileDeleteOrig($oAlert, $sObject)
     public function serviceAlertResponseFileDeleteOrig($oAlert, $sObject)
     {
     {
-        bx_import('BxDolTranscoderImage');
         BxDolTranscoderImage::onAlertResponseFileDeleteOrig($oAlert, $sObject);
         BxDolTranscoderImage::onAlertResponseFileDeleteOrig($oAlert, $sObject);
     }
     }
 }
 }

+ 0 - 2
template/scripts/BxBaseInformer.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolInformer');
-
 /**
 /**
  * Informer representation.
  * Informer representation.
  * @see BxDolInformer
  * @see BxDolInformer

+ 0 - 1
template/scripts/BxBaseLanguagesServices.php

@@ -19,7 +19,6 @@ class BxBaseLanguagesServices extends BxDol
 
 
     public function serviceGetLanguages($bIdAsKey = false, $bActiveOnly = false)
     public function serviceGetLanguages($bIdAsKey = false, $bActiveOnly = false)
     {
     {
-        bx_import('BxDolLanguages');
         $aValues = BxDolLanguages::getInstance()->getLanguages($bIdAsKey, $bActiveOnly);
         $aValues = BxDolLanguages::getInstance()->getLanguages($bIdAsKey, $bActiveOnly);
 
 
         $aResult = array();
         $aResult = array();

+ 0 - 3
template/scripts/BxBaseLiveUpdates.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolLiveUpdates');
-
 /**
 /**
  * @see BxDolLiveUpdates
  * @see BxDolLiveUpdates
  */
  */
@@ -31,7 +29,6 @@ class BxBaseLiveUpdates extends BxDolLiveUpdates
 
 
 		$sContent = "var " . $this->_sJsObject . " = new " . $this->_sJsClass . "(" . json_encode($aParams) . ");";
 		$sContent = "var " . $this->_sJsObject . " = new " . $this->_sJsClass . "(" . json_encode($aParams) . ");";
 
 
-		bx_import('BxDolTemplate');
 		$oTemplate = BxDolTemplate::getInstance();
 		$oTemplate = BxDolTemplate::getInstance();
 
 
 		$oTemplate->addJs(array('BxDolLiveUpdates.js'));
 		$oTemplate->addJs(array('BxDolLiveUpdates.js'));

+ 0 - 1
template/scripts/BxBaseLiveUpdatesServices.php

@@ -19,7 +19,6 @@ class BxBaseLiveUpdatesServices extends BxDol
 
 
     public function serviceInit()
     public function serviceInit()
     {
     {
-        bx_import('BxDolLiveUpdates');
         return BxDolLiveUpdates::getInstance()->init();
         return BxDolLiveUpdates::getInstance()->init();
     }
     }
 }
 }

+ 0 - 4
template/scripts/BxBaseMenu.php

@@ -7,9 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolMenu');
-bx_import('BxDolPaginate');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu
@@ -140,7 +137,6 @@ class BxBaseMenu extends BxDolMenu
         $sIconUrl = false;
         $sIconUrl = false;
         if (!empty($a['icon'])) {
         if (!empty($a['icon'])) {
             if ((int)$a['icon'] > 0 ) {
             if ((int)$a['icon'] > 0 ) {
-                bx_import('BxDolStorage');
                 $oStorage = BxDolStorage::getObjectInstance(BX_DOL_STORAGE_OBJ_IMAGES);
                 $oStorage = BxDolStorage::getObjectInstance(BX_DOL_STORAGE_OBJ_IMAGES);
                 $sIconUrl = $oStorage ? $oStorage->getFileUrlById((int)$a['icon']) : false;
                 $sIconUrl = $oStorage ? $oStorage->getFileUrlById((int)$a['icon']) : false;
             } else {
             } else {

+ 0 - 2
template/scripts/BxBaseMenuAccount.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu

+ 0 - 3
template/scripts/BxBaseMenuAccountNotifications.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu
@@ -28,7 +26,6 @@ class BxBaseMenuAccountNotifications extends BxTemplMenu
     protected function _isVisible ($a)
     protected function _isVisible ($a)
     {
     {
         // default visible settings
         // default visible settings
-        bx_import('BxDolAcl');
         if (!BxDolAcl::getInstance()->isMemberLevelInSet($a['visible_for_levels']))
         if (!BxDolAcl::getInstance()->isMemberLevelInSet($a['visible_for_levels']))
             return false;
             return false;
 
 

+ 0 - 3
template/scripts/BxBaseMenuAccountPopup.php

@@ -7,9 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-bx_import('BxDolPermalinks');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu

+ 0 - 2
template/scripts/BxBaseMenuCustom.php

@@ -8,8 +8,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 class BxBaseMenuCustom extends BxTemplMenu
 class BxBaseMenuCustom extends BxTemplMenu
 {
 {
     public function __construct($aObject, $oTemplate = false)
     public function __construct($aObject, $oTemplate = false)

+ 0 - 4
template/scripts/BxBaseMenuFooter.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Site main menu representation.
  * Site main menu representation.
  */
  */
@@ -25,7 +23,6 @@ class BxBaseMenuFooter extends BxTemplMenu
         foreach($aItems as $iKey => $aItem)
         foreach($aItems as $iKey => $aItem)
             switch($aItem['name']) {
             switch($aItem['name']) {
                 case 'switch_language':
                 case 'switch_language':
-                    bx_import('BxDolLanguages');
                     $sLanguage = BxDolLanguages::getInstance()->getCurrentLangName();
                     $sLanguage = BxDolLanguages::getInstance()->getCurrentLangName();
 
 
                     $sIcon = $this->_oTemplate->parseHtmlByName('bx_img.html', array(
                     $sIcon = $this->_oTemplate->parseHtmlByName('bx_img.html', array(
@@ -55,7 +52,6 @@ class BxBaseMenuFooter extends BxTemplMenu
         $bResult = true;
         $bResult = true;
         switch ($a['name']) {
         switch ($a['name']) {
             case 'switch_language':
             case 'switch_language':
-                bx_import('BxDolLanguagesQuery');
                 $aLanguages = BxDolLanguagesQuery::getInstance()->getLanguages(false, true);
                 $aLanguages = BxDolLanguagesQuery::getInstance()->getLanguages(false, true);
                 if(count($aLanguages) <= 1)
                 if(count($aLanguages) <= 1)
                     $bResult = false;
                     $bResult = false;

+ 0 - 2
template/scripts/BxBaseMenuInteractive.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu

+ 0 - 2
template/scripts/BxBaseMenuProfileStats.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenuAccountNotifications');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu

+ 0 - 3
template/scripts/BxBaseMenuSetAclLevel.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu to set acl level for profile
  * Menu to set acl level for profile
  */
  */
@@ -50,7 +48,6 @@ class BxBaseMenuSetAclLevel extends BxTemplMenu
     	if(bx_get('profile_id') !== false)
     	if(bx_get('profile_id') !== false)
         	$mixedProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
         	$mixedProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
 
 
-        bx_import('BxDolAcl');
         $oAcl = BxDolAcl::getInstance();
         $oAcl = BxDolAcl::getInstance();
         if (!$oAcl)
         if (!$oAcl)
             return;
             return;

+ 0 - 2
template/scripts/BxBaseMenuSite.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Site main menu representation.
  * Site main menu representation.
  */
  */

+ 0 - 3
template/scripts/BxBaseMenuSubmenu.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu
@@ -48,7 +46,6 @@ class BxBaseMenuSubmenu extends BxTemplMenu
         if (!$this->_sObjectSubmenu && $aMenuItemSelected['submenu_object'])
         if (!$this->_sObjectSubmenu && $aMenuItemSelected['submenu_object'])
             $this->_sObjectSubmenu = $aMenuItemSelected['submenu_object'];
             $this->_sObjectSubmenu = $aMenuItemSelected['submenu_object'];
 
 
-        bx_import('BxDolPermalinks');
         $oPermalinks = BxDolPermalinks::getInstance();
         $oPermalinks = BxDolPermalinks::getInstance();
 
 
         $aVars = array (
         $aVars = array (

+ 0 - 4
template/scripts/BxBaseMenuSwitchLanguage.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Site main menu representation.
  * Site main menu representation.
  */
  */
@@ -28,7 +26,6 @@ class BxBaseMenuSwitchLanguage extends BxTemplMenu
 
 
     protected function loadData()
     protected function loadData()
     {
     {
-        bx_import('BxDolLanguages');
         $sLanguage = BxDolLanguages::getInstance()->getCurrentLangName();
         $sLanguage = BxDolLanguages::getInstance()->getCurrentLangName();
 
 
         $this->setSelected('', $sLanguage);
         $this->setSelected('', $sLanguage);
@@ -39,7 +36,6 @@ class BxBaseMenuSwitchLanguage extends BxTemplMenu
         if(!empty($aPage[1]))
         if(!empty($aPage[1]))
             parse_str($aPage[1], $aPageParams);
             parse_str($aPage[1], $aPageParams);
 
 
-        bx_import('BxDolLanguagesQuery');
         $aLanguages = BxDolLanguagesQuery::getInstance()->getLanguages(false, true);
         $aLanguages = BxDolLanguagesQuery::getInstance()->getLanguages(false, true);
 
 
         $aItems = array();
         $aItems = array();

+ 0 - 2
template/scripts/BxBaseMenuSwitchTemplate.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Site main menu representation.
  * Site main menu representation.
  */
  */

+ 0 - 3
template/scripts/BxBaseMenuToolbar.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
-
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu
@@ -31,7 +29,6 @@ class BxBaseMenuToolbar extends BxTemplMenu
             if ('account' != $r['name'])
             if ('account' != $r['name'])
                 continue;
                 continue;
 
 
-            bx_import('BxDolProfile');
             $oProfile = BxDolProfile::getInstance(bx_get_logged_profile_id ());
             $oProfile = BxDolProfile::getInstance(bx_get_logged_profile_id ());
             $sUrlIcon = $oProfile->getThumb();
             $sUrlIcon = $oProfile->getThumb();
             if (!$sUrlIcon)
             if (!$sUrlIcon)

+ 0 - 6
template/scripts/BxBasePage.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolPage');
-
 /**
 /**
  * Page representation.
  * Page representation.
  * @see BxDolPage
  * @see BxDolPage
@@ -196,7 +194,6 @@ class BxBasePage extends BxDolPage
      */
      */
     protected function _selectMenu ()
     protected function _selectMenu ()
     {
     {
-        bx_import('BxDolMenu');
         BxDolMenu::setSelectedGlobal ($this->_aObject['module'], $this->_aObject['uri']);
         BxDolMenu::setSelectedGlobal ($this->_aObject['module'], $this->_aObject['uri']);
     }
     }
 
 
@@ -241,7 +238,6 @@ class BxBasePage extends BxDolPage
         if (!$iFileId)
         if (!$iFileId)
             return false;
             return false;
 
 
-        bx_import('BxDolStorage');
         $oStorage = BxDolStorage::getObjectInstance(BX_DOL_STORAGE_OBJ_IMAGES);
         $oStorage = BxDolStorage::getObjectInstance(BX_DOL_STORAGE_OBJ_IMAGES);
         if (!$oStorage)
         if (!$oStorage)
             return false;
             return false;
@@ -269,7 +265,6 @@ class BxBasePage extends BxDolPage
         list( $sUrl, $iNum ) = explode('#', $aBlock['content']);
         list( $sUrl, $iNum ) = explode('#', $aBlock['content']);
         $iNum = (int)$iNum;
         $iNum = (int)$iNum;
 
 
-        bx_import('BxDolRss');
         return BxDolRss::getObjectInstance('sys_page_block')->getHolder($aBlock['id'], $iNum);
         return BxDolRss::getObjectInstance('sys_page_block')->getHolder($aBlock['id'], $iNum);
     }
     }
 
 
@@ -279,7 +274,6 @@ class BxBasePage extends BxDolPage
      */
      */
     protected function _getBlockMenu ($aBlock)
     protected function _getBlockMenu ($aBlock)
     {
     {
-        bx_import('BxTemplMenu');
         $oMenu = BxTemplMenu::getObjectInstance($aBlock['content']);
         $oMenu = BxTemplMenu::getObjectInstance($aBlock['content']);
         return $oMenu ? $oMenu->getCode () : '';
         return $oMenu ? $oMenu->getCode () : '';
     }
     }

+ 0 - 7
template/scripts/BxBasePageAccount.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplPage');
-
 /**
 /**
  * Account page.
  * Account page.
  */
  */
@@ -23,7 +21,6 @@ class BxBasePageAccount extends BxTemplPage
     {
     {
         parent::__construct($aObject, $oTemplate);
         parent::__construct($aObject, $oTemplate);
 
 
-        bx_import('BxDolProfile');
         $oProfile = BxDolProfile::getInstance();
         $oProfile = BxDolProfile::getInstance();
         $aProfileInfo = $oProfile ? $oProfile->getInfo() : false;
         $aProfileInfo = $oProfile ? $oProfile->getInfo() : false;
 
 
@@ -35,7 +32,6 @@ class BxBasePageAccount extends BxTemplPage
         ));
         ));
 
 
         // set settings submenu
         // set settings submenu
-        bx_import('BxDolMenu');
         $oMenuSubmenu = BxDolMenu::getObjectInstance('sys_site_submenu');
         $oMenuSubmenu = BxDolMenu::getObjectInstance('sys_site_submenu');
         if ($oMenuSubmenu) {
         if ($oMenuSubmenu) {
             $oMenuSubmenu->setObjectSubmenu('sys_account_settings_submenu', array (
             $oMenuSubmenu->setObjectSubmenu('sys_account_settings_submenu', array (
@@ -49,7 +45,6 @@ class BxBasePageAccount extends BxTemplPage
         if ($oProfile) {
         if ($oProfile) {
             $sStatus = $oProfile->getStatus();
             $sStatus = $oProfile->getStatus();
             if (isset($this->_aMapStatus2LangKey[$sStatus])) {
             if (isset($this->_aMapStatus2LangKey[$sStatus])) {
-                bx_import('BxDolInformer');
                 $oInformer = BxDolInformer::getInstance($this->_oTemplate);
                 $oInformer = BxDolInformer::getInstance($this->_oTemplate);
                 if ($oInformer)
                 if ($oInformer)
                     $oInformer->add('sys-account-status-not-active', _t($this->_aMapStatus2LangKey[$sStatus]), BX_INFORMER_ALERT);
                     $oInformer->add('sys-account-status-not-active', _t($this->_aMapStatus2LangKey[$sStatus]), BX_INFORMER_ALERT);
@@ -58,13 +53,11 @@ class BxBasePageAccount extends BxTemplPage
 
 
         // switch profile context
         // switch profile context
         if ($iSwitchToProfileId = (int)bx_get('switch_to_profile')) {
         if ($iSwitchToProfileId = (int)bx_get('switch_to_profile')) {
-            bx_import('BxDolInformer');
             $oInformer = BxDolInformer::getInstance($this->_oTemplate);
             $oInformer = BxDolInformer::getInstance($this->_oTemplate);
             $oProfile = BxDolProfile::getInstance($iSwitchToProfileId);
             $oProfile = BxDolProfile::getInstance($iSwitchToProfileId);
             $sInformerMsg = '';
             $sInformerMsg = '';
 
 
             if ($oProfile && $oProfile->getAccountId() == getLoggedId()) {
             if ($oProfile && $oProfile->getAccountId() == getLoggedId()) {
-                bx_import('BxDolProfile');
                 $oAccount = BxDolAccount::getInstance();
                 $oAccount = BxDolAccount::getInstance();
                 if ($oAccount->updateProfileContext($iSwitchToProfileId))
                 if ($oAccount->updateProfileContext($iSwitchToProfileId))
                     $sInformerMsg = _t('_sys_txt_account_profile_context_changed_success', $oProfile->getDisplayName());
                     $sInformerMsg = _t('_sys_txt_account_profile_context_changed_success', $oProfile->getDisplayName());

+ 0 - 2
template/scripts/BxBasePageDashboard.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplPage');
-
 /**
 /**
  * Dashboard page.
  * Dashboard page.
  */
  */

+ 0 - 2
template/scripts/BxBasePageHome.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplPage');
-
 /**
 /**
  * Homepage.
  * Homepage.
  */
  */

+ 0 - 2
template/scripts/BxBasePaginate.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import("BxDolPaginate");
-
 /**
 /**
  * @see BxDolPaginate
  * @see BxDolPaginate
  */
  */

+ 0 - 2
template/scripts/BxBasePrivacy.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolPrivacy');
-
 /**
 /**
  * Privacy representation.
  * Privacy representation.
  * @see BxDolPrivacy
  * @see BxDolPrivacy

+ 1 - 6
template/scripts/BxBaseRss.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolRss');
-
 /**
 /**
  * Privacy representation.
  * Privacy representation.
  * @see BxDolPrivacy
  * @see BxDolPrivacy
@@ -34,12 +32,9 @@ class BxBaseRss extends BxDolRss
     	$aMarkers = array('SiteUrl' => BX_DOL_URL_ROOT);
     	$aMarkers = array('SiteUrl' => BX_DOL_URL_ROOT);
 
 
     	if($iUserId) {
     	if($iUserId) {
-	    	bx_import('BxDolProfile');
 	        $oProfile = BxDolProfile::getInstance($iUserId);
 	        $oProfile = BxDolProfile::getInstance($iUserId);
-	        if(!$oProfile) {
-	            bx_import('BxDolProfileUndefined');
+	        if(!$oProfile)
 	            $oProfile = BxDolProfileUndefined::getInstance();
 	            $oProfile = BxDolProfileUndefined::getInstance();
-	        }
 
 
 	        $aMarkers['NickName'] =  $oProfile->getDisplayName();
 	        $aMarkers['NickName'] =  $oProfile->getDisplayName();
 		}
 		}

+ 0 - 4
template/scripts/BxBaseSearch.php

@@ -9,8 +9,6 @@
 
 
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
 
-bx_import('BxDolSearch');
-
 class BxBaseSearch extends BxDolSearch
 class BxBaseSearch extends BxDolSearch
 {
 {
     protected $_oTemplate;
     protected $_oTemplate;
@@ -91,12 +89,10 @@ class BxBaseSearch extends BxDolSearch
             $aForm['inputs']['keyword']['attrs']['onpaste'] = $aForm['inputs']['keyword']['attrs']['onkeypress'];
             $aForm['inputs']['keyword']['attrs']['onpaste'] = $aForm['inputs']['keyword']['attrs']['onkeypress'];
         }
         }
 
 
-        bx_import('BxTemplFormView');
         $oForm = new BxTemplFormView($aForm);
         $oForm = new BxTemplFormView($aForm);
         $sForm = $oForm->getCode();
         $sForm = $oForm->getCode();
 
 
         if (!$this->_bLiveSearch) {
         if (!$this->_bLiveSearch) {
-            bx_import('BxTemplPaginate');
             $o = new BxTemplPaginate(array());
             $o = new BxTemplPaginate(array());
             $o->addCssJs();
             $o->addCssJs();
         }
         }

+ 2 - 8
template/scripts/BxBaseSearchResult.php

@@ -34,12 +34,10 @@ class BxBaseSearchResult extends BxDolSearchResult
     {
     {
         parent::__construct();
         parent::__construct();
 
 
-        if ($oFunctions) {
+        if ($oFunctions)
             $this->oFunctions = $oFunctions;
             $this->oFunctions = $oFunctions;
-        } else {
-            bx_import('BxTemplFunctions');
+        else
             $this->oFunctions = BxTemplFunctions::getInstance();
             $this->oFunctions = BxTemplFunctions::getInstance();
-        }
     }
     }
 
 
     function getMain()
     function getMain()
@@ -109,7 +107,6 @@ class BxBaseSearchResult extends BxDolSearchResult
         if (false === ($sLink = $this->getRssPageUrl ()))
         if (false === ($sLink = $this->getRssPageUrl ()))
             return;
             return;
 
 
-        bx_import('BxDolTemplate');
         if (!($oTemplate = BxDolTemplate::getInstance()))
         if (!($oTemplate = BxDolTemplate::getInstance()))
             return;
             return;
 
 
@@ -121,7 +118,6 @@ class BxBaseSearchResult extends BxDolSearchResult
         if (!isset($this->aCurrent['rss']) || !$this->aCurrent['rss']['link'])
         if (!isset($this->aCurrent['rss']) || !$this->aCurrent['rss']['link'])
             return false;
             return false;
 
 
-        bx_import('BxDolPermalinks');
         $oPermalinks = BxDolPermalinks::getInstance();
         $oPermalinks = BxDolPermalinks::getInstance();
         return BX_DOL_URL_ROOT . bx_append_url_params($oPermalinks->permalink($this->aCurrent['rss']['link']), 'rss=1');
         return BX_DOL_URL_ROOT . bx_append_url_params($oPermalinks->permalink($this->aCurrent['rss']['link']), 'rss=1');
     }
     }
@@ -186,7 +182,6 @@ class BxBaseSearchResult extends BxDolSearchResult
         $sPageUrl = $this->getCurrentUrl(array(), false);
         $sPageUrl = $this->getCurrentUrl(array(), false);
         $sOnClick = $this->getCurrentOnclick(array(), false);
         $sOnClick = $this->getCurrentOnclick(array(), false);
 
 
-        bx_import('BxTemplPaginate');
         $oPaginate = new BxTemplPaginate(array(
         $oPaginate = new BxTemplPaginate(array(
             'page_url' => $sPageUrl,
             'page_url' => $sPageUrl,
             'on_change_page' => $sOnClick,
             'on_change_page' => $sOnClick,
@@ -209,7 +204,6 @@ class BxBaseSearchResult extends BxDolSearchResult
         if (BX_DOL_SEARCH_KEYWORD_PAGE === $this->sBrowseUrl || $this->bForceAjaxPaginate)
         if (BX_DOL_SEARCH_KEYWORD_PAGE === $this->sBrowseUrl || $this->bForceAjaxPaginate)
             return 'javascript:void(0);';
             return 'javascript:void(0);';
 
 
-        bx_import('BxDolPermalinks');
         $oPermalinks = BxDolPermalinks::getInstance();
         $oPermalinks = BxDolPermalinks::getInstance();
 
 
         $sUrlStart = BX_DOL_URL_ROOT . $oPermalinks->permalink($this->sBrowseUrl);
         $sUrlStart = BX_DOL_URL_ROOT . $oPermalinks->permalink($this->sBrowseUrl);

+ 0 - 19
template/scripts/BxBaseServiceAccount.php

@@ -7,9 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolAccountQuery');
-bx_import('BxTemplAccountForms');
-
 /**
 /**
  * System service for creating system profile functionality.
  * System service for creating system profile functionality.
  */
  */
@@ -85,7 +82,6 @@ class BxBaseServiceAccount extends BxDol
 
 
         // validate input params
         // validate input params
 
 
-        bx_import('BxDolAccount');
         $oAccount = BxDolAccount::getInstance($iAccountId);
         $oAccount = BxDolAccount::getInstance($iAccountId);
         if (!$oAccount)
         if (!$oAccount)
             return MsgBox(_t('_sys_txt_unsubscribe_wrong_link'));
             return MsgBox(_t('_sys_txt_unsubscribe_wrong_link'));
@@ -93,7 +89,6 @@ class BxBaseServiceAccount extends BxDol
         if ($sCode != $oAccount->getEmailHash())
         if ($sCode != $oAccount->getEmailHash())
             return MsgBox(_t('_sys_txt_unsubscribe_wrong_link'));
             return MsgBox(_t('_sys_txt_unsubscribe_wrong_link'));
 
 
-        bx_import('BxDolForm');
         $oForm = BxDolForm::getObjectInstance('sys_unsubscribe', $sDisplay);
         $oForm = BxDolForm::getObjectInstance('sys_unsubscribe', $sDisplay);
         if (!$oForm)
         if (!$oForm)
             return MsgBox(_t('_sys_txt_unsubscribe_error_occured'));
             return MsgBox(_t('_sys_txt_unsubscribe_error_occured'));
@@ -122,7 +117,6 @@ class BxBaseServiceAccount extends BxDol
     {
     {
         // if user is logged in and email is confirmed then just display a message
         // if user is logged in and email is confirmed then just display a message
         if (isLogged()) {
         if (isLogged()) {
-            bx_import('BxDolAccount');
             $oAccount = BxDolAccount::getInstance();
             $oAccount = BxDolAccount::getInstance();
             if ($oAccount->isConfirmed())
             if ($oAccount->isConfirmed())
                 return MsgBox(_t("_sys_txt_confirm_email_already_confirmed"));
                 return MsgBox(_t("_sys_txt_confirm_email_already_confirmed"));
@@ -134,7 +128,6 @@ class BxBaseServiceAccount extends BxDol
 
 
         // if user requested to resend verification letter then send letter and display message
         // if user requested to resend verification letter then send letter and display message
         if (bx_process_input(bx_get('resend')) && isLogged()) {
         if (bx_process_input(bx_get('resend')) && isLogged()) {
-            bx_import('BxDolAccount');
             $oAccount = BxDolAccount::getInstance();
             $oAccount = BxDolAccount::getInstance();
             if ($oAccount->sendConfirmationEmail())
             if ($oAccount->sendConfirmationEmail())
                 $sMsg = _t('_sys_txt_confirm_email_sent');
                 $sMsg = _t('_sys_txt_confirm_email_sent');
@@ -145,7 +138,6 @@ class BxBaseServiceAccount extends BxDol
 
 
         // show and process code verification form
         // show and process code verification form
 
 
-        bx_import('BxDolForm');
         $oForm = BxDolForm::getObjectInstance('sys_confirm_email', 'sys_confirm_email');
         $oForm = BxDolForm::getObjectInstance('sys_confirm_email', 'sys_confirm_email');
         if (!$oForm)
         if (!$oForm)
             return MsgBox(_t("_sys_txt_confirm_email_error_occured"));
             return MsgBox(_t("_sys_txt_confirm_email_error_occured"));
@@ -154,7 +146,6 @@ class BxBaseServiceAccount extends BxDol
 
 
         if ($oForm->isSubmittedAndValid()) {
         if ($oForm->isSubmittedAndValid()) {
 
 
-            bx_import('BxDolKey');
             $oKey = BxDolKey::getInstance();
             $oKey = BxDolKey::getInstance();
             if (!$oKey)
             if (!$oKey)
                 return MsgBox(_t("_sys_txt_confirm_email_error_occured"));
                 return MsgBox(_t("_sys_txt_confirm_email_error_occured"));
@@ -172,7 +163,6 @@ class BxBaseServiceAccount extends BxDol
     public function confirmEmail($sKey)
     public function confirmEmail($sKey)
     {
     {
         // check if key exists
         // check if key exists
-        bx_import('BxDolKey');
         $oKey = BxDolKey::getInstance();
         $oKey = BxDolKey::getInstance();
         if (!$oKey || !$oKey->isKeyExists($sKey))
         if (!$oKey || !$oKey->isKeyExists($sKey))
             return MsgBox(_t("_sys_txt_confirm_email_error_occured"));
             return MsgBox(_t("_sys_txt_confirm_email_error_occured"));
@@ -198,8 +188,6 @@ class BxBaseServiceAccount extends BxDol
         bx_login($aData['account_id']);
         bx_login($aData['account_id']);
 
 
         // redirect with success message
         // redirect with success message
-        bx_import('BxDolPermalinks');
-        bx_import('BxDolTemplate');
         $oTemplate = BxDolTemplate::getInstance();
         $oTemplate = BxDolTemplate::getInstance();
         $oTemplate->setPageNameIndex (BX_PAGE_TRANSITION);
         $oTemplate->setPageNameIndex (BX_PAGE_TRANSITION);
         $oTemplate->setPageHeader (_t('_sys_txt_confirm_email_success'));
         $oTemplate->setPageHeader (_t('_sys_txt_confirm_email_success'));
@@ -218,7 +206,6 @@ class BxBaseServiceAccount extends BxDol
         if (bx_get('key'))
         if (bx_get('key'))
             return $this->resetPassword();
             return $this->resetPassword();
 
 
-        bx_import('BxDolForm');
         $oForm = BxDolForm::getObjectInstance('sys_forgot_password', 'sys_forgot_password');
         $oForm = BxDolForm::getObjectInstance('sys_forgot_password', 'sys_forgot_password');
         if (!$oForm)
         if (!$oForm)
             return '';
             return '';
@@ -227,7 +214,6 @@ class BxBaseServiceAccount extends BxDol
 
 
         if ( $oForm->isSubmittedAndValid() ) {
         if ( $oForm->isSubmittedAndValid() ) {
 
 
-            bx_import('BxDolKey');
             $oKey = BxDolKey::getInstance();
             $oKey = BxDolKey::getInstance();
             if (!$oKey) {
             if (!$oKey) {
 
 
@@ -238,11 +224,9 @@ class BxBaseServiceAccount extends BxDol
                 $sEmail = $oForm->getCleanValue('email');
                 $sEmail = $oForm->getCleanValue('email');
                 $iAccountId = $this->_oAccountQuery->getIdByEmail($sEmail);
                 $iAccountId = $this->_oAccountQuery->getIdByEmail($sEmail);
 
 
-                bx_import('BxDolPermalinks');
                 $aPlus['key'] = $oKey->getNewKey(array('email' => $sEmail));
                 $aPlus['key'] = $oKey->getNewKey(array('email' => $sEmail));
                 $aPlus['forgot_password_url'] = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password') . '&key=' . $aPlus['key'];
                 $aPlus['forgot_password_url'] = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password') . '&key=' . $aPlus['key'];
 
 
-                bx_import('BxDolEmailTemplates');
                 $aTemplate = BxDolEmailTemplates::getInstance() -> parseTemplate('t_Forgot', $aPlus, $iAccountId);
                 $aTemplate = BxDolEmailTemplates::getInstance() -> parseTemplate('t_Forgot', $aPlus, $iAccountId);
 
 
                 if ($aTemplate && sendMail($sEmail, $aTemplate['Subject'], $aTemplate['Body'], 0, $aPlus, BX_EMAIL_SYSTEM))
                 if ($aTemplate && sendMail($sEmail, $aTemplate['Subject'], $aTemplate['Body'], 0, $aPlus, BX_EMAIL_SYSTEM))
@@ -272,11 +256,9 @@ class BxBaseServiceAccount extends BxDol
         $sKey = bx_process_input(bx_get('key'));
         $sKey = bx_process_input(bx_get('key'));
 
 
         // get link to forgot password page for error message
         // get link to forgot password page for error message
-        bx_import('BxDolPermalinks');
         $sUrlForgotPassword = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password');
         $sUrlForgotPassword = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password');
 
 
         // check if key exists
         // check if key exists
-        bx_import('BxDolKey');
         $oKey = BxDolKey::getInstance();
         $oKey = BxDolKey::getInstance();
         if (!$oKey || !$oKey->isKeyExists($sKey))
         if (!$oKey || !$oKey->isKeyExists($sKey))
             return _t("_sys_txt_reset_pasword_error_occured", $sUrlForgotPassword);
             return _t("_sys_txt_reset_pasword_error_occured", $sUrlForgotPassword);
@@ -300,7 +282,6 @@ class BxBaseServiceAccount extends BxDol
         // send email with new password and display result message
         // send email with new password and display result message
         $aPlus = array ('password' => $sPassword);
         $aPlus = array ('password' => $sPassword);
 
 
-        bx_import('BxDolEmailTemplates');
         $aTemplate = BxDolEmailTemplates::getInstance() -> parseTemplate('t_PasswordReset', $aPlus, $iAccountId);
         $aTemplate = BxDolEmailTemplates::getInstance() -> parseTemplate('t_PasswordReset', $aPlus, $iAccountId);
 
 
         if ($aTemplate && sendMail($aData['email'], $aTemplate['Subject'], $aTemplate['Body'], 0, $aPlus, BX_EMAIL_SYSTEM))
         if ($aTemplate && sendMail($aData['email'], $aTemplate['Subject'], $aTemplate['Body'], 0, $aPlus, BX_EMAIL_SYSTEM))

+ 0 - 2
template/scripts/BxBaseServiceConnections.php

@@ -22,7 +22,6 @@ class BxBaseServiceConnections extends BxDol
      */
      */
     public function serviceConnectionsTable ()
     public function serviceConnectionsTable ()
     {
     {
-        bx_import('BxDolGrid');
         $oGrid = BxDolGrid::getObjectInstance('sys_grid_connections');
         $oGrid = BxDolGrid::getObjectInstance('sys_grid_connections');
         if (!$oGrid)
         if (!$oGrid)
             return false;
             return false;
@@ -38,7 +37,6 @@ class BxBaseServiceConnections extends BxDol
      */
      */
     public function serviceGetUnconfirmedConnectionsNum ($sConnectionsObject, $mixedId = 0)
     public function serviceGetUnconfirmedConnectionsNum ($sConnectionsObject, $mixedId = 0)
     {
     {
-        bx_import('BxDolConnection');
         $oConnection = BxDolConnection::getObjectInstance($sConnectionsObject);
         $oConnection = BxDolConnection::getObjectInstance($sConnectionsObject);
         if (!$oConnection)
         if (!$oConnection)
             return 0;
             return 0;

+ 0 - 2
template/scripts/BxBaseServiceLogin.php

@@ -54,7 +54,6 @@ class BxBaseServiceLogin extends BxDol
 
 
         }
         }
 
 
-        bx_import ('BxDolForm');
         $oForm = BxDolForm::getObjectInstance('sys_login', 'sys_login');
         $oForm = BxDolForm::getObjectInstance('sys_login', 'sys_login');
 
 
         $sCustomHtmlBefore = '';
         $sCustomHtmlBefore = '';
@@ -70,7 +69,6 @@ class BxBaseServiceLogin extends BxDol
 
 
         $sJoinText = '';
         $sJoinText = '';
         if (strpos($sParams, 'no_join_text') === false) {
         if (strpos($sParams, 'no_join_text') === false) {
-            bx_import('BxDolPermalinks');
             $sJoinText = '<hr class="bx-def-hr bx-def-margin-sec-topbottom" /><div>' . _t('_sys_txt_login_description', BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=create-account')) . '</div>';
             $sJoinText = '<hr class="bx-def-hr bx-def-margin-sec-topbottom" /><div>' . _t('_sys_txt_login_description', BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=create-account')) . '</div>';
         }
         }
 
 

+ 0 - 1
template/scripts/BxBaseServiceMetatags.php

@@ -30,7 +30,6 @@ class BxBaseServiceMetatags extends BxDol
      */
      */
     public function serviceKeywordsCloud ($sObject, $sSection, $iMaxCount = BX_METATAGS_KEYWORDS_IN_CLOUD)
     public function serviceKeywordsCloud ($sObject, $sSection, $iMaxCount = BX_METATAGS_KEYWORDS_IN_CLOUD)
     {
     {
-        bx_import('BxDolMetatags');
         $o = BxDolMetatags::getObjectInstance($sObject);
         $o = BxDolMetatags::getObjectInstance($sObject);
         $aKeywords = $o->keywordsPopularList($iMaxCount);
         $aKeywords = $o->keywordsPopularList($iMaxCount);
         if (!$aKeywords)
         if (!$aKeywords)

+ 0 - 9
template/scripts/BxBaseServiceProfiles.php

@@ -22,10 +22,8 @@ class BxBaseServiceProfiles extends BxDol
         if (!$iProfileId)
         if (!$iProfileId)
             $iProfileId = bx_get_logged_profile_id();
             $iProfileId = bx_get_logged_profile_id();
 
 
-        bx_import('BxDolMenu');
         $oMenu = BxDolMenu::getObjectInstance('sys_profile_stats');
         $oMenu = BxDolMenu::getObjectInstance('sys_profile_stats');
 
 
-        bx_import('BxDolProfile');
         $oProfile = BxDolProfile::getInstance($iProfileId);
         $oProfile = BxDolProfile::getInstance($iProfileId);
 
 
         $aVars = array(
         $aVars = array(
@@ -47,7 +45,6 @@ class BxBaseServiceProfiles extends BxDol
         if (!$iProfileId)
         if (!$iProfileId)
             $iProfileId = bx_get_logged_profile_id();
             $iProfileId = bx_get_logged_profile_id();
 
 
-        bx_import('BxDolMenu');
         $oMenu = BxDolMenu::getObjectInstance('sys_account_notifications');
         $oMenu = BxDolMenu::getObjectInstance('sys_account_notifications');
 
 
         $iNum = 0;
         $iNum = 0;
@@ -121,7 +118,6 @@ class BxBaseServiceProfiles extends BxDol
 
 
     public function serviceProfilesList ($iAccountId = 0)
     public function serviceProfilesList ($iAccountId = 0)
     {
     {
-        bx_import('BxDolProfileQuery');
         $oProfilesQuery = BxDolProfileQuery::getInstance();
         $oProfilesQuery = BxDolProfileQuery::getInstance();
 
 
         $aProfiles = $oProfilesQuery->getProfilesByAccount($iAccountId ? $iAccountId : getLoggedId());
         $aProfiles = $oProfilesQuery->getProfilesByAccount($iAccountId ? $iAccountId : getLoggedId());
@@ -141,7 +137,6 @@ class BxBaseServiceProfiles extends BxDol
 
 
     public function serviceAccountProfileSwitcher ($iAccountId = false)
     public function serviceAccountProfileSwitcher ($iAccountId = false)
     {
     {
-        bx_import('BxDolProfileQuery');
         $oProfilesQuery = BxDolProfileQuery::getInstance();
         $oProfilesQuery = BxDolProfileQuery::getInstance();
 
 
         $aProfiles = $oProfilesQuery->getProfilesByAccount($iAccountId ? $iAccountId : getLoggedId());
         $aProfiles = $oProfilesQuery->getProfilesByAccount($iAccountId ? $iAccountId : getLoggedId());
@@ -170,7 +165,6 @@ class BxBaseServiceProfiles extends BxDol
         }
         }
 
 
         if (!$aVars['bx_repeat:row']) {
         if (!$aVars['bx_repeat:row']) {
-            bx_import('BxDolMenu');
             $oMenu = BxDolMenu::getObjectInstance('sys_add_profile');
             $oMenu = BxDolMenu::getObjectInstance('sys_add_profile');
             return array(
             return array(
                 'content' => $oMenu ? $oMenu->getCode() : MsgBox(_t('_sys_txt_empty')),
                 'content' => $oMenu ? $oMenu->getCode() : MsgBox(_t('_sys_txt_empty')),
@@ -178,7 +172,6 @@ class BxBaseServiceProfiles extends BxDol
             );
             );
         }
         }
 
 
-        bx_import('BxDolTemplate');
         $oTemplate = BxDolTemplate::getInstance();
         $oTemplate = BxDolTemplate::getInstance();
         $oTemplate->addCss('account.css');
         $oTemplate->addCss('account.css');
 
 
@@ -190,7 +183,6 @@ class BxBaseServiceProfiles extends BxDol
 
 
     protected function _getLatestModuleTimestamp ()
     protected function _getLatestModuleTimestamp ()
     {
     {
-        bx_import('BxDolModuleQuery');
         $aModules = BxDolModuleQuery::getInstance()->getModulesBy(array('type' => 'modules', 'active' => 1, 'order_by' => '`date` ASC'));
         $aModules = BxDolModuleQuery::getInstance()->getModulesBy(array('type' => 'modules', 'active' => 1, 'order_by' => '`date` ASC'));
         if (empty($aModules))
         if (empty($aModules))
             return 0;
             return 0;
@@ -201,7 +193,6 @@ class BxBaseServiceProfiles extends BxDol
     protected function _getProfilesModules ()
     protected function _getProfilesModules ()
     {
     {
         $aRet = array();
         $aRet = array();
-        bx_import('BxDolModuleQuery');
         $aModules = BxDolModuleQuery::getInstance()->getModulesBy(array('type' => 'modules', 'active' => 1));
         $aModules = BxDolModuleQuery::getInstance()->getModulesBy(array('type' => 'modules', 'active' => 1));
         foreach ($aModules as $aModule) {
         foreach ($aModules as $aModule) {
             $oModule = BxDolModule::getInstance($aModule['name']);
             $oModule = BxDolModule::getInstance($aModule['name']);

+ 0 - 3
template/scripts/BxBaseServices.php

@@ -29,7 +29,6 @@ class BxBaseServices extends BxDol implements iBxDolProfileService
 
 
     public function serviceProfileEditUrl ($iContentId)
     public function serviceProfileEditUrl ($iContentId)
     {
     {
-        bx_import('BxDolPermalinks');
         return BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=account-settings-info');
         return BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=account-settings-info');
     }
     }
 
 
@@ -55,7 +54,6 @@ class BxBaseServices extends BxDol implements iBxDolProfileService
 
 
     public function serviceProfilesSearch ($sTerm, $iLimit)
     public function serviceProfilesSearch ($sTerm, $iLimit)
     {
     {
-        bx_import('BxDolAccountQuery');
         $oDb = BxDolAccountQuery::getInstance();
         $oDb = BxDolAccountQuery::getInstance();
         $aRet = array();
         $aRet = array();
         $a = $oDb->searchByTerm($sTerm, $iLimit);
         $a = $oDb->searchByTerm($sTerm, $iLimit);
@@ -68,7 +66,6 @@ class BxBaseServices extends BxDol implements iBxDolProfileService
     {
     {
         if (!$iContentId)
         if (!$iContentId)
             return false;
             return false;
-        bx_import('BxDolAccount');
         if (!($oAccount = BxDolAccount::getInstance($iContentId)))
         if (!($oAccount = BxDolAccount::getInstance($iContentId)))
             return false;
             return false;
         return $oAccount->$sFunc();
         return $oAccount->$sFunc();

+ 0 - 4
template/scripts/BxBaseSocialSharing.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolSocialSharing');
-
 /**
 /**
  * @see BxDolSocialSharing
  * @see BxDolSocialSharing
  */
  */
@@ -28,7 +26,6 @@ class BxBaseSocialSharing extends BxDolSocialSharing
     public function getCode ($sContentId, $sModuleName, $sUrl, $sTitle, $aCustomVars = false)
     public function getCode ($sContentId, $sModuleName, $sUrl, $sTitle, $aCustomVars = false)
     {
     {
         // define markers for replacments
         // define markers for replacments
-        bx_import('BxDolLanguages');
         $sLang = BxDolLanguages::getInstance()->getCurrentLanguage();
         $sLang = BxDolLanguages::getInstance()->getCurrentLanguage();
         $aMarkers = array (
         $aMarkers = array (
             'id' => $sContentId,
             'id' => $sContentId,
@@ -46,7 +43,6 @@ class BxBaseSocialSharing extends BxDolSocialSharing
 
 
         // alert
         // alert
         $sOverrideOutput = null;
         $sOverrideOutput = null;
-        bx_import('BxDolAlerts');
         $oAlert = new BxDolAlerts('system', 'social_sharing_display', '', '', array (
         $oAlert = new BxDolAlerts('system', 'social_sharing_display', '', '', array (
             'buttons' => &$this->_aSocialButtons,
             'buttons' => &$this->_aSocialButtons,
             'markers' => &$aMarkers,
             'markers' => &$aMarkers,

+ 0 - 3
template/scripts/BxBaseUploaderHTML5.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import ('BxDolUploader');
-
 /**
 /**
  * Upload files using AJAX uploader with multiple files selection support (without flash),
  * Upload files using AJAX uploader with multiple files selection support (without flash),
  * it works in Firefox and WebKit(Safari, Chrome) browsers only, but has fallback for other browsers (IE, Opera).
  * it works in Firefox and WebKit(Safari, Chrome) browsers only, but has fallback for other browsers (IE, Opera).
@@ -72,7 +70,6 @@ class BxBaseUploaderHTML5 extends BxDolUploader
      */
      */
     public function handleUploads ($iProfileId, $mixedFiles, $isMultiple = true, $iContentId = false, $bPrivate = true)
     public function handleUploads ($iProfileId, $mixedFiles, $isMultiple = true, $iContentId = false, $bPrivate = true)
     {
     {
-        bx_import('BxDolStorage');
         $oStorage = BxDolStorage::getObjectInstance($this->_sStorageObject);
         $oStorage = BxDolStorage::getObjectInstance($this->_sStorageObject);
 
 
         $iProfileId = bx_get_logged_profile_id();
         $iProfileId = bx_get_logged_profile_id();

+ 0 - 2
template/scripts/BxBaseUploaderSimple.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import ('BxDolUploader');
-
 /**
 /**
  * Upload files using standard HTML forms.
  * Upload files using standard HTML forms.
  * @see BxDolUploader
  * @see BxDolUploader

+ 0 - 2
template/scripts/BxBaseView.php

@@ -7,8 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolView');
-
 /**
 /**
  * @see BxDolView
  * @see BxDolView
  */
  */

+ 0 - 3
template/scripts/BxBaseVote.php

@@ -7,9 +7,6 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxDolVote');
-bx_import('BxDolTemplate');
-
 /**
 /**
  * @see BxDolVote
  * @see BxDolVote
  */
  */