<br />
    <?php 
ICL_WP_Pointers::add(array('ICL_WP_Pointers', 'pointer_mo_auto_download_260'));
?>
    <form id="icl_auto_download_mo" name="icl_auto_download_mo" method="post" action="">
    <input type="hidden" name="action" value="icl_adm_save_preferences" />
    <h3><?php 
_e('Select how to get translations for WordPress core', 'wpml-string-translation');
?>
</h3>

    <?php 
wp_nonce_field('icl_auto_download_mo_nonce', '_icl_nonce');
?>
    <ul style="display:inline-block;padding:0;margin:0;" id="icl_adm_options">
        <li>
            <label>
                <input type="radio" name="auto_download_mo" value="1" <?php 
if (!empty($sitepress_settings['st']['auto_download_mo'])) {
    ?>
checked="checked"<?php 
}
?>
 />
                &nbsp;<?php 
_e('WPML will automatically download translations for WordPress', 'wpml-string-translation');
?>
            </label>
        </li>
        <li>
            <label>
Example #2
0
 public static function pointer_mo_auto_download_260()
 {
     $content = '<h3>' . __('New in WPML 2.6.0', 'sitepress') . '</h3>';
     $content .= '<p>' . __('WPML can automatically download translations for WordPress.', 'sitepress') . '</p>';
     ICL_WP_Pointers::print_js(__FUNCTION__, '#icl_adm_options', array('content' => $content, 'position' => array('edge' => 'left', 'align' => 'right')));
 }
 /**
  * Returns the HTML showing the .mo file options on the Plugins and Theme Localization Screen.
  * @return string
  */
 public static function render_settings_menu()
 {
     ICL_WP_Pointers::add(array('ICL_WP_Pointers', 'pointer_mo_auto_download_260'));
     $auto_download_mo = icl_get_sub_setting('st', 'auto_download_mo');
     $dl_mo = empty($auto_download_mo);
     $output = '<br />';
     $output .= '<form id="icl_auto_download_mo" name="icl_auto_download_mo" method="post" action="">';
     $output .= '<input type="hidden" name="action" value="icl_adm_save_preferences" />';
     $output .= '<h3>' . __('Select how to get translations for WordPress core', 'wpml-string-translation') . '</h3>';
     $output .= wp_nonce_field('icl_auto_download_mo_nonce', '_icl_nonce', true, false);
     $output .= '<ul style="display:inline-block;padding:0;margin:0;" id="icl_adm_options"><li><label>';
     $output .= '<input type="radio" name="auto_download_mo" value="1"';
     if (!$dl_mo) {
         $output .= ' checked="checked" ';
     }
     $output .= '/>';
     $output .= '&nbsp' . __('WPML will automatically download translations for WordPress', 'wpml-string-translation');
     $output .= '</label></li><li><label>';
     $output .= '<input type="radio" name="auto_download_mo" value="0"';
     if ($dl_mo) {
         $output .= 'checked="checked"';
     }
     $output .= '/>';
     $output .= '&nbsp;' . __('I will download translations for WordPress and save .mo files in wp-includes/languages', 'wpml-string-translation');
     $output .= '</label></li></ul><p>';
     $output .= '<input class="button-secondary" type="submit" value="' . __('Save', 'wpml-string-translation') . '" />';
     $output .= '<span class="icl_ajx_response" id="icl_ajx_response2" style="display:inline"></span></p></form>';
     return $output;
 }