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 | |
| /* | |
| JSON Controller for JSON API WordPress Plugin to return posts in Timeline format for Verite Timeline WordPress Plugin | |
| Author: Miguel Peixe | |
| Reference: http://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline | |
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
| <!-- | |
| Source : http://codepen.io/01miru/pen/kjsag | |
| --> | |
| <div class="light2"></div> | |
| <div class="container"> | |
| <ul> | |
| <li> | |
| <div class="element"> | |
| <div class="tooltip"> |
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 | |
| /* | |
| * Plugin Name: WordPress.com Watermark Image Uploads | |
| * Description: Applies a watermark image of your choosing to all uploaded images. | |
| * Author: Alex Mills | |
| * Author URI: http://automattic.com/ | |
| */ | |
| class WPcom_Watermark_Uploads { |
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/sh | |
| # Joel Kirchartz | |
| # http://themeshaper.com/2012/02/21/getting-started-with-the-underscores-theme/comment-page-1/#comment-73697 | |
| printf "What do you want to name your _s theme? " | |
| read -e NAME | |
| cp -rf _s $NAME | |
| find ./$NAME/ -type f | xargs perl -pi -e "s/'_s'/'$NAME'/g" | |
| find ./$NAME/ -type f | xargs perl -pi -e "s/_s_/$NAME_/g" |
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
| .container-fluid { | |
| max-width: 980px; | |
| margin: 0 auto; | |
| } |
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/sh | |
| # | |
| # Instant Wordpress! | |
| # ------------------ | |
| # Script for installing the latest version of WordPress plus a number of useful plugins. | |
| # Source : https://github.com/snaptortoise/wordpress-quick-install | |
| # | |
| # | |
| # Latest version of WP |
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 | |
| # | |
| # Install script for quick static site | |
| # Source : https://github.com/stevedev/html_template | |
| # | |
| curl -L http://github.com/stevedev/html_template/zipball/master > stevedev-html_template.zip | |
| unzip stevedev-html_template.zip | |
| rm -fr stevedev-html_template.zip | |
| mv stevedev-html_template* newsite |
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 | |
| // allowCat contains all catergory ID that you want on your page | |
| $allowCat = array(2,3,4,5,6); | |
| function article_category_id() { | |
| if($category = Registry::prop('article', 'category')) { | |
| $categories = Registry::get('all_categories'); | |
| return $categories[$category]->id; | |
| } |
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 | |
| /* | |
| This is to show a custom field from an article. | |
| It will need to be created in the metadata section before it can be used in the post edit area. | |
| In this case the custom field will need to be called 'image' and be set as an image custom field in the dropdown for type. | |
| */ | |
| $image = article_custom_field('image'); // Applying a variable to the custom field, so it can be reused with ease | |
| if ( !empty($image) ) : // Check if the field is empty, if it is the process stops here | |
| ?> | |
| <figure> |