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 | |
| /** | |
| * The Template for displaying product archives, including the main shop page which is a post type archive. | |
| * | |
| * Override this template by copying it to yourtheme/woocommerce/archive-product.php | |
| * | |
| * @author WooThemes | |
| * @package WooCommerce/Templates | |
| * @version 2.0.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
| remove_filter('term_description','wpautop'); |
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
| chown -R username * | |
| chgrp -R group * |
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
| tar zcvf - /folder-to-back-up/ | ssh root@server1.studiopascal.co.uk "cat > /folder-to-back-up-to/backup.tar.gz" |
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 if (is_mobile() ) : ?> | |
| <?php else : ?> | |
| <?php endif; ?> |
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 while(has_sub_field('ads','option')): ?> | |
| <?php if(get_row_layout() == '728_x_90_leaderboard'): ?> | |
| <!-- leaderboard AD --> | |
| <span class="leaderboard"> | |
| <?php if(get_sub_field('ad_image_728_x_90')) { ?> | |
| <a class="ad" href="<?php the_sub_field('ad_link_728_x_90'); ?>" target="_blank"> | |
| <?php $image = wp_get_attachment_image_src(get_sub_field('ad_image_728_x_90'), 'large'); ?> | |
| <img src="<?php echo $image[0]; ?>" alt="" /> | |
| </a> |
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
| if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9 | |
| add_theme_support( 'post-thumbnails' ); | |
| set_post_thumbnail_size( 600, 50, true ); // Normal post thumbnails | |
| add_image_size( 'thumb',150, 9999 ); // Permalink thumbnail | |
| } |
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 | |
| /** | |
| * The Header for our theme. | |
| * | |
| * Displays all of the <head> section and everything up till <div id="main"> | |
| * | |
| * @package WordPress | |
| * @subpackage Boilerplate | |
| * @since Boilerplate 1.0 | |
| */ |