/** * 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(); } }
function wpml_filter($content) { return WPML::get('front')->filterContent($content); }
</strong></p> </div> <?php } ?> <form method="post" action="options.php"> <?php settings_fields(WPML::get('key')); ?> <input type="hidden" name="<?php echo WPML::get('key'); ?> _nonce" value="<?php echo wp_create_nonce(WPML::get('key')); ?> " /> <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?> <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?> <div id="poststuff"> <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?> "> <!--<div id="post-body-content"></div>-->
<fieldset class="options"> <table class="form-table"> <tr> <th><?php WPML::_e('Admin menu position'); ?> </th> <td><label><input type="checkbox" id="<?php echo WPML::get('optionName'); ?> [own_admin_menu]" name="<?php echo WPML::get('optionName'); ?> [own_admin_menu]" value="1" <?php checked('1', (int) $values['own_admin_menu']); ?> /> <span><?php WPML::_e('Show as main menu item'); ?> </span> <br/><span class="description"><?php WPML::_e('When disabled item will be shown under "General settings".'); ?> </span></label></td> </tr> </table> </fieldset> <p class="submit"> <input class="button-primary" type="submit" disabled="disabled" value="<?php _e('Save Changes');
<h3><img src="<?php echo WPML::url('images/icon-wp-mailto-links.png'); ?> " width="16" height="16" /> <?php echo get_admin_page_title(); ?> - version <?php echo WPML::get('version'); ?> </h3> <p>Protect your email addresses and manage mailto links on your site, set mail icon, styling and more.</p> <h4>Features</h4> <ul> <li>Protect mailto links automatically</li> <li>Protect plain email addresses or convert them to mailto links</li> <li>Protect RSS feed</li> <li>Set mail icon</li> <li>Use shortcodes, template functions, action and filter hooks</li> </ul>