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
| // Snippet from app.js | |
| .run(function($ionicPlatform, $rootScope) { | |
| $ionicPlatform.ready(function() { | |
| if(window.cordova && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| } | |
| if(window.StatusBar) { | |
| StatusBar.styleDefault(); | |
| } |
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
| # You may use the command line option '-S' to verify your virtual host | |
| # configuration. | |
| # | |
| # Use name-based virtual hosting. | |
| # | |
| NameVirtualHost *:80 | |
| # | |
| # VirtualHost example: |
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 | |
| // ---------------------------------------------------- | |
| // WooCommerce Additions to functions.php in WordPress | |
| // ---------------------------------------------------- | |
| // Theme support. Removes warning message in admin. | |
| add_theme_support( 'woocommerce' ); | |
| // Removing tabs and replace with simple product description (removes "Reviews" etc) | |
| remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); |
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
| <input class="txt" title="First Name" name="firstName" type="text" /> | |
| <input class="txt" title="Last Name" name="lastName" type="text" /> | |
| <input name="emailUpdates" type="radio" value="Yes" /> Yes | |
| <input checked="checked" name="emailUpdates" type="radio" value="No" /> No I would not like to receive email updates. |
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 | |
| // SUBSCRIBE TO MAILING LIST OPTION - ADD TO MAILCHIMP USING API | |
| if ( $_POST['emailUpdates'] == 'Yes' ) | |
| { | |
| // Include Mailchimp API class | |
| require_once('MCAPI.class.php'); | |
| // Your API Key: http://admin.mailchimp.com/account/api/ | |
| $api = new MCAPI('YourAPIKeyHere'); | |
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
| // RATE APP LINK | |
| $('#rate-app').on('click', function(e) { | |
| // Find device platform using the plugin org.apache.cordova.device | |
| var devicePlatform = device.platform; | |
| // Check which platform | |
| if (devicePlatform == "iOS") { | |
| window.open('https://itunes.apple.com/us/app/YOUR-APP-SLUG-HERE/id000000000?mt=8&uo=4'); // or itms:// | |
| } else if (devicePlatform == "Android") { | |
| window.open('market://details?id=com.YOUR.PACKAGENAME'); |
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
| <!-- upload an image named blog_id111111.jpg, where the number is the ID of your blog post (in the URL) --> | |
| <ul class="blogs"> | |
| {% for article in blog.articles %} | |
| {% capture tn_img %}blog_id{{ article.id }}.jpg{% endcapture %} | |
| <li class="entry clearfix"> | |
| <p class="byline"> | |
| {% if article.tags.size > 0 %} | |
| {% for tag in article.tags limit 1 %} | |
| <span class="tag">{{ tag }}</span> | |
| {% endfor %} |
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
| $(".view-less-top").on("click", function() { | |
| // find real "View Less" link and trigger a click on it | |
| $closestTrigger = $(this).parent('h2').parent('.testimonial').find('.maxlist-more a'); | |
| $closestTrigger.trigger("click"); | |
| // set text the same, if in expanded state. else set to blank. | |
| if ( $closestTrigger.hasClass('less') ) { | |
| $(this).text( $closestTrigger.text() ); | |
| } else { | |
| $(this).text(''); | |
| } |
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
| // SMOOTH SCROLL | |
| $('#content .jump').on('click',function(e){ | |
| e.preventDefault(); | |
| $('html,body').animate({scrollTop: $( $.attr(this, 'href') ).offset().top }, 600); | |
| }); |
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
| // Change "Delivery Notes" to what text you'd like to appear in both locations. | |
| // Include other fields in order details | |
| function modify_order_details($order){ | |
| echo "<p><strong>Delivery Notes:</strong><br>", get_post_meta( $order->id, '_shipping_notes', true ), "</p>"; | |
| } | |
| add_action( 'woocommerce_admin_order_data_after_shipping_address', 'modify_order_details', 10, 1 ); | |
| // Add extra fields to order emails. | |
| // This part is via http://docs.woothemes.com/document/add-a-custom-field-in-an-order-to-the-emails/ |