This file contains 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 | |
// Look for "@custom" to see customizations | |
// Sourced from W3TC v0.9.2.4 | |
// Full path: /w3-total-cache/lib/W3/PgCache.php | |
/** | |
* W3 PgCache | |
*/ | |
/** | |
* Class W3_PgCache |
This file contains 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 to implement [pmc_post_top_tag_names] shortcode to fetch top N tag names for a post | |
*/ | |
public function post_top_tag_names($attrs) { | |
extract(shortcode_atts(array( | |
'post' => 0, | |
'count' => 3, | |
'tags' => 'strong,em' | |
), $attrs)); | |
$_tags_enum = array('strong', 'em', 'b', 'i'); //html tag whitelist |
This file contains 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
$rss = fetch_feed('http://example.com/feed/'); | |
if ( ! $rss ) { | |
return; | |
} | |
$maxitems = $rss->get_item_quantity(); | |
if ( ! $maxitems ) { | |
return; | |
} |
This file contains 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
fastcgi_index index.php; | |
fastcgi_split_path_info ^(.+\.php)(.*)$; | |
fastcgi_read_timeout 300; | |
fastcgi_send_timeout 300; | |
fastcgi_ignore_client_abort off; | |
fastcgi_intercept_errors on; | |
fastcgi_connect_timeout 120; | |
fastcgi_buffer_size 128k; |
This file contains 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 | |
/** | |
* Helper function to get the top X tags for a post, based on how many times | |
* the tag has been used overall. | |
* | |
* @param int $post_id | |
* @param int $max_tags | |
* @return boolean|array | |
*/ | |
function pmc_get_top_tags( $post_id, $max_tags = 3 ) { |
This file contains 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 pmc_dev_cachebuster( $src ) { | |
return add_query_arg( 'ver', time(), $src ); | |
} | |
add_filter( 'style_loader_src', 'pmc_dev_cachebuster' ); | |
add_filter( 'script_loader_src', 'pmc_dev_cachebuster' ); |
This file contains 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
<div class="hl-logo-tease left"> | |
<div class="inner"> | |
<?php if(is_page('hollyscopes') || $post->post_parent=="9"):?> | |
<div class="logo-wrapper"> | |
<a href="<?php echo pmc_heatmap_url('/','masthead')?>" class="logo"><img src="<?php bloginfo('template_directory') ?>/images/theme/spacer.gif" alt="Hollywood Life by Bonnie Fuller, Your Celebrity News, Gossip and Style BFF" />Hollywood Life</a> | |
</div> | |
<div class="hl-logo-mid left"> | |
<img src="<?php bloginfo('template_directory') ?>/images/theme/spacer.gif" alt="Hot" class="gap-fix" /> | |
</div> | |
<?php $logob = 'nhs';?> |
This file contains 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 | |
abstract class PMC_Base { | |
private static $_instance = array(); | |
protected function __construct() {} | |
public static function get_instance() { | |
$class = get_called_class(); | |
if ( ! isset( self::$_instance[$class] ) ) { | |
self::$_instance[$class] = new $class(); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> | |
<title>Untitled</title> | |
</head> | |
<body> | |
<script> | |
var _dc_ts = Math.random(); |
This file contains 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
success: function() { | |
// load stories here | |
// Build the current image | |
var real_path = document.location.href.replace("#!/", ""); | |
// Track PV in Omniture | |
try { | |
s_mmc.pageName = real_path; | |
s_mmc.t(); |
OlderNewer