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: TwentyEleven Hide stuff | |
Plugin URI: https://gist.github.com/1853571 | |
Description: hides stuff in twentyeleven theme | |
Version: 0.1 | |
Author: Chris Reynolds | |
Author URI: http://museumthemes.com | |
License: GPL3 | |
*/ |
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 ap_core_do_theme_options() { | |
ap_core_tab_setup(); | |
ap_core_general_settings(); | |
ap_core_typography_settings(); | |
ap_core_advanced_settings(); | |
} |
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 | |
$last_modified = human_time_diff( the_modified_date('U','','', false), current_time('timestamp') ); | |
$number_of_x = preg_replace('/[^0-9]*/', '', $last_modified); | |
if ( strpos( $last_modified, 'min' ) || strpos( $last_modified, 'hour' ) || strpos($last_modified, 'sec' ) ) { | |
$wiki_date = $last_modified; | |
} elseif ( $number_of_x > 365 ) { | |
$wiki_date = __( 'a long time' ); | |
} elseif ( $number_of_x >= 180 ) { | |
$wiki_date = __( 'less than a year' ); | |
} elseif ( $number_of_x >= 60 ) { |
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 echo '<span> - '; _e('OR', 'event_espresso'); echo ' - </span>'; ?> | |
</div> | |
</div> | |
<?php } ?> | |
<a href="?page_id=<?php echo $org_options['event_page_id']; ?>®event_action=show_shopping_cart" rel="nofollow" class="btn_event_form_submit inline-link"> | |
<?php _e('Edit Cart', 'event_espresso'); ?> | |
</a> |
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 | |
/* | |
Template Name: Event Espresso Member Edit Page | |
*/ | |
/* Get user info. */ | |
global $current_user, $wp_roles; | |
get_currentuserinfo(); | |
/* Load the registration file. */ |
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 get_source( $url ) { | |
$source = parse_url( $url ); | |
$article_source = str_replace( array('www.','www1.','blogs.'), '', $source["host"]); // add whatever prefixes you want here | |
echo $article_source; | |
} | |
// to run this function do this: | |
$url = 'http://www.mydomain.com/some/crazy/path/'; |
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 change_euro( $content ) { | |
$content = str_replace( 'EUR', '€', $content); | |
return $content; | |
} | |
add_filter( 'the_content', 'my_change_ee_eur', 11 ); |
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 | |
/*Custom Log Function Include*/ | |
// require('log.php'); | |
/*End Custom Log Function Include*/ | |
if (isset($_SESSION['espresso_session']['id'])) { | |
unset($_SESSION['espresso_session']['id']); | |
} | |
define('FPDF_FONTPATH', EVENT_ESPRESSO_PLUGINFULLPATH . 'class/fpdf/font/'); | |
require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'class/fpdf/fpdf.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 id="comments"></div> | |
<script src="http://widgets.twimg.com/j/1/widget.js"></script> | |
<link href="http://widgets.twimg.com/j/1/widget.css" type="text/css" rel="stylesheet"> | |
<script> | |
new TWTR.Widget({ | |
type: 'search', | |
search: '<?php echo $post_link ?>', | |
id: 'comments', | |
loop: false, | |
subject: 'Comments', |
OlderNewer