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
<script type="text/javascript"> | |
/* | |
Turn Visual Composer Image Carousel into Visual Composer Infinite Image Carousel | |
Include before the </head> tag on yout theme's header.php | |
Read the detailed step-by-step at https://humbertosilva.com/visual-composer-infinite-image-carousel/ | |
*/ | |
// auxiliary code to create triggers for the add and remove class for later use | |
(function($){ | |
$.each(["addClass","removeClass"],function(i,methodname){ |
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 | |
/** | |
* Remove [All in One SEO Pack] HTML Comments | |
* @link //gist.github.com/llgruff/a7ab776167aa0ed307ec445df54e5fdb | |
*/ | |
if (defined('AIOSEOP_VERSION')) { | |
add_action('get_header', function() { | |
ob_start( | |
function($o) { | |
return preg_replace('/\n?<.*?One SEO Pack.*?>/mi','',$o); |
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 | |
define('_PS_ROOT_DIR_', '/path/to/prestashop/root'); | |
define('_PS_ADMIN_DIR_', _PS_ROOT_DIR_.'admin_folder'); | |
require(_PS_ADMIN_DIR_.'/../config/config.inc.php'); | |
require(_PS_ADMIN_DIR_.'/functions.php'); | |
class Employee2 extends EmployeeCore | |
{ | |
public function isSuperAdmin() |