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
#!/bin/sh | |
DEFAULT_MAGENTO_VERSION=1.7.0.2 | |
DEFAULT_MAGE_URL="http://127.0.0.1/" | |
if [ -z $1 ] # Magento version | |
then | |
read -p "Choose Magento version ($DEFAULT_MAGENTO_VERSION): " MAGENTO_VERSION | |
if [ -z "$MAGENTO_VERSION" ] | |
then |
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 | |
$fieldset = new CodepoolFieldset('two_column_fieldset', 'Two Column', array('the_content')); | |
$fieldset->addField(new CodepoolField('left_content_title', 'Left Content Title', 'text')); | |
$fieldset->addField(new CodepoolField('left_content_subtitle', 'Left Content Subtitle', 'text')); | |
$fieldset->addField(new CodepoolField('left_content_image', 'Left Image', 'image')); | |
$fieldset->addField(new CodepoolField('left_content', 'Left Content', 'wp_wysiwyg')); | |
$fieldset->addField(new CodepoolField('right_content_title', 'Right Content Title', 'text')); | |
$fieldset->addField(new CodepoolField('right_content_subtitle', 'Right Content Subtitle', 'text')); | |
$fieldset->addField(new CodepoolField('right_content_image', 'Right Image', 'image')); |
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
/** | |
* Required DOM structure: | |
* | |
* <div class='codepool_gallery'> | |
* <figure> | |
* <img src='image1.jpg' alt='image1' /> <!-- Default image --> | |
* </figure> | |
* <ul> | |
* <li><img src='image2.jpg' alt='image2' /></li> | |
* <li><img src='image3.jpg' alt='image3' /></li> |
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
/** | |
* I found the availability json by looking for XHR requests on this page: | |
* https://www.apple.com/uk/shop/iphone/iphone-upgrade-program | |
* | |
* I'm not completely sure if it will help if you're not using the upgrade program, but it does | |
* seem to have two flags for availability, 'unlocked' and 'contract'. | |
*/ | |
import fetch from 'node-fetch'; |