<?php

$of_options = array();
$sliders = array();
if (class_exists('RevSlider')) {
    $slider = new RevSlider();

    $sliders_list = $slider->getArrSliders();


    foreach ($sliders_list as $item) {
        $sliders[$item->getParam('alias')] = $item->getParam('title');
    }
}

  /* ==== CONTENT ==== */
$of_options[] = array(
    "name" => "Content",
    "type" => "sectionstart");

$of_options[] = array(
    'id' => 'slider',
    'type' => 'select',
    'name' => 'Slider',
    'desc' => 'Select one from the sliders you have created in the Revolution Slider settings.',
    'std' => '',
    'mod' => 'medium',
    "builder" => 'true',
    'options' => $sliders
);

$of_options[] = array(
    "type" => "sectionend");


/* ==== DESIGN ==== */
$of_options[] = array(
    "name" => "Design",
    "type" => "sectionstart");


$of_options[] = array(
    'id' => 'fullwidth',
    'type' => 'toggle',
    'name' => 'Full Width',
    'desc' => 'Choose ON option to add a color background over the entire width of the element. To expand your slider only, select the Full-Item option.',
    'std' => '0',
    "builder" => 'true',
    "options" => array("1" => "On", "0" => "Off", "full-item" => "Full-Item")
);

$of_options[] = array(
    "name" => "Full Width Background Color",
    "desc" => "Pick a background color (by default: #000000).",
    "id" => "full_back_color",
    "std" => "#000000",
    "type" => "color"
);
$of_options[] = array(
    'id' => 'class',
    'type' => 'text',
    'name' => 'Custom Class',
    'desc' => 'Insert your custom class for this element.',
    'std' => ''
);
$of_options[] = array(
    "type" => "sectionend");


/* ==== BAR ==== */
$of_options[] = array(
    "name" => "Bar",
    "type" => "sectionstart");

$of_options[] = array(
    'id' => 'bar_type',
    'type' => 'toggle',
    'name' => 'Bar Type',
    'desc' => 'Select this element&acute;s header type.',
    'std' => 'big',
    "builder" => 'true',
    "options" => array("off" => "Off", "space" => "Off without space", "line" => "Line", "box" => "Box", "big" => "Big title")
);

$of_options[] = array(
    "type" => "sectionend");

/* Settings */
global $jaw_builder_options;
$jaw_builder_options['slider_revolution'] = $of_options;
