Beispiel #1
0
/**
 * Slider edit - save slider metabox callback
 */
function fa_lite_save_panel()
{
    $slider_id = isset($_GET['id']) ? (int) $_GET['id'] : false;
    $options = FA_get_option('_fa_lite_aspect');
    $themes = FA_themes();
    $theme_options = FA_get_option('_fa_lite_theme');
    /**
     * This is for backwards compatibility.
     * Prior to V2.4, theme Classic was actually 2 different themes: Light and Dark.
     * If slideshow was set on either dark or lite theme, those themes should no longer exist.
     * If user saved them, we'll use them. If not, switch to classic.
     */
    $load_classic = FA_should_load_classic($theme_options['active_theme']);
    if ($load_classic) {
        $theme_options = $load_classic;
    }
    $current_theme = $theme_options['active_theme'];
    $fields = FA_fields((array) $themes[$current_theme]['theme_config']['Fields']);
    $current_page = menu_page_url('featured-articles-lite', false);
    include FA_dir('displays/panel_slider_save.php');
}
Beispiel #2
0
/**
 * Checks in options is sideways navigatin should be displayed
 */
function has_sideways_nav()
{
    $sideways_nav_option = FA_get_option(array('_fa_lite_aspect', 'sideways_nav'));
    if (1 != $sideways_nav_option) {
        return false;
    }
    return true;
}