Skip to content

Instantly share code, notes, and snippets.

Daniel Flöter DanielFloeter

Block or report user

Report or block DanielFloeter

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
View dequeue-select2-add-on.php
<?php
/*
Plugin Name: TACBPW dequeue Select2 Add-on
Plugin URI: http://tiptoppress.com/downloads/term-and-category-based-posts-widget/
Description: Add-on to dequeue Select2 script and styles for the Term and Category based Posts Widget.
Author: TipTopPress
Version: 1.0
Author URI: http://tiptoppress.com
Installation:
View sort-by-menu-order-add-on.php
<?php
/*
Plugin Name: Sort-by menu_order Add-on
Plugin URI: http://tiptoppress.com/downloads/term-and-category-based-posts-widget/
Description: Add-on to add more sort possibilities for the premium widget Term and Category Based Posts Widget.
Author: TipTopPress
Version: 0.1
Author URI: http://tiptoppress.com
Installation:
@DanielFloeter
DanielFloeter / AND-Same-Category-Extension.php
Created Feb 23, 2018
Use additional, to the multi select boxes, the categories from the current shown post. If select "All of the terms", it will be shown only categories from the current post.
View AND-Same-Category-Extension.php
<?php
/*
Plugin Name: AND-Same-Category Extension
Plugin URI: http://tiptoppress.com/downloads/term-and-category-based-posts-widget/
Description: Extension to add more sort possibilities for the premium widget Term and Category Based Posts Widget.
Author: TipTopPress
Version: 0.1
Author URI: http://tiptoppress.com
*/
namespace termCategoryPostsPro\SortByExtension;
@DanielFloeter
DanielFloeter / future-posts-extension.php
Last active Oct 7, 2017
Future Posts Extension widget
View future-posts-extension.php
<?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
*/
@DanielFloeter
DanielFloeter / Sort-by-Extension.php
Last active Dec 17, 2018
Sort-by Widget Extension
View Sort-by-Extension.php
<?php
/*
Plugin Name: Sort-by Extension
Plugin URI: http://tiptoppress.com/downloads/term-and-category-based-posts-widget/
Description: Extension to add more sort possibilities for the premium widget Term and Category Based Posts Widget.
Author: TipTopPress
Version: 0.1
Author URI: http://tiptoppress.com
Installation:
@DanielFloeter
DanielFloeter / functinos.php
Created Dec 17, 2016
Only active Events - Extensions for The Events Calendar plugin by Modern Tribe
View functinos.php
<?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
@DanielFloeter
DanielFloeter / functinos.php
Last active Oct 30, 2016
Excerpt allow HTML
View functinos.php
<?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'));
@DanielFloeter
DanielFloeter / functions.php
Last active Oct 30, 2016
Show sharing buttons, e.g. from Jetpack
View functions.php
<?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 ); ?> />
@DanielFloeter
DanielFloeter / functinos.php
Last active Dec 17, 2016
Open title link in new window or tab (Filter extension)
View functinos.php
<?php
// Filter extension: Open title link in new window or tab
function open_in_new_tab_callback( $title ) {
$title->addAttribute("target","_blank");
return $title;
}
add_filter( 'widget_title', 'open_in_new_tab_callback' );
@DanielFloeter
DanielFloeter / functinos.php
Last active Oct 30, 2016
Filter extension for the Event Post Widget: "Show only post from the current month and the current year"
View functinos.php
<?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' => ''
You can’t perform that action at this time.