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
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
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
# This is a template .gitignore file for git-managed Prestashop projects. Inspired by micahwalter wordpress gitignore | |
#Ignore ds_store | |
*.DS_Store | |
# Ignore everything in the root except modules, themes and override. | |
/* | |
!modules/ | |
!themes/ |
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
/* Add last_item class to last li in wp_nav_menu lists*/ | |
function add_last_item_class($strHTML) { | |
$intPos = strripos($strHTML,'menu-item'); | |
printf("%s last_item %s", | |
substr($strHTML,0,$intPos), | |
substr($strHTML,$intPos,strlen($strHTML)) | |
); | |
} | |
add_filter('wp_nav_menu','add_last_item_class'); |
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
<!doctype html> | |
<html> | |
<head> | |
<!-- Encoding --> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta> | |
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
/* | |
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
* Better handling of scripts without supplied ids. | |
* | |
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
*/ | |
(function(doc, script) { | |
var js, | |
fjs = doc.getElementsByTagName(script)[0], |
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 | |
/* | |
www.prestarocket.com | |
Twitter : @prestarocket | |
*/ | |
if ( !defined( '_PS_VERSION_' ) ) | |
exit; | |
class MyModule extends Module | |
{ | |
public function __construct() |
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 /** | |
* ***************************************************************************** | |
* Add Metaboxes | |
* ***************************************************************************** | |
*/ | |
//add_action( 'add_meta_boxes', 'cwpt_custom_metaboxes' ); | |
function cwpt_custom_metaboxes(){ | |
add_meta_box('cwpt_preview', 'Site Preview', 'cwpt_preview_box', 'cwp_custom_options', 'normal', 'high'); |
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 Product extends ProductCore { | |
public function getAttributesGroups($id_lang) | |
{ | |
return Db::getInstance()->ExecuteS(' | |
SELECT ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, agl.`public_name` AS public_group_name, a.`id_attribute`, al.`name` AS attribute_name, | |
a.`color` AS attribute_color, pa.* | |
FROM `'._DB_PREFIX_.'product_attribute` pa |
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
<!-- MODULE Block footer --> | |
<div class="block_various_links" id="block_various_links_footer"> | |
<h4>{l s='Informations' mod='blockcms'}</h4> | |
<ul> | |
{foreach from=$cmslinks item=cmslink} | |
{if $cmslink.meta_title != ''} | |
<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}" rel="nofollow">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> | |
{/if} | |
{/foreach} | |
<!-- <li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com" rel="nofollow">PrestaShop</a>™</li> --> |
OlderNewer