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 | |
class EventsConnector { | |
var $events_calendar; | |
public function __construct() { | |
$this->events_calendar = 'the-events-calendar/the-events-calendar.php'; | |
$events_calendar_pro = WP_PLUGIN_DIR . '/events-calendar-pro/events-calendar-pro.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
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="the-events-calendar-pro-alarm" | |
CURRENTDIR=`pwd` | |
MAINFILE="the-events-calendar-pro-alarm.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
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 filter_ical_description($item, $eventPost) { | |
$description = preg_replace( "/[\n\t\r]/", ' ', strip_tags( strip_shortcodes( $eventPost->post_content ) ) ); | |
$item[] = 'DESCRIPTION:' . str_replace( ',','\,', $description ); | |
return $item; | |
} | |
add_filter('tribe_ical_feed_item','filter_ical_description', 10, 2); |
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( 'register_form', 'additional_profile_fields' ); | |
add_action( 'signup_extra_fields', 'additional_profile_fields' ); | |
function additional_profile_fields() { ?> | |
<p> | |
<label><?php _e('First Name') ?><br /> | |
<input type="text" name="first_name" id="first_name" class="input" size="25" /></label> | |
</p> | |
<p> |
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 | |
// Read the original blog post here to understand what this is: | |
// http://simple-fields.com/2013/status-board-panel-to-show-wordpress-plugin-downloads/ | |
define('WP_USE_THEMES', false); | |
define("WP_CACHE", false); // i get 404 if enabled | |
require('../wordpress/wp-blog-header.php'); | |
class panic_dashboard_wp_plugin_stats { |
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 only screen and (min-width : 320px) and (max-width : 480px) { | |
#tribe-events-event-meta .column { | |
float:left; | |
width:90%!important; | |
padding:0 4% 0 0; | |
text-align:left; | |
margin:0; | |
} | |
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 | |
/** | |
* Customize your tribe event calendar meta displays with a variety of methods. | |
* Place this in your functions.php file within your theme | |
*/ | |
add_action( 'wp_head', 'custom_event_meta' ); | |
function custom_event_meta(){ | |
// customize just the label |
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
# Stop processing any rewrites for /.well-known/ files | |
RewriteCond %{REQUEST_URI} ^/\.well-known/.*$ [NC] | |
RewriteRule ^ - [L] |
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 | |
namespace GAA\CorpManager; | |
use WP_UnitTestCase; | |
class PluginTest extends WP_UnitTestCase { | |
private $domain; | |
private $mofile; |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Silent Flush | |
* Description: Flushes rewrite rules whenever a custom post type or taxonomy is registered and not already part of these rules. This is a soft flush, the .htaccess will not be rewritten. | |
* Version: 2013.05.04 | |
* Author: Thomas Scholz <info@toscho.de> | |
* Author URI: http://toscho.de | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
*/ |
OlderNewer