Beispiel #1
0
 /**
  * WP action callback
  * @return void
  */
 public function actionAdminNotices()
 {
     if (!WPML::get('isCompatible')) {
         $plugin_title = get_admin_page_title();
         echo '<div class="error">';
         echo sprintf(WPML::__('<p>Error - The plugin <strong>%1$s</strong> requires PHP %2$s + and WP %3$s +.' . '  Please upgrade your PHP and/or WordPress.' . '<br/>Disable the plugin to remove this message.</p>'), $plugin_title, WPML::get('minPhpVersion'), WPML::get('minWpVersion'));
         echo '</div>';
     }
     if (isset($_GET['page']) && $_GET['page'] === WPML::get('adminPage') && is_plugin_active('email-encoder-bundle/email-encoder-bundle.php')) {
         WPML_View::factory('/admin/notices.php')->show();
     }
 }
Beispiel #2
0
 /**
  * Emails will be replaced by '*protected email*'
  * @param string $content
  * @param string $email_replacement  Optional
  * @return string
  */
 public function replacePlainEmails($content, $emailReplacement = null)
 {
     $emailReplacement = $emailReplacement === null ? WPML::__($this->optionValues['protection_text']) : $emailReplacement;
     return preg_replace($this->regexps['emailPlain'], $emailReplacement, $content);
 }
Beispiel #3
0
echo WPML::get('optionName');
?>
[icon]" value="0" <?php 
checked('0', (int) $values['icon']);
?>
 />
                    <span><?php 
WPML::_e('No icon');
?>
</span></label>
                <?php 
for ($x = 1; $x <= 25; $x++) {
    ?>
                    <br/>
                    <label title="<?php 
    echo sprintf(WPML::__('Icon %1$s: choose this icon to show for all mailto links or add the class \'mail-icon-%1$s\' to a specific link.'), $x);
    ?>
"><input type="radio" name="<?php 
    echo WPML::get('optionName');
    ?>
[icon]" value="<?php 
    echo $x;
    ?>
" <?php 
    checked($x, (int) $values['icon']);
    ?>
 />
                    <img src="<?php 
    echo WPML::url('images/mail-icon-' . $x . '.png');
    ?>
" /></label>