This template is my ideal format for issues submitted to a github repository.
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 | |
add_action( 'wp_enqueue_scripts', 'gs_calendarizeit_remove_scripts', 999 ); | |
function gs_calendarizeit_remove_scripts() { | |
if ( gs_is_field_trip() || 'events' === get_post_type( get_the_ID() ) ) return; | |
$scripts = array( | |
'calendarize', | |
'jquery-easing', | |
'rrecur-parser', |
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
# with AJAX withCredentials=false (cookies NOT sent) | |
Header always set Access-Control-Allow-Origin "*" | |
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE" | |
Header always set Access-Control-Allow-Headers "X-Accept-Charset,X-Accept,Content-Type" | |
RewriteEngine On | |
RewriteCond %{REQUEST_METHOD} OPTIONS | |
RewriteRule ^(.*)$ $1 [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]] | |
# with AJAX withCredentials=true (cookies sent, SSL allowed...) | |
SetEnvIfNoCase ORIGIN (.*) ORIGIN=$1 |
#h1 header
#h1 header
##h2 header
##h2 header
###h3 header
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
// @media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */ } | |
// @media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ } | |
// @media (min-width:641px) { portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones } | |
// @media (min-width:961px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
// @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
// @media (min-width:1281px) { /* hi-res laptops and desktops */ } | |
@mixin bp-phone { | |
@media all and (min-width: 140px) and (max-width: 640px) { |
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 | |
$a = explode("\n", $input); | |
foreach ($a as $key => $line) | |
{ | |
$a[$key] = explode(",", $line); | |
}; | |
foreach ($a as $element) | |
{ $output .=" | |
<tr> |
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
/* | |
* Remove Genesis Breadcrumbs from the Event Calendar View Pages | |
* The Events Calendar @3.8 | |
* Genesis @2.1.2 | |
*/ | |
add_action( 'genesis_before', 'tribe_remove_genesis_breadcrumbs' ); | |
function tribe_remove_genesis_breadcrumbs() { | |
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); |
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
/** | |
* The Events Calendar Include Genesis Simple Sharing Above Event Calendar | |
* | |
*/ | |
add_filter( 'tribe_events_single_event_before_the_content', 'tribe_genesis_event_share' ); | |
function tribe_genesis_event_share( $post_info ) { | |
// Return the existing post info for pages or when plugin is not active | |
if ( is_singular('tribe_events') || function_exists( 'genesis_share_get_icon_output' ) ) { | |
global $Genesis_Simple_Share; |
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
/* | |
* Genesis Remove Genesis Meta Filter on Event Calendar Pages | |
* The Events Calendar @3.8 | |
* Genesis @2.1.2 | |
* | |
*/ | |
add_action( 'genesis_doctype', 'tribe_genesis_meta_title' ); | |
function tribe_genesis_meta_title() { | |
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) { |
OlderNewer