Пример #1
0
/**
 * Render the plugin settings menu
 */
function flowplayer_settings()
{
    echo flowplayer::admin_head();
    flowplayer::get_nonce();
    if (wp_verify_nonce($_POST['flowplayer_noncename'], FLOWPLAYER_NONCE_FILE)) {
        flowplayer::_setautoplay($_POST['flowplayer_autoplay']);
        flowplayer::_setkey($_POST['flowplayer_key']);
        flowplayer::_setautobuffer($_POST['flowplayer_autobuffer']);
        flowplayer::_setbackgroundColor($_POST['flowplayer_backgroundColor']);
        flowplayer::_setcanvas($_POST['flowplayer_canvas']);
        flowplayer::_setsliderColor($_POST['flowplayer_sliderColor']);
        flowplayer::_setbuttonColor($_POST['flowplayer_buttonColor']);
        flowplayer::_setbuttonOverColor($_POST['flowplayer_buttonOverColor']);
        flowplayer::_setdurationColor($_POST['flowplayer_durationColor']);
        flowplayer::_settimeColor($_POST['flowplayer_timeColor']);
        flowplayer::_setprogressColor($_POST['flowplayer_progressColor']);
        flowplayer::_setbufferColor($_POST['flowplayer_bufferColor']);
        flowplayer::_setlogo($_POST['flowplayer_logo']);
        flowplayer::_setlogolink($_POST['flowplayer_logolink']);
    }
    echo flowplayer::flowplayer_settings();
}