Showing
1000 changed files
with
4790 additions
and
0 deletions
Too many changes to show.
To preserve performance only 1000 of 1000+ files are displayed.
No preview for this file type
This diff could not be displayed because it is too large.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionAnalyticsOCTAnalytics extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/analytics/oct_analytics'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/setting'); | ||
| 20 | + | ||
| 21 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 22 | + $this->model_setting_setting->editSetting('analytics_oct_analytics', $this->request->post, $this->request->get['store_id']); | ||
| 23 | + | ||
| 24 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 25 | + | ||
| 26 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=analytics', true)); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + if (isset($this->error['warning'])) { | ||
| 30 | + $data['error_warning'] = $this->error['warning']; | ||
| 31 | + } else { | ||
| 32 | + $data['error_warning'] = ''; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + if (isset($this->error['google_code'])) { | ||
| 36 | + $data['error_google_code'] = $this->error['google_code']; | ||
| 37 | + } else { | ||
| 38 | + $data['error_google_code'] = ''; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + $data['breadcrumbs'] = []; | ||
| 42 | + | ||
| 43 | + $data['breadcrumbs'][] = [ | ||
| 44 | + 'text' => $this->language->get('text_home'), | ||
| 45 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 46 | + ]; | ||
| 47 | + | ||
| 48 | + $data['breadcrumbs'][] = [ | ||
| 49 | + 'text' => $this->language->get('text_extension'), | ||
| 50 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=analytics', true) | ||
| 51 | + ]; | ||
| 52 | + | ||
| 53 | + $data['breadcrumbs'][] = [ | ||
| 54 | + 'text' => $this->language->get('heading_title'), | ||
| 55 | + 'href' => $this->url->link('extension/analytics/oct_analytics', 'user_token=' . $this->session->data['user_token'] . '&store_id=' . $this->request->get['store_id'], true) | ||
| 56 | + ]; | ||
| 57 | + | ||
| 58 | + $data['action'] = $this->url->link('extension/analytics/oct_analytics', 'user_token=' . $this->session->data['user_token'] . '&store_id=' . $this->request->get['store_id'], true); | ||
| 59 | + | ||
| 60 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=analytics', true); | ||
| 61 | + | ||
| 62 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 63 | + | ||
| 64 | + if (isset($this->request->post['analytics_oct_analytics_status'])) { | ||
| 65 | + $data['analytics_oct_analytics_status'] = $this->request->post['analytics_oct_analytics_status']; | ||
| 66 | + } else { | ||
| 67 | + $data['analytics_oct_analytics_status'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_status', $this->request->get['store_id']); | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + if (isset($this->request->post['analytics_oct_analytics_position'])) { | ||
| 71 | + $data['analytics_oct_analytics_position'] = $this->request->post['analytics_oct_analytics_position']; | ||
| 72 | + } else { | ||
| 73 | + $data['analytics_oct_analytics_position'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_position', $this->request->get['store_id']); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + if (isset($this->request->post['analytics_oct_analytics_targets'])) { | ||
| 77 | + $data['analytics_oct_analytics_targets'] = $this->request->post['analytics_oct_analytics_targets']; | ||
| 78 | + } else { | ||
| 79 | + $data['analytics_oct_analytics_targets'] = json_decode($this->model_setting_setting->getSettingValue('analytics_oct_analytics_targets', $this->request->get['store_id'])); | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + if (isset($this->request->post['analytics_oct_analytics_google_status'])) { | ||
| 83 | + $data['analytics_oct_analytics_google_status'] = $this->request->post['analytics_oct_analytics_google_status']; | ||
| 84 | + } else { | ||
| 85 | + $data['analytics_oct_analytics_google_status'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_google_status', $this->request->get['store_id']); | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + if (isset($this->request->post['analytics_oct_analytics_google_code'])) { | ||
| 89 | + $data['analytics_oct_analytics_google_code'] = $this->request->post['analytics_oct_analytics_google_code']; | ||
| 90 | + } else { | ||
| 91 | + $data['analytics_oct_analytics_google_code'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_google_code', $this->request->get['store_id']); | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + if (isset($this->request->post['analytics_oct_analytics_googleads_code'])) { | ||
| 95 | + $data['analytics_oct_analytics_googleads_code'] = $this->request->post['analytics_oct_analytics_googleads_code']; | ||
| 96 | + } else { | ||
| 97 | + $data['analytics_oct_analytics_googleads_code'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_googleads_code', $this->request->get['store_id']); | ||
| 98 | + } | ||
| 99 | + | ||
| 100 | + if (isset($this->request->post['analytics_oct_analytics_googletm_code'])) { | ||
| 101 | + $data['analytics_oct_analytics_googletm_code'] = $this->request->post['analytics_oct_analytics_googletm_code']; | ||
| 102 | + } else { | ||
| 103 | + $data['analytics_oct_analytics_googletm_code'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_googletm_code', $this->request->get['store_id']); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + if (isset($this->request->post['analytics_oct_analytics_google_webmaster_code'])) { | ||
| 107 | + $data['analytics_oct_analytics_google_webmaster_code'] = $this->request->post['analytics_oct_analytics_google_webmaster_code']; | ||
| 108 | + } else { | ||
| 109 | + $data['analytics_oct_analytics_google_webmaster_code'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_google_webmaster_code', $this->request->get['store_id']); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + if (isset($this->request->post['analytics_oct_analytics_google_ecommerce'])) { | ||
| 113 | + $data['analytics_oct_analytics_google_ecommerce'] = $this->request->post['analytics_oct_analytics_google_ecommerce']; | ||
| 114 | + } else { | ||
| 115 | + $data['analytics_oct_analytics_google_ecommerce'] = $this->model_setting_setting->getSettingValue('analytics_oct_analytics_google_ecommerce', $this->request->get['store_id']); | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + $data['header'] = $this->load->controller('common/header'); | ||
| 119 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 120 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 121 | + | ||
| 122 | + $this->response->setOutput($this->load->view('octemplates/analytics/oct_analytics', $data)); | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + public function uninstall() { | ||
| 126 | + $this->load->model('setting/setting'); | ||
| 127 | + $this->load->model('user/user_group'); | ||
| 128 | + | ||
| 129 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/analytics/oct_analytics'); | ||
| 130 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/analytics/oct_analytics'); | ||
| 131 | + | ||
| 132 | + $this->model_setting_setting->deleteSetting('analytics_oct_analytics'); | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + protected function validate() { | ||
| 136 | + if (!$this->user->hasPermission('modify', 'extension/analytics/oct_analytics')) { | ||
| 137 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + return !$this->error; | ||
| 141 | + } | ||
| 142 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctBannerPlus extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_banner_plus'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('octemplates/design/oct_banner_plus'); | ||
| 20 | + $this->load->model('setting/module'); | ||
| 21 | + $this->load->model('catalog/category'); | ||
| 22 | + $this->load->model('catalog/product'); | ||
| 23 | + | ||
| 24 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 25 | + if (!isset($this->request->get['module_id'])) { | ||
| 26 | + $this->model_setting_module->addModule('oct_banner_plus', $this->request->post); | ||
| 27 | + } else { | ||
| 28 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 32 | + | ||
| 33 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + if (isset($this->error['warning'])) { | ||
| 37 | + $data['error_warning'] = $this->error['warning']; | ||
| 38 | + } else { | ||
| 39 | + $data['error_warning'] = ''; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + if (isset($this->error['name'])) { | ||
| 43 | + $data['error_name'] = $this->error['name']; | ||
| 44 | + } else { | ||
| 45 | + $data['error_name'] = ''; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + if (isset($this->error['width'])) { | ||
| 49 | + $data['error_width'] = $this->error['width']; | ||
| 50 | + } else { | ||
| 51 | + $data['error_width'] = ''; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + if (isset($this->error['height'])) { | ||
| 55 | + $data['error_height'] = $this->error['height']; | ||
| 56 | + } else { | ||
| 57 | + $data['error_height'] = ''; | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + $data['breadcrumbs'] = []; | ||
| 61 | + | ||
| 62 | + $data['breadcrumbs'][] = [ | ||
| 63 | + 'text' => $this->language->get('text_home'), | ||
| 64 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 65 | + ]; | ||
| 66 | + | ||
| 67 | + $data['breadcrumbs'][] = [ | ||
| 68 | + 'text' => $this->language->get('text_extension'), | ||
| 69 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 70 | + ]; | ||
| 71 | + | ||
| 72 | + if (!isset($this->request->get['module_id'])) { | ||
| 73 | + $data['breadcrumbs'][] = [ | ||
| 74 | + 'text' => $this->language->get('heading_title'), | ||
| 75 | + 'href' => $this->url->link('extension/module/oct_banner_plus', 'user_token=' . $this->session->data['user_token'], true) | ||
| 76 | + ]; | ||
| 77 | + } else { | ||
| 78 | + $data['breadcrumbs'][] = [ | ||
| 79 | + 'text' => $this->language->get('heading_title'), | ||
| 80 | + 'href' => $this->url->link('extension/module/oct_banner_plus', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 81 | + ]; | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + if (!isset($this->request->get['module_id'])) { | ||
| 85 | + $data['action'] = $this->url->link('extension/module/oct_banner_plus', 'user_token=' . $this->session->data['user_token'], true); | ||
| 86 | + } else { | ||
| 87 | + $data['action'] = $this->url->link('extension/module/oct_banner_plus', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 91 | + | ||
| 92 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 93 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + if (isset($this->request->post['name'])) { | ||
| 97 | + $data['name'] = $this->request->post['name']; | ||
| 98 | + } elseif (!empty($module_info)) { | ||
| 99 | + $data['name'] = $module_info['name']; | ||
| 100 | + } else { | ||
| 101 | + $data['name'] = ''; | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + if (isset($this->request->post['banner_id'])) { | ||
| 105 | + $data['banner_id'] = $this->request->post['banner_id']; | ||
| 106 | + } elseif (!empty($module_info)) { | ||
| 107 | + $data['banner_id'] = $module_info['banner_id']; | ||
| 108 | + } else { | ||
| 109 | + $data['banner_id'] = ''; | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 113 | + | ||
| 114 | + $filter_data = [ | ||
| 115 | + 'sort' => 'name', | ||
| 116 | + 'order' => 'ASC' | ||
| 117 | + ]; | ||
| 118 | + | ||
| 119 | + $data['categories'] = $this->model_catalog_category->getCategories($filter_data); | ||
| 120 | + | ||
| 121 | + if (isset($this->request->post['show_in_categories'])) { | ||
| 122 | + $data['show_in_categories'] = $this->request->post['show_in_categories']; | ||
| 123 | + } elseif (!empty($module_info)) { | ||
| 124 | + $data['show_in_categories'] = (isset($module_info['show_in_categories'])) ? $module_info['show_in_categories'] : []; | ||
| 125 | + } else { | ||
| 126 | + $data['show_in_categories'] = []; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + $data['products'] = []; | ||
| 130 | + | ||
| 131 | + if (!empty($this->request->post['show_in_products'])) { | ||
| 132 | + $products = $this->request->post['show_in_products']; | ||
| 133 | + } elseif (!empty($module_info['show_in_products'])) { | ||
| 134 | + $products = $module_info['show_in_products']; | ||
| 135 | + } else { | ||
| 136 | + $products = []; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + foreach ($products as $product_id) { | ||
| 140 | + $product_info = $this->model_catalog_product->getProduct($product_id); | ||
| 141 | + | ||
| 142 | + if ($product_info) { | ||
| 143 | + $data['products'][] = [ | ||
| 144 | + 'product_id' => $product_info['product_id'], | ||
| 145 | + 'name' => $product_info['name'] | ||
| 146 | + ]; | ||
| 147 | + } | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + $data['banners'] = $this->model_octemplates_design_oct_banner_plus->getBanners(); | ||
| 151 | + | ||
| 152 | + if (isset($this->request->post['width'])) { | ||
| 153 | + $data['width'] = $this->request->post['width']; | ||
| 154 | + } elseif (!empty($module_info)) { | ||
| 155 | + $data['width'] = $module_info['width']; | ||
| 156 | + } else { | ||
| 157 | + $data['width'] = ''; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + if (isset($this->request->post['height'])) { | ||
| 161 | + $data['height'] = $this->request->post['height']; | ||
| 162 | + } elseif (!empty($module_info)) { | ||
| 163 | + $data['height'] = $module_info['height']; | ||
| 164 | + } else { | ||
| 165 | + $data['height'] = ''; | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + if (isset($this->request->post['status'])) { | ||
| 169 | + $data['status'] = $this->request->post['status']; | ||
| 170 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 171 | + $data['status'] = $module_info['status']; | ||
| 172 | + } else { | ||
| 173 | + $data['status'] = ''; | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + $data['header'] = $this->load->controller('common/header'); | ||
| 177 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 178 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 179 | + | ||
| 180 | + $this->response->setOutput($this->load->view('octemplates/module/oct_banner_plus', $data)); | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + public function install() { | ||
| 184 | + $this->load->model('octemplates/design/oct_banner_plus'); | ||
| 185 | + $this->load->model('user/user_group'); | ||
| 186 | + | ||
| 187 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_banner_plus'); | ||
| 188 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_banner_plus'); | ||
| 189 | + | ||
| 190 | + $this->model_octemplates_design_oct_banner_plus->createDBTables(); | ||
| 191 | + } | ||
| 192 | + | ||
| 193 | + public function uninstall() { | ||
| 194 | + $this->load->model('setting/setting'); | ||
| 195 | + $this->load->model('user/user_group'); | ||
| 196 | + | ||
| 197 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_banner_plus'); | ||
| 198 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_banner_plus'); | ||
| 199 | + | ||
| 200 | + $this->model_setting_setting->deleteSetting('oct_banner_plus'); | ||
| 201 | + } | ||
| 202 | + | ||
| 203 | + protected function validate() { | ||
| 204 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_banner_plus')) { | ||
| 205 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 206 | + } | ||
| 207 | + | ||
| 208 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 209 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 210 | + } | ||
| 211 | + | ||
| 212 | + if (!$this->request->post['width']) { | ||
| 213 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 214 | + } | ||
| 215 | + | ||
| 216 | + if (!$this->request->post['height']) { | ||
| 217 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + return !$this->error; | ||
| 221 | + } | ||
| 222 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOCTBenefits extends Controller { | ||
| 9 | + private $error = array(); | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_benefits'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + //Add Spectrum | ||
| 19 | + $this->document->addStyle('view/javascript/octemplates/spectrum/spectrum.css'); | ||
| 20 | + $this->document->addScript('view/javascript/octemplates/spectrum/spectrum.js'); | ||
| 21 | + | ||
| 22 | + $this->load->model('setting/module'); | ||
| 23 | + $this->load->model('localisation/language'); | ||
| 24 | + $this->load->model('catalog/information'); | ||
| 25 | + | ||
| 26 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 27 | + if (!isset($this->request->get['module_id'])) { | ||
| 28 | + $this->model_setting_module->addModule('oct_benefits', $this->request->post); | ||
| 29 | + } else { | ||
| 30 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 34 | + | ||
| 35 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + if (isset($this->error['warning'])) { | ||
| 39 | + $data['error_warning'] = $this->error['warning']; | ||
| 40 | + } else { | ||
| 41 | + $data['error_warning'] = ''; | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + $data['breadcrumbs'] = array(); | ||
| 45 | + | ||
| 46 | + $data['breadcrumbs'][] = array( | ||
| 47 | + 'text' => $this->language->get('text_home'), | ||
| 48 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 49 | + ); | ||
| 50 | + | ||
| 51 | + $data['breadcrumbs'][] = array( | ||
| 52 | + 'text' => $this->language->get('text_extension'), | ||
| 53 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 54 | + ); | ||
| 55 | + | ||
| 56 | + if (!isset($this->request->get['module_id'])) { | ||
| 57 | + $data['breadcrumbs'][] = [ | ||
| 58 | + 'text' => $this->language->get('heading_title'), | ||
| 59 | + 'href' => $this->url->link('extension/module/oct_benefits', 'user_token=' . $this->session->data['user_token'], true) | ||
| 60 | + ]; | ||
| 61 | + } else { | ||
| 62 | + $data['breadcrumbs'][] = [ | ||
| 63 | + 'text' => $this->language->get('heading_title'), | ||
| 64 | + 'href' => $this->url->link('extension/module/oct_benefits', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 65 | + ]; | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + if (!isset($this->request->get['module_id'])) { | ||
| 69 | + $data['action'] = $this->url->link('extension/module/oct_benefits', 'user_token=' . $this->session->data['user_token'], true); | ||
| 70 | + } else { | ||
| 71 | + $data['action'] = $this->url->link('extension/module/oct_benefits', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 75 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 76 | + $data['language_id'] = (int)$this->config->get('config_language_id'); | ||
| 77 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 78 | + | ||
| 79 | + $this->load->model('tool/image'); | ||
| 80 | + $data['thumb'] = $this->model_tool_image->resize('no_image.png', 100, 100); | ||
| 81 | + | ||
| 82 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 83 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + $errors = [ | ||
| 87 | + 'warning', | ||
| 88 | + 'name', | ||
| 89 | + 'oct_benegits_data' | ||
| 90 | + ]; | ||
| 91 | + | ||
| 92 | + | ||
| 93 | + foreach ($errors as $error) { | ||
| 94 | + if (isset($this->error[$error])) { | ||
| 95 | + $data['error_'.$error] = $this->error[$error]; | ||
| 96 | + } else { | ||
| 97 | + $data['error_'.$error] = ''; | ||
| 98 | + } | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + if (isset($this->request->post['status'])) { | ||
| 102 | + $data['status'] = $this->request->post['status']; | ||
| 103 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 104 | + $data['status'] = $module_info['status']; | ||
| 105 | + } else { | ||
| 106 | + $data['status'] = 1; | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + if (isset($this->request->post['name'])) { | ||
| 110 | + $data['name'] = $this->request->post['name']; | ||
| 111 | + } elseif (!empty($module_info) && isset($module_info['name'])) { | ||
| 112 | + $data['name'] = $module_info['name']; | ||
| 113 | + } else { | ||
| 114 | + $data['name'] = ''; | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + if (isset($this->request->post['oct_benegits_data'])) { | ||
| 118 | + $data['oct_benegits_data'] = $this->request->post['oct_benegits_data']; | ||
| 119 | + } elseif (!empty($module_info) && isset($module_info['oct_benegits_data'])) { | ||
| 120 | + $data['oct_benegits_data'] = $module_info['oct_benegits_data']; | ||
| 121 | + } else { | ||
| 122 | + $data['oct_benegits_data'] = []; | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + $data['header'] = $this->load->controller('common/header'); | ||
| 126 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 127 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 128 | + | ||
| 129 | + $this->response->setOutput($this->load->view('octemplates/module/oct_benefits', $data)); | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + public function install() { | ||
| 133 | + $this->load->model('user/user_group'); | ||
| 134 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_benefits'); | ||
| 135 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_benefits'); | ||
| 136 | + } | ||
| 137 | + | ||
| 138 | + public function uninstall() { | ||
| 139 | + $this->load->model('setting/setting'); | ||
| 140 | + $this->load->model('user/user_group'); | ||
| 141 | + | ||
| 142 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_benefits'); | ||
| 143 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_benefits'); | ||
| 144 | + | ||
| 145 | + $this->model_setting_setting->deleteSetting('oct_benefits'); | ||
| 146 | + } | ||
| 147 | + | ||
| 148 | + protected function validate() { | ||
| 149 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_benefits')) { | ||
| 150 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 154 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + if (isset($this->request->post['oct_benegits_data'])) { | ||
| 158 | + foreach ($this->request->post['oct_benegits_data'] as $benegit_data_id => $oct_benegit_data) { | ||
| 159 | + foreach ($oct_benegit_data['title'] as $language_id => $oct_benegit_data_description) { | ||
| 160 | + if ((utf8_strlen($oct_benegit_data_description) < 2) || (utf8_strlen($oct_benegit_data_description) > 64)) { | ||
| 161 | + $this->error['oct_benegits_data'][$benegit_data_id]['title'][$language_id] = $this->language->get('error_title'); | ||
| 162 | + } | ||
| 163 | + } | ||
| 164 | + | ||
| 165 | + foreach ($oct_benegit_data['text'] as $language_id => $oct_benegit_data_description) { | ||
| 166 | + if ((utf8_strlen($oct_benegit_data_description) < 2) || (utf8_strlen($oct_benegit_data_description) > 64)) { | ||
| 167 | + $this->error['oct_benegits_data'][$benegit_data_id]['text'][$language_id] = $this->language->get('error_text'); | ||
| 168 | + } | ||
| 169 | + } | ||
| 170 | + | ||
| 171 | + if (empty($oct_benegit_data['icon'])) { | ||
| 172 | + $this->error['oct_benegits_data'][$benegit_data_id]['icon'] = $this->language->get('error_icon'); | ||
| 173 | + } | ||
| 174 | + } | ||
| 175 | + } | ||
| 176 | + | ||
| 177 | + return !$this->error; | ||
| 178 | + } | ||
| 179 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOCTBlogArticle extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_blogarticle'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + $this->load->model('localisation/language'); | ||
| 21 | + | ||
| 22 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 23 | + if (!isset($this->request->get['module_id'])) { | ||
| 24 | + $this->model_setting_module->addModule('oct_blogarticle', $this->request->post); | ||
| 25 | + } else { | ||
| 26 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + $this->cache->delete('oct_blog_articles'); | ||
| 30 | + | ||
| 31 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 32 | + | ||
| 33 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + if (isset($this->error['warning'])) { | ||
| 37 | + $data['error_warning'] = $this->error['warning']; | ||
| 38 | + } else { | ||
| 39 | + $data['error_warning'] = ''; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + if (isset($this->error['name'])) { | ||
| 43 | + $data['error_name'] = $this->error['name']; | ||
| 44 | + } else { | ||
| 45 | + $data['error_name'] = ''; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + if (isset($this->error['title'])) { | ||
| 49 | + $data['error_title'] = $this->error['title']; | ||
| 50 | + } else { | ||
| 51 | + $data['error_title'] = []; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + if (isset($this->error['width'])) { | ||
| 55 | + $data['error_width'] = $this->error['width']; | ||
| 56 | + } else { | ||
| 57 | + $data['error_width'] = ''; | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + if (isset($this->error['height'])) { | ||
| 61 | + $data['error_height'] = $this->error['height']; | ||
| 62 | + } else { | ||
| 63 | + $data['error_height'] = ''; | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + $data['breadcrumbs'] = []; | ||
| 67 | + | ||
| 68 | + $data['breadcrumbs'][] = [ | ||
| 69 | + 'text' => $this->language->get('text_home'), | ||
| 70 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 71 | + ]; | ||
| 72 | + | ||
| 73 | + $data['breadcrumbs'][] = [ | ||
| 74 | + 'text' => $this->language->get('text_extension'), | ||
| 75 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 76 | + ]; | ||
| 77 | + | ||
| 78 | + if (!isset($this->request->get['module_id'])) { | ||
| 79 | + $data['breadcrumbs'][] = [ | ||
| 80 | + 'text' => $this->language->get('heading_title'), | ||
| 81 | + 'href' => $this->url->link('extension/module/oct_blogarticle', 'user_token=' . $this->session->data['user_token'], true) | ||
| 82 | + ]; | ||
| 83 | + } else { | ||
| 84 | + $data['breadcrumbs'][] = [ | ||
| 85 | + 'text' => $this->language->get('heading_title'), | ||
| 86 | + 'href' => $this->url->link('extension/module/oct_blogarticle', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 87 | + ]; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + if (!isset($this->request->get['module_id'])) { | ||
| 91 | + $data['action'] = $this->url->link('extension/module/oct_blogarticle', 'user_token=' . $this->session->data['user_token'], true); | ||
| 92 | + } else { | ||
| 93 | + $data['action'] = $this->url->link('extension/module/oct_blogarticle', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 97 | + | ||
| 98 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 99 | + | ||
| 100 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 101 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + if (isset($this->request->post['name'])) { | ||
| 105 | + $data['name'] = $this->request->post['name']; | ||
| 106 | + } elseif (!empty($module_info)) { | ||
| 107 | + $data['name'] = $module_info['name']; | ||
| 108 | + } else { | ||
| 109 | + $data['name'] = ''; | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + if (isset($this->request->post['title'])) { | ||
| 113 | + $data['title'] = $this->request->post['title']; | ||
| 114 | + } elseif (!empty($module_info)) { | ||
| 115 | + $data['title'] = $module_info['title']; | ||
| 116 | + } else { | ||
| 117 | + $data['title'] = []; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + if (isset($this->request->post['limit'])) { | ||
| 121 | + $data['limit'] = $this->request->post['limit']; | ||
| 122 | + } elseif (!empty($module_info)) { | ||
| 123 | + $data['limit'] = $module_info['limit']; | ||
| 124 | + } else { | ||
| 125 | + $data['limit'] = 8; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + if (isset($this->request->post['limit_description'])) { | ||
| 129 | + $data['limit_description'] = $this->request->post['limit_description']; | ||
| 130 | + } elseif (!empty($module_info)) { | ||
| 131 | + $data['limit_description'] = $module_info['limit_description']; | ||
| 132 | + } else { | ||
| 133 | + $data['limit_description'] = 255; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + if (isset($this->request->post['blog_categories'])) { | ||
| 137 | + $data['blog_categories'] = $this->request->post['blog_categories']; | ||
| 138 | + } elseif (!empty($module_info)) { | ||
| 139 | + $data['blog_categories'] = isset($module_info['blog_categories']) ? $module_info['blog_categories'] : []; | ||
| 140 | + } else { | ||
| 141 | + $data['blog_categories'] = []; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + $this->load->model('octemplates/blog/oct_blogcategory'); | ||
| 145 | + | ||
| 146 | + $data['blog_categories'] = []; | ||
| 147 | + | ||
| 148 | + if (!empty($this->request->post['blog_categories'])) { | ||
| 149 | + $blog_categories = $this->request->post['blog_categories']; | ||
| 150 | + } elseif (!empty($module_info['blog_categories'])) { | ||
| 151 | + $blog_categories = $module_info['blog_categories']; | ||
| 152 | + } else { | ||
| 153 | + $blog_categories = []; | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + foreach ($blog_categories as $blogcategory_id) { | ||
| 157 | + $blog_category_info = $this->model_octemplates_blog_oct_blogcategory->getBlogCategory($blogcategory_id); | ||
| 158 | + | ||
| 159 | + if ($blog_category_info) { | ||
| 160 | + $data['blog_categories'][] = [ | ||
| 161 | + 'blogcategory_id' => $blog_category_info['blogcategory_id'], | ||
| 162 | + 'name' => $blog_category_info['name'] | ||
| 163 | + ]; | ||
| 164 | + } | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + if (isset($this->request->post['width'])) { | ||
| 168 | + $data['width'] = $this->request->post['width']; | ||
| 169 | + } elseif (!empty($module_info)) { | ||
| 170 | + $data['width'] = $module_info['width']; | ||
| 171 | + } else { | ||
| 172 | + $data['width'] = 400; | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + if (isset($this->request->post['height'])) { | ||
| 176 | + $data['height'] = $this->request->post['height']; | ||
| 177 | + } elseif (!empty($module_info)) { | ||
| 178 | + $data['height'] = $module_info['height']; | ||
| 179 | + } else { | ||
| 180 | + $data['height'] = 300; | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + if (isset($this->request->post['sort'])) { | ||
| 184 | + $data['sort'] = $this->request->post['sort']; | ||
| 185 | + } elseif (!empty($module_info)) { | ||
| 186 | + $data['sort'] = $module_info['sort']; | ||
| 187 | + } else { | ||
| 188 | + $data['sort'] = 'a.date_added'; | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + if (isset($this->request->post['order'])) { | ||
| 192 | + $data['order'] = $this->request->post['order']; | ||
| 193 | + } elseif (!empty($module_info)) { | ||
| 194 | + $data['order'] = $module_info['order']; | ||
| 195 | + } else { | ||
| 196 | + $data['order'] = 'DESC'; | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + if (isset($this->request->post['status'])) { | ||
| 200 | + $data['status'] = $this->request->post['status']; | ||
| 201 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 202 | + $data['status'] = $module_info['status']; | ||
| 203 | + } else { | ||
| 204 | + $data['status'] = 1; | ||
| 205 | + } | ||
| 206 | + | ||
| 207 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 208 | + | ||
| 209 | + $data['header'] = $this->load->controller('common/header'); | ||
| 210 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 211 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 212 | + | ||
| 213 | + $this->response->setOutput($this->load->view('octemplates/module/oct_blogarticle', $data)); | ||
| 214 | + } | ||
| 215 | + | ||
| 216 | + public function install() { | ||
| 217 | + $this->load->language('octemplates/blog/oct_blogsettings'); | ||
| 218 | + | ||
| 219 | + $this->load->model('setting/setting'); | ||
| 220 | + $this->load->model('user/user_group'); | ||
| 221 | + | ||
| 222 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_blogarticle'); | ||
| 223 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_blogarticle'); | ||
| 224 | + | ||
| 225 | + $oct_blog_info = $this->model_setting_setting->getSetting('oct_blogsettings'); | ||
| 226 | + | ||
| 227 | + if (!$oct_blog_info) { | ||
| 228 | + $this->response->redirect($this->url->link('octemplates/blog/oct_blogsettings/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 229 | + } | ||
| 230 | + } | ||
| 231 | + | ||
| 232 | + protected function validate() { | ||
| 233 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_blogarticle')) { | ||
| 234 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 235 | + } | ||
| 236 | + | ||
| 237 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 238 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 239 | + } | ||
| 240 | + | ||
| 241 | + if (!$this->request->post['width']) { | ||
| 242 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 243 | + } | ||
| 244 | + | ||
| 245 | + if (!$this->request->post['height']) { | ||
| 246 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + return !$this->error; | ||
| 250 | + } | ||
| 251 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOCTBlogCategory extends Controller { | ||
| 9 | + private $error = array(); | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_blogcategory'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/setting'); | ||
| 20 | + | ||
| 21 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 22 | + $this->model_setting_setting->editSetting('module_oct_blogcategory', $this->request->post); | ||
| 23 | + | ||
| 24 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 25 | + | ||
| 26 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + if (isset($this->error['warning'])) { | ||
| 30 | + $data['error_warning'] = $this->error['warning']; | ||
| 31 | + } else { | ||
| 32 | + $data['error_warning'] = ''; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + $data['breadcrumbs'] = array(); | ||
| 36 | + | ||
| 37 | + $data['breadcrumbs'][] = array( | ||
| 38 | + 'text' => $this->language->get('text_home'), | ||
| 39 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 40 | + ); | ||
| 41 | + | ||
| 42 | + $data['breadcrumbs'][] = array( | ||
| 43 | + 'text' => $this->language->get('text_extension'), | ||
| 44 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 45 | + ); | ||
| 46 | + | ||
| 47 | + $data['breadcrumbs'][] = array( | ||
| 48 | + 'text' => $this->language->get('heading_title'), | ||
| 49 | + 'href' => $this->url->link('extension/module/oct_blogcategory', 'user_token=' . $this->session->data['user_token'], true) | ||
| 50 | + ); | ||
| 51 | + | ||
| 52 | + $data['action'] = $this->url->link('extension/module/oct_blogcategory', 'user_token=' . $this->session->data['user_token'], true); | ||
| 53 | + | ||
| 54 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 55 | + | ||
| 56 | + if (isset($this->request->post['module_oct_blogcategory_status'])) { | ||
| 57 | + $data['module_oct_blogcategory_status'] = $this->request->post['module_oct_blogcategory_status']; | ||
| 58 | + } else { | ||
| 59 | + $data['module_oct_blogcategory_status'] = $this->config->get('module_oct_blogcategory_status'); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + if (isset($this->request->post['module_oct_blogcategory_search'])) { | ||
| 63 | + $data['module_oct_blogcategory_search'] = $this->request->post['module_oct_blogcategory_search']; | ||
| 64 | + } else { | ||
| 65 | + $data['module_oct_blogcategory_search'] = $this->config->get('module_oct_blogcategory_search'); | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + $data['header'] = $this->load->controller('common/header'); | ||
| 69 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 70 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 71 | + | ||
| 72 | + $this->response->setOutput($this->load->view('octemplates/module/oct_blogcategory', $data)); | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + public function install() { | ||
| 76 | + $this->load->language('octemplates/blog/oct_blogsettings'); | ||
| 77 | + | ||
| 78 | + $this->load->model('setting/setting'); | ||
| 79 | + $this->load->model('user/user_group'); | ||
| 80 | + | ||
| 81 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_blogcategory'); | ||
| 82 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_blogcategory'); | ||
| 83 | + | ||
| 84 | + $oct_blog_info = $this->model_setting_setting->getSetting('oct_blogsettings'); | ||
| 85 | + | ||
| 86 | + if (!$oct_blog_info) { | ||
| 87 | + $this->response->redirect($this->url->link('octemplates/blog/oct_blogsettings/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 88 | + } | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + protected function validate() { | ||
| 92 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_blogcategory')) { | ||
| 93 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + return !$this->error; | ||
| 97 | + } | ||
| 98 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctCategoryWall extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_category_wall'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + $this->load->model('localisation/language'); | ||
| 21 | + | ||
| 22 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 23 | + if (!isset($this->request->get['module_id'])) { | ||
| 24 | + $this->model_setting_module->addModule('oct_category_wall', $this->request->post); | ||
| 25 | + } else { | ||
| 26 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 30 | + | ||
| 31 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + $errors = [ | ||
| 35 | + 'warning', | ||
| 36 | + 'name', | ||
| 37 | + 'heading', | ||
| 38 | + 'width', | ||
| 39 | + 'height', | ||
| 40 | + 'limit', | ||
| 41 | + ]; | ||
| 42 | + | ||
| 43 | + foreach ($errors as $error) { | ||
| 44 | + if (isset($this->error[$error])) { | ||
| 45 | + $data['error_' . $error] = $this->error[$error]; | ||
| 46 | + } else { | ||
| 47 | + $data['error_' . $error] = ''; | ||
| 48 | + } | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + $data['breadcrumbs'] = []; | ||
| 52 | + | ||
| 53 | + $data['breadcrumbs'][] = [ | ||
| 54 | + 'text' => $this->language->get('text_home'), | ||
| 55 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 56 | + ]; | ||
| 57 | + | ||
| 58 | + $data['breadcrumbs'][] = [ | ||
| 59 | + 'text' => $this->language->get('text_module'), | ||
| 60 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 61 | + ]; | ||
| 62 | + | ||
| 63 | + if (!isset($this->request->get['module_id'])) { | ||
| 64 | + $data['breadcrumbs'][] = [ | ||
| 65 | + 'text' => $this->language->get('heading_title'), | ||
| 66 | + 'href' => $this->url->link('extension/module/oct_category_wall', 'user_token=' . $this->session->data['user_token'], true) | ||
| 67 | + ]; | ||
| 68 | + } else { | ||
| 69 | + $data['breadcrumbs'][] = [ | ||
| 70 | + 'text' => $this->language->get('heading_title'), | ||
| 71 | + 'href' => $this->url->link('extension/module/oct_category_wall', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 72 | + ]; | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + if (!isset($this->request->get['module_id'])) { | ||
| 76 | + $data['action'] = $this->url->link('extension/module/oct_category_wall', 'user_token=' . $this->session->data['user_token'], true); | ||
| 77 | + } else { | ||
| 78 | + $data['action'] = $this->url->link('extension/module/oct_category_wall', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 82 | + | ||
| 83 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 84 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + if (isset($this->request->post['name'])) { | ||
| 88 | + $data['name'] = $this->request->post['name']; | ||
| 89 | + } elseif (!empty($module_info)) { | ||
| 90 | + $data['name'] = $module_info['name']; | ||
| 91 | + } else { | ||
| 92 | + $data['name'] = ''; | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + if (isset($this->request->post['heading'])) { | ||
| 96 | + $data['heading'] = $this->request->post['heading']; | ||
| 97 | + } elseif (!empty($module_info)) { | ||
| 98 | + $data['heading'] = $module_info['heading']; | ||
| 99 | + } else { | ||
| 100 | + $data['heading'] = []; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + $this->load->model('catalog/category'); | ||
| 104 | + | ||
| 105 | + $filter_data = [ | ||
| 106 | + 'sort' => 'name', | ||
| 107 | + 'order' => 'ASC' | ||
| 108 | + ]; | ||
| 109 | + | ||
| 110 | + $data['categories'] = $this->model_catalog_category->getCategories($filter_data); | ||
| 111 | + | ||
| 112 | + if (isset($this->request->post['module_categories'])) { | ||
| 113 | + $data['module_categories'] = $this->request->post['module_categories']; | ||
| 114 | + } elseif (!empty($module_info)) { | ||
| 115 | + $data['module_categories'] = (isset($module_info['module_categories'])) ? $module_info['module_categories'] : []; | ||
| 116 | + } else { | ||
| 117 | + $data['module_categories'] = []; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + if (isset($this->request->post['limit'])) { | ||
| 121 | + $data['limit'] = $this->request->post['limit']; | ||
| 122 | + } elseif (!empty($module_info)) { | ||
| 123 | + $data['limit'] = $module_info['limit']; | ||
| 124 | + } else { | ||
| 125 | + $data['limit'] = 5; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + if (isset($this->request->post['width'])) { | ||
| 129 | + $data['width'] = $this->request->post['width']; | ||
| 130 | + } elseif (!empty($module_info)) { | ||
| 131 | + $data['width'] = $module_info['width']; | ||
| 132 | + } else { | ||
| 133 | + $data['width'] = 60; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + if (isset($this->request->post['height'])) { | ||
| 137 | + $data['height'] = $this->request->post['height']; | ||
| 138 | + } elseif (!empty($module_info)) { | ||
| 139 | + $data['height'] = $module_info['height']; | ||
| 140 | + } else { | ||
| 141 | + $data['height'] = 60; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + if (isset($this->request->post['show_image'])) { | ||
| 145 | + $data['show_image'] = $this->request->post['show_image']; | ||
| 146 | + } elseif (!empty($module_info) && isset($module_info['show_image'])) { | ||
| 147 | + $data['show_image'] = $module_info['show_image']; | ||
| 148 | + } else { | ||
| 149 | + $data['show_image'] = ''; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + if (isset($this->request->post['show_sub_categories'])) { | ||
| 153 | + $data['show_sub_categories'] = $this->request->post['show_sub_categories']; | ||
| 154 | + } elseif (!empty($module_info) && isset($module_info['show_sub_categories'])) { | ||
| 155 | + $data['show_sub_categories'] = $module_info['show_sub_categories']; | ||
| 156 | + } else { | ||
| 157 | + $data['show_sub_categories'] = ''; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + if (isset($this->request->post['sort'])) { | ||
| 161 | + $data['sort'] = $this->request->post['sort']; | ||
| 162 | + } elseif (!empty($module_info) && isset($module_info['sort'])) { | ||
| 163 | + $data['sort'] = $module_info['sort']; | ||
| 164 | + } else { | ||
| 165 | + $data['sort'] = 'c.sort_order'; | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + if (isset($this->request->post['status'])) { | ||
| 169 | + $data['status'] = $this->request->post['status']; | ||
| 170 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 171 | + $data['status'] = $module_info['status']; | ||
| 172 | + } else { | ||
| 173 | + $data['status'] = 0; | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 177 | + | ||
| 178 | + $data['header'] = $this->load->controller('common/header'); | ||
| 179 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 180 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 181 | + | ||
| 182 | + $this->response->setOutput($this->load->view('octemplates/module/oct_category_wall', $data)); | ||
| 183 | + } | ||
| 184 | + | ||
| 185 | + public function install() { | ||
| 186 | + $this->load->model('user/user_group'); | ||
| 187 | + | ||
| 188 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_category_wall'); | ||
| 189 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_category_wall'); | ||
| 190 | + } | ||
| 191 | + | ||
| 192 | + public function uninstall() { | ||
| 193 | + $this->load->model('setting/setting'); | ||
| 194 | + $this->load->model('user/user_group'); | ||
| 195 | + | ||
| 196 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_category_wall'); | ||
| 197 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_category_wall'); | ||
| 198 | + | ||
| 199 | + $this->model_setting_setting->deleteSetting('oct_category_wall'); | ||
| 200 | + } | ||
| 201 | + | ||
| 202 | + protected function validate() { | ||
| 203 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_category_wall')) { | ||
| 204 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 205 | + } | ||
| 206 | + | ||
| 207 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 208 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 209 | + } | ||
| 210 | + | ||
| 211 | + if (!$this->request->post['width']) { | ||
| 212 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 213 | + } | ||
| 214 | + | ||
| 215 | + if (!$this->request->post['height']) { | ||
| 216 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 217 | + } | ||
| 218 | + | ||
| 219 | + if (!$this->request->post['limit']) { | ||
| 220 | + $this->error['limit'] = $this->language->get('error_limit'); | ||
| 221 | + } | ||
| 222 | + | ||
| 223 | + if (is_array($this->request->post['heading'])) { | ||
| 224 | + foreach ($this->request->post['heading'] as $language_code => $heading) { | ||
| 225 | + if ((utf8_strlen($heading) < 1) || (utf8_strlen($heading) > 255)) { | ||
| 226 | + $this->error['heading'][$language_code] = $this->language->get('error_heading'); | ||
| 227 | + } | ||
| 228 | + } | ||
| 229 | + } | ||
| 230 | + | ||
| 231 | + return !$this->error; | ||
| 232 | + } | ||
| 233 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctProductBestsellers extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_product_bestsellers'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + $this->load->model('localisation/language'); | ||
| 21 | + | ||
| 22 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 23 | + if (!isset($this->request->get['module_id'])) { | ||
| 24 | + $this->model_setting_module->addModule('oct_product_bestsellers', $this->request->post); | ||
| 25 | + } else { | ||
| 26 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + $this->cache->delete('product'); | ||
| 30 | + | ||
| 31 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 32 | + | ||
| 33 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + $errors = [ | ||
| 37 | + 'warning', | ||
| 38 | + 'name', | ||
| 39 | + 'heading', | ||
| 40 | + 'width', | ||
| 41 | + 'height' | ||
| 42 | + ]; | ||
| 43 | + | ||
| 44 | + foreach ($errors as $error) { | ||
| 45 | + if (isset($this->error[$error])) { | ||
| 46 | + $data['error_' . $error] = $this->error[$error]; | ||
| 47 | + } else { | ||
| 48 | + $data['error_' . $error] = ''; | ||
| 49 | + } | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + $data['breadcrumbs'] = []; | ||
| 53 | + | ||
| 54 | + $data['breadcrumbs'][] = [ | ||
| 55 | + 'text' => $this->language->get('text_home'), | ||
| 56 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 57 | + ]; | ||
| 58 | + | ||
| 59 | + $data['breadcrumbs'][] = [ | ||
| 60 | + 'text' => $this->language->get('text_module'), | ||
| 61 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 62 | + ]; | ||
| 63 | + | ||
| 64 | + if (!isset($this->request->get['module_id'])) { | ||
| 65 | + $data['breadcrumbs'][] = [ | ||
| 66 | + 'text' => $this->language->get('heading_title'), | ||
| 67 | + 'href' => $this->url->link('extension/module/oct_product_bestsellers', 'user_token=' . $this->session->data['user_token'], true) | ||
| 68 | + ]; | ||
| 69 | + } else { | ||
| 70 | + $data['breadcrumbs'][] = [ | ||
| 71 | + 'text' => $this->language->get('heading_title'), | ||
| 72 | + 'href' => $this->url->link('extension/module/oct_product_bestsellers', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 73 | + ]; | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + if (!isset($this->request->get['module_id'])) { | ||
| 77 | + $data['action'] = $this->url->link('extension/module/oct_product_bestsellers', 'user_token=' . $this->session->data['user_token'], true); | ||
| 78 | + } else { | ||
| 79 | + $data['action'] = $this->url->link('extension/module/oct_product_bestsellers', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 83 | + | ||
| 84 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 85 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + if (isset($this->request->post['name'])) { | ||
| 89 | + $data['name'] = $this->request->post['name']; | ||
| 90 | + } elseif (!empty($module_info)) { | ||
| 91 | + $data['name'] = $module_info['name']; | ||
| 92 | + } else { | ||
| 93 | + $data['name'] = ''; | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + if (isset($this->request->post['heading'])) { | ||
| 97 | + $data['heading'] = $this->request->post['heading']; | ||
| 98 | + } elseif (!empty($module_info)) { | ||
| 99 | + $data['heading'] = $module_info['heading']; | ||
| 100 | + } else { | ||
| 101 | + $data['heading'] = []; | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + if (isset($this->request->post['limit'])) { | ||
| 105 | + $data['limit'] = $this->request->post['limit']; | ||
| 106 | + } elseif (!empty($module_info)) { | ||
| 107 | + $data['limit'] = $module_info['limit']; | ||
| 108 | + } else { | ||
| 109 | + $data['limit'] = 10; | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + if (isset($this->request->post['width'])) { | ||
| 113 | + $data['width'] = $this->request->post['width']; | ||
| 114 | + } elseif (!empty($module_info)) { | ||
| 115 | + $data['width'] = $module_info['width']; | ||
| 116 | + } else { | ||
| 117 | + $data['width'] = 200; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + if (isset($this->request->post['height'])) { | ||
| 121 | + $data['height'] = $this->request->post['height']; | ||
| 122 | + } elseif (!empty($module_info)) { | ||
| 123 | + $data['height'] = $module_info['height']; | ||
| 124 | + } else { | ||
| 125 | + $data['height'] = 200; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + if (isset($this->request->post['status'])) { | ||
| 129 | + $data['status'] = $this->request->post['status']; | ||
| 130 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 131 | + $data['status'] = $module_info['status']; | ||
| 132 | + } else { | ||
| 133 | + $data['status'] = ''; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + if (isset($this->request->post['subcategories'])) { | ||
| 137 | + $data['subcategories'] = $this->request->post['subcategories']; | ||
| 138 | + } elseif (!empty($module_info) && isset($module_info['subcategories'])) { | ||
| 139 | + $data['subcategories'] = $module_info['subcategories']; | ||
| 140 | + } else { | ||
| 141 | + $data['subcategories'] = ''; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + if (isset($this->request->post['show_type'])) { | ||
| 145 | + $data['show_type'] = $this->request->post['show_type']; | ||
| 146 | + } elseif (!empty($module_info) && isset($module_info['show_type'])) { | ||
| 147 | + $data['show_type'] = $module_info['show_type']; | ||
| 148 | + } else { | ||
| 149 | + $data['show_type'] = ''; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 153 | + | ||
| 154 | + $data['header'] = $this->load->controller('common/header'); | ||
| 155 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 156 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 157 | + | ||
| 158 | + $this->response->setOutput($this->load->view('octemplates/module/oct_product_bestsellers', $data)); | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + public function install() { | ||
| 162 | + $this->load->model('user/user_group'); | ||
| 163 | + | ||
| 164 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_bestsellers'); | ||
| 165 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_bestsellers'); | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + public function uninstall() { | ||
| 169 | + $this->load->model('setting/setting'); | ||
| 170 | + $this->load->model('user/user_group'); | ||
| 171 | + | ||
| 172 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_bestsellers'); | ||
| 173 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_bestsellers'); | ||
| 174 | + | ||
| 175 | + $this->model_setting_setting->deleteSetting('oct_product_bestsellers'); | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + protected function validate() { | ||
| 179 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_product_bestsellers')) { | ||
| 180 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 184 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 185 | + } | ||
| 186 | + | ||
| 187 | + if (!$this->request->post['width']) { | ||
| 188 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + if (!$this->request->post['height']) { | ||
| 192 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 193 | + } | ||
| 194 | + | ||
| 195 | + if (is_array($this->request->post['heading'])) { | ||
| 196 | + foreach ($this->request->post['heading'] as $language_id => $heading) { | ||
| 197 | + if ((utf8_strlen($heading) < 3) || (utf8_strlen($heading) > 64)) { | ||
| 198 | + $this->error['heading'][$language_id] = $this->language->get('error_heading'); | ||
| 199 | + $this->error['warning'] = $this->language->get('error_heading'); | ||
| 200 | + } | ||
| 201 | + } | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + return !$this->error; | ||
| 205 | + } | ||
| 206 | +} |
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctProductReview extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_product_review'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + | ||
| 21 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 22 | + if (!isset($this->request->get['module_id'])) { | ||
| 23 | + $this->model_setting_module->addModule('oct_product_review', $this->request->post); | ||
| 24 | + } else { | ||
| 25 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + $this->cache->delete('product'); | ||
| 29 | + | ||
| 30 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 31 | + | ||
| 32 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + if (isset($this->error['warning'])) { | ||
| 36 | + $data['error_warning'] = $this->error['warning']; | ||
| 37 | + } else { | ||
| 38 | + $data['error_warning'] = ''; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + if (isset($this->error['name'])) { | ||
| 42 | + $data['error_name'] = $this->error['name']; | ||
| 43 | + } else { | ||
| 44 | + $data['error_name'] = ''; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + if (isset($this->error['width'])) { | ||
| 48 | + $data['error_width'] = $this->error['width']; | ||
| 49 | + } else { | ||
| 50 | + $data['error_width'] = ''; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + if (isset($this->error['height'])) { | ||
| 54 | + $data['error_height'] = $this->error['height']; | ||
| 55 | + } else { | ||
| 56 | + $data['error_height'] = ''; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + $data['breadcrumbs'] = []; | ||
| 60 | + | ||
| 61 | + $data['breadcrumbs'][] = [ | ||
| 62 | + 'text' => $this->language->get('text_home'), | ||
| 63 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 64 | + ]; | ||
| 65 | + | ||
| 66 | + $data['breadcrumbs'][] = [ | ||
| 67 | + 'text' => $this->language->get('text_module'), | ||
| 68 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 69 | + ]; | ||
| 70 | + | ||
| 71 | + if (!isset($this->request->get['module_id'])) { | ||
| 72 | + $data['breadcrumbs'][] = [ | ||
| 73 | + 'text' => $this->language->get('heading_title'), | ||
| 74 | + 'href' => $this->url->link('extension/module/oct_product_review', 'user_token=' . $this->session->data['user_token'], true) | ||
| 75 | + ]; | ||
| 76 | + } else { | ||
| 77 | + $data['breadcrumbs'][] = [ | ||
| 78 | + 'text' => $this->language->get('heading_title'), | ||
| 79 | + 'href' => $this->url->link('extension/module/oct_product_review', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 80 | + ]; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + if (!isset($this->request->get['module_id'])) { | ||
| 84 | + $data['action'] = $this->url->link('extension/module/oct_product_review', 'user_token=' . $this->session->data['user_token'], true); | ||
| 85 | + } else { | ||
| 86 | + $data['action'] = $this->url->link('extension/module/oct_product_review', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 90 | + | ||
| 91 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 92 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + if (isset($this->request->post['name'])) { | ||
| 96 | + $data['name'] = $this->request->post['name']; | ||
| 97 | + } elseif (!empty($module_info)) { | ||
| 98 | + $data['name'] = $module_info['name']; | ||
| 99 | + } else { | ||
| 100 | + $data['name'] = ''; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + if (isset($this->request->post['limit'])) { | ||
| 104 | + $data['limit'] = $this->request->post['limit']; | ||
| 105 | + } elseif (!empty($module_info)) { | ||
| 106 | + $data['limit'] = $module_info['limit']; | ||
| 107 | + } else { | ||
| 108 | + $data['limit'] = '8'; | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + if (isset($this->request->post['width'])) { | ||
| 112 | + $data['width'] = $this->request->post['width']; | ||
| 113 | + } elseif (!empty($module_info)) { | ||
| 114 | + $data['width'] = $module_info['width']; | ||
| 115 | + } else { | ||
| 116 | + $data['width'] = 88; | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + if (isset($this->request->post['height'])) { | ||
| 120 | + $data['height'] = $this->request->post['height']; | ||
| 121 | + } elseif (!empty($module_info)) { | ||
| 122 | + $data['height'] = $module_info['height']; | ||
| 123 | + } else { | ||
| 124 | + $data['height'] = 88; | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + if (isset($this->request->post['status'])) { | ||
| 128 | + $data['status'] = $this->request->post['status']; | ||
| 129 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 130 | + $data['status'] = $module_info['status']; | ||
| 131 | + } else { | ||
| 132 | + $data['status'] = ''; | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + $data['header'] = $this->load->controller('common/header'); | ||
| 136 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 137 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 138 | + | ||
| 139 | + $this->response->setOutput($this->load->view('octemplates/module/oct_product_review', $data)); | ||
| 140 | + } | ||
| 141 | + | ||
| 142 | + public function install() { | ||
| 143 | + $this->load->model('user/user_group'); | ||
| 144 | + | ||
| 145 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_review'); | ||
| 146 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_review'); | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public function uninstall() { | ||
| 150 | + $this->load->model('setting/setting'); | ||
| 151 | + $this->load->model('user/user_group'); | ||
| 152 | + | ||
| 153 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_review'); | ||
| 154 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_review'); | ||
| 155 | + | ||
| 156 | + $this->model_setting_setting->deleteSetting('oct_product_review'); | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + protected function validate() { | ||
| 160 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_product_review')) { | ||
| 161 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 165 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + if (!$this->request->post['width']) { | ||
| 169 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + if (!$this->request->post['height']) { | ||
| 173 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + return !$this->error; | ||
| 177 | + } | ||
| 178 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctProductSet extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_product_set'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + $this->load->model('localisation/language'); | ||
| 21 | + | ||
| 22 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 23 | + if (!isset($this->request->get['module_id'])) { | ||
| 24 | + $this->model_setting_module->addModule('oct_product_set', $this->request->post); | ||
| 25 | + } else { | ||
| 26 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + $this->cache->delete('product'); | ||
| 30 | + | ||
| 31 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 32 | + | ||
| 33 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + $errors = [ | ||
| 37 | + 'name' | ||
| 38 | + ]; | ||
| 39 | + | ||
| 40 | + foreach ($errors as $error) { | ||
| 41 | + if (isset($this->error[$error])) { | ||
| 42 | + $data['error_' . $error] = $this->error[$error]; | ||
| 43 | + } else { | ||
| 44 | + $data['error_' . $error] = ''; | ||
| 45 | + } | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + $data['breadcrumbs'] = []; | ||
| 49 | + | ||
| 50 | + $data['breadcrumbs'][] = [ | ||
| 51 | + 'text' => $this->language->get('text_home'), | ||
| 52 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 53 | + ]; | ||
| 54 | + | ||
| 55 | + $data['breadcrumbs'][] = [ | ||
| 56 | + 'text' => $this->language->get('text_module'), | ||
| 57 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 58 | + ]; | ||
| 59 | + | ||
| 60 | + if (!isset($this->request->get['module_id'])) { | ||
| 61 | + $data['breadcrumbs'][] = [ | ||
| 62 | + 'text' => $this->language->get('heading_title'), | ||
| 63 | + 'href' => $this->url->link('extension/module/oct_product_set', 'user_token=' . $this->session->data['user_token'], true) | ||
| 64 | + ]; | ||
| 65 | + } else { | ||
| 66 | + $data['breadcrumbs'][] = [ | ||
| 67 | + 'text' => $this->language->get('heading_title'), | ||
| 68 | + 'href' => $this->url->link('extension/module/oct_product_set', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 69 | + ]; | ||
| 70 | + } | ||
| 71 | + | ||
| 72 | + if (!isset($this->request->get['module_id'])) { | ||
| 73 | + $data['action'] = $this->url->link('extension/module/oct_product_set', 'user_token=' . $this->session->data['user_token'], true); | ||
| 74 | + } else { | ||
| 75 | + $data['action'] = $this->url->link('extension/module/oct_product_set', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 79 | + | ||
| 80 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 81 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + if (isset($this->request->post['name'])) { | ||
| 85 | + $data['name'] = $this->request->post['name']; | ||
| 86 | + } elseif (!empty($module_info)) { | ||
| 87 | + $data['name'] = $module_info['name']; | ||
| 88 | + } else { | ||
| 89 | + $data['name'] = ''; | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + if (isset($this->request->post['status'])) { | ||
| 93 | + $data['status'] = $this->request->post['status']; | ||
| 94 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 95 | + $data['status'] = $module_info['status']; | ||
| 96 | + } else { | ||
| 97 | + $data['status'] = ''; | ||
| 98 | + } | ||
| 99 | + | ||
| 100 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 101 | + | ||
| 102 | + $data['header'] = $this->load->controller('common/header'); | ||
| 103 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 104 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 105 | + | ||
| 106 | + $this->response->setOutput($this->load->view('octemplates/module/oct_product_set', $data)); | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + public function install() { | ||
| 110 | + $this->load->model('user/user_group'); | ||
| 111 | + | ||
| 112 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_set'); | ||
| 113 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_set'); | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + public function uninstall() { | ||
| 117 | + $this->load->model('setting/setting'); | ||
| 118 | + $this->load->model('user/user_group'); | ||
| 119 | + | ||
| 120 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_set'); | ||
| 121 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_set'); | ||
| 122 | + | ||
| 123 | + $this->model_setting_setting->deleteSetting('oct_product_set'); | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + protected function validate() { | ||
| 127 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_product_set')) { | ||
| 128 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + if (!$this->request->post['name'] || (utf8_strlen($this->request->post['name']) < 2) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 132 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + return !$this->error; | ||
| 136 | + } | ||
| 137 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctProductViews extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_product_views'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + $this->load->model('localisation/language'); | ||
| 21 | + | ||
| 22 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 23 | + if (!isset($this->request->get['module_id'])) { | ||
| 24 | + $this->model_setting_module->addModule('oct_product_views', $this->request->post); | ||
| 25 | + } else { | ||
| 26 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + $this->cache->delete('product'); | ||
| 30 | + | ||
| 31 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 32 | + | ||
| 33 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + $errors = [ | ||
| 37 | + 'warning', | ||
| 38 | + 'name', | ||
| 39 | + 'heading', | ||
| 40 | + 'width', | ||
| 41 | + 'height' | ||
| 42 | + ]; | ||
| 43 | + | ||
| 44 | + foreach ($errors as $error) { | ||
| 45 | + if (isset($this->error[$error])) { | ||
| 46 | + $data['error_'. $error] = $this->error[$error]; | ||
| 47 | + } else { | ||
| 48 | + $data['error_'. $error] = ''; | ||
| 49 | + } | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + $data['breadcrumbs'] = []; | ||
| 53 | + | ||
| 54 | + $data['breadcrumbs'][] = [ | ||
| 55 | + 'text' => $this->language->get('text_home'), | ||
| 56 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 57 | + ]; | ||
| 58 | + | ||
| 59 | + $data['breadcrumbs'][] = [ | ||
| 60 | + 'text' => $this->language->get('text_module'), | ||
| 61 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 62 | + ]; | ||
| 63 | + | ||
| 64 | + if (!isset($this->request->get['module_id'])) { | ||
| 65 | + $data['breadcrumbs'][] = [ | ||
| 66 | + 'text' => $this->language->get('heading_title'), | ||
| 67 | + 'href' => $this->url->link('extension/module/oct_product_views', 'user_token=' . $this->session->data['user_token'], true) | ||
| 68 | + ]; | ||
| 69 | + } else { | ||
| 70 | + $data['breadcrumbs'][] = [ | ||
| 71 | + 'text' => $this->language->get('heading_title'), | ||
| 72 | + 'href' => $this->url->link('extension/module/oct_product_views', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 73 | + ]; | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + if (!isset($this->request->get['module_id'])) { | ||
| 77 | + $data['action'] = $this->url->link('extension/module/oct_product_views', 'user_token=' . $this->session->data['user_token'], true); | ||
| 78 | + } else { | ||
| 79 | + $data['action'] = $this->url->link('extension/module/oct_product_views', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 83 | + | ||
| 84 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 85 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + if (isset($this->request->post['name'])) { | ||
| 89 | + $data['name'] = $this->request->post['name']; | ||
| 90 | + } elseif (!empty($module_info)) { | ||
| 91 | + $data['name'] = $module_info['name']; | ||
| 92 | + } else { | ||
| 93 | + $data['name'] = ''; | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + if (isset($this->request->post['heading'])) { | ||
| 97 | + $data['heading'] = $this->request->post['heading']; | ||
| 98 | + } elseif (!empty($module_info)) { | ||
| 99 | + $data['heading'] = $module_info['heading']; | ||
| 100 | + } else { | ||
| 101 | + $data['heading'] = []; | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + if (isset($this->request->post['limit'])) { | ||
| 105 | + $data['limit'] = $this->request->post['limit']; | ||
| 106 | + } elseif (!empty($module_info)) { | ||
| 107 | + $data['limit'] = $module_info['limit']; | ||
| 108 | + } else { | ||
| 109 | + $data['limit'] = 8; | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + if (isset($this->request->post['width'])) { | ||
| 113 | + $data['width'] = $this->request->post['width']; | ||
| 114 | + } elseif (!empty($module_info)) { | ||
| 115 | + $data['width'] = $module_info['width']; | ||
| 116 | + } else { | ||
| 117 | + $data['width'] = 200; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + if (isset($this->request->post['height'])) { | ||
| 121 | + $data['height'] = $this->request->post['height']; | ||
| 122 | + } elseif (!empty($module_info)) { | ||
| 123 | + $data['height'] = $module_info['height']; | ||
| 124 | + } else { | ||
| 125 | + $data['height'] = 200; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + if (isset($this->request->post['status'])) { | ||
| 129 | + $data['status'] = $this->request->post['status']; | ||
| 130 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 131 | + $data['status'] = $module_info['status']; | ||
| 132 | + } else { | ||
| 133 | + $data['status'] = ''; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + if (isset($this->request->post['quantity_show'])) { | ||
| 137 | + $data['quantity_show'] = $this->request->post['quantity_show']; | ||
| 138 | + } elseif (!empty($module_info) && isset($module_info['quantity_show'])) { | ||
| 139 | + $data['quantity_show'] = $module_info['quantity_show']; | ||
| 140 | + } else { | ||
| 141 | + $data['quantity_show'] = 0; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + if (isset($this->request->post['show_type'])) { | ||
| 145 | + $data['show_type'] = $this->request->post['show_type']; | ||
| 146 | + } elseif (!empty($module_info) && isset($module_info['show_type'])) { | ||
| 147 | + $data['show_type'] = $module_info['show_type']; | ||
| 148 | + } else { | ||
| 149 | + $data['show_type'] = ''; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 153 | + | ||
| 154 | + $data['header'] = $this->load->controller('common/header'); | ||
| 155 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 156 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 157 | + | ||
| 158 | + $this->response->setOutput($this->load->view('octemplates/module/oct_product_views', $data)); | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + public function install() { | ||
| 162 | + $this->load->model('user/user_group'); | ||
| 163 | + | ||
| 164 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_views'); | ||
| 165 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_views'); | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + public function uninstall() { | ||
| 169 | + $this->load->model('setting/setting'); | ||
| 170 | + $this->load->model('user/user_group'); | ||
| 171 | + | ||
| 172 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_product_views'); | ||
| 173 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_product_views'); | ||
| 174 | + | ||
| 175 | + $this->model_setting_setting->deleteSetting('oct_product_views'); | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + protected function validate() { | ||
| 179 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_product_views')) { | ||
| 180 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 184 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 185 | + } | ||
| 186 | + | ||
| 187 | + if (!$this->request->post['width']) { | ||
| 188 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + if (!$this->request->post['height']) { | ||
| 192 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 193 | + } | ||
| 194 | + | ||
| 195 | + if (is_array($this->request->post['heading'])) { | ||
| 196 | + foreach ($this->request->post['heading'] as $language_id => $heading) { | ||
| 197 | + if ((utf8_strlen($heading) < 3) || (utf8_strlen($heading) > 64)) { | ||
| 198 | + $this->error['heading'][$language_id] = $this->language->get('error_heading'); | ||
| 199 | + $this->error['warning'] = $this->language->get('error_heading'); | ||
| 200 | + } | ||
| 201 | + } | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + return !$this->error; | ||
| 205 | + } | ||
| 206 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctShopReview extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_shop_review'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + | ||
| 21 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 22 | + if (!isset($this->request->get['module_id'])) { | ||
| 23 | + $this->model_setting_module->addModule('oct_shop_review', $this->request->post); | ||
| 24 | + } else { | ||
| 25 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 29 | + | ||
| 30 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + if (isset($this->error['warning'])) { | ||
| 34 | + $data['error_warning'] = $this->error['warning']; | ||
| 35 | + } else { | ||
| 36 | + $data['error_warning'] = ''; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + if (isset($this->error['name'])) { | ||
| 40 | + $data['error_name'] = $this->error['name']; | ||
| 41 | + } else { | ||
| 42 | + $data['error_name'] = ''; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + $data['breadcrumbs'] = []; | ||
| 46 | + | ||
| 47 | + $data['breadcrumbs'][] = [ | ||
| 48 | + 'text' => $this->language->get('text_home'), | ||
| 49 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 50 | + ]; | ||
| 51 | + | ||
| 52 | + $data['breadcrumbs'][] = [ | ||
| 53 | + 'text' => $this->language->get('text_module'), | ||
| 54 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 55 | + ]; | ||
| 56 | + | ||
| 57 | + if (!isset($this->request->get['module_id'])) { | ||
| 58 | + $data['breadcrumbs'][] = [ | ||
| 59 | + 'text' => $this->language->get('heading_title'), | ||
| 60 | + 'href' => $this->url->link('extension/module/oct_shop_review', 'user_token=' . $this->session->data['user_token'], true) | ||
| 61 | + ]; | ||
| 62 | + } else { | ||
| 63 | + $data['breadcrumbs'][] = [ | ||
| 64 | + 'text' => $this->language->get('heading_title'), | ||
| 65 | + 'href' => $this->url->link('extension/module/oct_shop_review', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 66 | + ]; | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + if (!isset($this->request->get['module_id'])) { | ||
| 70 | + $data['action'] = $this->url->link('extension/module/oct_shop_review', 'user_token=' . $this->session->data['user_token'], true); | ||
| 71 | + } else { | ||
| 72 | + $data['action'] = $this->url->link('extension/module/oct_shop_review', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 76 | + | ||
| 77 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 78 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + if (isset($this->request->post['name'])) { | ||
| 82 | + $data['name'] = $this->request->post['name']; | ||
| 83 | + } elseif (!empty($module_info)) { | ||
| 84 | + $data['name'] = $module_info['name']; | ||
| 85 | + } else { | ||
| 86 | + $data['name'] = ''; | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + if (isset($this->request->post['limit'])) { | ||
| 90 | + $data['limit'] = $this->request->post['limit']; | ||
| 91 | + } elseif (!empty($module_info)) { | ||
| 92 | + $data['limit'] = $module_info['limit']; | ||
| 93 | + } else { | ||
| 94 | + $data['limit'] = '6'; | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + if (isset($this->request->post['status'])) { | ||
| 98 | + $data['status'] = $this->request->post['status']; | ||
| 99 | + } elseif (!empty($module_info) && isset($module_info['status'])) { | ||
| 100 | + $data['status'] = $module_info['status']; | ||
| 101 | + } else { | ||
| 102 | + $data['status'] = ''; | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + $data['header'] = $this->load->controller('common/header'); | ||
| 106 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 107 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 108 | + | ||
| 109 | + $this->response->setOutput($this->load->view('octemplates/module/oct_shop_review', $data)); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + public function install() { | ||
| 113 | + $this->load->model('user/user_group'); | ||
| 114 | + | ||
| 115 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_shop_review'); | ||
| 116 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_shop_review'); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public function uninstall() { | ||
| 120 | + $this->load->model('setting/setting'); | ||
| 121 | + $this->load->model('user/user_group'); | ||
| 122 | + | ||
| 123 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_shop_review'); | ||
| 124 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_shop_review'); | ||
| 125 | + | ||
| 126 | + $this->model_setting_setting->deleteSetting('oct_shop_review'); | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + protected function validate() { | ||
| 130 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_shop_review')) { | ||
| 131 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 135 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 136 | + } | ||
| 137 | + | ||
| 138 | + return !$this->error; | ||
| 139 | + } | ||
| 140 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionModuleOctSlideshowPlus extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_slideshow_plus'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/module'); | ||
| 20 | + | ||
| 21 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 22 | + if (!isset($this->request->get['module_id'])) { | ||
| 23 | + $this->model_setting_module->addModule('oct_slideshow_plus', $this->request->post); | ||
| 24 | + } else { | ||
| 25 | + $this->model_setting_module->editModule($this->request->get['module_id'], $this->request->post); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 29 | + | ||
| 30 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + if (isset($this->error['warning'])) { | ||
| 34 | + $data['error_warning'] = $this->error['warning']; | ||
| 35 | + } else { | ||
| 36 | + $data['error_warning'] = ''; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + if (isset($this->error['name'])) { | ||
| 40 | + $data['error_name'] = $this->error['name']; | ||
| 41 | + } else { | ||
| 42 | + $data['error_name'] = ''; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + if (isset($this->error['width'])) { | ||
| 46 | + $data['error_width'] = $this->error['width']; | ||
| 47 | + } else { | ||
| 48 | + $data['error_width'] = ''; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + if (isset($this->error['height'])) { | ||
| 52 | + $data['error_height'] = $this->error['height']; | ||
| 53 | + } else { | ||
| 54 | + $data['error_height'] = ''; | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + $data['breadcrumbs'] = []; | ||
| 58 | + | ||
| 59 | + $data['breadcrumbs'][] = [ | ||
| 60 | + 'text' => $this->language->get('text_home'), | ||
| 61 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 62 | + ]; | ||
| 63 | + | ||
| 64 | + $data['breadcrumbs'][] = [ | ||
| 65 | + 'text' => $this->language->get('text_module'), | ||
| 66 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true) | ||
| 67 | + ]; | ||
| 68 | + | ||
| 69 | + if (!isset($this->request->get['module_id'])) { | ||
| 70 | + $data['breadcrumbs'][] = [ | ||
| 71 | + 'text' => $this->language->get('heading_title'), | ||
| 72 | + 'href' => $this->url->link('extension/module/oct_slideshow_plus', 'user_token=' . $this->session->data['user_token'], true) | ||
| 73 | + ]; | ||
| 74 | + } else { | ||
| 75 | + $data['breadcrumbs'][] = [ | ||
| 76 | + 'text' => $this->language->get('heading_title'), | ||
| 77 | + 'href' => $this->url->link('extension/module/oct_slideshow_plus', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true) | ||
| 78 | + ]; | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + if (!isset($this->request->get['module_id'])) { | ||
| 82 | + $data['action'] = $this->url->link('extension/module/oct_slideshow_plus', 'user_token=' . $this->session->data['user_token'], true); | ||
| 83 | + } else { | ||
| 84 | + $data['action'] = $this->url->link('extension/module/oct_slideshow_plus', 'user_token=' . $this->session->data['user_token'] . '&module_id=' . $this->request->get['module_id'], true); | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 88 | + | ||
| 89 | + if (isset($this->request->get['module_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) { | ||
| 90 | + $module_info = $this->model_setting_module->getModule($this->request->get['module_id']); | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + if (isset($this->request->post['name'])) { | ||
| 94 | + $data['name'] = $this->request->post['name']; | ||
| 95 | + } elseif (!empty($module_info)) { | ||
| 96 | + $data['name'] = $module_info['name']; | ||
| 97 | + } else { | ||
| 98 | + $data['name'] = ''; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + if (isset($this->request->post['slideshow_id'])) { | ||
| 102 | + $data['slideshow_id'] = $this->request->post['slideshow_id']; | ||
| 103 | + } elseif (!empty($module_info)) { | ||
| 104 | + $data['slideshow_id'] = $module_info['slideshow_id']; | ||
| 105 | + } else { | ||
| 106 | + $data['slideshow_id'] = ''; | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + $this->load->model('octemplates/design/oct_slideshow_plus'); | ||
| 110 | + | ||
| 111 | + $data['slideshows_plus'] = $this->model_octemplates_design_oct_slideshow_plus->getSlideshows(); | ||
| 112 | + | ||
| 113 | + if (isset($this->request->post['paginations_status'])) { | ||
| 114 | + $data['paginations_status'] = $this->request->post['paginations_status']; | ||
| 115 | + } elseif (!empty($module_info)) { | ||
| 116 | + $data['paginations_status'] = isset($module_info['paginations_status']) ? $module_info['paginations_status'] : ''; | ||
| 117 | + } else { | ||
| 118 | + $data['paginations_status'] = ''; | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + if (isset($this->request->post['preload_img'])) { | ||
| 122 | + $data['preload_img'] = $this->request->post['preload_img']; | ||
| 123 | + } elseif (!empty($module_info)) { | ||
| 124 | + $data['preload_img'] = isset($module_info['preload_img']) ? $module_info['preload_img'] : ''; | ||
| 125 | + } else { | ||
| 126 | + $data['preload_img'] = ''; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + if (isset($this->request->post['slider_with_megamenu'])) { | ||
| 130 | + $data['slider_with_megamenu'] = $this->request->post['slider_with_megamenu']; | ||
| 131 | + } elseif (!empty($module_info)) { | ||
| 132 | + $data['slider_with_megamenu'] = isset($module_info['slider_with_megamenu']) ? $module_info['slider_with_megamenu'] : ''; | ||
| 133 | + } else { | ||
| 134 | + $data['slider_with_megamenu'] = ''; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + if (isset($this->request->post['slider_type'])) { | ||
| 138 | + $data['slider_type'] = $this->request->post['slider_type']; | ||
| 139 | + } elseif (!empty($module_info)) { | ||
| 140 | + $data['slider_type'] = isset($module_info['slider_type']) ? $module_info['slider_type'] : 1; | ||
| 141 | + } else { | ||
| 142 | + $data['slider_type'] = 1; | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + if (isset($this->request->post['slider_autoplay'])) { | ||
| 146 | + $data['slider_autoplay'] = $this->request->post['slider_autoplay']; | ||
| 147 | + } elseif (!empty($module_info)) { | ||
| 148 | + $data['slider_autoplay'] = isset($module_info['slider_autoplay']) ? $module_info['slider_autoplay'] : 0; | ||
| 149 | + } else { | ||
| 150 | + $data['slider_autoplay'] = 0; | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + if (isset($this->request->post['width'])) { | ||
| 154 | + $data['width'] = $this->request->post['width']; | ||
| 155 | + } elseif (!empty($module_info)) { | ||
| 156 | + $data['width'] = isset($module_info['width']) ? $module_info['width'] : ''; | ||
| 157 | + } else { | ||
| 158 | + $data['width'] = '220'; | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + if (isset($this->request->post['height'])) { | ||
| 162 | + $data['height'] = $this->request->post['height']; | ||
| 163 | + } elseif (!empty($module_info)) { | ||
| 164 | + $data['height'] = isset($module_info['height']) ? $module_info['height'] : ''; | ||
| 165 | + } else { | ||
| 166 | + $data['height'] = '220'; | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + if (isset($this->request->post['status'])) { | ||
| 170 | + $data['status'] = $this->request->post['status']; | ||
| 171 | + } elseif (!empty($module_info)) { | ||
| 172 | + $data['status'] = isset($module_info['status']) ? $module_info['status'] : ''; | ||
| 173 | + } else { | ||
| 174 | + $data['status'] = ''; | ||
| 175 | + } | ||
| 176 | + | ||
| 177 | + $data['header'] = $this->load->controller('common/header'); | ||
| 178 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 179 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 180 | + | ||
| 181 | + $this->response->setOutput($this->load->view('octemplates/module/oct_slideshow_plus', $data)); | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + public function install() { | ||
| 185 | + $this->load->model('octemplates/design/oct_slideshow_plus'); | ||
| 186 | + $this->load->model('user/user_group'); | ||
| 187 | + | ||
| 188 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/module/oct_slideshow_plus'); | ||
| 189 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/module/oct_slideshow_plus'); | ||
| 190 | + | ||
| 191 | + $this->model_octemplates_design_oct_slideshow_plus->createDBTables(); | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + public function uninstall() { | ||
| 195 | + $this->load->model('setting/setting'); | ||
| 196 | + $this->load->model('user/user_group'); | ||
| 197 | + | ||
| 198 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/module/oct_slideshow_plus'); | ||
| 199 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/module/oct_slideshow_plus'); | ||
| 200 | + | ||
| 201 | + $this->model_setting_setting->deleteSetting('oct_slideshow_plus'); | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + protected function validate() { | ||
| 205 | + if (!$this->user->hasPermission('modify', 'extension/module/oct_slideshow_plus')) { | ||
| 206 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 207 | + } | ||
| 208 | + | ||
| 209 | + if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) { | ||
| 210 | + $this->error['name'] = $this->language->get('error_name'); | ||
| 211 | + } | ||
| 212 | + | ||
| 213 | + if (!$this->request->post['width']) { | ||
| 214 | + $this->error['width'] = $this->language->get('error_width'); | ||
| 215 | + } | ||
| 216 | + | ||
| 217 | + if (!$this->request->post['height']) { | ||
| 218 | + $this->error['height'] = $this->language->get('error_height'); | ||
| 219 | + } | ||
| 220 | + | ||
| 221 | + return !$this->error; | ||
| 222 | + } | ||
| 223 | +} |
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerExtensionTotalOctProductSet extends Controller { | ||
| 9 | + private $error = array(); | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + | ||
| 13 | + $this->load->language('extension/total/oct_product_set'); | ||
| 14 | + | ||
| 15 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 16 | + | ||
| 17 | + $this->load->model('setting/setting'); | ||
| 18 | + | ||
| 19 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 20 | + $this->model_setting_setting->editSetting('total_oct_product_set', $this->request->post); | ||
| 21 | + | ||
| 22 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 23 | + | ||
| 24 | + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=total', true)); | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + $data['heading_title'] = $this->language->get('heading_title'); | ||
| 28 | + | ||
| 29 | + if (isset($this->error['warning'])) { | ||
| 30 | + $data['error_warning'] = $this->error['warning']; | ||
| 31 | + } else { | ||
| 32 | + $data['error_warning'] = ''; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + // Шляхи | ||
| 36 | + $data['breadcrumbs'] = array(); | ||
| 37 | + | ||
| 38 | + $data['breadcrumbs'][] = array( | ||
| 39 | + 'text' => $this->language->get('text_home'), | ||
| 40 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 41 | + ); | ||
| 42 | + | ||
| 43 | + $data['breadcrumbs'][] = array( | ||
| 44 | + 'text' => $this->language->get('text_extension'), | ||
| 45 | + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=total', true) | ||
| 46 | + ); | ||
| 47 | + | ||
| 48 | + $data['breadcrumbs'][] = array( | ||
| 49 | + 'text' => $this->language->get('heading_title'), | ||
| 50 | + 'href' => $this->url->link('extension/total/oct_product_set', 'user_token=' . $this->session->data['user_token'], true) | ||
| 51 | + ); | ||
| 52 | + | ||
| 53 | + $data['action'] = $this->url->link('extension/total/oct_product_set', 'user_token=' . $this->session->data['user_token'], true); | ||
| 54 | + $data['cancel'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=total', true); | ||
| 55 | + | ||
| 56 | + // Завантаження налаштувань модуля | ||
| 57 | + if (isset($this->request->post['total_oct_product_set_status'])) { | ||
| 58 | + $data['total_oct_product_set_status'] = $this->request->post['total_oct_product_set_status']; | ||
| 59 | + } else { | ||
| 60 | + $data['total_oct_product_set_status'] = $this->config->get('total_oct_product_set_status'); | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + if (isset($this->request->post['total_oct_product_set_sort_order'])) { | ||
| 64 | + $data['total_oct_product_set_sort_order'] = $this->request->post['total_oct_product_set_sort_order']; | ||
| 65 | + } else { | ||
| 66 | + $data['total_oct_product_set_sort_order'] = $this->config->get('total_oct_product_set_sort_order'); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + $data['header'] = $this->load->controller('common/header'); | ||
| 70 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 71 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 72 | + | ||
| 73 | + $this->response->setOutput($this->load->view('extension/total/oct_product_set', $data)); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + protected function validate() { | ||
| 77 | + if (!$this->user->hasPermission('modify', 'extension/total/oct_product_set')) { | ||
| 78 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + return !$this->error; | ||
| 82 | + } | ||
| 83 | +} |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesBlogOCTBlogSettings extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/blog/oct_blogsettings'); | ||
| 13 | + | ||
| 14 | + //Add Codemirror Styles && Scripts | ||
| 15 | + $this->document->addScript('view/javascript/codemirror/lib/codemirror.js'); | ||
| 16 | + $this->document->addScript('view/javascript/codemirror/lib/xml.js'); | ||
| 17 | + $this->document->addScript('view/javascript/codemirror/lib/formatting.js'); | ||
| 18 | + $this->document->addStyle('view/javascript/codemirror/lib/codemirror.css'); | ||
| 19 | + $this->document->addStyle('view/javascript/codemirror/theme/monokai.css'); | ||
| 20 | + | ||
| 21 | + //Add Summernote Styles && Scripts | ||
| 22 | + $this->document->addScript('view/javascript/summernote/summernote.js'); | ||
| 23 | + $this->document->addScript('view/javascript/summernote/summernote-image-attributes.js'); | ||
| 24 | + $this->document->addScript('view/javascript/summernote/opencart.js'); | ||
| 25 | + $this->document->addStyle('view/javascript/summernote/summernote.css'); | ||
| 26 | + | ||
| 27 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 28 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 29 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 30 | + | ||
| 31 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 32 | + | ||
| 33 | + $this->load->model('setting/setting'); | ||
| 34 | + $this->load->model('localisation/language'); | ||
| 35 | + $this->load->model('tool/image'); | ||
| 36 | + | ||
| 37 | + $oct_blog_info = $this->model_setting_setting->getSetting('oct_blogsettings'); | ||
| 38 | + | ||
| 39 | + if (!$oct_blog_info) { | ||
| 40 | + $this->response->redirect($this->url->link('octemplates/blog/oct_blogsettings/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 44 | + $this->model_setting_setting->editSetting('oct_blogsettings', $this->request->post); | ||
| 45 | + | ||
| 46 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 47 | + | ||
| 48 | + $this->response->redirect($this->url->link('octemplates/blog/oct_blogsettings', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + $data['breadcrumbs'] = []; | ||
| 52 | + | ||
| 53 | + $data['breadcrumbs'][] = [ | ||
| 54 | + 'text' => $this->language->get('text_home'), | ||
| 55 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 56 | + ]; | ||
| 57 | + | ||
| 58 | + $data['breadcrumbs'][] = [ | ||
| 59 | + 'text' => $this->language->get('heading_title'), | ||
| 60 | + 'href' => $this->url->link('octemplates/blog/oct_blogsettings', 'user_token=' . $this->session->data['user_token'], true) | ||
| 61 | + ]; | ||
| 62 | + | ||
| 63 | + $errors = [ | ||
| 64 | + 'warning' | ||
| 65 | + ]; | ||
| 66 | + | ||
| 67 | + foreach ($errors as $error) { | ||
| 68 | + if (isset($this->error[$error])) { | ||
| 69 | + $data['error_' . $error] = $this->error[$error]; | ||
| 70 | + } else { | ||
| 71 | + $data['error_' . $error] = ''; | ||
| 72 | + } | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + if (isset($this->session->data['success'])) { | ||
| 76 | + $data['success'] = $this->session->data['success']; | ||
| 77 | + | ||
| 78 | + unset($this->session->data['success']); | ||
| 79 | + } else { | ||
| 80 | + $data['success'] = ''; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + $data['action'] = $this->url->link('octemplates/blog/oct_blogsettings', 'user_token=' . $this->session->data['user_token'], true); | ||
| 84 | + $data['cancel'] = $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 85 | + | ||
| 86 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 87 | + | ||
| 88 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 89 | + | ||
| 90 | + $params = [ | ||
| 91 | + 'oct_blogsettings_status', | ||
| 92 | + 'oct_blogsettings_search', | ||
| 93 | + 'oct_blogsettings_count_articles', | ||
| 94 | + 'oct_blogsettings_data', | ||
| 95 | + ]; | ||
| 96 | + | ||
| 97 | + foreach ($params as $param) { | ||
| 98 | + if (isset($this->request->post[$param])) { | ||
| 99 | + $data[$param] = $this->request->post[$param]; | ||
| 100 | + } else { | ||
| 101 | + $data[$param] = $this->config->get($param); | ||
| 102 | + } | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + $data['header'] = $this->load->controller('common/header'); | ||
| 106 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 107 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 108 | + | ||
| 109 | + $this->response->setOutput($this->load->view('octemplates/blog/oct_blogsettings', $data)); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + public function install() { | ||
| 113 | + $this->load->language('octemplates/blog/oct_blogsettings'); | ||
| 114 | + | ||
| 115 | + $this->load->model('setting/setting'); | ||
| 116 | + $this->load->model('user/user_group'); | ||
| 117 | + $this->load->model('octemplates/blog/oct_blogsettings'); | ||
| 118 | + | ||
| 119 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/blog/oct_blogsettings'); | ||
| 120 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/blog/oct_blogsettings'); | ||
| 121 | + | ||
| 122 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/blog/oct_blogarticle'); | ||
| 123 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/blog/oct_blogarticle'); | ||
| 124 | + | ||
| 125 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/blog/oct_blogcategory'); | ||
| 126 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/blog/oct_blogcategory'); | ||
| 127 | + | ||
| 128 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/blog/oct_blogcomments'); | ||
| 129 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/blog/oct_blogcomments'); | ||
| 130 | + | ||
| 131 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_blogcategory'); | ||
| 132 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_blogcategory'); | ||
| 133 | + | ||
| 134 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_blogarticle'); | ||
| 135 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_blogarticle'); | ||
| 136 | + | ||
| 137 | + | ||
| 138 | + | ||
| 139 | + $this->model_setting_setting->editSetting('oct_blogsettings', [ | ||
| 140 | + 'oct_blogsettings_status' => '1', | ||
| 141 | + 'oct_blogsettings_search' => '1', | ||
| 142 | + 'oct_blogsettings_count_articles' => '0', | ||
| 143 | + 'oct_blogsettings_data' => [ | ||
| 144 | + 'show_main_image' => 1, | ||
| 145 | + 'articles_width' => '800', | ||
| 146 | + 'articles_height' => '600', | ||
| 147 | + 'article_width' => '1200', | ||
| 148 | + 'article_height' => '900', | ||
| 149 | + 'article_dop_width' => '160', | ||
| 150 | + 'article_dop_height' => '120', | ||
| 151 | + 'dop_article_width' => '400', | ||
| 152 | + 'dop_article_height' => '300', | ||
| 153 | + 'product_width' => '192', | ||
| 154 | + 'product_height' => '200', | ||
| 155 | + 'limit' => $this->config->get('theme_oct_deals_product_limit'), | ||
| 156 | + 'description_length' => 130, | ||
| 157 | + 'comments' => 'on', | ||
| 158 | + 'comments_moder' => 1, | ||
| 159 | + ] | ||
| 160 | + ]); | ||
| 161 | + | ||
| 162 | + $this->model_octemplates_blog_oct_blogsettings->createDBTables(); | ||
| 163 | + | ||
| 164 | + $this->load->model('design/layout'); | ||
| 165 | + | ||
| 166 | + $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "layout_route WHERE route = 'octemplates/blog/oct_blogarticle'"); | ||
| 167 | + | ||
| 168 | + if ($query->num_rows == 0) { | ||
| 169 | + $layout_add = [ | ||
| 170 | + 'name' => 'Octemplates - Blog Article', | ||
| 171 | + 'layout_route' => [ | ||
| 172 | + 0 => [ | ||
| 173 | + 'store_id' => '0', | ||
| 174 | + 'route' => 'octemplates/blog/oct_blogarticle' | ||
| 175 | + ] | ||
| 176 | + ], | ||
| 177 | + 'layout_module' => [] | ||
| 178 | + ]; | ||
| 179 | + | ||
| 180 | + $this->model_design_layout->addLayout($layout_add); | ||
| 181 | + } | ||
| 182 | + | ||
| 183 | + $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "layout_route WHERE route = 'octemplates/blog/oct_blogcategory'"); | ||
| 184 | + | ||
| 185 | + if ($query->num_rows == 0) { | ||
| 186 | + $layout_add = [ | ||
| 187 | + 'name' => 'Octemplates - Blog Category', | ||
| 188 | + 'layout_route' => [ | ||
| 189 | + 0 => [ | ||
| 190 | + 'store_id' => '0', | ||
| 191 | + 'route' => 'octemplates/blog/oct_blogcategory' | ||
| 192 | + ] | ||
| 193 | + ], | ||
| 194 | + 'layout_module' => [] | ||
| 195 | + ]; | ||
| 196 | + | ||
| 197 | + $this->model_design_layout->addLayout($layout_add); | ||
| 198 | + } | ||
| 199 | + | ||
| 200 | + $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "layout_route WHERE route = 'octemplates/blog/oct_blogsearch'"); | ||
| 201 | + | ||
| 202 | + if ($query->num_rows == 0) { | ||
| 203 | + $layout_add = [ | ||
| 204 | + 'name' => 'Octemplates - Blog Search', | ||
| 205 | + 'layout_route' => [ | ||
| 206 | + 0 => [ | ||
| 207 | + 'store_id' => '0', | ||
| 208 | + 'route' => 'octemplates/blog/oct_blogsearch' | ||
| 209 | + ] | ||
| 210 | + ], | ||
| 211 | + 'layout_module' => [] | ||
| 212 | + ]; | ||
| 213 | + | ||
| 214 | + $this->model_design_layout->addLayout($layout_add); | ||
| 215 | + } | ||
| 216 | + | ||
| 217 | + $this->session->data['success'] = $this->language->get('text_success_install'); | ||
| 218 | + | ||
| 219 | + $this->response->redirect($this->url->link('octemplates/blog/oct_blogsettings', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 220 | + } | ||
| 221 | + | ||
| 222 | + private function validate() { | ||
| 223 | + if (!$this->user->hasPermission('modify', 'octemplates/blog/oct_blogsettings')) { | ||
| 224 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 225 | + } | ||
| 226 | + | ||
| 227 | + return !$this->error; | ||
| 228 | + } | ||
| 229 | +} |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesEventsAdminHeader extends Controller { | ||
| 9 | + | ||
| 10 | + public function headerBack(&$route, &$data) { | ||
| 11 | + | ||
| 12 | + $this->language->load('octemplates/oct_deals'); | ||
| 13 | + | ||
| 14 | + if ($this->config->get('theme_oct_deals_alert_status') && isset($this->session->data['user_token'])) { | ||
| 15 | + $data['oct_alert_status'] = $this->config->get('theme_oct_deals_alert_status'); | ||
| 16 | + | ||
| 17 | + $data['oct_alert_data'] = $oct_alert_data = $this->config->get('theme_oct_deals_alert_data'); | ||
| 18 | + $oct_total_calls = $oct_total_found_cheaper = $oct_total_reviews = $oct_total_faqs = $oct_total_stock_notifier = $product_total = $review_total = $return_total = 0; | ||
| 19 | + | ||
| 20 | + if (isset($oct_alert_data['oct_modules']) && $oct_alert_data['oct_modules']) { | ||
| 21 | + if ($this->config->get('oct_popup_call_phone_status')) { | ||
| 22 | + $this->load->model('octemplates/module/oct_popup_call_phone'); | ||
| 23 | + | ||
| 24 | + $filter_data = [ | ||
| 25 | + 'filter_processed' => 0 | ||
| 26 | + ]; | ||
| 27 | + | ||
| 28 | + $data['oct_total_calls'] = $oct_total_calls = $this->model_octemplates_module_oct_popup_call_phone->getTotalCallArray($filter_data); | ||
| 29 | + $data['oct_popup_call_phone'] = $this->url->link('octemplates/module/oct_popup_call_phone', 'user_token=' . $this->session->data['user_token'], true); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + $oct_total_stock_notifier = 0; | ||
| 33 | + | ||
| 34 | + if ($this->config->get('oct_stock_notifier_status')) { | ||
| 35 | + $this->load->model('octemplates/module/oct_stock_notifier'); | ||
| 36 | + | ||
| 37 | + $filter_data = [ | ||
| 38 | + 'filter_processed' => 0 | ||
| 39 | + ]; | ||
| 40 | + | ||
| 41 | + $data['oct_total_stock_notifier'] = $oct_total_stock_notifier = $this->model_octemplates_module_oct_stock_notifier->getTotalCallArray($filter_data); | ||
| 42 | + $data['oct_stock_notifier'] = $this->url->link('octemplates/module/oct_stock_notifier&tab=subscribers&filter_status=0', 'user_token=' . $this->session->data['user_token'], true); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + if ($this->config->get('oct_popup_found_cheaper_status')) { | ||
| 46 | + $this->load->model('octemplates/module/oct_popup_found_cheaper'); | ||
| 47 | + | ||
| 48 | + $filter_data = [ | ||
| 49 | + 'filter_processed' => 0 | ||
| 50 | + ]; | ||
| 51 | + | ||
| 52 | + $data['oct_total_found_cheaper'] = $oct_total_found_cheaper = $this->model_octemplates_module_oct_popup_found_cheaper->getTotalCallArray($filter_data); | ||
| 53 | + $data['oct_popup_found_cheaper'] = $this->url->link('octemplates/module/oct_popup_found_cheaper', 'user_token=' . $this->session->data['user_token'], true); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + if ($this->config->get('oct_sreview_setting_status')) { | ||
| 57 | + $this->load->model('octemplates/module/oct_sreview_reviews'); | ||
| 58 | + | ||
| 59 | + $filter_data = [ | ||
| 60 | + 'filter_status' => 0 | ||
| 61 | + ]; | ||
| 62 | + | ||
| 63 | + $data['oct_total_reviews'] = $oct_total_reviews = $this->model_octemplates_module_oct_sreview_reviews->getTotalReviews($filter_data); | ||
| 64 | + $data['oct_reviews'] = $this->url->link('octemplates/module/oct_sreview_reviews', 'user_token=' . $this->session->data['user_token'] . '&filter_status=0', true); | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + $this->load->model('octemplates/faq/oct_product_faq'); | ||
| 68 | + | ||
| 69 | + $filter_data = [ | ||
| 70 | + 'filter_status' => 0 | ||
| 71 | + ]; | ||
| 72 | + | ||
| 73 | + $data['oct_total_faqs'] = $oct_total_faqs = $this->model_octemplates_faq_oct_product_faq->getTotalFaqs($filter_data); | ||
| 74 | + $data['oct_faqs'] = $this->url->link('octemplates/faq/oct_product_faq', 'user_token=' . $this->session->data['user_token'] . '&filter_status=0', true); | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + if (isset($oct_alert_data['orders']) && $oct_alert_data['orders']) { | ||
| 78 | + // Orders | ||
| 79 | + $this->load->model('sale/order'); | ||
| 80 | + | ||
| 81 | + // Processing Orders | ||
| 82 | + $data['processing_status_total'] = $this->model_sale_order->getTotalOrders(array('filter_order_status' => implode(',', $this->config->get('config_processing_status')))); | ||
| 83 | + $data['processing_status'] = $this->url->link('sale/order', 'user_token=' . $this->session->data['user_token'] . '&filter_order_status=' . implode(',', $this->config->get('config_processing_status')), true); | ||
| 84 | + | ||
| 85 | + // Complete Orders | ||
| 86 | + $data['complete_status_total'] = $this->model_sale_order->getTotalOrders(array('filter_order_status' => implode(',', $this->config->get('config_complete_status')))); | ||
| 87 | + $data['complete_status'] = $this->url->link('sale/order', 'user_token=' . $this->session->data['user_token'] . '&filter_order_status=' . implode(',', $this->config->get('config_complete_status')), true); | ||
| 88 | + | ||
| 89 | + // Returns | ||
| 90 | + $this->load->model('sale/return'); | ||
| 91 | + | ||
| 92 | + $return_total = $this->model_sale_return->getTotalReturns(array('filter_return_status_id' => $this->config->get('config_return_status_id'))); | ||
| 93 | + | ||
| 94 | + $data['return_total'] = $return_total; | ||
| 95 | + | ||
| 96 | + $data['return'] = $this->url->link('sale/return', 'user_token=' . $this->session->data['user_token'], true); | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + if (isset($oct_alert_data['products']) && $oct_alert_data['products']) { | ||
| 100 | + // Products | ||
| 101 | + $this->load->model('catalog/product'); | ||
| 102 | + | ||
| 103 | + $product_total = $this->model_catalog_product->getTotalProducts(array('filter_quantity' => 0)); | ||
| 104 | + | ||
| 105 | + $data['product_total'] = $product_total; | ||
| 106 | + | ||
| 107 | + $data['product'] = $this->url->link('catalog/product', 'user_token=' . $this->session->data['user_token'] . '&filter_quantity=0', true); | ||
| 108 | + | ||
| 109 | + // Reviews | ||
| 110 | + $this->load->model('catalog/review'); | ||
| 111 | + | ||
| 112 | + $review_total = $this->model_catalog_review->getTotalReviews(array('filter_status' => 0)); | ||
| 113 | + | ||
| 114 | + $data['review_total'] = $review_total; | ||
| 115 | + | ||
| 116 | + $data['review'] = $this->url->link('catalog/review', 'user_token=' . $this->session->data['user_token'] . '&filter_status=0', true); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + $data['oct_alerts'] = $oct_total_calls + $oct_total_found_cheaper + $oct_total_stock_notifier + $oct_total_reviews + $oct_total_faqs + $product_total + $review_total + $return_total; | ||
| 120 | + | ||
| 121 | + $this->config->set('oct_header_data', $data); | ||
| 122 | + } | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + public function headerFront(&$route, &$data) { | ||
| 126 | + | ||
| 127 | + $admin_header_data = $this->config->get('oct_header_data'); | ||
| 128 | + | ||
| 129 | + if ($admin_header_data) { | ||
| 130 | + $data = array_merge($data, $admin_header_data); | ||
| 131 | + } | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public function headerAddOctData(&$route, &$data, &$output) { | ||
| 135 | + | ||
| 136 | + $fontawesome_free = '<link href="view/stylesheet/fontawesome-free-6.5.2-web/css/all.css" type="text/css" rel="stylesheet" />'; | ||
| 137 | + $output = str_replace("<head>", "<head>\r\n". $fontawesome_free, $output); | ||
| 138 | + | ||
| 139 | + $search = '<ul class="nav navbar-nav navbar-right">'; | ||
| 140 | + $add = $this->load->view('octemplates/events/admin_header', $data); | ||
| 141 | + $pos = strpos($output, $search); | ||
| 142 | + | ||
| 143 | + if ($pos !== false) { | ||
| 144 | + $output = substr_replace($output, $search. $add, $pos, strlen($search)); | ||
| 145 | + } | ||
| 146 | + } | ||
| 147 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesEventsAdminReview extends Controller { | ||
| 9 | + | ||
| 10 | + public function afterAdd($route, $data, $review_id) { | ||
| 11 | + | ||
| 12 | + $this->load->model('octemplates/main/oct_settings'); | ||
| 13 | + | ||
| 14 | + $additional_data = [ | ||
| 15 | + 'positive_text' => isset($this->request->post['positive_text']) ? $this->request->post['positive_text'] : '', | ||
| 16 | + 'negative_text' => isset($this->request->post['negative_text']) ? $this->request->post['negative_text'] : '', | ||
| 17 | + 'admin_answer' => isset($this->request->post['admin_answer']) ? $this->request->post['admin_answer'] : '' | ||
| 18 | + ]; | ||
| 19 | + | ||
| 20 | + $this->model_octemplates_main_oct_settings->addOctReviewData($review_id, $additional_data); | ||
| 21 | + | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + public function afterEdit($route, $data, $review_id) { | ||
| 25 | + | ||
| 26 | + $this->load->model('octemplates/main/oct_settings'); | ||
| 27 | + | ||
| 28 | + if (isset($this->request->get['review_id'])) { | ||
| 29 | + | ||
| 30 | + $review_id = $this->request->get['review_id']; | ||
| 31 | + | ||
| 32 | + $additional_data['positive_text'] = isset($this->request->post['positive_text']) ? $this->request->post['positive_text'] : ''; | ||
| 33 | + $additional_data['negative_text'] = isset($this->request->post['negative_text']) ? $this->request->post['negative_text'] : ''; | ||
| 34 | + $additional_data['admin_answer'] = isset($this->request->post['admin_answer']) ? $this->request->post['admin_answer'] : ''; | ||
| 35 | + | ||
| 36 | + $this->model_octemplates_main_oct_settings->editOctReviewData($review_id, $additional_data); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public function adminEditForm($route, &$data) { | ||
| 42 | + | ||
| 43 | + $this->load->model('octemplates/main/oct_settings'); | ||
| 44 | + | ||
| 45 | + if (isset($this->request->get['review_id'])) { | ||
| 46 | + $review_id = $this->request->get['review_id']; | ||
| 47 | + $additional_data = $this->model_octemplates_main_oct_settings->getOctReviewData($review_id); | ||
| 48 | + | ||
| 49 | + $data['positive_text'] = isset($additional_data['positive_text']) ? $additional_data['positive_text'] : ''; | ||
| 50 | + $data['negative_text'] = isset($additional_data['negative_text']) ? $additional_data['negative_text'] : ''; | ||
| 51 | + $data['admin_answer'] = isset($additional_data['admin_answer']) ? $additional_data['admin_answer'] : ''; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + } | ||
| 55 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesEventsUserAccount extends Controller { | ||
| 9 | + | ||
| 10 | + public function adminFront(&$route, &$data, &$output) { | ||
| 11 | + | ||
| 12 | + if (is_string($output) && !empty($output)) { | ||
| 13 | + | ||
| 14 | + if (isset($this->request->post['module_account_download_view'])) { | ||
| 15 | + $data['module_account_download_view'] = $this->request->post['module_account_download_view']; | ||
| 16 | + } else { | ||
| 17 | + $data['module_account_download_view'] = $this->config->get('module_account_download_view'); | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + if (isset($this->request->post['module_account_recurring_view'])) { | ||
| 21 | + $data['module_account_recurring_view'] = $this->request->post['module_account_recurring_view']; | ||
| 22 | + } else { | ||
| 23 | + $data['module_account_recurring_view'] = $this->config->get('module_account_recurring_view'); | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + if (isset($this->request->post['module_account_reward_view'])) { | ||
| 27 | + $data['module_account_reward_view'] = $this->request->post['module_account_reward_view']; | ||
| 28 | + } else { | ||
| 29 | + $data['module_account_reward_view'] = $this->config->get('module_account_reward_view'); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + if (isset($this->request->post['module_account_return_view'])) { | ||
| 33 | + $data['module_account_return_view'] = $this->request->post['module_account_return_view']; | ||
| 34 | + } else { | ||
| 35 | + $data['module_account_return_view'] = $this->config->get('module_account_return_view'); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + if (isset($this->request->post['module_account_transaction_view'])) { | ||
| 39 | + $data['module_account_transaction_view'] = $this->request->post['module_account_transaction_view']; | ||
| 40 | + } else { | ||
| 41 | + $data['module_account_transaction_view'] = $this->config->get('module_account_transaction_view'); | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + if (isset($this->request->post['module_account_newsletter_view'])) { | ||
| 45 | + $data['module_account_newsletter_view'] = $this->request->post['module_account_newsletter_view']; | ||
| 46 | + } else { | ||
| 47 | + $data['module_account_newsletter_view'] = $this->config->get('module_account_newsletter_view'); | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + if (isset($this->request->post['module_account_affiliate_view'])) { | ||
| 51 | + $data['module_account_affiliate_view'] = $this->request->post['module_account_affiliate_view']; | ||
| 52 | + } else { | ||
| 53 | + $data['module_account_affiliate_view'] = $this->config->get('module_account_affiliate_view'); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + $search = '</form>'; | ||
| 57 | + $add = $this->load->view('octemplates/events/user_account_settings', $data); | ||
| 58 | + $pos = strpos($output, $search); | ||
| 59 | + | ||
| 60 | + if ($pos !== false) { | ||
| 61 | + $pos2 = strpos($output, $search, $pos + strlen($search)); | ||
| 62 | + if ($pos2 !== false) { | ||
| 63 | + $output = substr_replace($output, $add . $search, $pos2, strlen($search)); | ||
| 64 | + } else { | ||
| 65 | + $output = substr_replace($output, $add . $search, $pos, strlen($search)); | ||
| 66 | + } | ||
| 67 | + } | ||
| 68 | + } | ||
| 69 | + } | ||
| 70 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesMenuOCTMenu extends Controller { | ||
| 9 | + public function getMenu() { | ||
| 10 | + $this->load->language('octemplates/theme/oct_deals'); | ||
| 11 | + | ||
| 12 | + if (isset($this->request->server['HTTP_X_REQUESTED_WITH']) && !empty($this->request->server['HTTP_X_REQUESTED_WITH']) && strtolower($this->request->server['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { | ||
| 13 | + $this->load->model('octemplates/main/oct_settings'); | ||
| 14 | + $this->load->model('tool/image'); | ||
| 15 | + | ||
| 16 | + $data['menu_id'] = $menu_id = isset($this->request->get['menu_id']) ? $this->request->get['menu_id'] : 0; | ||
| 17 | + $data['oct_menu'] = $this->model_octemplates_main_oct_settings->getMenuItemsByMenuId($menu_id); | ||
| 18 | + | ||
| 19 | + $type = isset($this->request->get['type']) ? $this->request->get['type'] : (isset($data['oct_menu']['type']) ? $data['oct_menu']['type'] : ''); | ||
| 20 | + | ||
| 21 | + $data['thumb'] = (isset($data['oct_menu']['settings']['image']) && !empty($data['oct_menu']['settings']['image']) && file_exists(DIR_IMAGE . $data['oct_menu']['settings']['image'])) ? $this->model_tool_image->resize($data['oct_menu']['settings']['image'], 50, 50) : $this->model_tool_image->resize('no-thumb.png', 50, 50); | ||
| 22 | + | ||
| 23 | + $data['placeholder'] = $this->model_tool_image->resize('no-thumb.png', 50, 50); | ||
| 24 | + | ||
| 25 | + if (!isset($data['oct_menu']['type']) || $data['oct_menu']['type'] != $type) { | ||
| 26 | + $data['oct_menu'] = []; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + if ($type) { | ||
| 30 | + $fun_name = 'getMenu'.$type; | ||
| 31 | + | ||
| 32 | + $data['elements'] = $this->{$fun_name}(); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + if (isset($type) && $type) { | ||
| 36 | + $this->response->setOutput($this->load->view('octemplates/menu/oct_menu_'. $type , $data)); | ||
| 37 | + } | ||
| 38 | + } | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + private function getMenuCategory() { | ||
| 42 | + $this->load->model('catalog/category'); | ||
| 43 | + | ||
| 44 | + $categories = []; | ||
| 45 | + | ||
| 46 | + $filter_data = array( | ||
| 47 | + 'sort' => 'name', | ||
| 48 | + 'order' => 'ASC', | ||
| 49 | + 'start' => 0, | ||
| 50 | + 'limit' => 100000 | ||
| 51 | + ); | ||
| 52 | + | ||
| 53 | + $results = $this->model_catalog_category->getCategories($filter_data); | ||
| 54 | + | ||
| 55 | + foreach ($results as $result) { | ||
| 56 | + $categories[] = [ | ||
| 57 | + 'category_id' => $result['category_id'], | ||
| 58 | + 'name' => $result['name'] | ||
| 59 | + ]; | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + return $categories; | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + private function getMenuManufacturer() { | ||
| 66 | + $this->load->model('catalog/manufacturer'); | ||
| 67 | + | ||
| 68 | + $manufacturers = []; | ||
| 69 | + | ||
| 70 | + $filter_data = [ | ||
| 71 | + 'sort' => 'name', | ||
| 72 | + 'order' => 'ASC', | ||
| 73 | + 'start' => 0, | ||
| 74 | + 'limit' => 100000 | ||
| 75 | + ]; | ||
| 76 | + | ||
| 77 | + $results = $this->model_catalog_manufacturer->getManufacturers($filter_data); | ||
| 78 | + | ||
| 79 | + foreach ($results as $result) { | ||
| 80 | + $manufacturers[] = array( | ||
| 81 | + 'manufacturer_id' => $result['manufacturer_id'], | ||
| 82 | + 'name' => $result['name'], | ||
| 83 | + ); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + return $manufacturers; | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + private function getMenuOCT_BlogCategory() { | ||
| 90 | + $this->load->model('octemplates/blog/oct_blogcategory'); | ||
| 91 | + | ||
| 92 | + $blog_categories = []; | ||
| 93 | + | ||
| 94 | + $filter_data = [ | ||
| 95 | + 'sort' => 'name', | ||
| 96 | + 'order' => 'ASC', | ||
| 97 | + 'start' => 0, | ||
| 98 | + 'limit' => 100000 | ||
| 99 | + ]; | ||
| 100 | + | ||
| 101 | + $results = $this->model_octemplates_blog_oct_blogcategory->getBlogCategories($filter_data); | ||
| 102 | + | ||
| 103 | + foreach ($results as $result) { | ||
| 104 | + $blog_categories[] = [ | ||
| 105 | + 'blogcategory_id' => $result['blogcategory_id'], | ||
| 106 | + 'name' => $result['name'] | ||
| 107 | + ]; | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + return $blog_categories; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + private function getMenuLink() { | ||
| 114 | + return; | ||
| 115 | + } | ||
| 116 | +} |
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesModuleOCTInformationBar extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_information_bar'); | ||
| 13 | + | ||
| 14 | + //Add Codemirror Styles && Scripts | ||
| 15 | + $this->document->addScript('view/javascript/codemirror/lib/codemirror.js'); | ||
| 16 | + $this->document->addScript('view/javascript/codemirror/lib/xml.js'); | ||
| 17 | + $this->document->addScript('view/javascript/codemirror/lib/formatting.js'); | ||
| 18 | + $this->document->addStyle('view/javascript/codemirror/lib/codemirror.css'); | ||
| 19 | + $this->document->addStyle('view/javascript/codemirror/theme/monokai.css'); | ||
| 20 | + | ||
| 21 | + //Add Summernote Styles && Scripts | ||
| 22 | + $this->document->addScript('view/javascript/summernote/summernote.js'); | ||
| 23 | + $this->document->addScript('view/javascript/summernote/summernote-image-attributes.js'); | ||
| 24 | + $this->document->addScript('view/javascript/summernote/opencart.js'); | ||
| 25 | + $this->document->addStyle('view/javascript/summernote/summernote.css'); | ||
| 26 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 27 | + | ||
| 28 | + $this->document->addStyle('view/javascript/octemplates/spectrum/spectrum.css'); | ||
| 29 | + $this->document->addScript('view/javascript/octemplates/spectrum/spectrum.js'); | ||
| 30 | + | ||
| 31 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 32 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 33 | + | ||
| 34 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 35 | + | ||
| 36 | + $this->load->model('setting/setting'); | ||
| 37 | + $this->load->model('localisation/language'); | ||
| 38 | + | ||
| 39 | + $oct_information_bar_info = $this->model_setting_setting->getSetting('oct_information_bar'); | ||
| 40 | + | ||
| 41 | + if (!$oct_information_bar_info) { | ||
| 42 | + $this->response->redirect($this->url->link('octemplates/module/oct_information_bar/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 46 | + $this->model_setting_setting->editSetting('oct_information_bar', $this->request->post); | ||
| 47 | + | ||
| 48 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 49 | + $this->response->redirect($this->url->link('octemplates/module/oct_information_bar', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + $data['breadcrumbs'] = []; | ||
| 53 | + | ||
| 54 | + $data['breadcrumbs'][] = [ | ||
| 55 | + 'text' => $this->language->get('text_home'), | ||
| 56 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 57 | + ]; | ||
| 58 | + | ||
| 59 | + $data['breadcrumbs'][] = [ | ||
| 60 | + 'text' => $this->language->get('heading_title'), | ||
| 61 | + 'href' => $this->url->link('octemplates/module/oct_information_bar', 'user_token=' . $this->session->data['user_token'], true) | ||
| 62 | + ]; | ||
| 63 | + | ||
| 64 | + if (isset($this->error['warning'])) { | ||
| 65 | + $data['error_warning'] = $this->error['warning']; | ||
| 66 | + } else { | ||
| 67 | + $data['error_warning'] = ''; | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + if (isset($this->session->data['success'])) { | ||
| 71 | + $data['success'] = $this->session->data['success']; | ||
| 72 | + | ||
| 73 | + unset($this->session->data['success']); | ||
| 74 | + } else { | ||
| 75 | + $data['success'] = ''; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + $data['action'] = $this->url->link('octemplates/module/oct_information_bar', 'user_token=' . $this->session->data['user_token'], true); | ||
| 79 | + $data['cancel'] = $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 80 | + | ||
| 81 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 82 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 83 | + | ||
| 84 | + $this->load->model('catalog/information'); | ||
| 85 | + | ||
| 86 | + $data['informations'] = []; | ||
| 87 | + | ||
| 88 | + $filter_data = [ | ||
| 89 | + 'sort' => 'id.title', | ||
| 90 | + 'order' => 'ASC', | ||
| 91 | + 'start' => 0, | ||
| 92 | + 'limit' => 10000 | ||
| 93 | + ]; | ||
| 94 | + | ||
| 95 | + $informations_info = $this->model_catalog_information->getInformations($filter_data); | ||
| 96 | + | ||
| 97 | + foreach ($informations_info as $result) { | ||
| 98 | + $data['informations'][] = [ | ||
| 99 | + 'information_id' => $result['information_id'], | ||
| 100 | + 'title' => $result['title'] | ||
| 101 | + ]; | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + if (isset($this->request->post['oct_information_bar_status'])) { | ||
| 105 | + $data['oct_information_bar_status'] = $this->request->post['oct_information_bar_status']; | ||
| 106 | + } else { | ||
| 107 | + $data['oct_information_bar_status'] = $this->config->get('oct_information_bar_status'); | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + if (isset($this->request->post['oct_information_bar_data'])) { | ||
| 111 | + $data['oct_information_bar_data'] = $this->request->post['oct_information_bar_data']; | ||
| 112 | + } else { | ||
| 113 | + $data['oct_information_bar_data'] = $this->config->get('oct_information_bar_data'); | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + $data['header'] = $this->load->controller('common/header'); | ||
| 117 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 118 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 119 | + | ||
| 120 | + $this->response->setOutput($this->load->view('octemplates/module/oct_information_bar', $data)); | ||
| 121 | + } | ||
| 122 | + | ||
| 123 | + public function install() { | ||
| 124 | + $this->load->language('octemplates/module/oct_information_bar'); | ||
| 125 | + | ||
| 126 | + $this->load->model('setting/setting'); | ||
| 127 | + $this->load->model('localisation/language'); | ||
| 128 | + $this->load->model('user/user_group'); | ||
| 129 | + | ||
| 130 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_information_bar'); | ||
| 131 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_information_bar'); | ||
| 132 | + | ||
| 133 | + $results = $this->model_localisation_language->getLanguages(); | ||
| 134 | + | ||
| 135 | + $module_text = []; | ||
| 136 | + | ||
| 137 | + foreach ($results as $result) { | ||
| 138 | + $module_text[$result['language_id']] = ''; | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + $this->model_setting_setting->editSetting('oct_information_bar', [ | ||
| 142 | + 'oct_information_bar_status' => '0', | ||
| 143 | + 'oct_information_bar_data' => [ | ||
| 144 | + 'indormation_id' => 0, | ||
| 145 | + 'max_day' => 1, | ||
| 146 | + 'background_bar' => 'rgb(28, 28, 28)', | ||
| 147 | + 'color_text' => 'rgb(255, 255, 255)', | ||
| 148 | + 'color_url' => 'rgb(0, 99, 247)', | ||
| 149 | + 'value' => 'oct_information_bar', | ||
| 150 | + 'module_text' => $module_text | ||
| 151 | + ] | ||
| 152 | + ]); | ||
| 153 | + | ||
| 154 | + $this->session->data['success'] = $this->language->get('text_success_install'); | ||
| 155 | + | ||
| 156 | + $this->response->redirect($this->url->link('octemplates/module/oct_information_bar', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public function uninstall() { | ||
| 160 | + $this->load->model('setting/setting'); | ||
| 161 | + $this->load->model('user/user_group'); | ||
| 162 | + | ||
| 163 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_information_bar'); | ||
| 164 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_information_bar'); | ||
| 165 | + | ||
| 166 | + $this->model_setting_setting->deleteSetting('oct_information_bar'); | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + protected function validate() { | ||
| 170 | + if (!$this->user->hasPermission('modify', 'octemplates/module/oct_information_bar')) { | ||
| 171 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 172 | + } | ||
| 173 | + | ||
| 174 | + return !$this->error; | ||
| 175 | + } | ||
| 176 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesModuleOctPolicy extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_policy'); | ||
| 13 | + | ||
| 14 | + //Add Codemirror Styles && Scripts | ||
| 15 | + $this->document->addScript('view/javascript/codemirror/lib/codemirror.js'); | ||
| 16 | + $this->document->addScript('view/javascript/codemirror/lib/xml.js'); | ||
| 17 | + $this->document->addScript('view/javascript/codemirror/lib/formatting.js'); | ||
| 18 | + $this->document->addStyle('view/javascript/codemirror/lib/codemirror.css'); | ||
| 19 | + $this->document->addStyle('view/javascript/codemirror/theme/monokai.css'); | ||
| 20 | + | ||
| 21 | + //Add Summernote Styles && Scripts | ||
| 22 | + $this->document->addScript('view/javascript/summernote/summernote.js'); | ||
| 23 | + $this->document->addScript('view/javascript/summernote/summernote-image-attributes.js'); | ||
| 24 | + $this->document->addScript('view/javascript/summernote/opencart.js'); | ||
| 25 | + $this->document->addStyle('view/javascript/summernote/summernote.css'); | ||
| 26 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 27 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 28 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 29 | + | ||
| 30 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 31 | + | ||
| 32 | + $this->load->model('setting/setting'); | ||
| 33 | + $this->load->model('localisation/language'); | ||
| 34 | + | ||
| 35 | + $oct_policy_info = $this->model_setting_setting->getSetting('oct_policy'); | ||
| 36 | + | ||
| 37 | + if (!$oct_policy_info) { | ||
| 38 | + $this->response->redirect($this->url->link('octemplates/module/oct_policy/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 42 | + $this->model_setting_setting->editSetting('oct_policy', $this->request->post); | ||
| 43 | + | ||
| 44 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 45 | + $this->response->redirect($this->url->link('octemplates/module/oct_policy', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + $data['breadcrumbs'] = []; | ||
| 49 | + | ||
| 50 | + $data['breadcrumbs'][] = [ | ||
| 51 | + 'text' => $this->language->get('text_home'), | ||
| 52 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 53 | + ]; | ||
| 54 | + | ||
| 55 | + $data['breadcrumbs'][] = [ | ||
| 56 | + 'text' => $this->language->get('heading_title'), | ||
| 57 | + 'href' => $this->url->link('octemplates/module/oct_policy', 'user_token=' . $this->session->data['user_token'], true) | ||
| 58 | + ]; | ||
| 59 | + | ||
| 60 | + if (isset($this->error['warning'])) { | ||
| 61 | + $data['error_warning'] = $this->error['warning']; | ||
| 62 | + } else { | ||
| 63 | + $data['error_warning'] = ''; | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + if (isset($this->session->data['success'])) { | ||
| 67 | + $data['success'] = $this->session->data['success']; | ||
| 68 | + | ||
| 69 | + unset($this->session->data['success']); | ||
| 70 | + } else { | ||
| 71 | + $data['success'] = ''; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + $data['action'] = $this->url->link('octemplates/module/oct_policy', 'user_token=' . $this->session->data['user_token'], true); | ||
| 75 | + $data['cancel'] = $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 76 | + | ||
| 77 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 78 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 79 | + | ||
| 80 | + $this->load->model('catalog/information'); | ||
| 81 | + | ||
| 82 | + $data['informations'] = []; | ||
| 83 | + | ||
| 84 | + $filter_data = [ | ||
| 85 | + 'sort' => 'id.title', | ||
| 86 | + 'order' => 'ASC', | ||
| 87 | + 'start' => 0, | ||
| 88 | + 'limit' => 10000 | ||
| 89 | + ]; | ||
| 90 | + | ||
| 91 | + $informations_info = $this->model_catalog_information->getInformations($filter_data); | ||
| 92 | + | ||
| 93 | + foreach ($informations_info as $result) { | ||
| 94 | + $data['informations'][] = [ | ||
| 95 | + 'information_id' => $result['information_id'], | ||
| 96 | + 'title' => $result['title'] | ||
| 97 | + ]; | ||
| 98 | + } | ||
| 99 | + | ||
| 100 | + if (isset($this->request->post['oct_policy_status'])) { | ||
| 101 | + $data['oct_policy_status'] = $this->request->post['oct_policy_status']; | ||
| 102 | + } else { | ||
| 103 | + $data['oct_policy_status'] = $this->config->get('oct_policy_status'); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + if (isset($this->request->post['oct_policy_data'])) { | ||
| 107 | + $data['oct_policy_data'] = $this->request->post['oct_policy_data']; | ||
| 108 | + } else { | ||
| 109 | + $data['oct_policy_data'] = $this->config->get('oct_policy_data'); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + $data['header'] = $this->load->controller('common/header'); | ||
| 113 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 114 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 115 | + | ||
| 116 | + $this->response->setOutput($this->load->view('octemplates/module/oct_policy', $data)); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public function install() { | ||
| 120 | + $this->load->language('octemplates/module/oct_policy'); | ||
| 121 | + | ||
| 122 | + $this->load->model('setting/setting'); | ||
| 123 | + $this->load->model('localisation/language'); | ||
| 124 | + $this->load->model('user/user_group'); | ||
| 125 | + | ||
| 126 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_policy'); | ||
| 127 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_policy'); | ||
| 128 | + | ||
| 129 | + $results = $this->model_localisation_language->getLanguages(); | ||
| 130 | + | ||
| 131 | + $module_text = []; | ||
| 132 | + | ||
| 133 | + foreach ($results as $result) { | ||
| 134 | + $module_text[$result['language_id']] = ''; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + $this->model_setting_setting->editSetting('oct_policy', [ | ||
| 138 | + 'oct_policy_status' => '1', | ||
| 139 | + 'oct_policy_data' => [ | ||
| 140 | + 'indormation_id' => 0, | ||
| 141 | + 'max_day' => 7, | ||
| 142 | + 'value' => 'oct_policy', | ||
| 143 | + 'module_text' => $module_text | ||
| 144 | + ] | ||
| 145 | + ]); | ||
| 146 | + | ||
| 147 | + $this->session->data['success'] = $this->language->get('text_success_install'); | ||
| 148 | + | ||
| 149 | + $this->response->redirect($this->url->link('octemplates/module/oct_policy', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + public function uninstall() { | ||
| 153 | + $this->load->model('setting/setting'); | ||
| 154 | + $this->load->model('user/user_group'); | ||
| 155 | + | ||
| 156 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_policy'); | ||
| 157 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_policy'); | ||
| 158 | + | ||
| 159 | + $this->model_setting_setting->deleteSetting('oct_policy'); | ||
| 160 | + } | ||
| 161 | + | ||
| 162 | + protected function validate() { | ||
| 163 | + if (!$this->user->hasPermission('modify', 'octemplates/module/oct_policy')) { | ||
| 164 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + return !$this->error; | ||
| 168 | + } | ||
| 169 | +} |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesModuleOctPopupView extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_popup_view'); | ||
| 13 | + | ||
| 14 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 15 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 17 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 18 | + | ||
| 19 | + $this->load->model('setting/setting'); | ||
| 20 | + | ||
| 21 | + $oct_popup_view_info = $this->model_setting_setting->getSetting('oct_popup_view'); | ||
| 22 | + | ||
| 23 | + if (!$oct_popup_view_info) { | ||
| 24 | + $this->response->redirect($this->url->link('octemplates/module/oct_popup_view/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 28 | + $this->model_setting_setting->editSetting('oct_popup_view', $this->request->post); | ||
| 29 | + | ||
| 30 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 31 | + | ||
| 32 | + $this->response->redirect($this->url->link('octemplates/module/oct_popup_view', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + if (isset($this->error['warning'])) { | ||
| 36 | + $data['error_warning'] = $this->error['warning']; | ||
| 37 | + } else { | ||
| 38 | + $data['error_warning'] = ''; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + if (isset($this->session->data['success'])) { | ||
| 42 | + $data['success'] = $this->session->data['success']; | ||
| 43 | + | ||
| 44 | + unset($this->session->data['success']); | ||
| 45 | + } else { | ||
| 46 | + $data['success'] = ''; | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + $data['breadcrumbs'] = []; | ||
| 50 | + | ||
| 51 | + $data['breadcrumbs'][] = [ | ||
| 52 | + 'text' => $this->language->get('text_home'), | ||
| 53 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 54 | + ]; | ||
| 55 | + | ||
| 56 | + $data['breadcrumbs'][] = [ | ||
| 57 | + 'text' => $this->language->get('heading_title'), | ||
| 58 | + 'href' => $this->url->link('octemplates/module/oct_popup_view', 'user_token=' . $this->session->data['user_token'], true) | ||
| 59 | + ]; | ||
| 60 | + | ||
| 61 | + $data['action'] = $this->url->link('octemplates/module/oct_popup_view', 'user_token=' . $this->session->data['user_token'], true); | ||
| 62 | + | ||
| 63 | + $data['cancel'] = $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 64 | + | ||
| 65 | + if (isset($this->request->post['oct_popup_view_status'])) { | ||
| 66 | + $data['oct_popup_view_status'] = $this->request->post['oct_popup_view_status']; | ||
| 67 | + } else { | ||
| 68 | + $data['oct_popup_view_status'] = $this->config->get('oct_popup_view_status'); | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + if (isset($this->request->post['oct_popup_view_data'])) { | ||
| 72 | + $data['oct_popup_view_data'] = $this->request->post['oct_popup_view_data']; | ||
| 73 | + } else { | ||
| 74 | + $data['oct_popup_view_data'] = $this->config->get('oct_popup_view_data'); | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + $data['header'] = $this->load->controller('common/header'); | ||
| 78 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 79 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 80 | + | ||
| 81 | + $this->response->setOutput($this->load->view('octemplates/module/oct_popup_view', $data)); | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + public function install() { | ||
| 85 | + $this->load->language('octemplates/module/oct_popup_view'); | ||
| 86 | + | ||
| 87 | + $this->load->model('setting/setting'); | ||
| 88 | + $this->load->model('user/user_group'); | ||
| 89 | + | ||
| 90 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_popup_view'); | ||
| 91 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_popup_view'); | ||
| 92 | + | ||
| 93 | + $this->model_setting_setting->editSetting('oct_popup_view', [ | ||
| 94 | + 'oct_popup_view_status' => '0', | ||
| 95 | + 'oct_popup_view_data' => [ | ||
| 96 | + 'quantity' => '1', | ||
| 97 | + 'specification' => '1', | ||
| 98 | + 'wishlist' => '1', | ||
| 99 | + 'compare' => '1', | ||
| 100 | + 'description' => '1', | ||
| 101 | + 'description_max' => '12555', | ||
| 102 | + 'image' => '1', | ||
| 103 | + 'image_width' => 800, | ||
| 104 | + 'image_height' => 600 | ||
| 105 | + ] | ||
| 106 | + ]); | ||
| 107 | + | ||
| 108 | + $this->response->redirect($this->url->link('octemplates/module/oct_popup_view', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + public function uninstall() { | ||
| 112 | + $this->load->model('setting/setting'); | ||
| 113 | + $this->load->model('user/user_group'); | ||
| 114 | + | ||
| 115 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_popup_view'); | ||
| 116 | + $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_popup_view'); | ||
| 117 | + | ||
| 118 | + $this->model_setting_setting->deleteSetting('oct_popup_view'); | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + protected function validate() { | ||
| 122 | + if (!$this->user->hasPermission('modify', 'octemplates/module/oct_popup_view')) { | ||
| 123 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + return !$this->error; | ||
| 127 | + } | ||
| 128 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesModuleOctProductMainImageOption extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + | ||
| 13 | + $this->load->language('octemplates/module/oct_product_main_image_option'); | ||
| 14 | + | ||
| 15 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 16 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 17 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 18 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 19 | + | ||
| 20 | + $this->load->model('setting/setting'); | ||
| 21 | + | ||
| 22 | + $oct_product_main_image_option_info = $this->model_setting_setting->getSetting('oct_product_main_image_option'); | ||
| 23 | + | ||
| 24 | + if (!$oct_product_main_image_option_info) { | ||
| 25 | + $this->response->redirect($this->url->link('octemplates/module/oct_product_main_image_option/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 29 | + | ||
| 30 | + if (!isset($this->request->post['oct_product_main_image_option_status'])) { | ||
| 31 | + $this->request->post['oct_product_main_image_option_status'] = 0; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + $this->model_setting_setting->editSetting('oct_product_main_image_option', $this->request->post); | ||
| 35 | + | ||
| 36 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 37 | + | ||
| 38 | + $this->response->redirect($this->url->link('octemplates/module/oct_product_main_image_option', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + if (isset($this->error['warning'])) { | ||
| 42 | + $data['error_warning'] = $this->error['warning']; | ||
| 43 | + } else { | ||
| 44 | + $data['error_warning'] = ''; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + if (isset($this->session->data['success'])) { | ||
| 48 | + $data['success'] = $this->session->data['success']; | ||
| 49 | + | ||
| 50 | + unset($this->session->data['success']); | ||
| 51 | + } else { | ||
| 52 | + $data['success'] = ''; | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + $data['breadcrumbs'] = []; | ||
| 56 | + | ||
| 57 | + $data['breadcrumbs'][] = [ | ||
| 58 | + 'text' => $this->language->get('text_home'), | ||
| 59 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 60 | + ]; | ||
| 61 | + | ||
| 62 | + $data['breadcrumbs'][] = [ | ||
| 63 | + 'text' => $this->language->get('heading_title'), | ||
| 64 | + 'href' => $this->url->link('octemplates/module/oct_product_main_image_option', 'user_token=' . $this->session->data['user_token'], true) | ||
| 65 | + ]; | ||
| 66 | + | ||
| 67 | + $data['action'] = $this->url->link('octemplates/module/oct_product_main_image_option', 'user_token=' . $this->session->data['user_token'], true); | ||
| 68 | + | ||
| 69 | + $data['cancel'] = $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 70 | + | ||
| 71 | + $this->load->model('catalog/option'); | ||
| 72 | + | ||
| 73 | + $data['options'] = []; | ||
| 74 | + | ||
| 75 | + foreach ($this->model_catalog_option->getOptions() as $product_option) { | ||
| 76 | + $data['options'][] = [ | ||
| 77 | + 'option_id' => $product_option['option_id'], | ||
| 78 | + 'name' => $product_option['name'] | ||
| 79 | + ]; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + if (isset($this->request->post['oct_product_main_image_option_status'])) { | ||
| 83 | + $data['oct_product_main_image_option_status'] = $this->request->post['oct_product_main_image_option_status']; | ||
| 84 | + } else { | ||
| 85 | + $data['oct_product_main_image_option_status'] = $this->config->get('oct_product_main_image_option_status'); | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + if (isset($this->request->post['oct_product_main_image_option_data'])) { | ||
| 89 | + $data['oct_product_main_image_option_data'] = $this->request->post['oct_product_main_image_option_data']; | ||
| 90 | + } else { | ||
| 91 | + $data['oct_product_main_image_option_data'] = $this->config->get('oct_product_main_image_option_data'); | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + $data['header'] = $this->load->controller('common/header'); | ||
| 95 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 96 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 97 | + | ||
| 98 | + $this->response->setOutput($this->load->view('octemplates/module/oct_product_main_image_option', $data)); | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + public function install() { | ||
| 102 | + $this->load->language('octemplates/module/oct_product_main_image_option'); | ||
| 103 | + | ||
| 104 | + $this->load->model('octemplates/module/oct_product_main_image_option'); | ||
| 105 | + $this->load->model('setting/setting'); | ||
| 106 | + $this->load->model('user/user_group'); | ||
| 107 | + | ||
| 108 | + $this->model_octemplates_module_oct_product_main_image_option->makeDB(); | ||
| 109 | + | ||
| 110 | + $this->model_setting_setting->editSetting('oct_product_main_image_option', [ | ||
| 111 | + 'oct_product_main_image_option_status' => '0' | ||
| 112 | + ]); | ||
| 113 | + | ||
| 114 | + $this->response->redirect($this->url->link('octemplates/module/oct_product_main_image_option', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + protected function validate() { | ||
| 118 | + if (!$this->user->hasPermission('modify', 'octemplates/module/oct_product_main_image_option')) { | ||
| 119 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 120 | + } | ||
| 121 | + | ||
| 122 | + return !$this->error; | ||
| 123 | + } | ||
| 124 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @copyright OCTemplates | ||
| 4 | + * @support https://octemplates.net/ | ||
| 5 | + * @license LICENSE.txt | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +class ControllerOCTemplatesModuleOctProductTabsSettings extends Controller { | ||
| 9 | + private $error = []; | ||
| 10 | + | ||
| 11 | + public function index() { | ||
| 12 | + $this->load->language('octemplates/module/oct_product_tabs_settings'); | ||
| 13 | + | ||
| 14 | + //Add Codemirror Styles && Scripts | ||
| 15 | + $this->document->addScript('view/javascript/codemirror/lib/codemirror.js'); | ||
| 16 | + $this->document->addScript('view/javascript/codemirror/lib/xml.js'); | ||
| 17 | + $this->document->addScript('view/javascript/codemirror/lib/formatting.js'); | ||
| 18 | + $this->document->addStyle('view/javascript/codemirror/lib/codemirror.css'); | ||
| 19 | + $this->document->addStyle('view/javascript/codemirror/theme/monokai.css'); | ||
| 20 | + | ||
| 21 | + //Add Summernote Styles && Scripts | ||
| 22 | + $this->document->addScript('view/javascript/summernote/summernote.js'); | ||
| 23 | + $this->document->addScript('view/javascript/summernote/summernote-image-attributes.js'); | ||
| 24 | + $this->document->addScript('view/javascript/summernote/opencart.js'); | ||
| 25 | + $this->document->addStyle('view/javascript/summernote/summernote.css'); | ||
| 26 | + $this->document->addScript('view/javascript/octemplates/bootstrap-notify/bootstrap-notify.min.js'); | ||
| 27 | + $this->document->addScript('view/javascript/octemplates/oct_main.js'); | ||
| 28 | + $this->document->addStyle('view/stylesheet/oct_deals.css'); | ||
| 29 | + | ||
| 30 | + $this->document->setTitle($this->language->get('heading_title')); | ||
| 31 | + | ||
| 32 | + $this->load->model('setting/setting'); | ||
| 33 | + $this->load->model('octemplates/module/oct_product_tabs_settings'); | ||
| 34 | + $this->load->model('octemplates/module/oct_product_tabs'); | ||
| 35 | + | ||
| 36 | + $data['user_token'] = $this->session->data['user_token']; | ||
| 37 | + | ||
| 38 | + $this->load->model('localisation/language'); | ||
| 39 | + | ||
| 40 | + $oct_product_tabs_info = $this->model_setting_setting->getSetting('oct_product_tabs'); | ||
| 41 | + | ||
| 42 | + if (!$oct_product_tabs_info) { | ||
| 43 | + $this->response->redirect($this->url->link('octemplates/module/oct_product_tabs_settings/install', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + $data['languages'] = $this->model_localisation_language->getLanguages(); | ||
| 47 | + | ||
| 48 | + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { | ||
| 49 | + $this->request->post['oct_product_tabs_status'] = isset($this->request->post['oct_product_tabs_status']) ? 1 : 0; | ||
| 50 | + | ||
| 51 | + $this->model_setting_setting->editSetting('oct_product_tabs', $this->request->post); | ||
| 52 | + | ||
| 53 | + $this->session->data['success'] = $this->language->get('text_success'); | ||
| 54 | + | ||
| 55 | + $this->response->redirect($this->url->link('octemplates/module/oct_product_tabs_settings', 'user_token=' . $this->session->data['user_token'] . '&type=module', true)); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + if (isset($this->error['warning'])) { | ||
| 59 | + $data['error_warning'] = $this->error['warning']; | ||
| 60 | + } else { | ||
| 61 | + $data['error_warning'] = ''; | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + if (isset($this->session->data['success'])) { | ||
| 65 | + $data['success'] = $this->session->data['success']; | ||
| 66 | + | ||
| 67 | + unset($this->session->data['success']); | ||
| 68 | + } else { | ||
| 69 | + $data['success'] = ''; | ||
| 70 | + } | ||
| 71 | + | ||
| 72 | + $data['breadcrumbs'] = []; | ||
| 73 | + | ||
| 74 | + $data['breadcrumbs'][] = [ | ||
| 75 | + 'text' => $this->language->get('text_home'), | ||
| 76 | + 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true) | ||
| 77 | + ]; | ||
| 78 | + | ||
| 79 | + $data['breadcrumbs'][] = [ | ||
| 80 | + 'text' => $this->language->get('heading_title'), | ||
| 81 | + 'href' => $this->url->link('octemplates/module/oct_product_tabs_settings', 'user_token=' . $this->session->data['user_token'], true) | ||
| 82 | + ]; | ||
| 83 | + | ||
| 84 | + $data['action'] = $this->url->link('octemplates/module/oct_product_tabs_settings', 'user_token=' . $this->session->data['user_token'], true); | ||
| 85 | + $data['cancel'] = $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'] . '&type=module', true); | ||
| 86 | + | ||
| 87 | + if (isset($this->request->post['oct_product_tabs_status'])) { | ||
| 88 | + $data['oct_product_tabs_status'] = $this->request->post['oct_product_tabs_status']; | ||
| 89 | + } else { | ||
| 90 | + $data['oct_product_tabs_status'] = $this->config->get('oct_product_tabs_status'); | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + $categories = $this->model_octemplates_module_oct_product_tabs_settings->getCategories(); | ||
| 94 | + | ||
| 95 | + $data['categories'] = $this->getAllCategories($categories); | ||
| 96 | + | ||
| 97 | + $data['tabs'] = $this->model_octemplates_module_oct_product_tabs->getProductTabs(); | ||
| 98 | + | ||
| 99 | + $data['header'] = $this->load->controller('common/header'); | ||
| 100 | + $data['column_left'] = $this->load->controller('common/column_left'); | ||
| 101 | + $data['footer'] = $this->load->controller('common/footer'); | ||
| 102 | + | ||
| 103 | + $this->response->setOutput($this->load->view('octemplates/module/oct_product_tabs_settings', $data)); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + private function getAllCategories($categories, $parent_id = 0, $parent_name = '') { | ||
| 107 | + $output = []; | ||
| 108 | + | ||
| 109 | + if (array_key_exists($parent_id, $categories)) { | ||
| 110 | + if ($parent_name != '') { | ||
| 111 | + $parent_name .= ' > '; | ||
| 112 | + } | ||
| 113 | + | ||
| 114 | + foreach ($categories[$parent_id] as $category) { | ||
| 115 | + $output[$category['category_id']] = [ | ||
| 116 | + 'category_id' => $category['category_id'], | ||
| 117 | + 'name' => $parent_name . $category['name'] | ||
| 118 | + ]; | ||
| 119 | + | ||
| 120 | + $output += $this->getAllCategories($categories, $category['category_id'], $parent_name . $category['name']); | ||
| 121 | + } | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + uasort($output, [ | ||
| 125 | + $this, | ||
| 126 | + 'sortByName' | ||
| 127 | + ]); | ||
| 128 | + | ||
| 129 | + return $output; | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + function sortByName($a, $b) { | ||
| 133 | + return strcmp($a['name'], $b['name']); | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + public function install() { | ||
| 137 | + $this->load->language('octemplates/module/oct_product_tabs_settings'); | ||
| 138 | + | ||
| 139 | + $this->load->model('octemplates/module/oct_product_tabs_settings'); | ||
| 140 | + $this->load->model('setting/setting'); | ||
| 141 | + $this->load->model('user/user_group'); | ||
| 142 | + | ||
| 143 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_product_tabs_settings'); | ||
| 144 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_product_tabs_settings'); | ||
| 145 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'octemplates/module/oct_product_tabs'); | ||
| 146 | + $this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'octemplates/module/oct_product_tabs'); | ||
| 147 | + | ||
| 148 | + $this->model_setting_setting->editSetting('oct_product_tabs', [ | ||
| 149 | + 'oct_product_tabs_status' => '1' | ||
| 150 | + ]); | ||
| 151 | + | ||
| 152 | + $this->model_octemplates_module_oct_product_tabs_settings->makeDB(); | ||
| 153 | + | ||
| 154 | + $this->session->data['success'] = $this->language->get('text_success_install'); | ||
| 155 | + | ||
| 156 | + $this->response->redirect($this->url->link('octemplates/module/oct_product_tabs_settings', 'user_token=' . $this->session->data['user_token'], true)); | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public function uninstall() { | ||
| 160 | + $this->load->model('setting/setting'); | ||
| 161 | + $this->load->model('octemplates/module/oct_product_tabs_settings'); | ||
| 162 | + | ||
| 163 | + $this->model_octemplates_module_oct_product_tabs_settings->removeDB(); | ||
| 164 | + $this->model_setting_setting->deleteSetting('oct_product_tabs_status'); | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + protected function validate() { | ||
| 168 | + if (!$this->user->hasPermission('modify', 'octemplates/module/oct_product_tabs_settings')) { | ||
| 169 | + $this->error['warning'] = $this->language->get('error_permission'); | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + return !$this->error; | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + public function tap_processing() { | ||
| 176 | + $json = []; | ||
| 177 | + | ||
| 178 | + if (!$this->user->hasPermission('modify', 'octemplates/module/oct_product_tabs_settings')) { | ||
| 179 | + $json['error'] = $this->language->get('error_permission'); | ||
| 180 | + } else { | ||
| 181 | + if (isset($this->request->request['type'])) { | ||
| 182 | + if (isset($this->request->request['module_categories']) && isset($this->request->request['module_tab']) && isset($this->request->request['tab_description'])) { | ||
| 183 | + | ||
| 184 | + $this->load->model('octemplates/module/oct_product_tabs_settings'); | ||
| 185 | + $this->load->language('octemplates/module/oct_product_tabs_settings'); | ||
| 186 | + | ||
| 187 | + if (empty($this->request->request['module_tab'])) { | ||
| 188 | + $json['error'] = $this->language->get('error_enter_tab'); | ||
| 189 | + } | ||
| 190 | + | ||
| 191 | + if (isset($this->request->request['type']) && $this->request->request['type'] == 'add') { | ||
| 192 | + foreach ($this->request->request['tab_description'] as $language_id => $value) { | ||
| 193 | + if (empty($value['text'])) { | ||
| 194 | + $json['error'] = $this->language->get('error_enter_text'); | ||
| 195 | + break; | ||
| 196 | + } | ||
| 197 | + } | ||
| 198 | + } | ||
| 199 | + | ||
| 200 | + | ||
| 201 | + if (!isset($json['error'])) { | ||
| 202 | + if (isset($this->request->request['type']) && $this->request->request['type'] == 'add') { | ||
| 203 | + $status = $this->model_octemplates_module_oct_product_tabs_settings->updateTab($this->request->request['module_categories'], $this->request->request['module_tab'], $this->request->request['tab_description']); | ||
| 204 | + } else { | ||
| 205 | + $status = $this->model_octemplates_module_oct_product_tabs_settings->removeTab($this->request->request['module_categories'], $this->request->request['module_tab']); | ||
| 206 | + } | ||
| 207 | + | ||
| 208 | + if ($status) { | ||
| 209 | + $json['success'] = $this->language->get('text_bulk_tabs_success'); | ||
| 210 | + } else { | ||
| 211 | + $json['error'] = $this->language->get('error_select_produts'); | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + $this->cache->delete('product'); | ||
| 215 | + } | ||
| 216 | + | ||
| 217 | + } | ||
| 218 | + } | ||
| 219 | + } | ||
| 220 | + | ||
| 221 | + $this->response->addHeader('Content-Type: application/json'); | ||
| 222 | + $this->response->setOutput(json_encode($json)); | ||
| 223 | + } | ||
| 224 | +} |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'OCtemplates - Products sets'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_total'] = 'Products sets discounts'; | ||
| 7 | +$_['text_success'] = 'Settings have been changed'; | ||
| 8 | +$_['text_edit'] = 'Editing'; | ||
| 9 | +$_['text_extension'] = 'Extensions'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_status'] = 'Status'; | ||
| 13 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 14 | + | ||
| 15 | +// Error | ||
| 16 | +$_['error_permission'] = 'You do not have enough rights to make changes'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +$_['heading_title'] = 'OCTemplates - Analytics&E-commerce'; | ||
| 3 | + | ||
| 4 | +// Text | ||
| 5 | +$_['text_extension'] = 'Statistics'; | ||
| 6 | +$_['text_success'] = 'Settings of the Google Analytics module are successfully updated'; | ||
| 7 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 8 | +$_['text_signup_google'] = 'Enter your <a href="http://www.google.com/analytics/" target="_blank"><u>Google Analytics</u></a> account, choose "Create property", copy "Account ID" and enter here:'; | ||
| 9 | +$_['text_signup_google_tm'] = 'Enter your <a href="https://tagmanager.google.com/" target="_blank"><u>Google Tag Manager</u></a> account, choose "Create property", copy "Account ID" and enter here:'; | ||
| 10 | +$_['text_signup_google_ads'] = 'Enter your <a href="https://ads.google.com/" target="_blank"><u>GoogleADS</u></a>account, choose "Create property", copy "Account ID" and enter here:'; | ||
| 11 | +$_['text_default'] = 'By default'; | ||
| 12 | +$_['text_edit'] = 'Edit OCTemplates - Analytics&E-commerce'; | ||
| 13 | +$_['text_header'] = 'Insert in <head></head>'; | ||
| 14 | +$_['text_footer'] = 'Insert before </body>'; | ||
| 15 | +$_['text_google_ecommerce'] = 'Turn on Google E-commerce'; | ||
| 16 | +$_['text_target'] = 'Goals'; | ||
| 17 | +$_['text_no_results'] = 'No goals yet'; | ||
| 18 | + | ||
| 19 | +//Column | ||
| 20 | +$_['column_atribute'] = 'Attribute'; | ||
| 21 | +$_['column_category'] = 'Category'; | ||
| 22 | +$_['column_action'] = 'Action'; | ||
| 23 | + | ||
| 24 | +//Tabs | ||
| 25 | +$_['tab_general'] = 'General'; | ||
| 26 | +$_['tab_google'] = 'Google Analytics'; | ||
| 27 | +$_['tab_targets'] = 'Target Settings'; | ||
| 28 | + | ||
| 29 | +// Entry | ||
| 30 | +$_['entry_code'] = 'Tracking code'; | ||
| 31 | +$_['entry_google_code'] = 'Account ID'; | ||
| 32 | +$_['entry_googleads_code'] = 'ADS account ID'; | ||
| 33 | +$_['entry_googletm_code'] = 'GTM account ID'; | ||
| 34 | +$_['entry_status'] = 'Status'; | ||
| 35 | +$_['entry_position'] = 'Counter position'; | ||
| 36 | + | ||
| 37 | +// Error | ||
| 38 | +$_['error_permission'] = 'You are not authorized to manage this module.!'; | ||
| 39 | +$_['error_code'] = 'Code is required!'; |
| 1 | +<?php | ||
| 2 | +//Heading | ||
| 3 | +$_['heading_title'] = 'OCTemplates - Blog articles'; | ||
| 4 | + | ||
| 5 | +//Text | ||
| 6 | +$_['text_success'] = 'Your settings have been successfully modified!'; | ||
| 7 | +$_['text_list'] = 'Articles list'; | ||
| 8 | +$_['text_add'] = 'Add'; | ||
| 9 | +$_['text_edit'] = 'Edit'; | ||
| 10 | +$_['text_default'] = 'Main store'; | ||
| 11 | +$_['text_amount'] = 'Fixed amount'; | ||
| 12 | +$_['text_keyword'] = 'Must be unique throughout the system and without spaces.'; | ||
| 13 | + | ||
| 14 | +//Column | ||
| 15 | +$_['column_name'] = 'Article name'; | ||
| 16 | +$_['column_image'] = 'Images'; | ||
| 17 | +$_['column_status'] = 'Status'; | ||
| 18 | +$_['column_category'] = 'Category'; | ||
| 19 | +$_['column_action'] = 'Action'; | ||
| 20 | + | ||
| 21 | +//Entry | ||
| 22 | +$_['entry_name'] = 'Article title'; | ||
| 23 | +$_['entry_shot_description'] = 'Short description'; | ||
| 24 | +$_['entry_description'] = 'Description'; | ||
| 25 | +$_['entry_meta_title'] = 'Meta tag title'; | ||
| 26 | +$_['entry_meta_keyword'] = 'Meta tag keywords'; | ||
| 27 | +$_['entry_meta_description'] = 'Meta tag description'; | ||
| 28 | +$_['entry_store'] = 'Stores'; | ||
| 29 | +$_['entry_keyword'] = 'SEO URL'; | ||
| 30 | +$_['entry_date_available'] = 'Display date'; | ||
| 31 | +$_['entry_date_added'] = 'Date added'; | ||
| 32 | +$_['entry_image'] = 'Image'; | ||
| 33 | +$_['entry_additional_image'] = 'Additional images'; | ||
| 34 | +$_['entry_status'] = 'Status'; | ||
| 35 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 36 | +$_['entry_category'] = 'Show in categories'; | ||
| 37 | +$_['entry_related'] = 'Recommended articles'; | ||
| 38 | +$_['entry_related_product'] = 'Featured products'; | ||
| 39 | +$_['entry_tag'] = 'Article tags'; | ||
| 40 | +$_['entry_layout'] = 'Layout'; | ||
| 41 | + | ||
| 42 | +//Help | ||
| 43 | +$_['help_category'] = '(Autofill)'; | ||
| 44 | +$_['help_related'] = '(AutoFill)'; | ||
| 45 | +$_['help_tag'] = 'comma-separated tags'; | ||
| 46 | + | ||
| 47 | +//Error | ||
| 48 | +$_['error_warning'] = 'Check the form carefully for errors!'; | ||
| 49 | +$_['error_permission'] = 'You do not have permissions to change items!'; | ||
| 50 | +$_['error_name'] = 'The product name must be between 1 and 255 characters long!'; | ||
| 51 | +$_['error_meta_title'] = 'The title meta tag must be between 1 and 255 characters long!'; | ||
| 52 | +$_['error_model'] = 'Product model must contain 1 to 64 characters!'; | ||
| 53 | +$_['error_keyword'] = 'SEO URL is busy!'; | ||
| 54 | +$_['error_unique'] = 'SEO URL must be unique!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'OCTemplates - Blog categories'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_success'] = 'Settings changed successfully!'; | ||
| 7 | +$_['text_list'] = 'Category list'; | ||
| 8 | +$_['text_add'] = 'Add'; | ||
| 9 | +$_['text_edit'] = 'Editing'; | ||
| 10 | +$_['text_default'] = 'Main store'; | ||
| 11 | +$_['text_keyword'] = 'Must be unique to the whole system and without spaces.'; | ||
| 12 | + | ||
| 13 | +// Column | ||
| 14 | +$_['column_name'] = 'Categories'; | ||
| 15 | +$_['column_sort_order'] = 'Sort order'; | ||
| 16 | +$_['column_action'] = 'Action'; | ||
| 17 | + | ||
| 18 | +// Entry | ||
| 19 | +$_['entry_name'] = 'Category'; | ||
| 20 | +$_['entry_description'] = 'Description'; | ||
| 21 | +$_['entry_meta_title'] = 'Meta tag title'; | ||
| 22 | +$_['entry_meta_h1'] = 'Meta tag H1'; | ||
| 23 | +$_['entry_meta_keyword'] = 'Meta tag keywords'; | ||
| 24 | +$_['entry_meta_description'] = 'Meta tag description'; | ||
| 25 | +$_['entry_store'] = 'Stores'; | ||
| 26 | +$_['entry_keyword'] = 'SEO URL'; | ||
| 27 | +$_['entry_parent'] = 'Parent category'; | ||
| 28 | +$_['entry_image'] = 'Category image'; | ||
| 29 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 30 | +$_['entry_status'] = 'Status'; | ||
| 31 | +$_['entry_layout'] = 'Layout'; | ||
| 32 | + | ||
| 33 | +// Help | ||
| 34 | +$_['help_filter'] = '(Autocomplete)'; | ||
| 35 | +$_['help_top'] = 'Show in main menu (only for main parent categories).'; | ||
| 36 | +$_['help_column'] = 'The number of columns in the category drop-down menu (only for the main parent categories)'; | ||
| 37 | + | ||
| 38 | +// Error | ||
| 39 | +$_['error_warning'] = 'Carefully check the form for errors!'; | ||
| 40 | +$_['error_permission'] = 'You are not authorized to change categories!'; | ||
| 41 | +$_['error_name'] = 'Category name must be from 1 to 255 characters!'; | ||
| 42 | +$_['error_meta_title'] = 'The keyword must be from 1 to 255 characters!'; | ||
| 43 | +$_['error_keyword'] = 'SEO URL is busy!'; | ||
| 44 | +$_['error_unique'] = 'SEO URL must be unique!'; | ||
| 45 | +$_['error_parent'] = 'Parent category selected incorrectly!'; | ||
| 46 | +$_['error_deleteparent'] = 'You can not delete parent category!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'OCTemplates - Blog comments'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_success'] = 'Settings changed successfully!'; | ||
| 7 | +$_['text_list'] = 'Reviews'; | ||
| 8 | +$_['text_add'] = 'Add'; | ||
| 9 | +$_['text_edit'] = 'Editing'; | ||
| 10 | +$_['text_filter'] = 'Filter'; | ||
| 11 | + | ||
| 12 | +// Column | ||
| 13 | +$_['column_article'] = 'Article'; | ||
| 14 | +$_['column_author'] = 'Author'; | ||
| 15 | +$_['column_rating'] = 'Rating'; | ||
| 16 | +$_['column_status'] = 'Status'; | ||
| 17 | +$_['column_date_added'] = 'Date'; | ||
| 18 | +$_['column_action'] = 'Action'; | ||
| 19 | + | ||
| 20 | +// Entry | ||
| 21 | +$_['entry_article'] = 'Article'; | ||
| 22 | +$_['entry_author'] = 'Author'; | ||
| 23 | +$_['entry_rating'] = 'Rating'; | ||
| 24 | +$_['entry_status'] = 'Status'; | ||
| 25 | +$_['entry_text'] = 'Text'; | ||
| 26 | +$_['entry_admin_text'] = 'Administrator response'; | ||
| 27 | +$_['entry_date_added'] = 'Date'; | ||
| 28 | + | ||
| 29 | +// Help | ||
| 30 | +$_['help_article'] = '(Autocomplete)'; | ||
| 31 | + | ||
| 32 | +// Error | ||
| 33 | +$_['error_permission'] = 'You are not authorized to change blog reviews!'; | ||
| 34 | +$_['error_article'] = 'Required to select the article!'; | ||
| 35 | +$_['error_author'] = 'The name of the author must contain from 3 to 64 characters!'; | ||
| 36 | +$_['error_text'] = 'The response text must contain at least 1 character!'; | ||
| 37 | +$_['error_rating'] = 'I want to set a rating!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'OCTemplates - Blog settings'; | ||
| 4 | + | ||
| 5 | +// Entry | ||
| 6 | +$_['entry_description'] = 'Description'; | ||
| 7 | +$_['entry_meta_title'] = 'Meta-tag title'; | ||
| 8 | +$_['entry_meta_keyword'] = 'Meta Tag keywords'; | ||
| 9 | +$_['entry_meta_description'] = 'Meta tag description'; | ||
| 10 | +$_['entry_keyword'] = 'SEO URL'; | ||
| 11 | +$_['entry_status'] = 'Status'; | ||
| 12 | +$_['entry_count_articles'] = 'Articles counter in the blog categories module'; | ||
| 13 | +$_['entry_search'] = 'Search in blog'; | ||
| 14 | +$_['entry_comments'] = 'Comments'; | ||
| 15 | +$_['entry_comments_moder'] = 'Moderate comments'; | ||
| 16 | +$_['entry_meta_h1'] = 'Meta H1'; | ||
| 17 | +$_['entry_meta_title'] = 'Meta title'; | ||
| 18 | +$_['entry_meta_description'] = 'Meta description'; | ||
| 19 | +$_['entry_meta_keyword'] = 'Meta keywords'; | ||
| 20 | +$_['entry_description'] = 'Description'; | ||
| 21 | +$_['entry_article_limit'] = 'Number of articles'; | ||
| 22 | +$_['entry_description_length'] = 'Number of characters'; | ||
| 23 | +$_['entry_images'] = 'Images'; | ||
| 24 | +$_['entry_show_main_image'] = 'Show image in article page'; | ||
| 25 | +$_['entry_width_articles'] = 'Size in articles blocks on category pages'; | ||
| 26 | +$_['entry_width_article'] = 'Size on article page'; | ||
| 27 | +$_['entry_width_article_dop'] = 'Size of additional article images'; | ||
| 28 | +$_['entry_article_dop_width'] = 'Size in featured articles'; | ||
| 29 | +$_['entry_product_width'] = 'Size in featured products'; | ||
| 30 | + | ||
| 31 | +// Tab | ||
| 32 | +$_['tab_general'] = 'Settings'; | ||
| 33 | +$_['tab_image'] = 'Images and limits'; | ||
| 34 | + | ||
| 35 | +// Text | ||
| 36 | +$_['text_edit'] = 'Edit settings'; | ||
| 37 | +$_['text_success'] = 'Settings saved successfully'; | ||
| 38 | +$_['text_success_install'] = 'Settings have been successfully installed'; | ||
| 39 | + | ||
| 40 | + | ||
| 41 | +// Error | ||
| 42 | +$_['error_permission'] = 'You are not authorized to change the settings!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Banner +'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_success'] = 'You have successfully saved the module settings!'; | ||
| 7 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 8 | +$_['text_list'] = 'List of banners'; | ||
| 9 | +$_['text_add'] = 'Add banner'; | ||
| 10 | +$_['text_edit'] = 'Edit banner'; | ||
| 11 | +$_['text_default'] = 'Default'; | ||
| 12 | + | ||
| 13 | +// Column | ||
| 14 | +$_['column_name'] = 'Banner name'; | ||
| 15 | +$_['column_status'] = 'Status'; | ||
| 16 | +$_['column_action'] = 'Action'; | ||
| 17 | + | ||
| 18 | +// Entry | ||
| 19 | +$_['entry_settings'] = 'Banner settings'; | ||
| 20 | +$_['entry_name'] = 'Banner name'; | ||
| 21 | +$_['entry_title'] = 'Title'; | ||
| 22 | +$_['entry_link'] = 'Link'; | ||
| 23 | +$_['entry_image'] = 'Image'; | ||
| 24 | +$_['entry_status'] = 'Status'; | ||
| 25 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 26 | +$_['entry_button'] = 'Button text'; | ||
| 27 | +$_['entry_description'] = 'Description'; | ||
| 28 | +$_['entry_background_color'] = 'Block background color'; | ||
| 29 | +$_['entry_title_color'] = 'Title text color'; | ||
| 30 | +$_['entry_text_color'] = 'Description text color'; | ||
| 31 | +$_['entry_button_color'] = 'Button text color'; | ||
| 32 | +$_['entry_button_background'] = 'Button color'; | ||
| 33 | +$_['entry_button_background_hover'] = 'Button background color on hover'; | ||
| 34 | +$_['entry_button_text_hover'] = 'Button text color on hover'; | ||
| 35 | +$_['entry_add_new_block'] = 'Add new'; | ||
| 36 | +$_['entry_new_block'] = 'New block'; | ||
| 37 | + | ||
| 38 | +// Error | ||
| 39 | +$_['error_permission'] = 'Warning: You do not have permission to modify banners!'; | ||
| 40 | +$_['error_name'] = 'Banner name must be between 3 and 64 characters!'; | ||
| 41 | +$_['error_title'] = 'Banner title must be between 2 and 64 characters!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Slideshow +'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_success'] = 'You have successfully saved the module settings!'; | ||
| 7 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 8 | +$_['text_list'] = 'List of slides'; | ||
| 9 | +$_['text_add'] = 'Add slide'; | ||
| 10 | +$_['text_edit'] = 'Edit slide'; | ||
| 11 | +$_['text_default'] = 'Default'; | ||
| 12 | +$_['text_slides'] = 'Slides'; | ||
| 13 | +$_['text_additional_banners'] = 'Discount items'; | ||
| 14 | +$_['text_settings_additional_banners'] = 'Selection of discounted products'; | ||
| 15 | +$_['text_settings_slides'] = 'Slide settings'; | ||
| 16 | +$_['text_banner_title'] = 'Banner №'; | ||
| 17 | + | ||
| 18 | +// Column | ||
| 19 | +$_['column_name'] = 'Slide name'; | ||
| 20 | +$_['column_status'] = 'Status'; | ||
| 21 | +$_['column_action'] = 'Action'; | ||
| 22 | + | ||
| 23 | +// Entry | ||
| 24 | +$_['entry_text_data'] = 'Text data'; | ||
| 25 | +$_['entry_additional_data'] = 'Extras. data'; | ||
| 26 | +$_['entry_name'] = 'Slide name'; | ||
| 27 | +$_['entry_title'] = 'Title'; | ||
| 28 | +$_['entry_link'] = 'Link'; | ||
| 29 | +$_['entry_image'] = 'Image'; | ||
| 30 | +$_['entry_mobile_image'] = 'Image for mobiles'; | ||
| 31 | +$_['entry_status'] = 'Status'; | ||
| 32 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 33 | +$_['entry_button'] = 'Button text'; | ||
| 34 | +$_['entry_description'] = 'Description'; | ||
| 35 | +$_['entry_background_color'] = 'Block background'; | ||
| 36 | +$_['entry_title_color'] = 'Title text color'; | ||
| 37 | +$_['entry_text_color'] = 'Description text color'; | ||
| 38 | +$_['entry_button_color'] = 'Button text color'; | ||
| 39 | +$_['entry_button_color_hover'] = 'Button text color on hover'; | ||
| 40 | +$_['entry_button_background'] = 'Button border color'; | ||
| 41 | +$_['entry_button_background_hover'] = 'Button background on hover'; | ||
| 42 | +$_['entry_additional_banners'] = 'Display the «Products of the day» block'; | ||
| 43 | +$_['entry_add_new_slide'] = 'Add new'; | ||
| 44 | +$_['entry_new_slide'] = 'New slide'; | ||
| 45 | +$_['entry_product'] = 'Products'; | ||
| 46 | +$_['entry_full_img'] = 'Image as background'; | ||
| 47 | + | ||
| 48 | +// Error | ||
| 49 | +$_['error_permission'] = 'Warning: You do not have permission to modify Slideshow +!'; | ||
| 50 | +$_['error_name'] = 'Slideshow Name must be between 3 and 64 characters!'; | ||
| 51 | +$_['error_title'] = 'Slideshow Title must be between 2 and 64 characters!'; | ||
| 52 | +$_['error_image'] = 'Please select all main images for each localization!'; | ||
| 53 | +$_['error_mobile_image'] = 'Please select all mobile images for each localization!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - FAQ'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_success'] = 'Success: You have modified FAQ!'; | ||
| 7 | +$_['text_list'] = 'FAQ list'; | ||
| 8 | +$_['text_add'] = 'Add FAQ'; | ||
| 9 | +$_['text_edit'] = 'Edit FAQ'; | ||
| 10 | +$_['text_filter'] = 'Filter'; | ||
| 11 | +$_['text_yes'] = 'Yes'; | ||
| 12 | +$_['text_no'] = 'No'; | ||
| 13 | +$_['text_email_welcome'] = 'Welcome! We inform you that the answer to the question about the product on the site "%s" has arrived!'; | ||
| 14 | +$_['text_email_thanks'] = 'Thanks for the question,'; | ||
| 15 | +$_['text_email_subject'] = '%s - The answer to your question about the product!'; | ||
| 16 | +$_['text_email_body'] = 'You received a response from the store about the product: "%s" - %s'; | ||
| 17 | + | ||
| 18 | +// Column | ||
| 19 | +$_['column_product'] = 'Product'; | ||
| 20 | +$_['column_author'] = 'Author'; | ||
| 21 | +$_['column_answer'] = 'Answer'; | ||
| 22 | +$_['column_status'] = 'Status'; | ||
| 23 | +$_['column_date_added'] = 'Date added'; | ||
| 24 | +$_['column_action'] = 'Action'; | ||
| 25 | + | ||
| 26 | +// Entry | ||
| 27 | +$_['entry_product'] = 'Product'; | ||
| 28 | +$_['entry_author'] = 'Author'; | ||
| 29 | +$_['entry_answer'] = 'Answer'; | ||
| 30 | +$_['entry_status'] = 'Status'; | ||
| 31 | +$_['entry_text'] = 'Text'; | ||
| 32 | +$_['entry_date_added'] = 'Date added'; | ||
| 33 | +$_['entry_notify'] = 'Notify author of reply?'; | ||
| 34 | + | ||
| 35 | +// Help | ||
| 36 | +$_['help_product'] = '(Autocomplete)'; | ||
| 37 | + | ||
| 38 | +// Error | ||
| 39 | +$_['error_permission'] = 'Warning: You do not have permission to modify FAQ module!'; | ||
| 40 | +$_['error_product'] = 'Product required!'; | ||
| 41 | +$_['error_author'] = 'Author must be between 3 and 64 characters!'; | ||
| 42 | +$_['error_text'] = 'FAQ text must be at least 1 character!'; | ||
| 43 | +$_['error_no_email'] = 'The author of the question did not add his email.'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Page 404'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'The module settings have been updated successfully!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Editing module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_name'] = 'Page title:'; | ||
| 13 | +$_['entry_status'] = 'Status:'; | ||
| 14 | +$_['entry_text'] = 'Text:'; | ||
| 15 | +$_['entry_category'] = 'Categories:'; | ||
| 16 | +$_['entry_manufacturer'] = 'Manufacturers:'; | ||
| 17 | +$_['entry_product'] = 'Products:'; | ||
| 18 | +$_['entry_image'] = 'Image:'; | ||
| 19 | + | ||
| 20 | +// tabs | ||
| 21 | +$_['tab_general'] = 'General'; | ||
| 22 | +$_['tab_layout'] = 'Page 404 layout'; | ||
| 23 | +$_['tab_image'] = 'Images'; | ||
| 24 | + | ||
| 25 | +// Help | ||
| 26 | +$_['help_product'] = 'Auto select'; | ||
| 27 | + | ||
| 28 | +// Text | ||
| 29 | +$_['text_list'] = 'List of Layouts'; | ||
| 30 | +$_['text_add'] = 'Adding Layout'; | ||
| 31 | +$_['text_edit'] = 'Edit Layout'; | ||
| 32 | +$_['text_remove'] = 'Delete'; | ||
| 33 | +$_['text_route'] = 'Select the store to be used with this layout'; | ||
| 34 | +$_['text_module'] = 'Select the position of the modules'; | ||
| 35 | +$_['text_default'] = 'Default'; | ||
| 36 | +$_['text_content_top'] = 'At the top of the page'; | ||
| 37 | +$_['text_content_bottom'] = 'At the bottom of the page'; | ||
| 38 | +$_['text_column_left'] = 'Left column'; | ||
| 39 | +$_['text_column_right'] = 'Right column'; | ||
| 40 | + | ||
| 41 | +// Column | ||
| 42 | +$_['column_name'] = 'Name of the layout'; | ||
| 43 | +$_['column_action'] = 'Action'; | ||
| 44 | + | ||
| 45 | +// Entry | ||
| 46 | +$_['entry_name1'] = 'Layout name:'; | ||
| 47 | +$_['entry_store'] = 'Store:'; | ||
| 48 | +$_['entry_route'] = 'Path:'; | ||
| 49 | +$_['entry_module'] = 'Module:'; | ||
| 50 | + | ||
| 51 | +// Error | ||
| 52 | +$_['error_permission'] = 'You are not authorized to control this module!'; | ||
| 53 | +$_['error_name'] = 'The name of the module must be from 3 to 64 characters!'; | ||
| 54 | +$_['error_width'] = 'Must be specified Width!'; | ||
| 55 | +$_['error_height'] = 'You must specify a height!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Banner +'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_extension'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'Module settings are updated!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Editing module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_name'] = 'Name'; | ||
| 13 | +$_['entry_banner'] = 'Banner'; | ||
| 14 | +$_['entry_show_in_categories'] = 'Show in Categories'; | ||
| 15 | +$_['entry_show_in_products'] = 'Show in Products'; | ||
| 16 | +$_['entry_dimension'] = 'Dimensions (width x height)'; | ||
| 17 | +$_['entry_width'] = 'Image width'; | ||
| 18 | +$_['entry_height'] = 'Image height'; | ||
| 19 | +$_['entry_status'] = 'Status'; | ||
| 20 | + | ||
| 21 | +// Error | ||
| 22 | +$_['error_permission'] = 'Warning: You do not have permission to modify banner module!'; | ||
| 23 | +$_['error_name'] = 'Module Name must be between 3 and 64 characters!'; | ||
| 24 | +$_['error_width'] = 'Width required!'; | ||
| 25 | +$_['error_height'] = 'Height required!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Shop benefits'; | ||
| 4 | + | ||
| 5 | +$_['text_module'] = 'Modules'; | ||
| 6 | +$_['text_extension'] = 'Extensions'; | ||
| 7 | +$_['text_success'] = 'Module settings were updated successfully!'; | ||
| 8 | +$_['text_success_install'] = 'The module was successfully installed!'; | ||
| 9 | +$_['text_edit'] = 'Editing a module'; | ||
| 10 | +$_['text_select_all'] = 'Select all'; | ||
| 11 | +$_['text_unselect_all'] = 'Deselect'; | ||
| 12 | + | ||
| 13 | +$_['entry_status'] = 'Status'; | ||
| 14 | +$_['entry_name'] = 'Title'; | ||
| 15 | +$_['entry_add_new_block'] = 'Add'; | ||
| 16 | +$_['entry_new_block'] = 'New block'; | ||
| 17 | +$_['entry_settings'] = 'Block settings'; | ||
| 18 | +$_['entry_title'] = 'Title text'; | ||
| 19 | +$_['entry_text'] = 'Block text'; | ||
| 20 | +$_['entry_link'] = 'Link'; | ||
| 21 | +$_['entry_colors'] = 'Primary colors'; | ||
| 22 | +$_['entry_icon'] = 'Block icon'; | ||
| 23 | +$_['entry_icon_color'] = 'Icon color'; | ||
| 24 | +$_['entry_color_title'] = 'Title color'; | ||
| 25 | +$_['entry_color_text'] = 'Text color'; | ||
| 26 | +$_['entry_color_fon_hover'] = 'Icon color on hover'; | ||
| 27 | + | ||
| 28 | +//Errors | ||
| 29 | +$_['error_permission'] = 'You do not have permission to manage this module!'; | ||
| 30 | +$_['error_name'] = 'The module name must be between 3 and 64 characters!'; | ||
| 31 | +$_['error_title'] = 'The block title must contain between 2 and 64 characters!'; | ||
| 32 | +$_['error_text'] = 'The text of the block must contain from 2 to 64 characters!'; | ||
| 33 | +$_['error_icon'] = 'The block icon must not be empty!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Blog latest articles'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_extension'] = 'Extensions'; | ||
| 7 | +$_['text_success'] = 'Success: You have modified Octemplates - Blog latest articles module!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Edit Octemplates - Blog latest articles module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_name'] = 'Module name'; | ||
| 13 | +$_['entry_title'] = 'Module title'; | ||
| 14 | +$_['entry_category'] = 'Articles from category'; | ||
| 15 | +$_['entry_limit'] = 'Limit'; | ||
| 16 | +$_['entry_limit_description'] = 'Description limit'; | ||
| 17 | +$_['entry_image_size'] = 'Image size'; | ||
| 18 | +$_['entry_sort'] = 'Sort view'; | ||
| 19 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 20 | +$_['entry_sort_name'] = 'Article name'; | ||
| 21 | +$_['entry_sort_date_added'] = 'Date of creation'; | ||
| 22 | +$_['entry_order_asc'] = 'Order ASC'; | ||
| 23 | +$_['entry_order_desc'] = 'Order DESC'; | ||
| 24 | +$_['entry_show_image'] = 'Show image'; | ||
| 25 | +$_['entry_status'] = 'Status'; | ||
| 26 | + | ||
| 27 | +//Help | ||
| 28 | +$_['help_category'] = 'If you leave empty then the articles will be selected from all categories'; | ||
| 29 | + | ||
| 30 | +// Error | ||
| 31 | +$_['error_permission'] = 'Warning: You do not have permission to modify Octemplates - Blog latest articles module!'; | ||
| 32 | +$_['error_name'] = 'Module name must be between 3 and 64 characters!'; | ||
| 33 | +$_['error_title'] = 'Module title must be between 3 and 64 characters!'; | ||
| 34 | +$_['error_width'] = 'Width required!'; | ||
| 35 | +$_['error_height'] = 'Height required!'; | ||
| 36 | +$_['error_desc_limit'] = 'Description limit required!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Blog Category'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_extension'] = 'Extensions'; | ||
| 7 | +$_['text_success'] = 'Success: You have modified Octemplates - Blog Category module!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Edit Octemplates - Blog Category Module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_status'] = 'Status'; | ||
| 13 | +$_['entry_search'] = 'View Search'; | ||
| 14 | + | ||
| 15 | +// Error | ||
| 16 | +$_['error_permission'] = 'Warning: You do not have permission to modify Octemplates - Blog Category module!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Categories wall'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'Module settings successfully updated!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Editing the module'; | ||
| 10 | +$_['text_select_all'] = 'Select all'; | ||
| 11 | +$_['text_unselect_all'] = 'Remove selection'; | ||
| 12 | + | ||
| 13 | +// Entry | ||
| 14 | +$_['entry_name'] = 'Name'; | ||
| 15 | +$_['entry_heading'] = 'Module header'; | ||
| 16 | +$_['entry_category'] = 'Select a category'; | ||
| 17 | +$_['entry_limit'] = 'Subcategories limit'; | ||
| 18 | +$_['entry_width'] = 'Image width'; | ||
| 19 | +$_['entry_height'] = 'Image height'; | ||
| 20 | +$_['entry_image'] = 'Show category image'; | ||
| 21 | +$_['entry_sub_categories'] = 'Show subcategories'; | ||
| 22 | +$_['entry_status'] = 'Status'; | ||
| 23 | +$_['entry_sort'] = 'Sort'; | ||
| 24 | +$_['entry_by_sort_order'] = 'By sort order'; | ||
| 25 | +$_['entry_by_name'] = 'By Name'; | ||
| 26 | + | ||
| 27 | +// Error | ||
| 28 | +$_['error_permission'] = 'You do not have permission to manage this module!'; | ||
| 29 | +$_['error_name'] = 'Module name must be between 3 and 64 characters!'; | ||
| 30 | +$_['error_heading'] = 'Module header must be between 1 and 255 characters!'; | ||
| 31 | +$_['error_width'] = 'You must enter the width of an image!'; | ||
| 32 | +$_['error_height'] = 'You must enter the height of an image!'; | ||
| 33 | +$_['error_limit'] = 'Subcategories limit must be specified!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Information bar'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'The module settings have been updated successfully!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Editing module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_status'] = 'Status'; | ||
| 13 | +$_['entry_text'] = 'Text'; | ||
| 14 | +$_['entry_link'] = 'Link to article'; | ||
| 15 | +$_['entry_value'] = 'Cookie value'; | ||
| 16 | +$_['entry_max_day'] = 'Days'; | ||
| 17 | +$_['entry_helper_max_day'] = 'Enter the number of days after which the information bar will be shown again'; | ||
| 18 | +$_['entry_background_bar'] = 'Background color of information bar'; | ||
| 19 | +$_['entry_bar_color_text'] = 'Text color'; | ||
| 20 | +$_['entry_bar_color_url'] = 'Link color'; | ||
| 21 | +$_['entry_bar_background_button'] = 'Button background color'; | ||
| 22 | +$_['entry_bar_background_button_hover'] = 'Button background color on hover'; | ||
| 23 | +$_['entry_bar_color_text_button'] = 'Button text color'; | ||
| 24 | +$_['entry_bar_color_text_button_hover'] = 'Button text color on hover'; | ||
| 25 | + | ||
| 26 | +// Error | ||
| 27 | +$_['error_permission'] = 'You have not permissions to control this module!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Cookies policy'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'The module settings have been updated successfully!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Editing module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_status'] = 'Status:'; | ||
| 13 | +$_['entry_text'] = 'Text:'; | ||
| 14 | +$_['entry_link'] = 'Link to article:'; | ||
| 15 | +$_['entry_value'] = 'Cookie value:'; | ||
| 16 | +$_['entry_max_day'] = 'Days:'; | ||
| 17 | +$_['entry_helper_max_day'] = 'Enter the number of days after which the cookie notification will be shown again'; | ||
| 18 | + | ||
| 19 | +// Error | ||
| 20 | +$_['error_permission'] = 'You are not authorized to control this module!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Callback'; | ||
| 4 | + | ||
| 5 | +// Button | ||
| 6 | +$_['button_delete_menu'] = 'Delete'; | ||
| 7 | +$_['button_delete_selected'] = 'Delete selected'; | ||
| 8 | +$_['button_delete_all'] = 'Delete all'; | ||
| 9 | +$_['button_delete'] = 'Delete'; | ||
| 10 | + | ||
| 11 | +// Text | ||
| 12 | +$_['text_module'] = 'Modules'; | ||
| 13 | +$_['text_success'] = 'Settings successfully saved!'; | ||
| 14 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 15 | +$_['text_edit'] = 'Edit module'; | ||
| 16 | +$_['text_enabled_required'] = 'Enabled and required'; | ||
| 17 | +$_['text_select_all'] = 'Select all'; | ||
| 18 | +$_['text_unselect_all'] = 'Clear all'; | ||
| 19 | +$_['text_no_results'] = 'No results'; | ||
| 20 | +$_['text_popup_call_phone'] = 'Requests "Callback"'; | ||
| 21 | +$_['text_total_popup_call_phone'] = 'Total requests'; | ||
| 22 | + | ||
| 23 | +// Tabs | ||
| 24 | +$_['tab_setting'] = 'Settings'; | ||
| 25 | +$_['tab_list'] = 'Requests list'; | ||
| 26 | +$_['tab_display'] = 'Stylization'; | ||
| 27 | + | ||
| 28 | +// Help | ||
| 29 | +$_['help_email'] = 'Enter email separated by commas to send to multiple addresses'; | ||
| 30 | + | ||
| 31 | +// Entry | ||
| 32 | +$_['entry_status'] = 'Status'; | ||
| 33 | +$_['entry_notify_status'] = 'Notification status'; | ||
| 34 | +$_['entry_notify_email'] = 'Mail for notifications'; | ||
| 35 | +$_['entry_name'] = 'Enable "Name" field?'; | ||
| 36 | +$_['entry_telephone'] = 'Enable "Phone" field?'; | ||
| 37 | +$_['entry_comment'] = 'Enable "Comment" field?'; | ||
| 38 | +$_['entry_time'] = 'Enable "Time" field?'; | ||
| 39 | +$_['entry_mask'] = 'Phone number mask'; | ||
| 40 | +$_['entry_mask_info'] = 'Enter number 9 to indicate the number mask in the phone number. For example (999) 999-99-99'; | ||
| 41 | + | ||
| 42 | +// Column | ||
| 43 | +$_['column_action'] = 'Action'; | ||
| 44 | +$_['column_info'] = 'User'; | ||
| 45 | +$_['column_date_added'] = 'Added'; | ||
| 46 | +$_['column_processed'] = 'Processed'; | ||
| 47 | + | ||
| 48 | +// Error | ||
| 49 | +$_['error_permission'] = 'You do not have permission to edit this module!'; | ||
| 50 | +$_['error_notify_email'] = 'The Mail field must not be empty!'; | ||
| 51 | +$_['error_add_processed'] = 'Action completed!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Found cheaper'; | ||
| 4 | + | ||
| 5 | +// Button | ||
| 6 | +$_['button_delete_menu'] = 'Delete'; | ||
| 7 | +$_['button_delete_selected'] = 'Delete selected'; | ||
| 8 | +$_['button_delete_all'] = 'Delete all'; | ||
| 9 | +$_['button_delete'] = 'Delete'; | ||
| 10 | +$_['button_make_note'] = 'Add a note'; | ||
| 11 | + | ||
| 12 | +// Text | ||
| 13 | +$_['text_module'] = 'Modules'; | ||
| 14 | +$_['text_success'] = 'Settings successfully saved!'; | ||
| 15 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 16 | +$_['text_edit'] = 'Edit module'; | ||
| 17 | +$_['text_enabled_required'] = 'Enabled and required'; | ||
| 18 | +$_['text_select_all'] = 'Select all'; | ||
| 19 | +$_['text_unselect_all'] = 'Clear all'; | ||
| 20 | +$_['text_no_results'] = 'No results'; | ||
| 21 | +$_['text_popup_found_cheaper'] = 'Requests "Found cheaper"'; | ||
| 22 | +$_['text_total_popup_found_cheaper'] = 'Total requests'; | ||
| 23 | + | ||
| 24 | +// Tabs | ||
| 25 | +$_['tab_setting'] = 'Settings'; | ||
| 26 | +$_['tab_list'] = 'Requests list'; | ||
| 27 | +$_['tab_display'] = 'Stylization'; | ||
| 28 | + | ||
| 29 | +// Help | ||
| 30 | +$_['help_email'] = 'Enter email separated by commas to send to multiple addresses'; | ||
| 31 | + | ||
| 32 | +// Entry | ||
| 33 | +$_['entry_status'] = 'Status'; | ||
| 34 | +$_['entry_notify_status'] = 'Notification status'; | ||
| 35 | +$_['entry_notify_email'] = 'Mail for notifications'; | ||
| 36 | +$_['entry_name'] = 'Display «Name» field?'; | ||
| 37 | +$_['entry_telephone'] = 'Display «Phone» field?'; | ||
| 38 | +$_['entry_email'] = 'Display «Email» field?'; | ||
| 39 | +$_['entry_comment'] = 'Display «Comment» field?'; | ||
| 40 | +$_['entry_link'] = 'Display «Link» field?'; | ||
| 41 | +$_['entry_mask'] = 'Phone number mask'; | ||
| 42 | +$_['entry_mask_info'] = 'Enter number 9 to indicate the number mask in the phone number. For example (999) 999-99-99'; | ||
| 43 | + | ||
| 44 | +// Column | ||
| 45 | +$_['column_action'] = 'Action'; | ||
| 46 | +$_['column_info'] = 'User'; | ||
| 47 | +$_['column_date_added'] = 'Added'; | ||
| 48 | +$_['column_note'] = 'Note'; | ||
| 49 | +$_['column_processed'] = 'Processed'; | ||
| 50 | + | ||
| 51 | +// Error | ||
| 52 | +$_['error_permission'] = 'You do not have permission to edit this module!'; | ||
| 53 | +$_['error_notify_email'] = 'The Mail field must not be empty!'; | ||
| 54 | +$_['error_add_processed'] = 'Action completed!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Quick order'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'You have successfully changed the settings of the module!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Edit module'; | ||
| 10 | +$_['text_enabled_required'] = 'Enable and required'; | ||
| 11 | +$_['text_options'] = 'Enable options:'; | ||
| 12 | +$_['text_select_all'] = 'Select all'; | ||
| 13 | +$_['text_unselect_all'] = 'Clear all'; | ||
| 14 | +$_['text_allow_stock_check'] = 'Allow to cheсk stock status'; | ||
| 15 | +$_['text_minimum_order_amount'] = 'Minimum order amount'; | ||
| 16 | + | ||
| 17 | +// Help | ||
| 18 | +$_['help_stock_checkout'] = 'Allow the buyer to place an order even if the product is not available'; | ||
| 19 | + | ||
| 20 | +// Tabs | ||
| 21 | +$_['tab_settings'] = 'Settings'; | ||
| 22 | +$_['tab_by_one_click'] = 'Buy in 1 click'; | ||
| 23 | +$_['tab_template'] = 'Email template'; | ||
| 24 | + | ||
| 25 | |||
| 26 | +$_['entry_subscribes_email'] = "Email subject"; | ||
| 27 | +$_['entry_title_email_template'] = 'List of values:'; | ||
| 28 | +$_['entry_title_email_template_order_id'] = 'Order No.'; | ||
| 29 | +$_['entry_title_email_template_store_name'] = 'Store name'; | ||
| 30 | +$_['entry_title_email_template_phone'] = 'Phone'; | ||
| 31 | +$_['entry_title_email_template_logo'] = 'Store logo'; | ||
| 32 | +$_['entry_title_email_template_total'] = 'Total'; | ||
| 33 | +$_['entry_title_email_template_product'] = 'Phoducts'; | ||
| 34 | +$_['entry_title_email_template_firstname'] = 'Customer name'; | ||
| 35 | +$_['entry_title_email_template_comment'] = 'Comment'; | ||
| 36 | +$_['entry_title_email_template_subject'] = 'Subject:'; | ||
| 37 | +$_['entry_title_email_template_textarea'] = 'Letter template:'; | ||
| 38 | + | ||
| 39 | +// Entry | ||
| 40 | +$_['entry_status'] = 'Status'; | ||
| 41 | +$_['entry_firstname'] = 'Display name field?'; | ||
| 42 | +$_['entry_email'] = 'Display mail field?'; | ||
| 43 | +$_['entry_notify_email'] = 'Email for notifications'; | ||
| 44 | +$_['entry_email_helper'] = 'If the Email field is disabled or has an empty value'; | ||
| 45 | +$_['entry_telephone'] = 'Display phone field?'; | ||
| 46 | +$_['entry_comment'] = 'Display comment field?'; | ||
| 47 | +$_['entry_quantity'] = 'Display quantity field?'; | ||
| 48 | +$_['entry_description'] = 'Display product description?'; | ||
| 49 | +$_['entry_image'] = 'Display product image'; | ||
| 50 | +$_['entry_description_max'] = 'Number of characters in description:'; | ||
| 51 | +$_['entry_width'] = 'Image width'; | ||
| 52 | +$_['entry_height'] = 'Image height'; | ||
| 53 | +$_['entry_allow_page'] = 'Output the module on other pages'; | ||
| 54 | +$_['entry_mask'] = 'Phone number mask'; | ||
| 55 | +$_['entry_cart_page'] = 'Cart page'; | ||
| 56 | +$_['entry_popup_cart'] = 'Module "PopUp cart"'; | ||
| 57 | +$_['entry_product_view'] = 'Module "Quick product view"'; | ||
| 58 | +$_['entry_product_page'] = 'Product page'; | ||
| 59 | +$_['entry_mask_info'] = 'Enter number 9 to indicate the number mask in the phone number. For example +38 (999) 999-99-99'; | ||
| 60 | +$_['entry_order_status'] = 'Order status'; | ||
| 61 | +$_['help_order_status'] = 'Set the default order status when an order is processed.'; | ||
| 62 | +$_['entry_display_on_pages'] = 'Display on pages'; | ||
| 63 | +// Error | ||
| 64 | +$_['error_permission'] = 'Warning: You do not have sufficient rights to edit the module!'; | ||
| 65 | +$_['error_notify_email'] = 'The Mail field must not be empty!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Quick product view'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'You have successfully changed the settings of the module!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Edit Quick View Module'; | ||
| 10 | + | ||
| 11 | +// Tabs | ||
| 12 | +$_['tab_setting'] = 'Settings'; | ||
| 13 | +$_['tab_display'] = 'Stylization'; | ||
| 14 | + | ||
| 15 | +// Entry | ||
| 16 | +$_['entry_status'] = 'Module status'; | ||
| 17 | +$_['entry_quantity'] = 'Enable "Quantity" field'; | ||
| 18 | +$_['entry_description_tab'] = 'Enable description'; | ||
| 19 | +$_['entry_specification_tab'] = 'Enable "Characteristics"'; | ||
| 20 | +$_['entry_review_tab'] = 'Enable "Reviews"'; | ||
| 21 | +$_['entry_image'] = 'Enable product image'; | ||
| 22 | +$_['entry_description_max'] = 'Number of characters in description:'; | ||
| 23 | +$_['entry_width'] = 'Width'; | ||
| 24 | +$_['entry_height'] = 'Height'; | ||
| 25 | +$_['entry_wishlist'] = 'Display the "Add to wishlist" button'; | ||
| 26 | +$_['entry_compare'] = 'Display the "Add to compare" button'; | ||
| 27 | +$_['entry_additional_image'] = 'Display additional product images'; | ||
| 28 | +$_['entry_additional_width'] = 'Width'; | ||
| 29 | +$_['entry_additional_height'] = 'Height'; | ||
| 30 | + | ||
| 31 | +// Error | ||
| 32 | +$_['error_permission'] = 'Warning: You do not have permission rights to edit the module!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Bestsellers in Categories and Manufacturers'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'Success: You have modified module!'; | ||
| 8 | +$_['text_success_install'] = 'Success: You have installed module!'; | ||
| 9 | +$_['text_edit'] = 'Edit Module'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_name'] = 'Module Name'; | ||
| 13 | +$_['entry_heading'] = 'Module Heading'; | ||
| 14 | +$_['entry_limit'] = 'Limit'; | ||
| 15 | +$_['entry_width'] = 'Width'; | ||
| 16 | +$_['entry_height'] = 'Height'; | ||
| 17 | +$_['entry_status'] = 'Status'; | ||
| 18 | +$_['entry_subcategories'] = 'Show bestsellers in parent categories'; | ||
| 19 | + | ||
| 20 | +// Error | ||
| 21 | +$_['error_permission'] = 'Warning: You do not have permission to modify module!'; | ||
| 22 | +$_['error_name'] = 'Module Name must be between 3 and 64 characters!'; | ||
| 23 | +$_['error_heading'] = 'Module Heading must be between 3 and 64 characters!'; | ||
| 24 | +$_['error_width'] = 'Width required!'; | ||
| 25 | +$_['error_height'] = 'Height required!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Change photo when choosing an option'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'You have successfully changed the settings of the module!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Edit the module for changing the product photo when an option is selected'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_status'] = 'Module status'; | ||
| 13 | +$_['entry_allow_autoselect_option'] = 'Enable auto-select first option value'; | ||
| 14 | +$_['entry_options'] = 'Options to which auto-selection of the first value applies'; | ||
| 15 | + | ||
| 16 | +// Error | ||
| 17 | +$_['error_permission'] = 'Warning: You do not have permission rights to edit the module!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Multi products'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'Module settings successfully updated!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Editing the module'; | ||
| 10 | +$_['text_select_all'] = 'Select all'; | ||
| 11 | +$_['text_unselect_all'] = 'Remove selection'; | ||
| 12 | +$_['text_grid'] = 'Grid'; | ||
| 13 | +$_['text_carousel'] = 'Carousel'; | ||
| 14 | +$_['text_order_asc'] = 'Ascending'; | ||
| 15 | +$_['text_order_desc'] = 'Descending'; | ||
| 16 | +$_['text_pdname'] = 'By name'; | ||
| 17 | +$_['text_pprice'] = 'By price'; | ||
| 18 | +$_['text_pmodel'] = 'By model'; | ||
| 19 | +$_['text_pquantity'] = 'By quantity'; | ||
| 20 | +$_['text_rating'] = 'By rating'; | ||
| 21 | +$_['text_pviewed'] = 'By views'; | ||
| 22 | +$_['text_psort_order'] = 'By sort order'; | ||
| 23 | +$_['text_pdate_added'] = 'By date'; | ||
| 24 | + | ||
| 25 | +// Entry | ||
| 26 | +$_['entry_name'] = 'System name of the module'; | ||
| 27 | +$_['entry_heading'] = 'Module header'; | ||
| 28 | +$_['entry_link'] = 'Link for module header'; | ||
| 29 | +$_['entry_category'] = 'Show products from categories'; | ||
| 30 | +$_['entry_show_in_categories'] = 'Show module in categories'; | ||
| 31 | +$_['entry_product'] = 'Select products'; | ||
| 32 | +$_['entry_limit'] = 'Products limit in the module'; | ||
| 33 | +$_['entry_width'] = 'Image width'; | ||
| 34 | +$_['entry_height'] = 'Image height'; | ||
| 35 | +$_['entry_auto_play'] = 'Autoscroll products in the module'; | ||
| 36 | +$_['entry_status'] = 'Status'; | ||
| 37 | +$_['entry_view'] = 'View'; | ||
| 38 | +$_['entry_quantity_view'] = 'Display items with 0 quantity'; | ||
| 39 | +$_['entry_only_specials'] = 'Display only special products'; | ||
| 40 | +$_['entry_show_more'] = 'Display "Show more" button'; | ||
| 41 | +$_['text_atributes_limit'] = 'Limit of attributes'; | ||
| 42 | +$_['entry_product_atributes'] = 'Enable "Main characteristics"'; | ||
| 43 | +$_['entry_sort'] = 'Sort'; | ||
| 44 | +$_['entry_quantity_show'] = 'Display quantity selection?'; | ||
| 45 | + | ||
| 46 | +// Help | ||
| 47 | +$_['help_product'] = '(Auto-completion)'; | ||
| 48 | + | ||
| 49 | +// Error | ||
| 50 | +$_['error_permission'] = 'You do not have permission to manage this module!'; | ||
| 51 | +$_['error_name'] = 'Name must be between 3 and 64 characters!'; | ||
| 52 | +$_['error_heading'] = 'Module header must be between 1 and 255 characters!'; | ||
| 53 | +$_['error_link'] = 'The link for the module header must be between 1 and 100 characters!'; | ||
| 54 | +$_['error_width'] = 'Width required'; | ||
| 55 | +$_['error_height'] = 'Height required!'; | ||
| 56 | +$_['error_limit'] = 'Product limit required!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Last reviews'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_module'] = 'Modules'; | ||
| 7 | +$_['text_success'] = 'Settings successfully changed!'; | ||
| 8 | +$_['text_success_install'] = 'The module settings have been install successfully!'; | ||
| 9 | +$_['text_edit'] = 'Module settings'; | ||
| 10 | + | ||
| 11 | +// Entry | ||
| 12 | +$_['entry_name'] = 'Module name'; | ||
| 13 | +$_['entry_limit'] = 'Limit'; | ||
| 14 | +$_['entry_width'] = 'Image width'; | ||
| 15 | +$_['entry_height'] = 'Image height'; | ||
| 16 | +$_['entry_status'] = 'Status'; | ||
| 17 | + | ||
| 18 | +// Error | ||
| 19 | +$_['error_permission'] = 'You do not have permission to manage this module!'; | ||
| 20 | +$_['error_limit'] = 'Enter the product limit!'; | ||
| 21 | +$_['error_width'] = 'Enter the width of the image!'; | ||
| 22 | +$_['error_height'] = 'Enter the height of the image!'; |
| 1 | +<?php | ||
| 2 | +// Heading | ||
| 3 | +$_['heading_title'] = 'Octemplates - Products sets'; | ||
| 4 | + | ||
| 5 | +// Text | ||
| 6 | +$_['text_success'] = 'Successfully saved!'; | ||
| 7 | +$_['text_success_install'] = 'Module successfully installed!'; | ||
| 8 | +$_['text_success_deleted'] = 'Set successfully deleted!'; | ||
| 9 | +$_['text_empty'] = 'You don\'t have any sets yet, add a new set.'; | ||
| 10 | +$_['text_list'] = 'List of sets'; | ||
| 11 | +$_['text_form'] = 'Add/Edit set'; | ||
| 12 | +$_['text_enabled'] = 'Enabled'; | ||
| 13 | +$_['text_disabled'] = 'Disabled'; | ||
| 14 | +$_['text_relations'] = 'Relations'; | ||
| 15 | +$_['text_settings'] = 'Settings'; | ||
| 16 | +$_['text_product_sets'] = 'Products in the set:'; | ||
| 17 | +$_['text_pagination'] = 'Showing from %d to %d of %d (total %d pages)'; | ||
| 18 | +$_['text_module'] = 'Modules'; | ||
| 19 | +$_['text_edit'] = 'Edit module'; | ||
| 20 | +$_['text_set_name'] = 'Set name'; | ||
| 21 | +$_['text_product_name'] = 'Product name'; | ||
| 22 | +$_['text_category_name'] = 'Category'; | ||
| 23 | +$_['text_manufacturer_name'] = 'Manufacturer'; | ||
| 24 | + | ||
| 25 | +// Button | ||
| 26 | +$_['button_add'] = 'Add set'; | ||
| 27 | +$_['button_delete_selected'] = 'Delete selected'; | ||
| 28 | + | ||
| 29 | +// Column | ||
| 30 | +$_['column_title'] = 'Title'; | ||
| 31 | +$_['column_sort_order'] = 'Sort order'; | ||
| 32 | +$_['column_action'] = 'Action'; | ||
| 33 | +$_['column_product_name'] = 'Product name'; | ||
| 34 | +$_['column_discount_type'] = 'Discount type'; | ||
| 35 | +$_['column_discount_value'] = 'Discount value'; | ||
| 36 | +$_['column_sort_order'] = 'Sort order'; | ||
| 37 | +$_['column_qantity'] = 'Quantity'; | ||
| 38 | +$_['column_delete'] = 'Delete'; | ||
| 39 | +$_['column_name'] = 'Name'; | ||
| 40 | +$_['column_date_added'] = 'Date added'; | ||
| 41 | +$_['column_action'] = 'Action'; | ||
| 42 | +$_['column_status'] = 'Status'; | ||
| 43 | + | ||
| 44 | +// Entry | ||
| 45 | +$_['entry_name'] = 'Name'; | ||
| 46 | +$_['entry_title'] = 'Tab title'; | ||
| 47 | +$_['entry_status'] = 'Status'; | ||
| 48 | +$_['entry_sort_order'] = 'Sort order'; | ||
| 49 | +$_['entry_customer_group'] = 'Available for customer groups'; | ||
| 50 | +$_['entry_products_to_show'] = 'Products'; | ||
| 51 | +$_['entry_date'] = 'Date'; | ||
| 52 | +$_['entry_date_start'] = 'Start date'; | ||
| 53 | +$_['entry_date_end'] = 'End date'; | ||
| 54 | +$_['entry_store'] = 'Stores'; | ||
| 55 | +$_['discount_type_percentage'] = 'Percentage'; | ||
| 56 | +$_['discount_type_fixed'] = 'Fixed amount'; | ||
| 57 | +$_['entry_product_show_in'] = 'Show in products'; | ||
| 58 | +$_['entry_category'] = 'Show in categories'; | ||
| 59 | +$_['entry_manufacturer'] = 'Show in manufacturers'; | ||
| 60 | +$_['entry_limit'] = 'Limit'; | ||
| 61 | + | ||
| 62 | +// Error | ||
| 63 | +$_['error_warning_text'] = 'Check the form for errors!'; | ||
| 64 | +$_['error_permission'] = 'You do not have permission to edit the module!'; | ||
| 65 | +$_['error_name_module'] = 'The module name must contain from 2 to 64 characters!'; | ||
| 66 | +$_['error_products_to_show'] = 'You need to specify 2 products to display!'; | ||
| 67 | +$_['error_sort_order_text'] = 'Sort order must be a number!'; | ||
| 68 | +$_['error_c_group_id_text'] = 'You need to select customer groups!'; | ||
| 69 | +$_['error_store_id_text'] = 'You need to select a store!'; | ||
| 70 | +$_['error_product_show_in_text'] = 'You need to select products in which to display the module!'; | ||
| 71 | +$_['error_date_start'] = 'You need to specify the correct start date!'; | ||
| 72 | +$_['error_date_end'] = 'You need to specify the correct end date!'; | ||
| 73 | +$_['error_discount_value'] = 'You need to specify the discount value as a number!'; | ||
| 74 | +$_['error_name'] = 'The module name must contain from 2 to 64 characters!'; | ||
| 75 | +$_['error_limit'] = 'You must specify a limit!'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/interkassa.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/liqpay.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/maestro.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/mastercard.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/monoplata.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/paypal.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/privat24.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/skrill.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/visa.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/1x_adm/view/image/pay/wayforpay.svg
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
upload/1x_adm/view/stylesheet/fontawesome-free-6.5.2-web/webfonts/fa-v4compatibility.woff2
0 → 100644
No preview for this file type
upload/1x_adm/view/stylesheet/oct_deals.css
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/model/octemplates/helper.php
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
5.22 KB
1.7 KB
983 Bytes
2.05 KB
6.27 KB
5.66 KB
3.43 KB
6.19 KB
52.8 KB
278 Bytes
3.65 KB
205 KB
9.58 KB
11.8 KB
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
56.4 KB
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
No preview for this file type
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
upload/catalog/view/theme/oct_deals/stylesheet/fontawesome/webfonts/fa-v4compatibility.ttf
0 → 100644
No preview for this file type
upload/catalog/view/theme/oct_deals/stylesheet/fontawesome/webfonts/fa-v4compatibility.woff2
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/countryzone_fields.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/customer_address_fields.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/customer_fields.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/payment_fields.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/payment_methods.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/recommended_products.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/shipping_methods.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/checkout/oct_smartcheckout/smartcheckout.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/credit_card/sagepay_direct_form.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/credit_card/sagepay_direct_list.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/credit_card/sagepay_server_list.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/module/klarna_checkout_module.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/amazon_login_pay_address.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/amazon_login_pay_confirm.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/amazon_login_pay_failure.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/amazon_login_pay_payment.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/klarna_checkout_sidebar.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/klarna_checkout_success.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/extension/payment/pp_payflow_iframe_return.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/mail/oct_popup_call_phone_mail.twig
0 → 100644
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/mail/oct_popup_found_cheaper_mail.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_popup_call_phone.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_popup_cart_shipping.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_popup_found_cheaper.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_popup_product_options.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_popup_purchase_byoneclick.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_products_modules.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/catalog/view/theme/oct_deals/template/octemplates/module/oct_static_subscribe.twig
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
upload/image/catalog/deals/404.svg
0 → 100644
This diff is collapsed. Click to expand it.
upload/image/catalog/deals/deals.jpg
0 → 100644
1.15 MB
3.54 KB
upload/image/catalog/deals/index.html
0 → 100644
This diff is collapsed. Click to expand it.
upload/image/catalog/deals/lazy-image.svg
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment