first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,240 @@
<?php
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class AdminRevolutionsliderAddonsController extends ModuleAdminController
{
public static $_revSliderJSON;
public function __construct()
{
if(Tools::getValue("view") == ""){
Tools::redirectAdmin('index.php?controller=AdminRevolutionsliderAddons&view=revaddon&page=rev_addon&token='.Tools::getAdminTokenLite('AdminRevolutionsliderAddons'));
}
$this->bootstrap = false;
$this->lang = false;
parent::__construct();
self::$_revSliderJSON = array(
'rev_lang' => array(
'wrong_alias' => $this->l('-- wrong alias -- '),
'nav_bullet_arrows_to_none' => $this->l('Navigation Bullets and Arrows are now set to none.'),
'create_template' => $this->l('Create Template'),
'really_want_to_delete' => $this->l('Do you really want to delete'),
'sure_to_replace_urls' => $this->l('Are you sure to replace the urls?'),
'set_settings_on_all_slider' => $this->l('Set selected settings on all Slides of this Slider? (This will be saved immediately)'),
'select_slide_img' => $this->l('Select Slide Image'),
'select_slide_video' => $this->l('Select Slide Video'),
'show_slide_opt' => $this->l('Show Slide Options'),
'hide_slide_opt' => $this->l('Hide Slide Options'),
'close' => $this->l('Close'),
'really_update_global_styles' => $this->l('Really update global styles?'),
'global_styles_editor' => $this->l('Global Styles Editor'),
'select_image' => $this->l('Select Image'),
'video_not_found' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'handle_at_least_three_chars' => $this->l('Handle has to be at least three character long'),
'really_change_font_sett' => $this->l('Really change font settings?'),
'really_delete_font' => $this->l('Really delete font?'),
'class_exist_overwrite' => $this->l('Class already exists, overwrite?'),
'class_must_be_valid' => $this->l('Class must be a valid CSS class name'),
'really_overwrite_class' => $this->l('Really overwrite Class?'),
'relly_delete_class' => $this->l('Really delete Class'),
'class_this_cant_be_undone' => $this->l('? This can\'t be undone!'),
'this_class_does_not_exist' => $this->l('This class does not exist.'),
'making_changes_will_probably_overwrite_advanced' => $this->l('Making changes to these settings will probably overwrite advanced settings. Continue?'),
'select_static_layer_image' => $this->l('Select Static Layer Image'),
'select_layer_image' => $this->l('Select Layer Image'),
'really_want_to_delete_all_layer' => $this->l('Do you really want to delete all the layers?'),
'layer_animation_editor' => $this->l('Layer Animation Editor'),
'animation_exists_overwrite' => $this->l('Animation already exists, overwrite?'),
'really_overwrite_animation' => $this->l('Really overwrite animation?'),
'default_animations_cant_delete' => $this->l('Default animations can\'t be deleted'),
'must_be_greater_than_start_time' => $this->l('Must be greater than start time'),
'sel_layer_not_set' => $this->l('Selected layer not set'),
'edit_layer_start' => $this->l('Edit Layer Start'),
'edit_layer_end' => $this->l('Edit Layer End'),
'default_animations_cant_rename' => $this->l('Default Animations can\'t be renamed'),
'anim_name_already_exists' => $this->l('Animationname already existing'),
'css_name_already_exists' => $this->l('CSS classname already existing'),
'css_orig_name_does_not_exists' => $this->l('Original CSS classname not found'),
'enter_correct_class_name' => $this->l('Enter a correct class name'),
'class_not_found' => $this->l('Class not found in database'),
'css_name_does_not_exists' => $this->l('CSS classname not found'),
'delete_this_caption' => $this->l('Delete this caption? This may affect other Slider'),
'this_will_change_the_class' => $this->l('This will update the Class with the current set Style settings, this may affect other Sliders. Proceed?'),
'unsaved_changes_will_not_be_added' => $this->l('Template will have the state of the last save, proceed?'),
'please_enter_a_slide_title' => $this->l('Please enter a Slide title'),
'please_wait_a_moment' => $this->l('Please Wait a Moment'),
'copy_move' => $this->l('Copy / Move'),
'preset_loaded' => $this->l('Preset Loaded'),
'add_bulk_slides' => $this->l('Add Bulk Slides'),
'select_image' => $this->l('Select Image'),
'arrows' => $this->l('Arrows'),
'bullets' => $this->l('Bullets'),
'thumbnails' => $this->l('Thumbnails'),
'tabs' => $this->l('Tabs'),
'delete_navigation' => $this->l('Delete this Navigation?'),
'could_not_update_nav_name' => $this->l('Navigation name could not be updated'),
'name_too_short_sanitize_3' => $this->l('Name too short, at least 3 letters between a-zA-z needed'),
'nav_name_already_exists' => $this->l('Navigation name already exists, please choose a different name'),
'remove_nav_element' => $this->l('Remove current element from Navigation?'),
'create_this_nav_element' => $this->l('This navigation element does not exist, create one?'),
'overwrite_animation' => $this->l('Overwrite current animation?'),
'cant_modify_default_anims' => $this->l('Default animations can\'t be changed'),
'anim_with_handle_exists' => $this->l('Animation already existing with given handle, please choose a different name.'),
'really_delete_anim' => $this->l('Really delete animation:'),
'this_will_reset_navigation' => $this->l('This will reset the navigation, continue?'),
'preset_name_already_exists' => $this->l('Preset name already exists, please choose a different name'),
'delete_preset' => $this->l('Really delete this preset?'),
'update_preset' => $this->l('This will update the preset with the current settings. Proceed?'),
'maybe_wrong_yt_id' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'preset_not_found' => $this->l('Preset not found'),
'cover_image_needs_to_be_set' => $this->l('Cover Image need to be set for videos'),
'remove_this_action' => $this->l('Really remove this action?'),
'layer_action_by' => $this->l('Layer is triggered by '),
'due_to_action' => $this->l(' due to action: '),
'layer' => $this->l('layer:'),
'start_layer_in' => $this->l('Start Layer "in" animation'),
'start_layer_out' => $this->l('Start Layer "out" animation'),
'start_video' => $this->l('Start Video'),
'stop_video' => $this->l('Stop Video'),
'toggle_layer_anim' => $this->l('Toggle Layer Animation'),
'toggle_video' => $this->l('Toggle Video'),
'last_slide' => $this->l('Last Slide'),
'simulate_click' => $this->l('Simulate Click'),
'togglefullscreen' => $this->l('Toggle FullScreen'),
'gofullscreen' => $this->l('Go FullScreen'),
'exitfullscreen' => $this->l('Exit FullScreen'),
'toggle_class' => $this->l('Toogle Class'),
'copy_styles_to_hover_from_idle' => $this->l('Copy hover styles to idle?'),
'copy_styles_to_idle_from_hover' => $this->l('Copy idle styles to hover?'),
'select_at_least_one_device_type' => $this->l('Please select at least one device type'),
'please_select_first_an_existing_style' => $this->l('Please select an existing Style Template'),
'cant_remove_last_transition' => $this->l('Can not remove last transition!'),
'name_is_default_animations_cant_be_changed' => $this->l('Given animation name is a default animation. These can not be changed.'),
'override_animation' => $this->l('Animation exists, override existing animation?'),
'this_feature_only_if_activated' => $this->l('This feature is only available if you activate Slider Revolution for this installation'),
'unsaved_data_will_be_lost_proceed' => $this->l('Unsaved data will be lost, proceed?'),
'is_loading' => $this->l('is Loading...'),
'google_fonts_loaded' => $this->l('Google Fonts Loaded'),
'delete_layer' => $this->l('Delete Layer?'),
'this_template_requires_version' => $this->l('This template requires at least version'),
'of_slider_revolution' => $this->l('of Slider Revolution to work.'),
'slider_revolution_shortcode_creator' => $this->l('Slider Revolution Shortcode Creator'),
'slider_informations_are_missing' => $this->l('Slider informations are missing!'),
'shortcode_generator' => $this->l('Shortcode Generator'),
'please_add_at_least_one_layer' => $this->l('Please add at least one Layer.'),
'choose_image' => $this->l('Choose Image'),
'shortcode_parsing_successfull' => $this->l('Shortcode parsing successfull. Items can be found in step 3'),
'shortcode_could_not_be_correctly_parsed' => $this->l('Shortcode could not be parsed.')
)
);
}
public function setMedia()
{
parent::setMedia();
wp_localize_script( 'rev_slider_addon', 'rev_slider_addon', array(
'ajax_url' => RevLoader::getConstants('ajaxurl'),
'please_wait_a_moment' => __("Please Wait a Moment",'revslider'),
'settings_saved' => __("Settings saved",'revslider')
));
Media::addJsDef(
array('rev_slider_addon'=> array(
'ajax_url' => RevLoader::getConstants('ajaxurl'),
'please_wait_a_moment' => __("Please Wait a Moment",'revslider'),
'settings_saved' => __("Settings saved",'revslider')
))
);
$this->context->controller->addJqueryUI(array('ui.core'));
$this->context->controller->addJqueryPlugin('autocomplete');
$path_css = _MODULE_DIR_ . $this->module->name.'/admin/assets/css/';
$path_js = _MODULE_DIR_ . $this->module->name.'/admin/assets/js/';
$this->addCSS($path_css . 'admin.css');
$this->addCSS($path_css . 'tipsy.css');
$this->addCSS($path_css . 'colors.min.css');
$this->addCSS($path_css . 'edit_layers.css');
$this->addCSS($path_css . 'global.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/css/settings.css');
Media::addJsDef(self::$_revSliderJSON);
$this->addCSS("//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600,800");
$this->addCSS($path_css . 'thickbox.css');
$this->context->controller->addJqueryUI(array('ui.dialog'));
$this->addCSS($path_js . 'codemirror/codemirror.css');
$this->addCSS($path_css . 'color-picker.css');
$this->addCSS($path_css . 'tp-color-picker.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/font-awesome/css/font-awesome.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css');
$this->addCSS($path_css . 'demo.css');
$this->addJS($path_js . 'jquery/core.min.js');
$this->addJS($path_js . 'underscore.min.js');
$this->context->controller->addJqueryUI(array('ui.widget'));
$this->context->controller->addJqueryUI(array('ui.mouse'));
$this->context->controller->addJqueryUI(array('ui.accordion'));
$this->context->controller->addJqueryUI(array('ui.datepicker'));
$this->context->controller->addJqueryUI(array('ui.slider'));
$this->context->controller->addJqueryUI(array('ui.menu'));
$this->context->controller->addJqueryUI(array('ui.autocomplete'));
$this->context->controller->addJqueryUI(array('ui.sortable'));
$this->context->controller->addJqueryUI(array('ui.droppable'));
$this->context->controller->addJqueryUI(array('ui.tabs'));
$this->addJS($path_js . 'color-picker.js');
$this->context->controller->addJqueryUI(array('ui.resizable'));
$this->context->controller->addJqueryUI(array('ui.draggable'));
$this->addJS($path_js . 'settings.js');
$this->addJS($path_js . 'admin.js');
$this->addJS($path_js . 'thickbox.js');
$this->addJS($path_js . 'jquery.tipsy.js');
$this->addJS($path_js . 'codemirror/codemirror.js');
$this->addJS($path_js . 'codemirror/util/match-highlighter.js');
$this->addJS($path_js . 'codemirror/util/searchcursor.js');
$this->addJS($path_js . 'codemirror/css.js');
$this->addJS($path_js . 'codemirror/xml.js');
$this->addJS($path_js . 'edit_layers_timeline.js');
$this->addJS($path_js . 'context_menu.js');
$this->addJS($path_js . 'edit_layers.js');
$this->addJS($path_js . 'css_editor.js');
$this->addJS($path_js . 'rev_admin.js');
$this->context->controller->addJqueryUI(array('ui.position'));
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/jquery.themepunch.tools.min.js');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/tp-color-picker.min.js');
$this->addJS($path_js . '/js/jquery/iris.min.js');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/admin/assets/css/rev_addon-admin.css');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/admin/assets/js/rev_addon-admin.js');
//
}
public function initContent(){
$this->content = $this->displayHeader();
$this->content .= $this->overview();
$this->content .= $this->displayfooter();
parent::initContent();
}
public function overview() {
ob_start();
$productAdmin = new RevSliderAdmin();
$output = ob_get_contents();
ob_end_clean();
// die($output);
return $output;
}
}

View File

@@ -0,0 +1,55 @@
<?php
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class AdminRevolutionsliderAjaxController extends ModuleAdminController
{
protected $_ajax_results;
protected $_ajax_stripslash;
protected $_filter_whitespace;
protected $lushslider_model;
public function __construct()
{
$this->display_header = false;
$this->display_footer = false;
$this->content_only = true;
parent::__construct();
$this->_ajax_results['error_on'] = 1;
}
public function init()
{
// Process POST | GET
$this->initProcess();
}
/**
*
* @throws Exception
*/
public function initProcess()
{
ob_start();
RevSliderAdmin::onAjaxAction();
$output = ob_get_contents();
ob_end_clean();
// die($output);
die($output);
}
}

View File

@@ -0,0 +1,266 @@
<?php
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
class AdminRevolutionsliderFmanagerController extends ModuleAdminController
{
protected $_ajax_results;
protected $_ajax_stripslash;
protected $_filter_whitespace;
protected $lushslider_model;
public function __construct()
{
$this->display_header = false;
$this->display_footer = false;
$this->content_only = true;
parent::__construct();
$this->_ajax_results['error_on'] = 1;
}
public function init()
{
// Process POST | GET
$this->initProcess();
// $this->initHeader();
}
/**
*
* @throws Exception
*/
public function initProcess()
{
ob_start();
switch (Tools::getValue("view")) {
case "upload":
require_once(RS_PLUGIN_PATH . '/include/filemanager/upload.php');
break;
case "ajax_calls":
require_once(RS_PLUGIN_PATH . '/include/filemanager/ajax_calls.php');
break;
case "execute":
require_once(RS_PLUGIN_PATH . '/include/filemanager/execute.php');
break;
case "download":
require_once(RS_PLUGIN_PATH . '/include/filemanager/force_download.php');
break;
default:
require_once(RS_PLUGIN_PATH . '/include/filemanager/dialog.php');
}
$output = ob_get_contents();
ob_end_clean();
die($output);
}
public function initHeader()
{
// Multishop
$is_multishop = Shop::isFeatureActive();
// Quick access
$quick_access = QuickAccess::getQuickAccesses($this->context->language->id);
foreach ($quick_access as $index => $quick) {
if ($quick['link'] == '../' && Shop::getContext() == Shop::CONTEXT_SHOP) {
$url = $this->context->shop->getBaseURL();
if (!$url) {
unset($quick_access[$index]);
continue;
}
$quick_access[$index]['link'] = $url;
} else {
preg_match('/controller=(.+)(&.+)?$/', $quick['link'], $admin_tab);
if (@RevsliderPrestashop::getIsset($admin_tab[1])) {
if (strpos($admin_tab[1], '&')) {
$admin_tab[1] = Tools::substr($admin_tab[1], 0, strpos($admin_tab[1], '&'));
}
$token = Tools::getAdminToken($admin_tab[1].(int)Tab::getIdFromClassName($admin_tab[1]).(int)$this->context->employee->id);
$quick_access[$index]['link'] .= '&token='.$token;
}
}
}
$name = $this->l('New Bookmark');
if (@RevsliderPrestashop::getIsset($this->context->smarty->tpl_vars['breadcrumbs2']) && $this->context->smarty->tpl_vars['breadcrumbs2']->value['tab']['name']) {
if ($this->context->smarty->tpl_vars['breadcrumbs2']->value['action']['name']) {
$name = $this->context->smarty->tpl_vars['breadcrumbs2']->value['tab']['name'].' > '.$this->context->smarty->tpl_vars['breadcrumbs2']->value['action']['name'];
} else {
$name = $this->context->smarty->tpl_vars['breadcrumbs2']->value['tab']['name'];
}
} elseif (@RevsliderPrestashop::getIsset($this->context->smarty->tpl_vars['breadcrumbs2']) && is_string($this->context->smarty->tpl_vars['breadcrumbs2']->value)) {
$name = $this->context->smarty->tpl_vars['breadcrumbs2']->value;
}
$link = preg_replace('/&token=[a-z0-9]{32}/', '', basename($_SERVER['REQUEST_URI']));
$quick_access[] = array(
'name' => $this->l('Bookmark this page'),
'link' => $this->context->link->getAdminLink('AdminQuickAccesses').'&new_window=0&name_'.(int)Configuration::get('PS_LANG_DEFAULT').'='.urlencode($name).'&link='.urlencode($link).'&submitAddquick_access=1',
'new_window' => 0
);
// Tab list
$tabs = Tab::getTabs($this->context->language->id, 0);
$current_id = Tab::getCurrentParentId();
foreach ($tabs as $index => $tab) {
if (!Tab::checkTabRights($tab['id_tab'])
|| ($tab['class_name'] == 'AdminStock' && Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT') == 0)
|| $tab['class_name'] == 'AdminCarrierWizard') {
unset($tabs[$index]);
continue;
}
$img_cache_url = 'themes/'.$this->context->employee->bo_theme.'/img/t/'.$tab['class_name'].'.png';
$img_exists_cache = Tools::file_exists_cache(_PS_ADMIN_DIR_.$img_cache_url);
// retrocompatibility : change png to gif if icon not exists
if (!$img_exists_cache) {
$img_exists_cache = Tools::file_exists_cache(_PS_ADMIN_DIR_.str_replace('.png', '.gif', $img_cache_url));
}
if ($img_exists_cache) {
$path_img = $img = $img_exists_cache;
} else {
$path_img = _PS_IMG_DIR_.'t/'.$tab['class_name'].'.png';
// Relative link will always work, whatever the base uri set in the admin
$img = '../img/t/'.$tab['class_name'].'.png';
}
if (trim($tab['module']) != '') {
$path_img = _PS_MODULE_DIR_.$tab['module'].'/'.$tab['class_name'].'.png';
// Relative link will always work, whatever the base uri set in the admin
$img = '../modules/'.$tab['module'].'/'.$tab['class_name'].'.png';
}
// retrocompatibility
if (!file_exists($path_img)) {
$img = str_replace('png', 'gif', $img);
}
// tab[class_name] does not contains the "Controller" suffix
$tabs[$index]['current'] = ($tab['class_name'].'Controller' == get_class($this)) || ($current_id == $tab['id_tab']);
$tabs[$index]['img'] = $img;
$tabs[$index]['href'] = $this->context->link->getAdminLink($tab['class_name']);
$sub_tabs = Tab::getTabs($this->context->language->id, $tab['id_tab']);
foreach ($sub_tabs as $index2 => $sub_tab) {
//check if module is enable and
if (@RevsliderPrestashop::getIsset($sub_tab['module']) && !empty($sub_tab['module'])) {
$module = Module::getInstanceByName($sub_tab['module']);
if (is_object($module) && !$module->isEnabledForShopContext()) {
unset($sub_tabs[$index2]);
continue;
}
}
if (Tab::checkTabRights($sub_tab['id_tab']) === true && (bool)$sub_tab['active'] && $sub_tab['class_name'] != 'AdminCarrierWizard') {
// class_name is the name of the class controller
$sub_tabs[$index2]['href'] = $this->context->link->getAdminLink($sub_tab['class_name']);
$sub_tabs[$index2]['current'] = ($sub_tab['class_name'].'Controller' == get_class($this) || $sub_tab['class_name'] == Tools::getValue('controller'));
} elseif ($sub_tab['class_name'] == 'AdminCarrierWizard' && $sub_tab['class_name'].'Controller' == get_class($this)) {
foreach ($sub_tabs as $i => $tab) {
if ($tab['class_name'] == 'AdminCarriers') {
break;
}
}
$sub_tabs[$i]['current'] = true;
unset($sub_tabs[$index2]);
} else {
unset($sub_tabs[$index2]);
}
}
$tabs[$index]['sub_tabs'] = $sub_tabs;
}
if (Validate::isLoadedObject($this->context->employee)) {
$accesses = Profile::getProfileAccesses($this->context->employee->id_profile, 'class_name');
/* Hooks are volontary out the initialize array (need those variables already assigned) */
$bo_color = empty($this->context->employee->bo_color) ? '#FFFFFF' : $this->context->employee->bo_color;
$this->context->smarty->assign(array(
'autorefresh_notifications' => Configuration::get('PS_ADMINREFRESH_NOTIFICATION'),
'help_box' => Configuration::get('PS_HELPBOX'),
'round_mode' => Configuration::get('PS_PRICE_ROUND_MODE'),
'brightness' => Tools::getBrightness($bo_color) < 128 ? 'white' : '#383838',
'bo_width' => (int)$this->context->employee->bo_width,
'bo_color' => @RevsliderPrestashop::getIsset($this->context->employee->bo_color) ? Tools::htmlentitiesUTF8($this->context->employee->bo_color) : null,
'show_new_orders' => Configuration::get('PS_SHOW_NEW_ORDERS') && @RevsliderPrestashop::getIsset($accesses['AdminOrders']) && $accesses['AdminOrders']['view'],
'show_new_customers' => Configuration::get('PS_SHOW_NEW_CUSTOMERS') && @RevsliderPrestashop::getIsset($accesses['AdminCustomers']) && $accesses['AdminCustomers']['view'],
'show_new_messages' => Configuration::get('PS_SHOW_NEW_MESSAGES') && @RevsliderPrestashop::getIsset($accesses['AdminCustomerThreads'])&& $accesses['AdminCustomerThreads']['view'],
'employee' => $this->context->employee,
'search_type' => Tools::getValue('bo_search_type'),
'bo_query' => Tools::safeOutput(Tools::stripslashes(Tools::getValue('bo_query'))),
'quick_access' => $quick_access,
'multi_shop' => Shop::isFeatureActive(),
'shop_list' => Helper::renderShopList(),
'shop' => $this->context->shop,
'shop_group' => new ShopGroup((int)Shop::getContextShopGroupID()),
'current_parent_id' => (int)Tab::getCurrentParentId(),
'tabs' => $tabs,
'is_multishop' => $is_multishop,
'multishop_context' => $this->multishop_context,
'default_tab_link' => $this->context->link->getAdminLink(Tab::getClassNameById((int)Context::getContext()->employee->default_tab)),
'collapse_menu' => @RevsliderPrestashop::getIsset($this->context->cookie->collapse_menu) ? (int)$this->context->cookie->collapse_menu : 0
));
} else {
$this->context->smarty->assign('default_tab_link', $this->context->link->getAdminLink('AdminDashboard'));
}
$this->context->smarty->assign(array(
'img_dir' => _PS_IMG_,
'iso' => $this->context->language->iso_code,
'class_name' => $this->className,
'iso_user' => $this->context->language->iso_code,
'country_iso_code' => $this->context->country->iso_code,
'version' => _PS_VERSION_,
'lang_iso' => $this->context->language->iso_code,
'full_language_code' => $this->context->language->language_code,
'link' => $this->context->link,
'shop_name' => Configuration::get('PS_SHOP_NAME'),
'base_url' => $this->context->shop->getBaseURL(),
'tab' => @RevsliderPrestashop::getIsset($tab) ? $tab : null, // Deprecated, this tab is declared in the foreach, so it's the last tab in the foreach
'current_parent_id' => (int)Tab::getCurrentParentId(),
'tabs' => $tabs,
'install_dir_exists' => file_exists(_PS_ADMIN_DIR_.'/../install'),
'pic_dir' => _THEME_PROD_PIC_DIR_,
'controller_name' => htmlentities(Tools::getValue('controller')),
'currentIndex' => self::$currentIndex,
'bootstrap' => $this->bootstrap,
'default_language' => (int)Configuration::get('PS_LANG_DEFAULT')
));
$module = Module::getInstanceByName('themeconfigurator');
$lang = '';
if (Configuration::get('PS_REWRITING_SETTINGS') && count(Language::getLanguages(true)) > 1) {
$lang = Language::getIsoById($this->context->employee->id_lang).'/';
}
if (is_object($module) && $module->active && (int)Configuration::get('PS_TC_ACTIVE') == 1 && $this->context->shop->getBaseURL()) {
$this->context->smarty->assign(
'base_url_tc',
$this->context->shop->getBaseUrl()
.(Configuration::get('PS_REWRITING_SETTINGS') ? '' : 'index.php')
.$lang
.'?live_configurator_token='.$module->getLiveConfiguratorToken()
.'&id_employee='.(int)$this->context->employee->id
.'&id_shop='.(int)$this->context->shop->id
.(Configuration::get('PS_TC_THEME') != '' ? '&theme='.Configuration::get('PS_TC_THEME') : '')
.(Configuration::get('PS_TC_FONT') != '' ? '&theme_font='.Configuration::get('PS_TC_FONT') : '')
);
}
}
}

View File

@@ -0,0 +1,237 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
class AdminRevolutionsliderGlobalSettingsController extends ModuleAdminController {
public static $_revSliderJSON;
public function __construct()
{
if(Tools::getValue("view") == ""){
Tools::redirectAdmin('index.php?controller=AdminRevolutionsliderGlobalSettings&view=global_settings&token='.Tools::getAdminTokenLite('AdminRevolutionsliderGlobalSettings'));
}
$this->bootstrap = false;
$this->lang = false;
parent::__construct();
self::$_revSliderJSON = array(
'rev_lang' => array(
'wrong_alias' => $this->l('-- wrong alias -- '),
'nav_bullet_arrows_to_none' => $this->l('Navigation Bullets and Arrows are now set to none.'),
'create_template' => $this->l('Create Template'),
'really_want_to_delete' => $this->l('Do you really want to delete'),
'sure_to_replace_urls' => $this->l('Are you sure to replace the urls?'),
'set_settings_on_all_slider' => $this->l('Set selected settings on all Slides of this Slider? (This will be saved immediately)'),
'select_slide_img' => $this->l('Select Slide Image'),
'select_slide_video' => $this->l('Select Slide Video'),
'show_slide_opt' => $this->l('Show Slide Options'),
'hide_slide_opt' => $this->l('Hide Slide Options'),
'close' => $this->l('Close'),
'really_update_global_styles' => $this->l('Really update global styles?'),
'global_styles_editor' => $this->l('Global Styles Editor'),
'select_image' => $this->l('Select Image'),
'video_not_found' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'handle_at_least_three_chars' => $this->l('Handle has to be at least three character long'),
'really_change_font_sett' => $this->l('Really change font settings?'),
'really_delete_font' => $this->l('Really delete font?'),
'class_exist_overwrite' => $this->l('Class already exists, overwrite?'),
'class_must_be_valid' => $this->l('Class must be a valid CSS class name'),
'really_overwrite_class' => $this->l('Really overwrite Class?'),
'relly_delete_class' => $this->l('Really delete Class'),
'class_this_cant_be_undone' => $this->l('? This can\'t be undone!'),
'this_class_does_not_exist' => $this->l('This class does not exist.'),
'making_changes_will_probably_overwrite_advanced' => $this->l('Making changes to these settings will probably overwrite advanced settings. Continue?'),
'select_static_layer_image' => $this->l('Select Static Layer Image'),
'select_layer_image' => $this->l('Select Layer Image'),
'really_want_to_delete_all_layer' => $this->l('Do you really want to delete all the layers?'),
'layer_animation_editor' => $this->l('Layer Animation Editor'),
'animation_exists_overwrite' => $this->l('Animation already exists, overwrite?'),
'really_overwrite_animation' => $this->l('Really overwrite animation?'),
'default_animations_cant_delete' => $this->l('Default animations can\'t be deleted'),
'must_be_greater_than_start_time' => $this->l('Must be greater than start time'),
'sel_layer_not_set' => $this->l('Selected layer not set'),
'edit_layer_start' => $this->l('Edit Layer Start'),
'edit_layer_end' => $this->l('Edit Layer End'),
'default_animations_cant_rename' => $this->l('Default Animations can\'t be renamed'),
'anim_name_already_exists' => $this->l('Animationname already existing'),
'css_name_already_exists' => $this->l('CSS classname already existing'),
'css_orig_name_does_not_exists' => $this->l('Original CSS classname not found'),
'enter_correct_class_name' => $this->l('Enter a correct class name'),
'class_not_found' => $this->l('Class not found in database'),
'css_name_does_not_exists' => $this->l('CSS classname not found'),
'delete_this_caption' => $this->l('Delete this caption? This may affect other Slider'),
'this_will_change_the_class' => $this->l('This will update the Class with the current set Style settings, this may affect other Sliders. Proceed?'),
'unsaved_changes_will_not_be_added' => $this->l('Template will have the state of the last save, proceed?'),
'please_enter_a_slide_title' => $this->l('Please enter a Slide title'),
'please_wait_a_moment' => $this->l('Please Wait a Moment'),
'copy_move' => $this->l('Copy / Move'),
'preset_loaded' => $this->l('Preset Loaded'),
'add_bulk_slides' => $this->l('Add Bulk Slides'),
'select_image' => $this->l('Select Image'),
'arrows' => $this->l('Arrows'),
'bullets' => $this->l('Bullets'),
'thumbnails' => $this->l('Thumbnails'),
'tabs' => $this->l('Tabs'),
'delete_navigation' => $this->l('Delete this Navigation?'),
'could_not_update_nav_name' => $this->l('Navigation name could not be updated'),
'name_too_short_sanitize_3' => $this->l('Name too short, at least 3 letters between a-zA-z needed'),
'nav_name_already_exists' => $this->l('Navigation name already exists, please choose a different name'),
'remove_nav_element' => $this->l('Remove current element from Navigation?'),
'create_this_nav_element' => $this->l('This navigation element does not exist, create one?'),
'overwrite_animation' => $this->l('Overwrite current animation?'),
'cant_modify_default_anims' => $this->l('Default animations can\'t be changed'),
'anim_with_handle_exists' => $this->l('Animation already existing with given handle, please choose a different name.'),
'really_delete_anim' => $this->l('Really delete animation:'),
'this_will_reset_navigation' => $this->l('This will reset the navigation, continue?'),
'preset_name_already_exists' => $this->l('Preset name already exists, please choose a different name'),
'delete_preset' => $this->l('Really delete this preset?'),
'update_preset' => $this->l('This will update the preset with the current settings. Proceed?'),
'maybe_wrong_yt_id' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'preset_not_found' => $this->l('Preset not found'),
'cover_image_needs_to_be_set' => $this->l('Cover Image need to be set for videos'),
'remove_this_action' => $this->l('Really remove this action?'),
'layer_action_by' => $this->l('Layer is triggered by '),
'due_to_action' => $this->l(' due to action: '),
'layer' => $this->l('layer:'),
'start_layer_in' => $this->l('Start Layer "in" animation'),
'start_layer_out' => $this->l('Start Layer "out" animation'),
'start_video' => $this->l('Start Video'),
'stop_video' => $this->l('Stop Video'),
'toggle_layer_anim' => $this->l('Toggle Layer Animation'),
'toggle_video' => $this->l('Toggle Video'),
'last_slide' => $this->l('Last Slide'),
'simulate_click' => $this->l('Simulate Click'),
'togglefullscreen' => $this->l('Toggle FullScreen'),
'gofullscreen' => $this->l('Go FullScreen'),
'exitfullscreen' => $this->l('Exit FullScreen'),
'toggle_class' => $this->l('Toogle Class'),
'copy_styles_to_hover_from_idle' => $this->l('Copy hover styles to idle?'),
'copy_styles_to_idle_from_hover' => $this->l('Copy idle styles to hover?'),
'select_at_least_one_device_type' => $this->l('Please select at least one device type'),
'please_select_first_an_existing_style' => $this->l('Please select an existing Style Template'),
'cant_remove_last_transition' => $this->l('Can not remove last transition!'),
'name_is_default_animations_cant_be_changed' => $this->l('Given animation name is a default animation. These can not be changed.'),
'override_animation' => $this->l('Animation exists, override existing animation?'),
'this_feature_only_if_activated' => $this->l('This feature is only available if you activate Slider Revolution for this installation'),
'unsaved_data_will_be_lost_proceed' => $this->l('Unsaved data will be lost, proceed?'),
'is_loading' => $this->l('is Loading...'),
'google_fonts_loaded' => $this->l('Google Fonts Loaded'),
'delete_layer' => $this->l('Delete Layer?'),
'this_template_requires_version' => $this->l('This template requires at least version'),
'of_slider_revolution' => $this->l('of Slider Revolution to work.'),
'slider_revolution_shortcode_creator' => $this->l('Slider Revolution Shortcode Creator'),
'slider_informations_are_missing' => $this->l('Slider informations are missing!'),
'shortcode_generator' => $this->l('Shortcode Generator'),
'please_add_at_least_one_layer' => $this->l('Please add at least one Layer.'),
'choose_image' => $this->l('Choose Image'),
'shortcode_parsing_successfull' => $this->l('Shortcode parsing successfull. Items can be found in step 3'),
'shortcode_could_not_be_correctly_parsed' => $this->l('Shortcode could not be parsed.')
)
);
}
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJqueryUI(array('ui.core'));
$this->context->controller->addJqueryPlugin('autocomplete');
$path_css = _MODULE_DIR_ . $this->module->name.'/admin/assets/css/';
$path_js = _MODULE_DIR_ . $this->module->name.'/admin/assets/js/';
$this->addCSS($path_css . 'admin.css');
$this->addCSS($path_css . 'tipsy.css');
$this->addCSS($path_css . 'colors.min.css');
$this->addCSS($path_css . 'edit_layers.css');
$this->addCSS($path_css . 'global.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/css/settings.css');
Media::addJsDef(self::$_revSliderJSON);
$this->addCSS("//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600,800");
$this->addCSS($path_css . 'thickbox.css');
$this->context->controller->addJqueryUI(array('ui.dialog'));
$this->addCSS($path_js . 'codemirror/codemirror.css');
$this->addCSS($path_css . 'color-picker.css');
$this->addCSS($path_css . 'tp-color-picker.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/font-awesome/css/font-awesome.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css');
$this->addCSS($path_css . 'demo.css');
$this->addJS($path_js . 'jquery/core.min.js');
$this->addJS($path_js . 'underscore.min.js');
$this->context->controller->addJqueryUI(array('ui.widget'));
$this->context->controller->addJqueryUI(array('ui.mouse'));
$this->context->controller->addJqueryUI(array('ui.accordion'));
$this->context->controller->addJqueryUI(array('ui.datepicker'));
$this->context->controller->addJqueryUI(array('ui.slider'));
$this->context->controller->addJqueryUI(array('ui.menu'));
$this->context->controller->addJqueryUI(array('ui.autocomplete'));
$this->context->controller->addJqueryUI(array('ui.sortable'));
$this->context->controller->addJqueryUI(array('ui.droppable'));
$this->context->controller->addJqueryUI(array('ui.tabs'));
$this->addJS($path_js . 'color-picker.js');
$this->context->controller->addJqueryUI(array('ui.resizable'));
$this->context->controller->addJqueryUI(array('ui.draggable'));
$this->addJS($path_js . 'settings.js');
$this->addJS($path_js . 'admin.js');
$this->addJS($path_js . 'thickbox.js');
$this->addJS($path_js . 'jquery.tipsy.js');
$this->addJS($path_js . 'codemirror/codemirror.js');
$this->addJS($path_js . 'codemirror/util/match-highlighter.js');
$this->addJS($path_js . 'codemirror/util/searchcursor.js');
$this->addJS($path_js . 'codemirror/css.js');
$this->addJS($path_js . 'codemirror/xml.js');
$this->addJS($path_js . 'edit_layers_timeline.js');
$this->addJS($path_js . 'context_menu.js');
$this->addJS($path_js . 'edit_layers.js');
$this->addJS($path_js . 'css_editor.js');
$this->addJS($path_js . 'rev_admin.js');
$this->context->controller->addJqueryUI(array('ui.position'));
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/jquery.themepunch.tools.min.js');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/tp-color-picker.min.js');
$this->addJS($path_js . '/js/jquery/iris.min.js');
//
}
public function initContent(){
$this->content = $this->displayHeader();
$this->content .= $this->overview();
$this->content .= $this->displayfooter();
parent::initContent();
}
public function overview() {
ob_start();
$productAdmin = new RevSliderAdmin();
$output = ob_get_contents();
ob_end_clean();
// die($output);
return $output;
}
}

View File

@@ -0,0 +1,226 @@
<?php
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class AdminRevolutionsliderNavigationController extends ModuleAdminController
{
public static $_revSliderJSON;
public function __construct()
{
if(Tools::getValue("view") == ""){
Tools::redirectAdmin('index.php?controller=AdminRevolutionsliderNavigation&view=revslider_navigation&token='.Tools::getAdminTokenLite('AdminRevolutionsliderNavigation'));
}
$this->bootstrap = false;
$this->lang = false;
parent::__construct();
self::$_revSliderJSON = array(
'rev_lang' => array(
'wrong_alias' => $this->l('-- wrong alias -- '),
'nav_bullet_arrows_to_none' => $this->l('Navigation Bullets and Arrows are now set to none.'),
'create_template' => $this->l('Create Template'),
'really_want_to_delete' => $this->l('Do you really want to delete'),
'sure_to_replace_urls' => $this->l('Are you sure to replace the urls?'),
'set_settings_on_all_slider' => $this->l('Set selected settings on all Slides of this Slider? (This will be saved immediately)'),
'select_slide_img' => $this->l('Select Slide Image'),
'select_slide_video' => $this->l('Select Slide Video'),
'show_slide_opt' => $this->l('Show Slide Options'),
'hide_slide_opt' => $this->l('Hide Slide Options'),
'close' => $this->l('Close'),
'really_update_global_styles' => $this->l('Really update global styles?'),
'global_styles_editor' => $this->l('Global Styles Editor'),
'select_image' => $this->l('Select Image'),
'video_not_found' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'handle_at_least_three_chars' => $this->l('Handle has to be at least three character long'),
'really_change_font_sett' => $this->l('Really change font settings?'),
'really_delete_font' => $this->l('Really delete font?'),
'class_exist_overwrite' => $this->l('Class already exists, overwrite?'),
'class_must_be_valid' => $this->l('Class must be a valid CSS class name'),
'really_overwrite_class' => $this->l('Really overwrite Class?'),
'relly_delete_class' => $this->l('Really delete Class'),
'class_this_cant_be_undone' => $this->l('? This can\'t be undone!'),
'this_class_does_not_exist' => $this->l('This class does not exist.'),
'making_changes_will_probably_overwrite_advanced' => $this->l('Making changes to these settings will probably overwrite advanced settings. Continue?'),
'select_static_layer_image' => $this->l('Select Static Layer Image'),
'select_layer_image' => $this->l('Select Layer Image'),
'really_want_to_delete_all_layer' => $this->l('Do you really want to delete all the layers?'),
'layer_animation_editor' => $this->l('Layer Animation Editor'),
'animation_exists_overwrite' => $this->l('Animation already exists, overwrite?'),
'really_overwrite_animation' => $this->l('Really overwrite animation?'),
'default_animations_cant_delete' => $this->l('Default animations can\'t be deleted'),
'must_be_greater_than_start_time' => $this->l('Must be greater than start time'),
'sel_layer_not_set' => $this->l('Selected layer not set'),
'edit_layer_start' => $this->l('Edit Layer Start'),
'edit_layer_end' => $this->l('Edit Layer End'),
'default_animations_cant_rename' => $this->l('Default Animations can\'t be renamed'),
'anim_name_already_exists' => $this->l('Animationname already existing'),
'css_name_already_exists' => $this->l('CSS classname already existing'),
'css_orig_name_does_not_exists' => $this->l('Original CSS classname not found'),
'enter_correct_class_name' => $this->l('Enter a correct class name'),
'class_not_found' => $this->l('Class not found in database'),
'css_name_does_not_exists' => $this->l('CSS classname not found'),
'delete_this_caption' => $this->l('Delete this caption? This may affect other Slider'),
'this_will_change_the_class' => $this->l('This will update the Class with the current set Style settings, this may affect other Sliders. Proceed?'),
'unsaved_changes_will_not_be_added' => $this->l('Template will have the state of the last save, proceed?'),
'please_enter_a_slide_title' => $this->l('Please enter a Slide title'),
'please_wait_a_moment' => $this->l('Please Wait a Moment'),
'copy_move' => $this->l('Copy / Move'),
'preset_loaded' => $this->l('Preset Loaded'),
'add_bulk_slides' => $this->l('Add Bulk Slides'),
'select_image' => $this->l('Select Image'),
'arrows' => $this->l('Arrows'),
'bullets' => $this->l('Bullets'),
'thumbnails' => $this->l('Thumbnails'),
'tabs' => $this->l('Tabs'),
'delete_navigation' => $this->l('Delete this Navigation?'),
'could_not_update_nav_name' => $this->l('Navigation name could not be updated'),
'name_too_short_sanitize_3' => $this->l('Name too short, at least 3 letters between a-zA-z needed'),
'nav_name_already_exists' => $this->l('Navigation name already exists, please choose a different name'),
'remove_nav_element' => $this->l('Remove current element from Navigation?'),
'create_this_nav_element' => $this->l('This navigation element does not exist, create one?'),
'overwrite_animation' => $this->l('Overwrite current animation?'),
'cant_modify_default_anims' => $this->l('Default animations can\'t be changed'),
'anim_with_handle_exists' => $this->l('Animation already existing with given handle, please choose a different name.'),
'really_delete_anim' => $this->l('Really delete animation:'),
'this_will_reset_navigation' => $this->l('This will reset the navigation, continue?'),
'preset_name_already_exists' => $this->l('Preset name already exists, please choose a different name'),
'delete_preset' => $this->l('Really delete this preset?'),
'update_preset' => $this->l('This will update the preset with the current settings. Proceed?'),
'maybe_wrong_yt_id' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'preset_not_found' => $this->l('Preset not found'),
'cover_image_needs_to_be_set' => $this->l('Cover Image need to be set for videos'),
'remove_this_action' => $this->l('Really remove this action?'),
'layer_action_by' => $this->l('Layer is triggered by '),
'due_to_action' => $this->l(' due to action: '),
'layer' => $this->l('layer:'),
'start_layer_in' => $this->l('Start Layer "in" animation'),
'start_layer_out' => $this->l('Start Layer "out" animation'),
'start_video' => $this->l('Start Video'),
'stop_video' => $this->l('Stop Video'),
'toggle_layer_anim' => $this->l('Toggle Layer Animation'),
'toggle_video' => $this->l('Toggle Video'),
'last_slide' => $this->l('Last Slide'),
'simulate_click' => $this->l('Simulate Click'),
'togglefullscreen' => $this->l('Toggle FullScreen'),
'gofullscreen' => $this->l('Go FullScreen'),
'exitfullscreen' => $this->l('Exit FullScreen'),
'toggle_class' => $this->l('Toogle Class'),
'copy_styles_to_hover_from_idle' => $this->l('Copy hover styles to idle?'),
'copy_styles_to_idle_from_hover' => $this->l('Copy idle styles to hover?'),
'select_at_least_one_device_type' => $this->l('Please select at least one device type'),
'please_select_first_an_existing_style' => $this->l('Please select an existing Style Template'),
'cant_remove_last_transition' => $this->l('Can not remove last transition!'),
'name_is_default_animations_cant_be_changed' => $this->l('Given animation name is a default animation. These can not be changed.'),
'override_animation' => $this->l('Animation exists, override existing animation?'),
'this_feature_only_if_activated' => $this->l('This feature is only available if you activate Slider Revolution for this installation'),
'unsaved_data_will_be_lost_proceed' => $this->l('Unsaved data will be lost, proceed?'),
'is_loading' => $this->l('is Loading...'),
'google_fonts_loaded' => $this->l('Google Fonts Loaded'),
'delete_layer' => $this->l('Delete Layer?'),
'this_template_requires_version' => $this->l('This template requires at least version'),
'of_slider_revolution' => $this->l('of Slider Revolution to work.'),
'slider_revolution_shortcode_creator' => $this->l('Slider Revolution Shortcode Creator'),
'slider_informations_are_missing' => $this->l('Slider informations are missing!'),
'shortcode_generator' => $this->l('Shortcode Generator'),
'please_add_at_least_one_layer' => $this->l('Please add at least one Layer.'),
'choose_image' => $this->l('Choose Image'),
'shortcode_parsing_successfull' => $this->l('Shortcode parsing successfull. Items can be found in step 3'),
'shortcode_could_not_be_correctly_parsed' => $this->l('Shortcode could not be parsed.')
)
);
}
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJqueryUI(array('ui.core'));
$this->context->controller->addJqueryPlugin('autocomplete');
$path_css = _MODULE_DIR_ . $this->module->name.'/admin/assets/css/';
$path_js = _MODULE_DIR_ . $this->module->name.'/admin/assets/js/';
$this->addCSS($path_css . 'admin.css');
$this->addCSS($path_css . 'tipsy.css');
$this->addCSS($path_css . 'colors.min.css');
$this->addCSS($path_css . 'edit_layers.css');
$this->addCSS($path_css . 'global.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/css/settings.css');
Media::addJsDef(self::$_revSliderJSON);
$this->addCSS("//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600,800");
$this->addCSS($path_css . 'thickbox.css');
$this->context->controller->addJqueryUI(array('ui.dialog'));
$this->addCSS($path_js . 'codemirror/codemirror.css');
$this->addCSS($path_css . 'color-picker.css');
$this->addCSS($path_css . 'tp-color-picker.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/font-awesome/css/font-awesome.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css');
$this->addCSS($path_css . 'demo.css');
$this->addJS($path_js . 'jquery/core.min.js');
$this->addJS($path_js . 'underscore.min.js');
$this->context->controller->addJqueryUI(array('ui.widget'));
$this->context->controller->addJqueryUI(array('ui.mouse'));
$this->context->controller->addJqueryUI(array('ui.accordion'));
$this->context->controller->addJqueryUI(array('ui.datepicker'));
$this->context->controller->addJqueryUI(array('ui.slider'));
$this->context->controller->addJqueryUI(array('ui.menu'));
$this->context->controller->addJqueryUI(array('ui.autocomplete'));
$this->context->controller->addJqueryUI(array('ui.sortable'));
$this->context->controller->addJqueryUI(array('ui.droppable'));
$this->context->controller->addJqueryUI(array('ui.tabs'));
$this->addJS($path_js . 'color-picker.js');
$this->context->controller->addJqueryUI(array('ui.resizable'));
$this->context->controller->addJqueryUI(array('ui.draggable'));
$this->addJS($path_js . 'settings.js');
$this->addJS($path_js . 'admin.js');
$this->addJS($path_js . 'thickbox.js');
$this->addJS($path_js . 'jquery.tipsy.js');
$this->addJS($path_js . 'codemirror/codemirror.js');
$this->addJS($path_js . 'codemirror/util/match-highlighter.js');
$this->addJS($path_js . 'codemirror/util/searchcursor.js');
$this->addJS($path_js . 'codemirror/css.js');
$this->addJS($path_js . 'codemirror/xml.js');
$this->addJS($path_js . 'edit_layers_timeline.js');
$this->addJS($path_js . 'context_menu.js');
$this->addJS($path_js . 'edit_layers.js');
$this->addJS($path_js . 'css_editor.js');
$this->addJS($path_js . 'rev_admin.js');
$this->context->controller->addJqueryUI(array('ui.position'));
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/jquery.themepunch.tools.min.js');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/tp-color-picker.min.js');
$this->addJS($path_js . '/js/jquery/iris.min.js');
//
}
public function initContent(){
$this->content = $this->displayHeader();
$this->content .= $this->overview();
$this->content .= $this->displayfooter();
parent::initContent();
}
public function overview() {
ob_start();
$productAdmin = new RevSliderAdmin();
$output = ob_get_contents();
ob_end_clean();
// die($output);
return $output;
}
}

View File

@@ -0,0 +1,228 @@
<?php
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class AdminRevsliderController extends ModuleAdminController
{
public static $_revSliderJSON;
public function __construct()
{
$this->bootstrap = false;
$this->lang = false;
parent::__construct();
self::$_revSliderJSON = array(
'rev_lang' => array(
'wrong_alias' => $this->l('-- wrong alias -- '),
'nav_bullet_arrows_to_none' => $this->l('Navigation Bullets and Arrows are now set to none.'),
'create_template' => $this->l('Create Template'),
'really_want_to_delete' => $this->l('Do you really want to delete'),
'sure_to_replace_urls' => $this->l('Are you sure to replace the urls?'),
'set_settings_on_all_slider' => $this->l('Set selected settings on all Slides of this Slider? (This will be saved immediately)'),
'select_slide_img' => $this->l('Select Slide Image'),
'select_slide_video' => $this->l('Select Slide Video'),
'show_slide_opt' => $this->l('Show Slide Options'),
'hide_slide_opt' => $this->l('Hide Slide Options'),
'close' => $this->l('Close'),
'really_update_global_styles' => $this->l('Really update global styles?'),
'global_styles_editor' => $this->l('Global Styles Editor'),
'select_image' => $this->l('Select Image'),
'video_not_found' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'handle_at_least_three_chars' => $this->l('Handle has to be at least three character long'),
'really_change_font_sett' => $this->l('Really change font settings?'),
'really_delete_font' => $this->l('Really delete font?'),
'class_exist_overwrite' => $this->l('Class already exists, overwrite?'),
'class_must_be_valid' => $this->l('Class must be a valid CSS class name'),
'really_overwrite_class' => $this->l('Really overwrite Class?'),
'relly_delete_class' => $this->l('Really delete Class'),
'class_this_cant_be_undone' => $this->l('? This can\'t be undone!'),
'this_class_does_not_exist' => $this->l('This class does not exist.'),
'making_changes_will_probably_overwrite_advanced' => $this->l('Making changes to these settings will probably overwrite advanced settings. Continue?'),
'select_static_layer_image' => $this->l('Select Static Layer Image'),
'select_layer_image' => $this->l('Select Layer Image'),
'really_want_to_delete_all_layer' => $this->l('Do you really want to delete all the layers?'),
'layer_animation_editor' => $this->l('Layer Animation Editor'),
'animation_exists_overwrite' => $this->l('Animation already exists, overwrite?'),
'really_overwrite_animation' => $this->l('Really overwrite animation?'),
'default_animations_cant_delete' => $this->l('Default animations can\'t be deleted'),
'must_be_greater_than_start_time' => $this->l('Must be greater than start time'),
'sel_layer_not_set' => $this->l('Selected layer not set'),
'edit_layer_start' => $this->l('Edit Layer Start'),
'edit_layer_end' => $this->l('Edit Layer End'),
'default_animations_cant_rename' => $this->l('Default Animations can\'t be renamed'),
'anim_name_already_exists' => $this->l('Animationname already existing'),
'css_name_already_exists' => $this->l('CSS classname already existing'),
'css_orig_name_does_not_exists' => $this->l('Original CSS classname not found'),
'enter_correct_class_name' => $this->l('Enter a correct class name'),
'class_not_found' => $this->l('Class not found in database'),
'css_name_does_not_exists' => $this->l('CSS classname not found'),
'delete_this_caption' => $this->l('Delete this caption? This may affect other Slider'),
'this_will_change_the_class' => $this->l('This will update the Class with the current set Style settings, this may affect other Sliders. Proceed?'),
'unsaved_changes_will_not_be_added' => $this->l('Template will have the state of the last save, proceed?'),
'please_enter_a_slide_title' => $this->l('Please enter a Slide title'),
'please_wait_a_moment' => $this->l('Please Wait a Moment'),
'copy_move' => $this->l('Copy / Move'),
'preset_loaded' => $this->l('Preset Loaded'),
'add_bulk_slides' => $this->l('Add Bulk Slides'),
'select_image' => $this->l('Select Image'),
'arrows' => $this->l('Arrows'),
'bullets' => $this->l('Bullets'),
'thumbnails' => $this->l('Thumbnails'),
'tabs' => $this->l('Tabs'),
'delete_navigation' => $this->l('Delete this Navigation?'),
'could_not_update_nav_name' => $this->l('Navigation name could not be updated'),
'name_too_short_sanitize_3' => $this->l('Name too short, at least 3 letters between a-zA-z needed'),
'nav_name_already_exists' => $this->l('Navigation name already exists, please choose a different name'),
'remove_nav_element' => $this->l('Remove current element from Navigation?'),
'create_this_nav_element' => $this->l('This navigation element does not exist, create one?'),
'overwrite_animation' => $this->l('Overwrite current animation?'),
'cant_modify_default_anims' => $this->l('Default animations can\'t be changed'),
'anim_with_handle_exists' => $this->l('Animation already existing with given handle, please choose a different name.'),
'really_delete_anim' => $this->l('Really delete animation:'),
'this_will_reset_navigation' => $this->l('This will reset the navigation, continue?'),
'preset_name_already_exists' => $this->l('Preset name already exists, please choose a different name'),
'delete_preset' => $this->l('Really delete this preset?'),
'update_preset' => $this->l('This will update the preset with the current settings. Proceed?'),
'maybe_wrong_yt_id' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'preset_not_found' => $this->l('Preset not found'),
'cover_image_needs_to_be_set' => $this->l('Cover Image need to be set for videos'),
'remove_this_action' => $this->l('Really remove this action?'),
'layer_action_by' => $this->l('Layer is triggered by '),
'due_to_action' => $this->l(' due to action: '),
'layer' => $this->l('layer:'),
'start_layer_in' => $this->l('Start Layer "in" animation'),
'start_layer_out' => $this->l('Start Layer "out" animation'),
'start_video' => $this->l('Start Video'),
'stop_video' => $this->l('Stop Video'),
'toggle_layer_anim' => $this->l('Toggle Layer Animation'),
'toggle_video' => $this->l('Toggle Video'),
'last_slide' => $this->l('Last Slide'),
'simulate_click' => $this->l('Simulate Click'),
'togglefullscreen' => $this->l('Toggle FullScreen'),
'gofullscreen' => $this->l('Go FullScreen'),
'exitfullscreen' => $this->l('Exit FullScreen'),
'toggle_class' => $this->l('Toogle Class'),
'copy_styles_to_hover_from_idle' => $this->l('Copy hover styles to idle?'),
'copy_styles_to_idle_from_hover' => $this->l('Copy idle styles to hover?'),
'select_at_least_one_device_type' => $this->l('Please select at least one device type'),
'please_select_first_an_existing_style' => $this->l('Please select an existing Style Template'),
'cant_remove_last_transition' => $this->l('Can not remove last transition!'),
'name_is_default_animations_cant_be_changed' => $this->l('Given animation name is a default animation. These can not be changed.'),
'override_animation' => $this->l('Animation exists, override existing animation?'),
'this_feature_only_if_activated' => $this->l('This feature is only available if you activate Slider Revolution for this installation'),
'unsaved_data_will_be_lost_proceed' => $this->l('Unsaved data will be lost, proceed?'),
'is_loading' => $this->l('is Loading...'),
'google_fonts_loaded' => $this->l('Google Fonts Loaded'),
'delete_layer' => $this->l('Delete Layer?'),
'this_template_requires_version' => $this->l('This template requires at least version'),
'of_slider_revolution' => $this->l('of Slider Revolution to work.'),
'slider_revolution_shortcode_creator' => $this->l('Slider Revolution Shortcode Creator'),
'slider_informations_are_missing' => $this->l('Slider informations are missing!'),
'shortcode_generator' => $this->l('Shortcode Generator'),
'please_add_at_least_one_layer' => $this->l('Please add at least one Layer.'),
'choose_image' => $this->l('Choose Image'),
'shortcode_parsing_successfull' => $this->l('Shortcode parsing successfull. Items can be found in step 3'),
'shortcode_could_not_be_correctly_parsed' => $this->l('Shortcode could not be parsed.')
)
);
}
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJqueryUI(array('ui.core'));
$this->context->controller->addJqueryPlugin('autocomplete');
$path_css = _MODULE_DIR_ . $this->module->name.'/admin/assets/css/';
$path_js = _MODULE_DIR_ . $this->module->name.'/admin/assets/js/';
$this->addCSS($path_css . 'admin.css');
$this->addCSS($path_css . 'tipsy.css');
$this->addCSS($path_css . 'colors.min.css');
$this->addCSS($path_css . 'edit_layers.css');
$this->addCSS($path_css . 'global.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/css/settings.css');
Media::addJsDef(self::$_revSliderJSON);
$this->addCSS("//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600,800");
$this->addCSS($path_css . 'thickbox.css');
$this->context->controller->addJqueryUI(array('ui.dialog'));
$this->addCSS($path_js . 'codemirror/codemirror.css');
$this->addCSS($path_css . 'color-picker.css');
$this->addCSS($path_css . 'tp-color-picker.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/font-awesome/css/font-awesome.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css');
$this->addCSS($path_css . 'demo.css');
$this->addJS($path_js . 'jquery/core.min.js');
$this->addJS($path_js . 'underscore.min.js');
$this->context->controller->addJqueryUI(array('ui.widget'));
$this->context->controller->addJqueryUI(array('ui.mouse'));
$this->context->controller->addJqueryUI(array('ui.accordion'));
$this->context->controller->addJqueryUI(array('ui.datepicker'));
$this->context->controller->addJqueryUI(array('ui.slider'));
$this->context->controller->addJqueryUI(array('ui.menu'));
$this->context->controller->addJqueryUI(array('ui.autocomplete'));
$this->context->controller->addJqueryUI(array('ui.sortable'));
$this->context->controller->addJqueryUI(array('ui.droppable'));
$this->context->controller->addJqueryUI(array('ui.tabs'));
$this->addJS($path_js . 'color-picker.js');
$this->context->controller->addJqueryUI(array('ui.resizable'));
$this->context->controller->addJqueryUI(array('ui.draggable'));
$this->addJS($path_js . 'settings.js');
$this->addJS($path_js . 'admin.js');
$this->addJS($path_js . 'thickbox.js');
$this->addJS($path_js . 'jquery.tipsy.js');
$this->addJS($path_js . 'codemirror/codemirror.js');
$this->addJS($path_js . 'codemirror/util/match-highlighter.js');
$this->addJS($path_js . 'codemirror/util/searchcursor.js');
$this->addJS($path_js . 'codemirror/css.js');
$this->addJS($path_js . 'codemirror/xml.js');
$this->addJS($path_js . 'edit_layers_timeline.js');
$this->addJS($path_js . 'context_menu.js');
$this->addJS($path_js . 'edit_layers.js');
$this->addJS($path_js . 'css_editor.js');
$this->addJS($path_js . 'rev_admin.js');
$this->context->controller->addJqueryUI(array('ui.position'));
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/jquery.themepunch.tools.min.js');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/tp-color-picker.min.js');
$this->addJS($path_js . 'iris.min.js');
if(Tools::getValue("page")=='rev_addon'){
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/admin/assets/css/rev_addon-admin.css');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/admin/assets/js/rev_addon-admin.js');
}
//
}
public function initContent(){
$this->content = $this->displayHeader();
$this->content .= $this->overview();
$this->content .= $this->displayfooter();
parent::initContent();
}
public function overview() {
ob_start();
$productAdmin = new RevSliderAdmin();
$output = ob_get_contents();
ob_end_clean();
// die($output);
return $output;
}
}

View File

@@ -0,0 +1,225 @@
<?php
/**
* 2016 Revolution Slider
*
* @author SmatDataSoft <support@smartdatasoft.com>
* @copyright 2016 SmatDataSoft
* @license private
* @version 5.1.3
* International Registered Trademark & Property of SmatDataSoft
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class AdminRevsliderSlidersController extends ModuleAdminController
{
public static $_revSliderJSON;
public function __construct()
{
$this->bootstrap = false;
$this->lang = false;
parent::__construct();
self::$_revSliderJSON = array(
'rev_lang' => array(
'wrong_alias' => $this->l('-- wrong alias -- '),
'nav_bullet_arrows_to_none' => $this->l('Navigation Bullets and Arrows are now set to none.'),
'create_template' => $this->l('Create Template'),
'really_want_to_delete' => $this->l('Do you really want to delete'),
'sure_to_replace_urls' => $this->l('Are you sure to replace the urls?'),
'set_settings_on_all_slider' => $this->l('Set selected settings on all Slides of this Slider? (This will be saved immediately)'),
'select_slide_img' => $this->l('Select Slide Image'),
'select_slide_video' => $this->l('Select Slide Video'),
'show_slide_opt' => $this->l('Show Slide Options'),
'hide_slide_opt' => $this->l('Hide Slide Options'),
'close' => $this->l('Close'),
'really_update_global_styles' => $this->l('Really update global styles?'),
'global_styles_editor' => $this->l('Global Styles Editor'),
'select_image' => $this->l('Select Image'),
'video_not_found' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'handle_at_least_three_chars' => $this->l('Handle has to be at least three character long'),
'really_change_font_sett' => $this->l('Really change font settings?'),
'really_delete_font' => $this->l('Really delete font?'),
'class_exist_overwrite' => $this->l('Class already exists, overwrite?'),
'class_must_be_valid' => $this->l('Class must be a valid CSS class name'),
'really_overwrite_class' => $this->l('Really overwrite Class?'),
'relly_delete_class' => $this->l('Really delete Class'),
'class_this_cant_be_undone' => $this->l('? This can\'t be undone!'),
'this_class_does_not_exist' => $this->l('This class does not exist.'),
'making_changes_will_probably_overwrite_advanced' => $this->l('Making changes to these settings will probably overwrite advanced settings. Continue?'),
'select_static_layer_image' => $this->l('Select Static Layer Image'),
'select_layer_image' => $this->l('Select Layer Image'),
'really_want_to_delete_all_layer' => $this->l('Do you really want to delete all the layers?'),
'layer_animation_editor' => $this->l('Layer Animation Editor'),
'animation_exists_overwrite' => $this->l('Animation already exists, overwrite?'),
'really_overwrite_animation' => $this->l('Really overwrite animation?'),
'default_animations_cant_delete' => $this->l('Default animations can\'t be deleted'),
'must_be_greater_than_start_time' => $this->l('Must be greater than start time'),
'sel_layer_not_set' => $this->l('Selected layer not set'),
'edit_layer_start' => $this->l('Edit Layer Start'),
'edit_layer_end' => $this->l('Edit Layer End'),
'default_animations_cant_rename' => $this->l('Default Animations can\'t be renamed'),
'anim_name_already_exists' => $this->l('Animationname already existing'),
'css_name_already_exists' => $this->l('CSS classname already existing'),
'css_orig_name_does_not_exists' => $this->l('Original CSS classname not found'),
'enter_correct_class_name' => $this->l('Enter a correct class name'),
'class_not_found' => $this->l('Class not found in database'),
'css_name_does_not_exists' => $this->l('CSS classname not found'),
'delete_this_caption' => $this->l('Delete this caption? This may affect other Slider'),
'this_will_change_the_class' => $this->l('This will update the Class with the current set Style settings, this may affect other Sliders. Proceed?'),
'unsaved_changes_will_not_be_added' => $this->l('Template will have the state of the last save, proceed?'),
'please_enter_a_slide_title' => $this->l('Please enter a Slide title'),
'please_wait_a_moment' => $this->l('Please Wait a Moment'),
'copy_move' => $this->l('Copy / Move'),
'preset_loaded' => $this->l('Preset Loaded'),
'add_bulk_slides' => $this->l('Add Bulk Slides'),
'select_image' => $this->l('Select Image'),
'arrows' => $this->l('Arrows'),
'bullets' => $this->l('Bullets'),
'thumbnails' => $this->l('Thumbnails'),
'tabs' => $this->l('Tabs'),
'delete_navigation' => $this->l('Delete this Navigation?'),
'could_not_update_nav_name' => $this->l('Navigation name could not be updated'),
'name_too_short_sanitize_3' => $this->l('Name too short, at least 3 letters between a-zA-z needed'),
'nav_name_already_exists' => $this->l('Navigation name already exists, please choose a different name'),
'remove_nav_element' => $this->l('Remove current element from Navigation?'),
'create_this_nav_element' => $this->l('This navigation element does not exist, create one?'),
'overwrite_animation' => $this->l('Overwrite current animation?'),
'cant_modify_default_anims' => $this->l('Default animations can\'t be changed'),
'anim_with_handle_exists' => $this->l('Animation already existing with given handle, please choose a different name.'),
'really_delete_anim' => $this->l('Really delete animation:'),
'this_will_reset_navigation' => $this->l('This will reset the navigation, continue?'),
'preset_name_already_exists' => $this->l('Preset name already exists, please choose a different name'),
'delete_preset' => $this->l('Really delete this preset?'),
'update_preset' => $this->l('This will update the preset with the current settings. Proceed?'),
'maybe_wrong_yt_id' => $this->l('No Thumbnail Image Set on Video / Video Not Found / No Valid Video ID'),
'preset_not_found' => $this->l('Preset not found'),
'cover_image_needs_to_be_set' => $this->l('Cover Image need to be set for videos'),
'remove_this_action' => $this->l('Really remove this action?'),
'layer_action_by' => $this->l('Layer is triggered by '),
'due_to_action' => $this->l(' due to action: '),
'layer' => $this->l('layer:'),
'start_layer_in' => $this->l('Start Layer "in" animation'),
'start_layer_out' => $this->l('Start Layer "out" animation'),
'start_video' => $this->l('Start Video'),
'stop_video' => $this->l('Stop Video'),
'toggle_layer_anim' => $this->l('Toggle Layer Animation'),
'toggle_video' => $this->l('Toggle Video'),
'last_slide' => $this->l('Last Slide'),
'simulate_click' => $this->l('Simulate Click'),
'togglefullscreen' => $this->l('Toggle FullScreen'),
'gofullscreen' => $this->l('Go FullScreen'),
'exitfullscreen' => $this->l('Exit FullScreen'),
'toggle_class' => $this->l('Toogle Class'),
'copy_styles_to_hover_from_idle' => $this->l('Copy hover styles to idle?'),
'copy_styles_to_idle_from_hover' => $this->l('Copy idle styles to hover?'),
'select_at_least_one_device_type' => $this->l('Please select at least one device type'),
'please_select_first_an_existing_style' => $this->l('Please select an existing Style Template'),
'cant_remove_last_transition' => $this->l('Can not remove last transition!'),
'name_is_default_animations_cant_be_changed' => $this->l('Given animation name is a default animation. These can not be changed.'),
'override_animation' => $this->l('Animation exists, override existing animation?'),
'this_feature_only_if_activated' => $this->l('This feature is only available if you activate Slider Revolution for this installation'),
'unsaved_data_will_be_lost_proceed' => $this->l('Unsaved data will be lost, proceed?'),
'is_loading' => $this->l('is Loading...'),
'google_fonts_loaded' => $this->l('Google Fonts Loaded'),
'delete_layer' => $this->l('Delete Layer?'),
'this_template_requires_version' => $this->l('This template requires at least version'),
'of_slider_revolution' => $this->l('of Slider Revolution to work.'),
'slider_revolution_shortcode_creator' => $this->l('Slider Revolution Shortcode Creator'),
'slider_informations_are_missing' => $this->l('Slider informations are missing!'),
'shortcode_generator' => $this->l('Shortcode Generator'),
'please_add_at_least_one_layer' => $this->l('Please add at least one Layer.'),
'choose_image' => $this->l('Choose Image'),
'shortcode_parsing_successfull' => $this->l('Shortcode parsing successfull. Items can be found in step 3'),
'shortcode_could_not_be_correctly_parsed' => $this->l('Shortcode could not be parsed.')
)
);
}
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJqueryUI(array('ui.core'));
$this->context->controller->addJqueryPlugin('autocomplete');
$path_css = _MODULE_DIR_ . $this->module->name.'/admin/assets/css/';
$path_js = _MODULE_DIR_ . $this->module->name.'/admin/assets/js/';
$this->addCSS($path_css . 'admin.css');
$this->addCSS($path_css . 'tipsy.css');
$this->addCSS($path_css . 'colors.min.css');
$this->addCSS($path_css . 'edit_layers.css');
$this->addCSS($path_css . 'global.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/css/settings.css');
Media::addJsDef(self::$_revSliderJSON);
$this->addCSS("//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600,800");
$this->addCSS($path_css . 'thickbox.css');
$this->addCSS($path_js . 'codemirror/codemirror.css');
$this->addCSS($path_css . 'color-picker.css');
$this->addCSS($path_css . 'tp-color-picker.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/font-awesome/css/font-awesome.css');
$this->addCSS(_MODULE_DIR_ . $this->module->name . '/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css');
$this->addCSS($path_css . 'demo.css');
$this->addJS($path_js . 'jquery/core.min.js');
$this->addJS($path_js . 'underscore.min.js');
$this->context->controller->addJqueryUI(array('ui.widget'));
$this->context->controller->addJqueryUI(array('ui.mouse'));
$this->context->controller->addJqueryUI(array('ui.accordion'));
$this->context->controller->addJqueryUI(array('ui.datepicker'));
$this->context->controller->addJqueryUI(array('ui.slider'));
$this->context->controller->addJqueryUI(array('ui.dialog'));
$this->context->controller->addJqueryUI(array('ui.menu'));
$this->context->controller->addJqueryUI(array('ui.autocomplete'));
$this->context->controller->addJqueryUI(array('ui.sortable'));
$this->context->controller->addJqueryUI(array('ui.droppable'));
$this->context->controller->addJqueryUI(array('ui.tabs'));
$this->addJS($path_js . 'color-picker.js');
$this->context->controller->addJqueryUI(array('ui.resizable'));
$this->context->controller->addJqueryUI(array('ui.draggable'));
$this->addJS($path_js . 'settings.js');
$this->addJS($path_js . 'admin.js');
$this->addJS($path_js . 'thickbox.js');
$this->addJS($path_js . 'jquery.tipsy.js');
$this->addJS($path_js . 'codemirror/codemirror.js');
$this->addJS($path_js . 'codemirror/util/match-highlighter.js');
$this->addJS($path_js . 'codemirror/util/searchcursor.js');
$this->addJS($path_js . 'codemirror/css.js');
$this->addJS($path_js . 'codemirror/xml.js');
$this->addJS($path_js . 'edit_layers_timeline.js');
$this->addJS($path_js . 'context_menu.js');
$this->addJS($path_js . 'edit_layers.js');
$this->addJS($path_js . 'css_editor.js');
$this->addJS($path_js . 'rev_admin.js');
$this->context->controller->addJqueryUI(array('ui.position'));
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/jquery.themepunch.tools.min.js');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/public/assets/js/tp-color-picker.min.js');
$this->addJS($path_js . 'iris.min.js');
//
}
public function initContent(){
$this->content = $this->displayHeader();
$this->content .= $this->overview();
$this->content .= $this->displayfooter();
parent::initContent();
}
public function overview() {
ob_start();
$productAdmin = new RevSliderAdmin();
$output = ob_get_contents();
ob_end_clean();
// die($output);
return $output;
}
}

View File

@@ -0,0 +1,37 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
$protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');
header($protocol . ' 403 Forbidden');
exit;