function getLocal_ErrorMessage()
 {
     global $application;
     if (modApiFunc("Session", "is_set", "ErrorMessage")) {
         $error_msg = modApiFunc("Session", "get", "ErrorMessage");
         modApiFunc("Session", "un_set", "ErrorMessage");
         $this->mTmplFiller =& $application->getInstance('TmplFiller');
         return $this->mTmplFiller->fill("extension_manager/avactis-core/", "error-message.tpl.html", array("Local_ErrorMessagetxt" => getXMsg("ExtManager", "ERR_CORE_UPGRADE_FAILED") . getXMsg("ExtManager", $error_msg)));
     }
 }
 function outputErrorMessage()
 {
     global $application;
     if (modApiFunc("Session", "is_set", "ErrorMessage")) {
         $error_msg = modApiFunc("Session", "get", "ErrorMessage");
         modApiFunc("Session", "un_set", "ErrorMessage");
         $this->mTmplFiller =& $application->getInstance('TmplFiller');
         return $this->mTmplFiller->fill("extension_manager/list/", "error-message.tpl.html", array("Local_ErrorMessage" => getXMsg("ExtManager", $error_msg)));
     }
 }
Ejemplo n.º 3
0
',
		edited_theme: <?php 
echo $json->encode(Look_Feel::getEditedThemeObj());
?>
,
		active_theme_name: '<?php 
echo escapeJSString(Look_Feel::getActiveTheme());
?>
'
	});
});
</script>
<?php 
global $application;
echo $application->combineAdminJS(array('js/css_editor_util.js', 'js/css_editor.js'));
?>
</HEAD>
<FRAMESET cols="320,*">
  <FRAME frameborder="0" id="panel" name="css_editor_panel" src="edit_panel.php" scrolling="no">
  <FRAME frameborder="0" id="storefront" name="css_editor_storefront" src="<?php 
echo urlStorefrontBase();
?>
">
  <NOFRAMES>
      <P><?php 
echo getXMsg('LF', 'LF_FRAMES_NOT_SUPPORTED');
?>
</P>
  </NOFRAMES>
</FRAMESET>
</HTML>
Ejemplo n.º 4
0
 function getPermissionsWarning($skin_info)
 {
     global $application;
     $skin_path = $application->appIni['PATH_THEMES'] . $skin_info['skin'] . '/';
     $warnings = array();
     $themes_dir = $skin_path . 'themes';
     if (!is_dir($themes_dir)) {
         $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_NO_THEMES_DIR', $themes_dir));
     } elseif (!is_writable($themes_dir)) {
         $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_THEMES_DIR_NOT_WRITABLE', $themes_dir));
     }
     $images_dir = $skin_path . 'images/upload';
     if (!is_dir($images_dir)) {
         if (!mkdir($images_dir, 0755)) {
             $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_NO_IMAGES_DIR', $images_dir));
         }
     } elseif (!is_writable($images_dir)) {
         $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_IMAGES_DIR_NOT_WRITABLE', $images_dir));
     }
     $themes_warnings = array();
     $themes = modApiStaticFunc('Look_Feel', 'getThemeList');
     foreach ($themes as $theme) {
         if (!$theme['editable']) {
             $themes_warnings[] = $this->renderWarning($theme['path']);
         }
     }
     if ($themes_warnings) {
         $warnings[] = $this->mTmplFiller->fill('look_feel/skin_list/', 'warning_list_themes.tpl.html', array('Warnings' => implode('', $themes_warnings)));
     }
     if (false && Look_Feel::getEditorRules() == '') {
         $warnings[] = $this->renderWarning(getXMsg('LF', 'WRN_CSS_RULES_NOT_DEFINED', $images_dir));
     } elseif (sizeof($themes_warnings) < sizeof($themes) || is_writable($themes_dir)) {
         $this->enable_editing = true;
     }
     return $warnings ? $this->mTmplFiller->fill('look_feel/skin_list/', 'warning_list.tpl.html', array('Warnings' => implode('', $warnings))) : '';
 }
Ejemplo n.º 5
0
 public static function getPanelSettingsJSON()
 {
     global $application;
     $panel_settings = unserialize(modApiFunc('Configuration', 'getValue', STOREFRONT_SKIN_PANEL_SETTINGS));
     if (!$panel_settings) {
         $panel_settings = array();
     }
     $panel_settings['active_theme'] = (string) modApiStaticFunc('Look_Feel', 'getActiveTheme');
     $panel_settings['edited_theme'] = modApiStaticFunc('Look_Feel', 'getEditedTheme');
     $panel_settings['skin_default_theme_title'] = getXMsg('LF', 'LF_SKIN_DEFAULTS_TITLE');
     $panel_settings['themes_folder'] = $application->getAppIni('PATH_THEME_THEMES');
     $panel_settings['labels'] = array('set_active_fail_wtd' => getXMsg('LF', 'LF_STATUS_SET_ACTIVE_FAIL_WTD'), 'alert_not_saved_theme' => getXMsg('LF', 'ALERT_NOT_SAVED_THEME'), 'alert_not_saved_theme_nav' => getXMsg('LF', 'ALERT_NOT_SAVED_THEME_NAV'));
     loadCoreFile('JSON.php');
     $json = new Services_JSON();
     return $json->encode($panel_settings);
 }
 function outputExtensionFilterSelect()
 {
     $result = execQuery('SELECT_ALL_MARKETPLACE_EXTENSION_DETAILS');
     $ext_filter_select = array('id' => 'extension_filter_by', 'select_name' => 'extension_filter_by', 'class' => "select2-container input-small select2me inline", 'values' => array(array('value' => getMsg('SYS', 'CUSTOMERS_SEARCH_ALL'), 'contents' => getMsg('SYS', 'CUSTOMERS_SEARCH_ALL')), array('value' => "F", 'contents' => getXMsg("ExtManager", "EXTN_FREE")), array('value' => "B", 'contents' => getXMsg("ExtManager", "EXTN_BUY")), array('value' => "I", 'contents' => getXMsg("ExtManager", "EXTN_PREMIUM"))));
     return HtmlForm::genDropdownSingleChoice($ext_filter_select);
 }