예제 #1
0
function qtranxf_admin_notices_version()
{
    $ver_cur = qtranxf_version_int();
    $ver_prv = get_option('qtranslate_version_previous', $ver_cur);
    if ($ver_cur == $ver_prv) {
        return;
    }
    if ($ver_prv < 33000 && $ver_cur >= 32980) {
        qtranxf_admin_notices_new_options(array(__('Highlight Style', 'qtranslate'), __('LSB Style', 'qtranslate')), '3.3', 'https://qtranslatexteam.wordpress.com/2015/03/30/release-notes-3-3');
    }
    if ($ver_prv < 34000 && $ver_cur >= 32980) {
        qtranxf_admin_notices_new_options(array('<a href="' . admin_url('options-general.php?page=qtranslate-x#integration') . '">' . __('Configuration Files', 'qtranslate') . '</a>'), '3.4', 'https://qtranslatexteam.wordpress.com/2015/05/15/release-notes-3-4/');
    }
}
예제 #2
0
function qtranxf_admin_notices_version()
{
    $ver_cur = qtranxf_version_int();
    $ver_prv = get_option('qtranslate_version_previous', $ver_cur);
    if ($ver_cur == $ver_prv) {
        return;
    }
    if ($ver_prv < 33000 && $ver_cur >= 32980) {
        qtranxf_admin_notices_new_options(array('Highlight Style', 'LSB Style'), '3.3', 'https://qtranslatexteam.wordpress.com/2015/03/30/release-notes-3-3');
    }
}