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
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<default> | |
<reference name="root"> | |
<reference name="top.links"> | |
<!-- Add custom links. Pretty self-explanatory. | |
Dig into app/code/core/Mage/Page/Block/Template/Links.php for more info --> | |
<action method="addLink" translate="label title"> | |
<label>About Us</label> | |
<url>about</url> <!-- can use full url also --> |
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="actions"> | |
<button class="button btn-cart" type="button" title="Add to Basket" onclick="nostojs(function(api){api.reportAddToCart('$!product.productId','$!divId');});setLocation('/checkout/cart/add/product/$!product.productId');"> | |
<span><span>Add to Basket</span></span> | |
</button> | |
<a class="button link-wishlist" href="/wishlist/index/add/product/$!product.productId">Add to Wishlist</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
<!-- | |
/** | |
* Add this markup to the recommendation template in your Nosto control panel | |
*/ | |
--> | |
<div class="ratings-wrapper"> | |
<div class="ratings"> | |
<div class="rating-box"> | |
<div class="rating" style="width:$!product.tags1.get(0)%"></div> | |
</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
<p>Hello World!</p> |
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
# | |
# Whitelist appropriate assets files. | |
# Note that you will need to maintain this whitelist yourself if you modify File::$allowed_extensions | |
# | |
# If you are not using Apache then you can ignore this file. | |
# If you are using IIS then you should look at assets/web.config instead. | |
# | |
# To add an extension to the list, you need to put another string of the form "ext|" on the | |
# FilesMatch line, inside the parentheses. | |
# |
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
#/usr/bin/env bash | |
# git hook to run a command before `git commit` | |
# Run the build process `grunt` | |
echo "--- Verify frontend build passes before we commit..." | |
echo "--- If the build fails fix the issue and try committing again" | |
(cd theme; grunt) |
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
#!/bin/bash | |
# Vars | |
java="java" | |
xsltproc="xsltproc" | |
node="node" | |
phantomjs="phantomjs" | |
grunt="grunt" | |
bower="bower" | |
compass="compass" |
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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
#/usr/bin/env bash | |
# git hook to run a command after `git merge` or `git pull` | |
# Check for changed files | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
} |
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
#!/bin/bash | |
# Assumes the following project structure: | |
# | |
# myproject/site/.git | |
# myproject/site/.githooks | |
# myproject/site/.githooks/pre-commit | |
# myproject/site/.githooks/post-merge | |
# myproject/site/.shell | |
# myproject/site/.shell/frontend-setup.sh (this file) |