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
| hhhh |
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 | |
| # from | |
| # http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
| convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
| convert favicon-256.png -resize 16x16 favicon-16.png | |
| convert favicon-256.png -resize 32x32 favicon-32.png | |
| convert favicon-256.png -resize 64x64 favicon-64.png | |
| convert favicon-256.png -resize 128x128 favicon-128.png |
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
| http { | |
| ... | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /var/www/exmaple.com/www/; | |
| index index.cfm; | |
| set $lucee_context "example.com"; |
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 | |
| function alm_prev_post_deactivate_license() { | |
| // listen for our activate button to be clicked | |
| if( isset( $_POST['alm_prev_post_license_deactivate'] ) ) { | |
| // run a quick security check | |
| if( ! check_admin_referer( 'alm_prev_post_license_nonce', 'alm_prev_post_license_nonce' ) ) | |
| return; // get out if we didn't click the Activate button | |
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
| <li> | |
| <?php if (has_post_thumbnail()) { | |
| the_post_thumbnail(array(150,150)); | |
| }?> | |
| <h3><a href="#"><?php the_title(); ?></a></h3> | |
| <?php | |
| $start_date = date("F j, Y", strtotime(get_field('start_date'))); | |
| $end_date = date("F j, Y", strtotime(get_field('end_date'))); | |
| ?> | |
| <p class="entry-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
| <?php | |
| function my_custom_alm_before_container() { | |
| return '<h2>Our Recent Work!</h2>'; | |
| } | |
| add_filter( 'alm_before_container', 'my_custom_alm_before_container' ); |
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 | |
| function my_custom_alm_after_container() { | |
| return '<p><a href="/work">View All Work</a></p>'; | |
| } | |
| add_filter( 'alm_after_container', 'my_custom_alm_after_container' ); |
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
| function publish_later_on_feed($where) { | |
| global $wpdb; | |
| if ( is_feed() ) { | |
| // timestamp in WP-format | |
| $now = gmdate('Y-m-d H:i:s'); | |
| // value for wait; + device | |
| $wait = '10'; // integer |
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 | |
| /** | |
| * @package WordPress | |
| * @subpackage Theme_Name | |
| * @since Theme Name 1.0 | |
| */ | |
| // replace "themename" with the theme slug | |
| // load javascript on initialization |