Skip to content

Instantly share code, notes, and snippets.

Josh Feck joshfeck

Block or report user

Report or block joshfeck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
joshfeck / aluewidget
Created Jun 29, 2012
add link to u e widget
View aluewidget
<p><a href="<?php echo site_url(); ?>/events">See all events</a></p>
/* After widget (defined by themes). */
joshfeck / venue_city_sc.php
Created Jul 3, 2012
espresso venue city shortcode
View venue_city_sc.php
// derived from espresso_venue_sc
if (!function_exists('espresso_venue_city_sc')) {
function espresso_venue_city_sc($atts) {
global $wpdb, $this_event_id;
empty($atts) ? '' : extract($atts);
$FROM = " FROM ";
joshfeck / uew-mod2.php
Created Jul 3, 2012
widget mod that adds Venue city and price
View uew-mod2.php
<a href="<?php echo $registration_url; ?>">
<strong><?php echo stripslashes_deep($event->event_name) ?></strong>
<?php echo do_shortcode('[ESPRESSO_VENUE_CITY event_id="'.$event->id.'"]');?>
<?php echo event_date_display($event->start_date) ?>
$<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event->id.'" number="0"]');?>
View authaim-mmyy
<label for="exp_date"><?php _e('Exp. Date (mmyy)', 'event_espresso'); ?></label>
joshfeck / nth-confirmation
Created Jul 12, 2012
hides mention of price on confirmation screen by using the nth child selector
View nth-confirmation
table#event_espresso_attendee_verify tr:nth-child(2), table#event_espresso_attendee_verify tr:nth-child(4){display:none;}
joshfeck / event_list.php
Created Jul 23, 2012
Alternate event_list.php template for using with the Recurring Events Manager. Pair with the event_list_display.php template. Upload to /wp-content/uploads/espresso/templates
View event_list.php
//This is a template file for displaying a list of events on a page. These functions are used with the {ESPRESSO_EVENTS} shortcode.
//This is an group of functions for querying all of the events in your databse.
//This file should be stored in your "/wp-content/uploads/espresso/templates/" directory.
//Note: All of these functions can be overridden using the "Custom Files" addon. The custom files addon also contains sample code to display ongoing events
if (!function_exists('display_all_events')) {
function display_all_events() {
View e_l_d_readmore.php
<p><?php echo espresso_format_content($event_desc); ?><a href="<?php echo $registration_url; ?>">Read more&rarr;</a></p>
joshfeck / ext_url_widget.php
Created Jul 24, 2012
change logic in widget.php so external URL's open in a new tab
View ext_url_widget.php
//adding markup to the logic on line 81 of widget.php
$registration_url = $event->externalURL != '' ? '<a target="_blank" href="' . $event->externalURL . '">' : '<a href="' . espresso_reg_url($event->id) . '">';
//later, on line 130, the a tag needs to be removed from the markup:
<p><?php echo $registration_url; ?><?php echo stripslashes_deep($event->event_name) ?> - <?php echo event_date_display($event->start_date) ?></a>
joshfeck / add-qty-to-ticket.php
Created Jul 26, 2012
adds a new shortcode for printing a ticket quantity
View add-qty-to-ticket.php
function espresso_replace_ticket_shortcodes($content, $data) {
global $wpdb, $org_options;
$SearchValues = array(
//Attendee/Event Information
joshfeck / page-calendar.php
Created Jul 30, 2012
calendar page template for the striking WordPress theme
View page-calendar.php
Template Name: Calendar
return require(THEME_DIR . "/template_blog.php");
return require(THEME_DIR . "/front-page.php");
$layout = get_post_meta($post->ID, '_layout', true);
You can’t perform that action at this time.