Skip to content

Instantly share code, notes, and snippets.

View markonikolic985's full-sized avatar

Marko Nikolic markonikolic985

View GitHub Profile
<?php
/**
* Plugin Name: WP Rocket | Disable Page Caching for Specific Custom Post Type
* Description: Disable WP Rocket’s page cache for Specific Custom Post Type.
* Author: your name here
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
defined( 'ABSPATH' ) or die( 'Cheatin&#8217; uh?' );
<?php
defined ( 'ABSPATH') or die ( 'Cheatin & # 8217;? uh');
/ **
* Plugin Name: WP Rocket | Remove ETag from htaccess
* Description: Prevents ETag code to be added to htaccess.
* Author: WP Rocket Support Team
* Author URI: http://wp-rocket.me/
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0 .html
* /
<?php
defined( 'ABSPATH' ) or die( 'Cheatin&#8217; uh?' );
/**
* Plugin Name: WP Rocket | Fix Expires Rules Varnish issue on DreamHost
* Description: Prevents the dreaded error 500 from appearing.
* Author: WP Rocket Support Team
* Author URI: http://wp-rocket.me/
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
/wp-content/uploads/wp-less/dt-the7/css/custom-old-ie-da2ef4bad9.css
/wp-content/uploads/wp-less/dt-the7/css/main-da2ef4bad9.css
/wp-content/uploads/wp-less/dt-the7/css/custom-da2ef4bad9.css
<div id="head_banner">
<?php
if ( option::get('ad_head_select') == 'on' ) { ?>
<?php if ( option::get('ad_head_code') <> "" ) {
echo stripslashes(option::get('ad_head_code'));
} else {
?><a href="<?php echo option::get('ad_head_imgurl'); ?>"><img src="<?php echo option::get('ad_head_imgpath'); ?>" alt="<?php echo option::get('ad_head_imgalt'); ?>" /></a><?php
} ?>
<?php
while ( $loop->have_posts() ) : $loop->the_post();
$parentMeta = get_post_custom();
if (isset($parentMeta['wpzoom_slide_tagline'][0])) { $tagline = $parentMeta['wpzoom_slide_tagline'][0]; }
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumb-homepage-slider' );
$style = isset( $large_image_url[0] ) && !empty( $large_image_url[0] ) ? sprintf( ' style="background-image:url(\'%s\')"', $large_image_url[0] ) : '';
echo '<li' . $style . ' class="slide">&nbsp;</li>';
<?php
while ( $loop->have_posts() ) : $loop->the_post();
$parentMeta = get_post_custom();
if (isset($parentMeta['wpzoom_slide_tagline'][0])) { $tagline = $parentMeta['wpzoom_slide_tagline'][0]; }
$permalink = get_permalink();
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumb-homepage-slider' );
$style = isset( $large_image_url[0] ) && !empty( $large_image_url[0] ) ? sprintf( ' style="background-image:url(\'%s\')"', $large_image_url[0] ) : '';
echo '<li' . $style . ' class="slide"><a href="'. $permalink .'">&nbsp;</a></li>';
<?php get_the_image( array( 'size' => 'slider', 'width' => 560, 'height' => 315 ) ); ?>
<?php if ( empty( $videoexternal ) && empty( $videoselfhosted ) ) : ?>
<?php /* No video? Display featured image. */ ?>
<?php get_the_image( array( 'size' => 'slider', 'width' => 560, 'height' => 315 ) ); ?>
<?php else: ?>
<?php
if ( $videotype == 'external' && ! empty( $videoexternal ) ) {
$video_embed = embed_fix( $videoexternal, 560, 315 );
<?php if ( empty( $videoexternal ) && empty( $videoselfhosted ) ) : ?>
<?php /* No video? Display featured image. */ ?>
<?php get_the_image( array( 'size' => 'slider', 'width' => 560, 'height' => 315 ) ); ?>
<?php else: ?>
<?php
if ( $videotype == 'external' && ! empty( $videoexternal ) ) {
$video_embed = embed_fix( $videoexternal, 560, 315 );