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 | |
| /** | |
| * Template Widget | |
| * | |
| * This file is used to register and display the Layers - Your widget Name. | |
| * | |
| * @package Layers | |
| * @since Layers 1.0 | |
| */ | 
  
    
      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
    
  
  
    
  | // based on https://gist.github.com/cosmocatalano/4544576 | |
| function scrape_instagram( $username, $slice = 9 ) { | |
| $username = strtolower( $username ); | |
| if ( false === ( $instagram = get_transient( 'instagram-media-new-'.sanitize_title_with_dashes( $username ) ) ) ) { | |
| $remote = wp_remote_get( 'http://instagram.com/'.trim( $username ) ); | |
| if ( is_wp_error( $remote ) ) | 
  
    
      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 | |
| /** | |
| * Get all type posts | |
| * | |
| * @return void | |
| * @author alispx | |
| **/ | |
| function alispx_get_type_posts_data( $post_type = 'post' ) { | 
  
    
      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 | |
| find . -type d -iname .git | xargs rm -rf | |
| find . -type d -iname .sass-cache | xargs rm -rf | |
| find . -type f -iname .gitignore | xargs rm -rf | |
| find . -type f -iname .DS_Store | xargs rm -rf | |
| find . -type f -iname config.codekit | xargs rm -rf | |
| find . -type f -iname screen.css.map | xargs rm -rf | |
| find . -type f -iname rtl.css.map | xargs rm -rf | |
| find . -type f -iname config.rb | xargs rm -rf | |
| find . -type d -iname sass | xargs rm -rf | 
  
    
      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 | |
| ssh -T username@hostorip << EOSSH | |
| cd /home/username/; ls -l; | |
| wget -c http://example.com/file.tar.gz; | |
| tar -zxvf file.tar.gz; | |
| exit; | |
| EOSSH | 
  
    
      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
    
  
  
    
  | jQuery(document).ready(function($) { | |
| $('ul').find('li').each(function () { | |
| if ($.trim($(this).text()) == "") { | |
| $(this).remove(); | |
| } | |
| }) | |
| }); | 
  
    
      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 | |
| /** | |
| * Constructor | |
| */ | |
| add_action( 'init', 'tax_image_init' ); | |
| function tax_image_init() { | |
| $tk_taxonomies = array( 'authors', 'publisher' ); | |
| foreach ( $tk_taxonomies as $tk_taxonomy ) { | 
  
    
      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
    
  
  
    
  | /** | |
| * Convert existing meta keys to new meta keys. | |
| * | |
| * @since x.x.x | |
| * | |
| * @global object $wpdb The current database. | |
| * | |
| * @param string $existing_key The existing meta key. | |
| * @param string $new_key The new meta key. | |
| * @param bool $remove_existing Optional. Whether to remove the old meta entries after conversion. | 
  
    
      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 | |
| /** | |
| * Escape all translations with | |
| */ | |
| __( ‘Some String’, ‘text-domain’ ); _e( ‘Some string’, ‘text-domain’ );. | |
| /** | |
| * When there is no HTML use: | |
| */ | |
| esc_html__( ‘Some String’, ‘text-domain’ ); esc_html_e( ‘Some String’, ‘text-domain’ ); | |
| /** | 
  
    
      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_action('add_meta_boxes', 'alispx_meta_boxes'); | |
| function alispx_meta_boxes() { | |
| add_meta_box( | |
| 'alispx-meta-box', | |
| __( 'Phone Model', THEMO_TEXT_DOMAIN ), | |
| 'alispx_meta_box_callback', | |
| 'page' | |
| ); | |
| } |