This file contains hidden or 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 | |
function yt_show_acf_image($img, $opt = array()) { | |
if (!$img) | |
return; | |
$opt_default = array( | |
'size' => 'xl', | |
'echo' => true, | |
'attr' => array(), |
This file contains hidden or 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
.break-words() { | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
-ms-hyphens: auto; | |
hyphens: auto; | |
word-wrap: break-word; | |
word-break: break-word; | |
} |
This file contains hidden or 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 | |
if (!defined('CLEAR_CACHE_HOOK_KEY')) | |
define('CLEAR_CACHE_HOOK_KEY', 'some_secret_key_please'); | |
function yt_cache_clear_web_hook() { | |
if (isset($_GET['key']) && $_GET['key'] == CLEAR_CACHE_HOOK_KEY) { | |
if (function_exists('ccfm_clear_cache_for_me')) { | |
ccfm_clear_cache_for_me( 'ajax' ); | |
echo 'Cache was cleared.'; | |
} else { |
This file contains hidden or 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 | |
function yt_cache_enable($return) { | |
if (class_exists('autoptimizeCache')) | |
return true; | |
return $return; | |
} | |
add_filter('ccfm_supported_caching_exists', 'yt_cache_enable'); | |
function yt_cache_clear() { |
This file contains hidden or 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: Spring News Shortcode | |
Description: Provides a shortcode [spring_news col="4" nb="8"]. | |
Author: Benjamin Pick | |
Version: 0.1 | |
License: GPLv3 or later | |
License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
*/ |
This file contains hidden or 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: YT ACF Field Group Location Has Capability | |
Description: Show a field group only if the user that is logged in can do a certain wordpress cap. | |
Version: 0.1 | |
Author: YellowTree (Benjamin Pick) | |
Author URI: http://yellowtree.de | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ |
This file contains hidden or 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: YT WPML Sitepress Fallback | |
Plugin URI: http://www.yellowtree.de | |
Description: YT WPML Sitepress Posts from English instead of german | |
Author: YellowTree (Benjamin Pick) | |
Author URI: http://www.yellowtree.de | |
Version: 1.1 | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
NewerOlder