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
<?php | |
if (!defined('_PS_VERSION_')) | |
exit; | |
class BlockUserInfoOverride extends BlockUserInfo | |
{ | |
public function hookDisplayNav($params) | |
{ | |
return '<div class="header_user_info"><a>Test</a></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
<?php | |
if (!defined('_PS_VERSION_')) | |
exit; | |
class BlockUserInfoOverride extends BlockUserInfo | |
{ | |
public function hookDisplayTop($params) | |
{ | |
if (!$this->active) |
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
<?php | |
if (!defined('_PS_VERSION_')) | |
exit; | |
class BlockUserInfoOverride extends BlockUserInfo | |
{ | |
public function hookDisplayTop($params) | |
{ | |
$this->smarty->assign(array( |
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
<div class="spinbox" data-min="1" data-max="10" data-step="2"> | |
<input class="form-control spinbox-input" type="text" value="1"> | |
<div class="spinbox-buttons"> | |
<button class="spinbox-up btn btn-default btn-xs" type="button">+</button> | |
<button class="spinbox-down btn btn-default btn-xs" type="button">-</button> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
// jQuery must be available before binding events |
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
<?php | |
/** | |
* Generates a pagination array | |
* | |
* @param int $total_items | |
* @param int $page_size | |
* @param int $current_page | |
* @return array $pagination | |
*/ |
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
var resizeBuffer = null; | |
var prevWidthName = getWindowWidthName(); | |
$(window).on('resize', function () { | |
clearTimeout(resizeBuffer); | |
resizeBuffer = setTimeout(function() { | |
var newWidthName = getWindowWidthName(); | |
if (newWidthName != prevWidthName) { | |
prevWidthName = newWidthName; | |
$(document).trigger(newWidthName); | |
} |
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
<?php | |
/** | |
* Returns customer notifications | |
* | |
* @param int|null $limit | |
* @param int|null $afterId | |
* @param int|null $beforeId | |
* | |
* [0]*************************************[totalRows] |
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
export function lpad(pad, string) { | |
var trueString = '' + string; | |
return pad.substring(0, pad.length - trueString.length) + trueString; | |
} |
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
// jQuery warriors, assemble! | |
$.fn.cachedFind = function (selector) { | |
var cache = this.data('cached-find') || {}; | |
if (undefined === cache[selector]) { | |
cache[selector] = this.find(selector); | |
this.data('cached-find', cache); | |
} | |
return cache[selector]; | |
}; |
OlderNewer