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 | |
// don't load directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
die(); | |
} | |
/** | |
* Gravity Forms ClickUp Add-On. | |
* | |
* @since 1.0.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 | |
/** | |
* Show Highlight and Share on posts only. | |
* | |
* @package highlight-and-share | |
*/ | |
// Hide on all excerpts. | |
add_filter( 'has_enable_excerpt', '__return_false' ); |
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 | |
/** | |
* Checks if the plugin is installed and activated on a multisite install. | |
* | |
* @since 1.0.0 | |
* | |
* @param bool $network_admin Check if in network admin. | |
* @param string $slug Plugin slug. | |
* | |
* @return true if multisite, false if not. |
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 | |
/** | |
* Checks to see if an asset is activated or not. | |
* | |
* @since 1.0.0 | |
* | |
* @param string $path Path to the asset. | |
* @param string $type Type to check if it is activated or not. | |
* | |
* @return bool true if activated, false if not. |
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 | |
/** | |
* Sanitize an attribute based on type. | |
* | |
* @param array $attributes Array of attributes. | |
* @param string $attribute The attribute to sanitize. | |
* @param string $type The type of sanitization you need (values can be integer, text, float, boolean, url). | |
* | |
* @return mixed Sanitized attribute. wp_error on failure. | |
*/ |
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 | |
/** | |
* Returns appropriate html for KSES. | |
* | |
* @param bool $svg Whether to add SVG data to KSES. | |
*/ | |
public static function get_kses_allowed_html( $svg = true ) { | |
$allowed_tags = wp_kses_allowed_html(); | |
$allowed_tags['nav'] = array( |
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 | |
/** | |
* Get the plugin directory for a path. | |
* | |
* @param string $path The path to the file. | |
* | |
* @return string The new path. | |
*/ | |
public static function get_plugin_dir( $path = '' ) { | |
$dir = rtrim( plugin_dir_path( __FILE__ ), '/' ); |
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
// Material colors. | |
$material-success-color: #1e4620; | |
$material-success-color-accent: #295e2c; | |
$material-success-color-alt: #2e7d32; | |
$material-success-color-bold: #4caf50; | |
$material-success-color-light: #edf7ed; | |
$material-info-color: #014361; | |
$material-info-color-accent: #035e88; | |
$material-info-color-alt: #0277bd; | |
$material-info-color-bold: #03a9f4; |
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: DLX Remove Block Patterns | |
* Plugin URI: https://dlxplugins.com/plugins/alertsdlx/ | |
* Description: Remove Block Patterns and third-party patterns. | |
* Version: 1.1.0 | |
* Requires at least: 6.0 | |
* Requires PHP: 7.2 | |
* Author: DLX Plugins | |
* Author URI: https://dlxplugins.com |
OlderNewer