/
options.css.php
321 lines (293 loc) · 14.7 KB
/
options.css.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<?php
define('MAGENTO_ROOT', dirname(__FILE__));
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
require_once $mageFilename;
umask(0);
if ( empty($_GET['store']) ) {
$_GET['store'] = '';
}
Mage::app( $_GET['store'] );
$config = Mage::getStoreConfig('shoppersettings', $_GET['store']);
$slideshow_config = Mage::getStoreConfig('shopperslideshow', $_GET['store']);
$color_helper = Mage::helper('shoppersettings/color');
//check if category override theme options
if (!empty($_GET['cat'])) {
$current_category = intval($_GET['cat']);
$current_scheme = Mage::helper('shoppercategories')->getCategoryScheme($current_category);
if ($current_scheme) {
foreach ($config['appearance'] as $config_option => $value) {
if (!empty($current_scheme[$config_option])) {
$config['appearance'][$config_option] = $current_scheme[$config_option];
}
}
$config['appearance']['content_bg_img'] = str_replace('queldorei/shopper/', '', $config['appearance']['content_bg_img']);
}
}
header("Content-type: text/css; charset: UTF-8");
?>
<?php if ( $config['appearance']['enable_font'] == 1 ) : ?>
/**~~ Theme Font ~~**/
.std h1, .std h2, .std h3, .std h4,
.page-title h1, .page-title h2,
.cart-top-title,
.compare-top-title,
.search-top-container .search-form .search-top-title,
.footer-info h4,
nav .nav-top-title, .nav-container .nav-top-title,
#queldoreiNav>li>a,
#queldoreiNav li.custom-block div.sub-wrapper strong,
#nav>li>a, #mobile-nav>li>a,
#nav li.custom-block ul li strong,
.wide-navigation #nav ul.level0 > li > a,
.homepage-banners a .content strong,
.slider-container h3,
.slider-container .jcarousel-list h3,
.category-description h1,
.category-description strong,
.products-grid h3,
.products-list .product-name a,
.cart .cart-collaterals h2,
#shopping-cart-totals-table strong,
#product-customer-reviews .review-title,
.add-review h3.title,
#customer-reviews dt a,
#customer-reviews .form-add h2,
.top-opc li .number,
.opc .step-title,
.opc h3,
.block .block-title strong,
.cms-index-index .block .block-title strong,
.block-poll .question,
.block-layered-nav dt,
.product-tabs a,
.product-tabs-accordion h2.tab-heading a,
.product-category-title,
.product-view h1,
.product-view h2,
.product-view .box-tags h3,
.product-view .product-additional .block .block-title strong,
.box-up-sell2 h3,
.box-up-sell2 .jcarousel-list h3,
.flexslider .slides .content strong,
.data-table td.td-name h2,
.block-slider .slides > li strong,
.cms-index-index .block-slider .slides > li strong {font-family:"<?php echo $config['appearance']['font']; ?>"}
<?php endif; ?>
<?php if ( !empty($config['appearance']['color']) ) : ?>
/**~~ Theme Color ~~**/
button.button span,
button.invert:hover span, button.btn-continue:hover span, .cart-shipping button:hover span, .cart-coupon button:hover span,
.btn-remove, .btn-edit,
.cart-top > a,
.cart-top-container .details-border,
.cart-top-title a span.icon,
.compare-top,
.compare-top-container .details-border,
.compare-top-title a span.icon,
.search-top,
.search-form-border,
.search-top-container .search-form .search-top-title span.icon,
.footer-info ul.twitterList li span.tweet-icon,
.footer-info ul.social li a:hover,
.footer-info .block-control:hover,
.footer-info .block-control-hide:hover,
.products-grid .hover .price-box,
.products-grid .hover .button-container button.button span span em,
.products-list .button-container .btn-add-cart span,
.data-table .btn-remove2,
.data-table .btn-edit2,
.top-opc li.allow:hover .number,
.product-view .add-to-links li:hover span.icon,
.flex-control-paging li a:hover,
.flex-control-paging li a.flex-active,
#toTop,
.jcarousel-prev-horizontal:hover,
.jcarousel-next-horizontal:hover,
.product-view .box-up-sell .jcarousel-next-horizontal:hover,
.product-view .box-up-sell .jcarousel-prev-horizontal:hover,
.quick-view,
nav .nav-top-title:hover, .nav-container .nav-top-title:hover,
nav .nav-top-title.active, .nav-container .nav-top-title.active,
nav .nav-top-title div.icon span, .nav-container .nav-top-title div.icon span
{background-color:<?php echo $config['appearance']['color']; ?>}
/***** iPad Smaller than 959px *****/
@media only screen and (max-width: 959px) {
#queldoreiNav>li>a:hover, #nav>li>a:hover, #mobile-nav>li>a:hover,
#queldoreiNav>li.over>a, #nav>li.over>a, #mobile-nav>li.over>a,
#queldoreiNav>li.active>a, #nav>li.active>a, #mobile-nav>li.active>a {background-color:<?php echo $config['appearance']['color']; ?>; color:#fff; -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px;}
}
.footer-info a,
.footer-info .information ul li:before, .footer-info ul.disc li:before,
.price-box .price,
.pager .pages li a:hover,
.pager .pages .current,
.toolbar-dropdown ul li a:hover, .toolbar-dropdown ul li.selected a,
.products-grid .add-to-links li span,
.opc h3, .opc h4,
.block-progress dt:before,
#checkout-step-login .block-checkout-register ul.ul li:before
{color:<?php echo $config['appearance']['color']; ?>}
.cart-top-container .details-border:before{border-color: transparent transparent <?php echo $config['appearance']['color']; ?> transparent;}
.compare-top-container .details-border:before{border-color: transparent transparent <?php echo $config['appearance']['color']; ?> transparent;}
.search-form-border:before{border-color: transparent transparent <?php echo $config['appearance']['color']; ?> transparent;}
#queldoreiNav>li>a:hover>span,
#queldoreiNav>li.over>a>span,
#queldoreiNav>li.active>a>span,
#nav>li>a:hover>span,
#nav>li.over>a>span,
#nav>li.active>a>span,
#mobile-nav>li>a:hover>span,
#mobile-nav>li.over>a>span,
#mobile-nav>li.active>a>span,
.cart .cart-collaterals .cart-block,
.opc .step,
.block,
.cms-index-index .block,
.block-login,
.cart .cart-collaterals .cart-block,
.product-tabs li.active, .product-tabs-accordion h2.active {border-top-color:<?php echo $config['appearance']['color']; ?>;}
/** links hover color **/
.header-container .links li a:hover,
.block .block-content a:hover, .block .block-content li a:hover, .block .block-content li.item a:hover,
.cms-index-index .block .block-content a:hover, .cms-index-index .block .block-content li a:hover, .cms-index-index .block .block-content li.item a:hover,
.block-layered-nav .block-content dd li a:hover,
.product-view .product-shop .no-rating a:hover, .product-view .product-shop .ratings a:hover,
.product-view .box-up-sell .product-name:hover,
.data-table td a:hover{color:<?php echo $config['appearance']['color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['title_color']) ) : ?>
h1, h2, h3,
.std h1, .std h2, .std h3, .std h4,
.page-title h1, .page-title h2,
.page-head-alt h3,
.block .block-title,
.cms-index-index .block .block-title,
.block-login .block-title,
.product-view .product-additional .block .block-title,
.footer-info h4,
#checkout-review-table h3,
.product-category-title,
.product-view h1, .product-view h2,
#shopping-cart-totals-table strong
{color:<?php echo $config['appearance']['title_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['header_bg']) ) : ?>
.header-container, header.fixed {background-color:<?php echo $config['appearance']['header_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['menu_text_color']) ) : ?>
#queldoreiNav > li > a, #nav > li > a, #mobile-nav > li > a {color:<?php echo $config['appearance']['menu_text_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['slideshow_bg']) ) : ?>
.slider {background-color:<?php echo $config['appearance']['slideshow_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['content_bg']) ) : ?>
body, .main-container {background-color:<?php echo $config['appearance']['content_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['content_bg_img']) && $config['appearance']['content_bg_img_mode'] == 'tile' ) : ?>
.main-container {background-image:url('<?php echo Mage::getBaseUrl('media') . 'queldorei/shopper/' . $config['appearance']['content_bg_img']; ?>'); background-position:top left; background-repeat:repeat}
<?php endif; ?>
<?php if ( !empty($config['appearance']['content_link']) ) : ?>
.block .block-content a, .block .block-content li a, .block .block-content li.item a,
.cms-index-index .block .block-content a, .cms-index-index .block .block-content li a, .cms-index-index .block .block-content li.item a,
.block-layered-nav .block-content dd li a,
.product-view .product-shop .no-rating a, .product-view .product-shop .ratings a,
.product-view .box-up-sell .product-name,
.data-table td a{color:<?php echo $config['appearance']['content_link']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['content_link_hover']) ) : ?>
.block .block-content a:hover, .block .block-content li a:hover, .block .block-content li.item a:hover,
.cms-index-index .block .block-content a:hover, .cms-index-index .block .block-content li a:hover, .cms-index-index .block .block-content li.item a:hover,
.block-layered-nav .block-content dd li a:hover,
.product-view .product-shop .no-rating a:hover, .product-view .product-shop .ratings a:hover,
.product-view .box-up-sell .product-name:hover,
.data-table td a:hover {color:<?php echo $config['appearance']['content_link_hover']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['page_title_bg']) ) : ?>
.page-title-bg {background-color:<?php echo $config['appearance']['page_title_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['slider_bg']) ) : ?>
.slider-container {background-color:<?php echo $config['appearance']['slider_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['slider_border']) ) : ?>
.slider-container {border-top-color:<?php echo $config['appearance']['slider_border']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['toolbar_bg']) ) : ?>
.top-switch-bg {background-color:<?php echo $config['appearance']['toolbar_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['toolbar_color']) ) : ?>
.header-switch span.current {color:<?php echo $config['appearance']['toolbar_color']; ?>}
.header-container .links li a, .header-switch span {color:rgba(<?php echo $color_helper->hex2RGB($config['appearance']['toolbar_color'], 1); ?>, 0.65)}
<?php endif; ?>
<?php if ( !empty($config['appearance']['toolbar_hover_color']) ) : ?>
.header-container .links li a:hover {color:<?php echo $config['appearance']['toolbar_hover_color'] ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_bg']) ) : ?>
.footer-container {background-color:<?php echo $config['appearance']['footer_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_color']) ) : ?>
.footer-container, footer a, footer ul.links li a {color:<?php echo $config['appearance']['footer_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_hover_color']) ) : ?>
footer a:hover, footer ul.links li a:hover {color:<?php echo $config['appearance']['footer_hover_color'] ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_banners_bg']) ) : ?>
.footer-banners {background-color:<?php echo $config['appearance']['footer_banners_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_info_bg']) ) : ?>
.footer-info {background-color:<?php echo $config['appearance']['footer_info_bg']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_info_border']) ) : ?>
.footer-info {border-top-color:<?php echo $config['appearance']['footer_info_border']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_info_title_color']) ) : ?>
.footer-info h4 {color:<?php echo $config['appearance']['footer_info_title_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_info_color']) ) : ?>
.footer-info, .footer-info ul.twitterList li {color:<?php echo $config['appearance']['footer_info_color']; ?>}
.footer-info ul.twitterList li span.time-ago {color:rgba(<?php echo $color_helper->hex2RGB($config['appearance']['footer_info_color'], 1); ?>, 0.85)}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_info_link_color']) ) : ?>
.footer-info a {color:<?php echo $config['appearance']['footer_info_link_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['footer_info_link_hover_color']) ) : ?>
.footer-info a:hover {color:<?php echo $config['appearance']['footer_info_link_hover_color']; ?>}
<?php endif; ?>
<?php if ( $config['appearance']['enable_font'] && !empty($config['appearance']['price_font']) ) : ?>
.price-box .price {font-family:"<?php echo $config['appearance']['price_font']; ?>"}
<?php endif; ?>
<?php if ( !empty($config['appearance']['price_color']) ) : ?>
.price-box .price {color:<?php echo $config['appearance']['price_color']; ?>}
.products-grid .hover .price-box {background-color:<?php echo $config['appearance']['price_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['price_circle_color']) ) : ?>
.products-grid .hover .price-box {background-color:<?php echo $config['appearance']['price_circle_color']; ?>}
<?php endif; ?>
<?php if ( !empty($config['appearance']['timeline']) ) : ?>
#slide-timeline {background-color:<?php echo $config['appearance']['timeline']; ?>}
<?php endif; ?>
button.invert span, button.btn-continue span, .cart-shipping button span, .cart-coupon button span {background-color:#393431;}
#queldoreiNav > li > a:hover, #queldoreiNav > li.active > a, #queldoreiNav > li.over > a,
#nav > li > a:hover, #nav > li.active > a, #nav > li.over > a,
#mobile-nav > li > a:hover, #mobile-nav > li.active > a, #mobile-nav > li.over > a {color:#373230}
<?php if ( isset($config['design']['top_compare']) && $config['design']['top_compare'] == 0 ) : ?>
.compare-top-title, .compare-top-container {display:none !important}
<?php endif; ?>
<?php if ( isset($config['design']['hide_compare']) && $config['design']['hide_compare'] == 1 ) : ?>
.compare-top-title, .compare-top-container,
.products-grid .add-to-links a.link-compare,
.product-view .add-to-links li.compare {display:none !important}
<?php endif; ?>
<?php if ( $slideshow_config['config']['slider'] == 'revolution' ) : ?>
<?php if ( !empty($slideshow_config['revolutionslider']['startheight']) ) : ?>
.fullwidthbanner-container .fullwidthbanner { max-height:<?php echo $slideshow_config['revolutionslider']['startheight']; ?>px !important;}
<?php endif; ?>
<?php if ( $config['appearance']['enable_font'] == 1 ) : ?>
.fullwidthbanner-container .caption {font-family:"<?php echo $config['appearance']['font']; ?>"}
<?php endif; ?>
.tp-bullets.simplebullets.round .bullet:hover,
.tp-bullets.simplebullets.round .bullet.selected {background-color:<?php echo $config['appearance']['color']; ?>}
.tp-caption.shopper_white_bg_light, .tp-caption.shopper_white_bg_medium, .tp-caption.shopper_white_bg_bold {color:<?php echo $config['appearance']['color']; ?>}
<?php if ( !empty($config['appearance']['timeline']) ) : ?>
.tp-bannertimer {background-color:<?php echo $config['appearance']['timeline']; ?>}
<?php endif; ?>
<?php endif; ?>