This file contains hidden or 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
/* *spinner image not included */ | |
.loading { | |
position: relative; | |
pointer-events: none; | |
cursor: not-allowed; | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
class Db | |
{ | |
public function batchInsert($table, array $rows, array $columns = array()) | |
{ | |
// Is array empty? Nothing to insert! | |
if (empty($rows)) { | |
return true; | |
} |
This file contains hidden or 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 hidden or 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
<style type="text/css"> | |
/* | |
* Allows to usage of <ul> as .row and <li> as .col-**-* | |
* Benefit of using <li> is that the column can be of varied height, | |
* unlike when using div.row - columns collapse when heights are different. | |
* The tricky part is to eliminate whitespaces between <li></li> tags. | |
* | |
* Usage: <ul class="list-grid row"> | |
* <li class="col-md-3">...</li> | |
* |
This file contains hidden or 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 | |
/** | |
* Converts an integer number to a word in Lithuanian language. | |
* | |
* @param int $number Integer number to be converted into words | |
* @param array|bool $units Units array like array(0 => šimtas, 1 => šimtai, 2 => šimtų); | |
* @param bool $one If false, word "vienas" is omitted | |
* @return string | |
*/ |
This file contains hidden or 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 | |
*/ |
OlderNewer