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 | |
// Show sharing buttons, e.g. from Jetpack | |
// http://tiptoppress.com/allow-html-in-excerpt-becomes-filteractions-code/ | |
// TODO: Rewrite code as filter hook | |
// TODO: Multi select supported HTML elements in option (https://github.com/tiptoppress/category-posts-widget/issues/59) | |
function widget($args, $instance) { | |
... | |
add_filter('the_excerpt', array($this,'allow_html_excerpt')); |
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 | |
// Show sharing buttons, e.g. from Jetpack | |
// https://wordpress.org/support/topic/jetpack-sharing-options-showing-in-widget/ | |
// TODO: Rewrite code as filter hook | |
function form($instance) { | |
... | |
<p> | |
<label for="<?php echo $this->get_field_id("hide_social_buttons"); ?>"> | |
<input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("hide_social_buttons"); ?>" name="<?php echo $this->get_field_name("hide_social_buttons"); ?>"<?php checked( (bool) $instance["hide_social_buttons"], true ); ?> /> |
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 | |
/* | |
* Filter extension for the Event Post Widget: "Show only post from the current month and the current year" | |
* @url https://wordpress.org/plugins/event-post/ | |
*/ | |
function cpwp_add_extensions_panel( $widget, $instance ) { | |
$instance = wp_parse_args( ( array ) $instance, array( | |
'use_current_month_filter' => '' |
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 | |
// Filter extension: "Show only post from the current month and the current year" | |
/** | |
* Adds a checkbox to the My settings panel which can be checked/unchecked the 'Posts of current month' filter/hook | |
* | |
* @param widget, instance | |
* @return adds a ckeckbox to the form() | |
*/ | |
function cpwp_add_extensions_panel( $widget, $instance ) { |
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 | |
/** | |
* Only active Events | |
* | |
* Extensions for The Events Calendar plugin by Modern Tribe | |
* | |
* @namespace ECE - The Events Calendar Extensions | |
*/ | |
/** | |
* Add a checkbox to the extensions panel |
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: Future Posts Extension | |
Plugin URI: http://tiptoppress.com/downloads/term-and-category-based-posts-widget/ | |
Description: Extension to show only Posts which are in the future with the 'The future is now' widget for the premium widget Term and Category Based Posts Widget. | |
Additional needed widgets: 'The future is now' (https://wordpress.org/plugins/the-future-is-now/) | |
Author: TipTopPress | |
Version: 0.1 | |
Author URI: http://tiptoppress.com | |
*/ |
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 | |
// Filter extension: | |
function open_in_new_tab_callback( $title ) { | |
// ToDo Just the title and no HTML | |
return $title; | |
} | |
add_filter( 'widget_title', 'open_in_new_tab_callback' ); |
OlderNewer