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: 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 |
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: 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 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 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 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 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 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 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 | |
/** | |
* Verwendung: Im Email-Template können nun auch POST-Daten versendet werden, die nicht über einen WPCF7-Shortcode, sondern über HTML im Formular eingefügt wurden. | |
* <input type="date" name="special" /> | |
* [post_special] | |
*/ | |
add_filter('wpcf7_special_mail_tags', 'yt_wpcf7_mail_tags', 10, 3); | |
function yt_wpcf7_mail_tags($output, $tagname, $is_html) { |
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 | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site will use a | |
* different template. | |
* | |
* @package Preferential |
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 In2code\Powermailextended\Domain\Service; | |
use In2code\Powermail\Domain\Model\Mail; | |
use TYPO3\CMS\Core\Mail\MailMessage; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use In2code\Powermail\Domain\Service\SendMailService as SendMailServicePowermail; | |
/** | |
* SendMailService |
OlderNewer