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 | |
add_shortcode('get-page', 'mytheme_get_page'); | |
function mytheme_get_page($atts=array(), $content=NULL){ | |
extract(shortcode_atts(array( | |
'page' => NULL | |
), $atts)); | |
if(!$page){ | |
return ''; | |
} |
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 | |
// ... | |
/* Line 91 */ | |
public static function filter_loops($content){ | |
global $current_user; | |
//Get plugin options | |
$dbOpts = get_option('contexture_ps_options'); |
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 | |
$start_section = array(); | |
$my_section = array(); | |
$end_section = array(); | |
$started = false; | |
foreach ($arr as $item) { | |
if (strpos($item, '?param=my_val') !== false) { | |
$my_section[] = $item; | |
$started = true; |
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 | |
$alphabet = range('A','Z'); | |
$letters = array(); | |
while( $the_query->have_posts() ) : $the_query->the_post(); | |
$lname = get_post_meta(get_the_ID(), $prefix.'lname', true); | |
$first = strtoupper(substr(trim($lname), 0, 1)); | |
if($first && !in_array($first, $letters)){ | |
$letters[] = $first; | |
} | |
endwhile; |
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(class_exists('Plugin')) return; | |
class Plugin { | |
var $debug = false; | |
var $admin_page = 'plugin'; | |
var $settings = array(); | |
var $errors = array(); |
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 | |
/** | |
* Plugin Name: PluginName | |
* Plugin URI: http://websiteurl | |
* Description: Description | |
* Version: 1.0 | |
* Author: Brian DiChiara | |
* Author URI: http://www.briandichiara.com | |
*/ |
NewerOlder