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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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 | |
/* | |
Plugin Name: Great Jakes Rainmaker Required Plugin Loader | |
Description: Loads all the required plugins for the Great Jakes Rainmaker | |
Version: 0.2 | |
Author: Great Jakes | |
Author URI: http://www.greatjakes.com | |
Location: /wp-content/mu-plugins/ | |
*/ |
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 | |
/** | |
* This script allows to update any directory from its repository if one exists. | |
* | |
* Setup: | |
* 1. Upload update.php file into wp-content directory | |
* 2. Make update.php executable | |
* 3. Add the following rewrite rule to your .htaccess at the top | |
* RewriteRule ^(.*)update$ /wp-content/update.php?path=$1 [QSA,PT] | |
* |
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 | |
/* | |
Plugin Name: Great Jakes Rainmaker Required Plugin Loader | |
Description: Loads all the required plugins for the Great Jakes Rainmaker | |
Version: 0.2 | |
Author: Great Jakes | |
Author URI: http://www.greatjakes.com | |
Location: /wp-content/mu-plugins/ | |
*/ |
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
/** | |
* Extract URLs from post text. | |
* Find syntactically correct URLs such as http://foobar.com/data.php and some plausible URL fragments, e.g. | |
* bit.ly/asb12 www.google.com, and fix URL fragments to be valid URLs. | |
* Only return valid URLs | |
* Regex pattern based on http://daringfireball.net/2010/07/improved_regex_for_matching_urls | |
* with a modification in the third group to ensure that https?:/// (third slash) doesn't match. | |
* @param string $post_text | |
* @return array $matches | |
*/ |
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 | |
if ( !is_admin() ) { | |
add_filter('sidebars_widgets', 'ichannel_load_parent_widgets'); | |
} | |
/** | |
* Filter loads sidebars from the parent site if current site's sidebar is empty. | |
* Also loads widgets from parent site into current site. | |
* | |
* @param $sidebar_widgets array |
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
# get param | |
$url = $_POST["url"]; | |
$host = $_POST["host"]; | |
$ip = "127.0.0.1"; | |
$port = "80"; | |
$timeout = 1; | |
$verbose = 1; | |
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 | |
# save the current $post because we'll be overwriting it later | |
# we want to make sure he doesn't get lost | |
$comedian = $post; | |
# get the videos associated to this comedian | |
if ( $videos = get_field('featured_in_videos') ) : ?> | |
<div class="row"> | |
<h3>Comedian Videos</h3> | |
<?php |
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="post <?php echo get_post_type() ?>"> | |
<a href="<?php the_permalink() ?>"> | |
<?php the_post_thumbnail('video-thumbnail'); ?> | |
</a> | |
</div> |
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 get_header(); ?> | |
<div id="content-wrap" class="container-fluid"> | |
<div class="row-fluid"> | |
<?php if ( have_posts() ) : ?> | |
<div id="content" class="span8"> |