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 | |
| $home = getenv('HOME'); | |
| if (!empty($home)) { | |
| $home = rtrim($home, '/'); | |
| }elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) { | |
| $home = $_SERVER['HOMEDRIVE'] . $_SERVER['HOMEPATH']; | |
| $home = rtrim($home, '\\/'); | |
| } | |
| return empty($home) ? NULL : $home; |
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
| # Require any additional compass plugins here. | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "sass" | |
| images_dir = "img" | |
| javascripts_dir = "js" | |
| fonts_dir = "fonts" |
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 RoboFile extends \Robo\Tasks | |
| { | |
| private $devDisableModules = [ | |
| "statsstock", | |
| "statsvisits", | |
| "statssearch", | |
| "statssales", | |
| "statsregistrations", |
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
| INSERT IGNORE INTO lew_category_product | |
| SELECT | |
| lew_category.id_parent id_category, | |
| lew_category_product.id_product, | |
| (SELECT IFNULL(MAX(position) + 1, 0) FROM lew_category_product lcp2 WHERE lcp2.id_category = lew_category.id_parent) position | |
| FROM | |
| lew_category_product | |
| INNER JOIN | |
| lew_category ON lew_category.id_category = lew_category_product.id_category | |
| WHERE |
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
| {if $smarty.const._PS_MODE_DEV_} | |
| <div class="navbar-fixed-bottom"> | |
| <button type="button" class="btn btn-info"> | |
| <span class="device-xs visible-xs">xs</span> | |
| <span class="device-sm visible-sm">sm</span> | |
| <span class="device-md visible-md">md</span> | |
| <span class="device-lg visible-lg">lg</span> | |
| </button> | |
| </div> | |
| {/if} |
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
| :: Created by: Shawn Brink | |
| :: http://www.sevenforums.com | |
| :: Tutorial: http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html | |
| @echo off | |
| set iconcache=%localappdata%\IconCache.db | |
| echo The Explorer process must be killed to delete the Icon DB. | |
| echo. | |
| echo Please SAVE ALL OPEN WORK before continuing. |
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 | |
| /* | |
| ** img_regenerate.php products small | |
| */ | |
| define('_PS_ADMIN_DIR_', getcwd()); | |
| require_once(dirname(__FILE__).'/config/config.inc.php'); | |
| $types=array("categories", "manufacturers", "suppliers", "scenes", "products", "stores"); | |
| $deleteOldImages = 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
| <?php | |
| include dirname(__FILE__) . '/config/config.inc.php'; | |
| // find img/p -maxdepth 1 -not -type d | php img_rename.php | |
| $shortopts = ""; | |
| $longopts = array( | |
| "dry" | |
| ); | |
| $options = getopt($shortopts, $longopts); |
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
| // Media queries breakpoints | |
| // -------------------------------------------------- | |
| // Extra small screen / phone | |
| $screen-xs: 480px !default; | |
| $screen-phone: $screen-xs !default; | |
| // Small screen / tablet | |
| $screen-sm: 768px !default; | |
| $screen-tablet: $screen-sm !default; |