forked from PrestaShop/blocklayered
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Francois Gaillard
committed
Mar 20, 2014
0 parents
commit bdc34d9
Showing
47 changed files
with
7,337 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
#enabled_filters { | ||
margin: 0 0 10px 0; | ||
background: #eee; | ||
padding: 5px; | ||
} | ||
#enabled_filters .layered_subtitle { | ||
font-weight: bold; | ||
font-size: 12px; | ||
} | ||
#enabled_filters ul li {padding:2px 0} | ||
#enabled_filters li a { | ||
float: right; | ||
display: inline-block; | ||
height: 12px; | ||
width: 12px; | ||
text-indent: -5000px; | ||
/*background: url(../../../img/icon/delete.gif) no-repeat 0 0 transparent;*/ | ||
background: url(./delete.gif) no-repeat 0 0 transparent; | ||
cursor: pointer; | ||
} | ||
#layered_block_left .layered_close { | ||
float: right; | ||
padding-right: 5px; | ||
} | ||
#layered_block_left span.layered_close a, | ||
#layered_block_left span.layered_close a { | ||
display:block; | ||
height:13px; | ||
width:13px; | ||
text-decoration: none; | ||
text-indent:-5000px; | ||
background:url(img/icon/less.gif) no-repeat 2px 2px; | ||
} | ||
#layered_block_left span.closed a { | ||
background:url(img/icon/more.gif) no-repeat 2px 2px; | ||
} | ||
|
||
#layered_block_left .layered_subtitle { | ||
display: inline-block; | ||
font-weight: bold; | ||
font-size: 12px; | ||
} | ||
#layered_block_left ul { | ||
clear: both; | ||
padding: 5px 0; | ||
} | ||
#layered_block_left ul li {padding:2px 0} | ||
#layered_block_left ul li label {cursor: pointer;} | ||
#layered_block_left div.block_content { | ||
} | ||
#layered_block_left ul { | ||
padding-left: 0; | ||
} | ||
#layered_block_left ul li { | ||
list-style-type: none; | ||
} | ||
#layered_block_left div > form > div > div { | ||
margin-top: 5px; | ||
} | ||
#layered_block_left #enabled_filters , #layered_url_filter_block{ | ||
font-size: 10px; | ||
padding-bottom: 10px; | ||
margin-bottom: 5px; | ||
margin-top: 0px; | ||
border-bottom: 1px dotted #CCC; | ||
} | ||
#layered_block_left #enabled_filters ul li { | ||
margin-left: 0; | ||
padding-left: 0; | ||
} | ||
|
||
|
||
/* Style moved form the template to the css */ | ||
|
||
#layered_block_left #enabled_filters ul li:hover { | ||
background: inherit; | ||
color: inherit; | ||
} | ||
#layered_block_left #enabled_filters a { | ||
text-decoration: none; | ||
color: red; | ||
} | ||
#layered_block_left ul li:hover { | ||
} | ||
#layered_block_left ul li input.checkbox { | ||
vertical-align: middle; | ||
margin-left: 2px; | ||
} | ||
#layered_block_left ul li .disabled { | ||
color: #666; | ||
} | ||
#layered_block_left .color-option { | ||
border: 1px solid #666666; | ||
height: 16px; | ||
margin-left: 0; | ||
padding: 0; | ||
width: 16px; | ||
} | ||
#layered_block_left .color-option.disable { | ||
opacity: 0.5; | ||
filter:alpha(opacity=50); | ||
-moz-opacity:0.5; | ||
} | ||
#layered_block_left .nomargin a { | ||
display: inline; | ||
} | ||
#layered_form .select { | ||
width: 165px; | ||
} | ||
#layered_form .color-option { | ||
margin-left: 0; | ||
width: 16px; | ||
height: 16px; | ||
padding:0; | ||
border: 1px solid #666; | ||
} | ||
#layered_form .color-option.on { | ||
border: 1px solid red; | ||
} | ||
#layered_form input[type=radio] { | ||
margin-left: 2px; | ||
vertical-align: middle; | ||
} | ||
.layered_price_range { | ||
margin-left: 7px; | ||
} | ||
.layered_price_range_unit { | ||
margin-right: 7px; | ||
} | ||
.layered_slider_container { | ||
margin: 6px 0 6px 7px; width: 91%; | ||
} | ||
.layered_slider { | ||
margin-top:5px; | ||
} | ||
.layered_input_range_min { | ||
width:30px; | ||
} | ||
.layered_input_range_max { | ||
width:40px; | ||
} | ||
.layered_list_selected { | ||
font-weight: bold; | ||
} | ||
.layered_list { | ||
display: block; | ||
cursor: pointer; | ||
} | ||
.layered_list:hover { | ||
font-weight: bold; | ||
} | ||
.layered_ajax_loader p { | ||
margin: 20px 0; | ||
text-align: center; | ||
} | ||
.hide-action { | ||
text-align: center; | ||
text-align: right; | ||
display: block; | ||
cursor: pointer; | ||
} | ||
.hide-action:hover { | ||
font-weight: bold; | ||
} | ||
#layered_form div div ul { | ||
max-height: 200px; | ||
overflow-x: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/* | ||
* 2007-2014 PrestaShop | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/afl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer | ||
* versions in the future. If you wish to customize PrestaShop for your | ||
* needs please refer to http://www.prestashop.com for more information. | ||
* | ||
* @author PrestaShop SA <[email protected]> | ||
* @copyright 2007-2014 PrestaShop SA | ||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
* International Registred Trademark & Property of PrestaShop SA | ||
*/ | ||
|
||
include(dirname(__FILE__).'/../../config/config.inc.php'); | ||
include(dirname(__FILE__).'/../../init.php'); | ||
include(dirname(__FILE__).'/blocklayered.php'); | ||
|
||
Context::getContext()->controller->php_self = 'category'; | ||
$blockLayered = new BlockLayered(); | ||
echo $blockLayered->ajaxCall(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
include(dirname(__FILE__).'/../../config/config.inc.php'); | ||
include(dirname(__FILE__).'/blocklayered.php'); | ||
|
||
if (substr(Tools::encrypt('blocklayered/index'),0,10) != Tools::getValue('token') || !Module::isInstalled('blocklayered')) | ||
die('Bad token'); | ||
|
||
$blockLayered = new BlockLayered(); | ||
echo $blockLayered->indexAttribute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* 2007-2014 PrestaShop | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/afl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer | ||
* versions in the future. If you wish to customize PrestaShop for your | ||
* needs please refer to http://www.prestashop.com for more information. | ||
* | ||
* @author PrestaShop SA <[email protected]> | ||
* @copyright 2007-2014 PrestaShop SA | ||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
* International Registred Trademark & Property of PrestaShop SA | ||
*/ | ||
$(document).ready(function() | ||
{ | ||
$('#selectProductSort').unbind('change').bind('change', function() | ||
{ | ||
reloadContent(); | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{* | ||
* 2007-2014 PrestaShop | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/afl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer | ||
* versions in the future. If you wish to customize PrestaShop for your | ||
* needs please refer to http://www.prestashop.com for more information. | ||
* | ||
* @author PrestaShop SA <[email protected]> | ||
* @copyright 2007-2014 PrestaShop SA | ||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
* International Registred Trademark & Property of PrestaShop SA | ||
*} | ||
<div id="product_list" class="clear"> | ||
<p class="warning">{l s='There are no products.' mod='blocklayered'}</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
include(dirname(__FILE__).'/../../config/config.inc.php'); | ||
include(dirname(__FILE__).'/blocklayered.php'); | ||
|
||
if (substr(Tools::encrypt('blocklayered/index'),0,10) != Tools::getValue('token') || !Module::isInstalled('blocklayered')) | ||
die('Bad token'); | ||
|
||
if (!Tools::getValue('ajax')) | ||
{ | ||
// Case of nothing to do but showing a message (1) | ||
if (Tools::getValue('return_message') !== false) | ||
{ | ||
echo '1'; | ||
die(); | ||
} | ||
|
||
if (Tools::usingSecureMode()) | ||
$domain = Tools::getShopDomainSsl(true); | ||
else | ||
$domain = Tools::getShopDomain(true); | ||
// Return a content without waiting the end of index execution | ||
header('Location: '.$domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-price-indexer.php?token='.Tools::getValue('token') .'&return_message='.(int)Tools::getValue('cursor')); | ||
flush(); | ||
} | ||
|
||
if(Tools::getValue('full')) | ||
{ | ||
echo BlockLayered::fullPricesIndexProcess((int)Tools::getValue('cursor'), (int)Tools::getValue('ajax'), true); | ||
} | ||
else | ||
echo BlockLayered::pricesIndexProcess((int)Tools::getValue('cursor'), (int)Tools::getValue('ajax')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
include(dirname(__FILE__).'/../../config/config.inc.php'); | ||
include(dirname(__FILE__).'/blocklayered.php'); | ||
|
||
if (substr(Tools::encrypt('blocklayered/index'),0,10) != Tools::getValue('token') || !Module::isInstalled('blocklayered')) | ||
die('Bad token'); | ||
|
||
$blockLayered = new BlockLayered(); | ||
$cursor = Tools::jsonDecode(Tools::getValue('cursor', '{}'), true); | ||
echo $blockLayered->indexUrl($cursor, (int)Tools::getValue('truncate')); |
Oops, something went wrong.