<?php
class ControllerModuleBigshop extends Controller {
private $error = array();
public function index() {
//Load the language file for this module
$language = $this->load->language('module/bigshop');
$this->data = array_merge($this->data, $language);
//Set the title from the language file $_['heading_title'] string
$this->document->setTitle($this->language->get('heading_title'));
//Load the settings model. You can also add any other models you want to load here.
$this->load->model('setting/setting');
$this->load->model('tool/image');
//Save the settings if the user has submitted the admin form (ie if someone has pressed save).
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
$this->model_setting_setting->editSetting('bigshop', $this->request->post);
$this->session->data['success'] = $this->language->get('text_success');
$this->redirect($this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'));
}
$this->data['text_image_manager'] = 'Image manager';
$this->data['token'] = $this->session->data['token'];
$text_strings = array(
'heading_title',
'text_enabled',
'text_disabled',
'text_content_top',
'text_content_bottom',
'text_column_left',
'text_column_right',
'entry_status',
'entry_sort_order',
'button_save',
'button_cancel',
);
foreach ($text_strings as $text) {
$this->data[$text] = $this->language->get($text);
}
// store config data
$config_data = array(
'bigshop_status',
'bigshop_background_color',
'bigshop_top_header_color',
'bigshop_title_color',
'bigshop_bodytext_color',
'bigshop_header_text_color',
'bigshop_top_right_link_color',
'bigshop_menu_color',
'bigshop_links_color',
'bigshop_button_color',
'bigshop_button_hover_color',
'bigshop_button_text_color',
'bigshop_footer_heading_text_color',
'bigshop_sub_link_text_color',
'bigshop_powerd_by_text_color',
'bigshop_pattern_overlay',
'bigshop_custom_image',
'bigshop_custom_pattern',
'bigshop_image_preview',
'bigshop_pattern_preview',
'bigshop_social_title',
'bigshop_facebook_id',
'bigshop_twitter_username',
'bigshop_gplus_id',
'bigshop_pint_id',
'bigshop_about_title',
'bigshop_footer_info_text',
'bigshop_title_font',
'bigshop_body_font',
'bigshop_small_font',
'bigshop_facebook_id',
'twitter_column_header',
'twitter_number_of_tweets',
'twitter_username',
'bigshop_theme_color',
'bigshop_address',
'bigshop_mobile',
'bigshop_email',
'bigshop_fax',
);
foreach ($config_data as $conf) {
if (isset($this->request->post[$conf])) {
$this->data[$conf] = $this->request->post[$conf];
} else {
$this->data[$conf] = $this->config->get($conf);
}
}
//This creates an error message. The error['warning'] variable is set by the call to function validate() in this controller (below)
if (isset($this->error['warning'])) {
$this->data['error_warning'] = $this->error['warning'];
} else {
$this->data['error_warning'] = '';
}
//SET UP BREADCRUMB TRAIL. YOU WILL NOT NEED TO MODIFY THIS UNLESS YOU CHANGE YOUR MODULE NAME.
$this->data['breadcrumbs'] = array();
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
'separator' => false
);
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('text_module'),
'href' => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'),
'separator' => ' :: '
);
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('module/bigshop', 'token=' . $this->session->data['token'], 'SSL'),
'separator' => ' :: '
);
$this->data['action'] = $this->url->link('module/bigshop', 'token=' . $this->session->data['token'], 'SSL');
$this->data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL');
//This code handles the situation where you have multiple instances of this module, for different layouts.
if (isset($this->request->post['bigshop_module'])) {
$modules = explode(',', $this->request->post['bigshop_module']);
} elseif ($this->config->get('bigshop_module') != '') {
$modules = explode(',', $this->config->get('bigshop_module'));
} else {
$modules = array();
}
$this->load->model('design/layout');
$this->data['layouts'] = $this->model_design_layout->getLayouts();
foreach ($modules as $module) {
if (isset($this->request->post['bigshop_' . $module . '_layout_id'])) {
$this->data['bigshop_' . $module . '_layout_id'] = $this->request->post['bigshop_' . $module . '_layout_id'];
} else {
$this->data['bigshop_' . $module . '_layout_id'] = $this->config->get('bigshop_' . $module . '_layout_id');
}
if (isset($this->request->post['bigshop_' . $module . '_position'])) {
$this->data['bigshop_' . $module . '_position'] = $this->request->post['bigshop_' . $module . '_position'];
} else {
$this->data['bigshop_' . $module . '_position'] = $this->config->get('bigshop_' . $module . '_position');
}
if (isset($this->request->post['bigshop_' . $module . '_status'])) {
$this->data['bigshop_' . $module . '_status'] = $this->request->post['bigshop_' . $module . '_status'];
} else {
$this->data['bigshop_' . $module . '_status'] = $this->config->get('bigshop_' . $module . '_status');
}
if (isset($this->request->post['bigshop_' . $module . '_sort_order'])) {
$this->data['bigshop_' . $module . '_sort_order'] = $this->request->post['bigshop_' . $module . '_sort_order'];
} else {
$this->data['bigshop_' . $module . '_sort_order'] = $this->config->get('bigshop_' . $module . '_sort_order');
}
}
$this->data['modules'] = $modules;
if (isset($this->request->post['bigshop_module'])) {
$this->data['bigshop_module'] = $this->request->post['bigshop_module'];
} else {
$this->data['bigshop_module'] = $this->config->get('bigshop_module');
}
//Choose which template file will be used to display this request.
$this->template = 'module/bigshop.tpl';
$this->children = array(
'comm
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
bigsha.net_BootstrapWordpress前端源码模板_网站UI界面主题.zip (262个子文件)
stylesheet.css 43KB
documenter_style.css 8KB
ie6.css 4KB
slideshow.css 3KB
carousel.css 3KB
facebook.css 2KB
autocomplete.css 873B
ie7.css 855B
facebookIE.css 390B
blank.gif 1KB
loading.gif 733B
cross.gif 83B
arrow.gif 66B
index.html 10KB
color.jpg 378KB
autocomplete.jpg 186KB
latest.jpg 171KB
ftp.jpg 167KB
special.jpg 164KB
category.jpg 124KB
main-slider.jpg 118KB
setting.jpg 116KB
getdata.jpg 107KB
select-theme.jpg 103KB
featured.jpg 91KB
main-slider-1.jpg 53KB
jquery.1.6.4.js 90KB
jscolor.js 27KB
jquery.flexslider-min.js 16KB
cloud_zoom.js 15KB
jquery.easing.js 8KB
jquery.dcjqaccordion.js 7KB
jquery.easing-1.3.min.js 5KB
autocomplete.js 4KB
script.js 4KB
dimensions.js 3KB
jquery.scrollTo-1.4.2-min.js 2KB
custom.js 794B
bigshop.php 9KB
category_accordion.php 4KB
bigshop.php 4KB
category_accordion.php 4KB
getdata.php 797B
category_accordion.php 782B
header.php 442B
category_accordion.php 55B
25.png 101KB
24.png 100KB
23.png 52KB
22.png 41KB
bigshop.png 15KB
11.png 12KB
pinterest.png 7KB
10.png 6KB
25.png 6KB
logo.png 5KB
23.png 5KB
24.png 4KB
11.png 4KB
facebook.png 4KB
twitter.png 4KB
22.png 4KB
10.png 4KB
stars-1.png 3KB
stars-2.png 3KB
stars-3.png 3KB
stars-4.png 3KB
stars-5.png 3KB
stars-0.png 3KB
arrows.png 3KB
list-icon.png 3KB
home-icon.png 3KB
1.png 3KB
button-previous.png 3KB
button-next.png 3KB
cart-bg.png 3KB
button-search.png 3KB
20.png 3KB
19.png 3KB
15.png 3KB
13.png 3KB
17.png 3KB
18.png 3KB
16.png 3KB
20.png 3KB
18.png 3KB
12.png 3KB
19.png 3KB
bullets.png 3KB
17.png 3KB
14.png 3KB
15.png 3KB
16.png 3KB
4.png 3KB
14.png 3KB
9.png 3KB
12.png 3KB
3.png 3KB
5.png 3KB
4.png 3KB
共 262 条
- 1
- 2
- 3
资源评论
dunming_6725413
- 粉丝: 16
- 资源: 6950
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功