public function getFormElements($current_id = '')
 {
     require_once WDI_DIR . '/admin/models/WDIModelThemes_wdi.php';
     $themes = WDIModelThemes_wdi::get_themes();
     $elements = array('feed_name' => array('name' => 'feed_name', 'title' => __('Feed Name', "wdi"), 'type' => 'input', 'tooltip' => __('The name of your feed which can be displayed in feed\'s header section', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'theme_id' => array('switched' => 'off', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("Changing Theme is Available Only in PRO version", "wdi"), 'br' => 'true'), 'name' => 'theme_id', 'title' => __('Theme', "wdi"), 'valid_options' => $themes, 'type' => 'select', 'tooltip' => __('The theme of your feed, you can create themes in themes menu', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'feed_users' => array('name' => 'feed_users', 'title' => __('Feed Usernames and Hashtags', "wdi"), 'type' => 'input', 'input_type' => 'hidden', 'tooltip' => __('Enter usernames or hashtags to your feed, hashtags must start with #, username\'s shouldn\'t start with @', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'thumb_user' => array('name' => 'thumb_user', 'title' => __('Featured Image', "wdi"), 'valid_options' => array(), 'type' => 'select', 'tooltip' => __('Select Featured Image For Header Section', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'feed_display_view' => array('name' => 'feed_display_view', 'title' => __('Feed Display Type', "wdi"), 'type' => 'radio', 'valid_options' => array('pagination' => __('Pagination', "wdi"), 'load_more_btn' => __('Load More Button', "wdi"), 'infinite_scroll' => __('Infinite Scroll', "wdi")), 'disabled_options' => array('infinite_scroll' => __('This Feature is Available in PRO version'), 'br' => 'true'), 'break' => 'true', 'hide_ids' => array('pagination' => 'number_of_photos,load_more_number,resort_after_load_more', 'load_more_btn' => 'pagination_per_page_number,pagination_preload_number', 'infinite_scroll' => 'pagination_per_page_number,pagination_preload_number'), 'tooltip' => __('How to load and display new images', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))), 'sort_images_by' => array('name' => 'sort_images_by', 'title' => __('Sort Images By', "wdi"), 'valid_options' => array('date' => __('Date', "wdi"), 'likes' => __('Likes', "wdi"), 'comments' => __('Comments', "wdi"), 'random' => __('Random', "wdi")), 'type' => 'select', 'tooltip' => __('How to sort images', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'display_order' => array('name' => 'display_order', 'title' => __('Order By', "wdi"), 'valid_options' => array('asc' => 'Ascending', 'desc' => 'Descending '), 'type' => 'select', 'tooltip' => __('Sorting order either Ascending or Descending', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'follow_on_instagram_btn' => array('name' => 'follow_on_instagram_btn', 'title' => __('Follow on Instagram Button', "wdi"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'display_header' => array('name' => 'display_header', 'title' => __('Display Header', "wdi"), 'type' => 'checkbox', 'tooltip' => __('Displays feed\'s header, header includes feed name and feed users', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'number_of_photos' => array('name' => 'number_of_photos', 'title' => __('Number of Photos to Display', "wdi"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of images to load when page loads first time', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))), 'load_more_number' => array('name' => 'load_more_number', 'title' => __('Number of Photos to Load', "wdi"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of images to load when clicking load more button or triggering infinite scroll', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))), 'pagination_per_page_number' => array('name' => 'pagination_per_page_number', 'title' => __('Number of Images Per Page', "wdi"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number Of Images To Show On Each Pagination Page', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))), 'pagination_preload_number' => array('name' => 'pagination_preload_number', 'title' => __('Number of Pages To Preload', "wdi"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('This Will Preload Images For Pagination', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))), 'image_browser_preload_number' => array('name' => 'image_browser_preload_number', 'title' => __('Number of Images To Preload', "wdi"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('This Will Preload Images For Pagination', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'image_browser'))), 'image_browser_load_number' => array('name' => 'image_browser_load_number', 'title' => __('Number of Images To Load Each Time', "wdi"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number Of Photos To Load on Each Load', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'image_browser'))), 'number_of_columns' => array('name' => 'number_of_columns', 'title' => __('Number of Columns', "wdi"), 'type' => 'select', 'valid_options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8'), 'tooltip' => __('Feed item\'s column count', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))), 'resort_after_load_more' => array('name' => 'resort_after_load_more', 'title' => __('Sort Again Whole Feed After Loading New Images', "wdi"), 'type' => 'checkbox', 'tooltip' => __('Sort both newly loaded and existing images alltogether', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))), 'show_likes' => array('switched' => 'off', 'name' => 'show_likes', 'title' => __('Show Likes', "wdi"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'show_description' => array('switched' => 'off', 'name' => 'show_description', 'title' => __('Show Description', "wdi"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'show_comments' => array('switched' => 'off', 'name' => 'show_comments', 'title' => __('Show Comments', "wdi"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'show_username_on_thumb' => array('switched' => 'off', 'name' => 'show_username_on_thumb', 'title' => __('Show Username On Image Thumb', "wdi"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))), 'show_usernames' => array('name' => 'show_usernames', 'title' => __('Show User Data', "wdi"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'display_user_info' => array('name' => 'display_user_info', 'title' => __('Display User Bio', "wdi"), 'type' => 'checkbox', 'tooltip' => __('User bio will be displayed if feed has only one user', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'display_user_post_follow_number' => array('name' => 'display_user_post_follow_number', 'title' => __('Display User Posts and Followers count', "wdi"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'show_full_description' => array('name' => 'show_full_description', 'title' => __('Show Full Description', "wdi"), 'type' => 'checkbox', 'tooltip' => __('Discription will be shown no matter how long it is', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'masonry'))), 'disable_mobile_layout' => array('name' => 'disable_mobile_layout', 'title' => __('Disable Mobile Layout', "wdi"), 'type' => 'checkbox', 'tooltip' => __('Column number stays the same in all screens', "wdi"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))), 'feed_item_onclick' => array('name' => 'feed_item_onclick', 'title' => __('Image Onclick', "wdi"), 'type' => 'radio', 'valid_options' => array('lightbox' => __('Open Lightbox', "wdi"), 'instagram' => __('Redirect To Instagram', "wdi"), 'none' => __('Do Nothing', "wdi")), 'break' => 'true', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))), 'popup_fullscreen' => array('name' => 'popup_fullscreen', 'title' => __('Full width lightbox', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_width' => array('name' => 'popup_width', 'title' => __('Lightbox Width', "wdi"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_height' => array('name' => 'popup_height', 'title' => __('Lightbox Height', "wdi"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_type' => array('name' => 'popup_type', 'title' => __('Lightbox Effect', "wdi"), 'valid_options' => array('none' => 'None', 'fade' => 'Fade', 'cubeH' => 'Cube Horizontal', 'cubeV' => 'Cube Vertical', 'sliceH' => 'Slice Horizontal', 'sliceV' => 'Slice Vertical', 'slideH' => 'Slide Horizontal', 'slideV' => 'Slide Vertical', 'scaleOut' => 'Scale Out', 'scaleIn' => 'Scale In', 'blockScale' => 'Block Scale', 'kaleidoscope' => 'Kaleidoscope', 'fan' => 'Fan', 'blindH' => 'Blind Horizontal', 'blindV' => 'Blinde Vertical', 'random' => 'Random'), 'disabled_options' => array('cubeH', 'cubeV', 'sliceH', 'sliceV', 'slideH', 'slideV', 'scaleOut', 'scaleIn', 'blockScale', 'kaleidoscope', 'fan', 'blindH', 'blindV', 'random'), 'type' => 'select', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_autoplay' => array('name' => 'popup_autoplay', 'title' => __('Lightbox autoplay', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'hide_ids' => array('0' => 'popup_interval'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_interval' => array('name' => 'popup_interval', 'title' => __('Time Interval', "wdi"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'sec', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_filmstrip' => array('disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'name' => 'popup_enable_filmstrip', 'title' => __('Enable filmstrip in lightbox', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'hide_ids' => array('0' => 'popup_filmstrip_height'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_filmstrip_height' => array('switched' => 'off', 'disabled' => array('text' => __("This Feature is Available Only in PRO version", "wdi")), 'name' => 'popup_filmstrip_height', 'title' => __('Filmstrip size', "wdi"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))), 'autohide_lightbox_navigation' => array('name' => 'autohide_lightbox_navigation', 'title' => __('Show Next / Previous Buttons', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('On Hover', "wdi"), '0' => __('Always', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_info_always_show' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_info_always_show', 'title' => __('Display info by default', "wdi"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_info_full_width' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_info_full_width', 'title' => __('Full width info', "wdi"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'enable_loop' => array('name' => 'enable_loop', 'title' => __('Enable Loop', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_image_right_click' => array('name' => 'popup_image_right_click', 'title' => __('Enable Right Click Protection', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_ctrl_btn' => array('name' => 'popup_enable_ctrl_btn', 'title' => __('Enable control buttons', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'hide_ids' => array('0' => 'popup_enable_info,popup_enable_fullscreen,popup_enable_info,popup_enable_comment,popup_enable_download,popup_enable_share_buttons,popup_enable_fullsize_image'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_info' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_enable_info', 'title' => __('Enable info', "wdi"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'valid_options' => array('1' => 'Yes', '0' => 'No'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_fullscreen' => array('name' => 'popup_enable_fullscreen', 'title' => __('Enable fullscreen', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_comment' => array('switched' => 'off', 'disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'name' => 'popup_enable_comment', 'title' => __('Enable comments', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_fullsize_image' => array('name' => 'popup_enable_fullsize_image', 'title' => __('Link To Instagram Button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_download' => array('name' => 'popup_enable_download', 'title' => __('Enable Download Button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_share_buttons' => array('disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wdi"), 'br' => 'true'), 'name' => 'popup_enable_share_buttons', 'title' => __('Enable Share Buttons', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_facebook' => array('status' => 'disabled', 'name' => 'popup_enable_facebook', 'title' => __('Enable Facebook button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_twitter' => array('status' => 'disabled', 'name' => 'popup_enable_twitter', 'title' => __('Enable Twitter button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_google' => array('status' => 'disabled', 'name' => 'popup_enable_google', 'title' => __('Enable Google+ button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_pinterest' => array('status' => 'disabled', 'name' => 'popup_enable_pinterest', 'title' => __('Enable Pinterest button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'popup_enable_tumblr' => array('status' => 'disabled', 'name' => 'popup_enable_tumblr', 'title' => __('Enable Tumblr button', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'show_image_counts' => array('status' => 'disabled', 'name' => 'show_image_counts', 'title' => __('Show Images Count', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))), 'conditional_filter_enable' => array('name' => 'conditional_filter_enable', 'title' => __('Enable Conditional Filters', "wdi"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wdi"), '0' => __('No', "wdi")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'conditional_filters'))), 'conditional_filter_type' => array('name' => 'conditional_filter_type', 'title' => __('Filter Logic', "wdi"), 'type' => 'select', 'label' => array('text' => '', 'place' => 'after'), 'valid_options' => array('AND' => 'AND', 'OR' => 'OR', 'NOR' => 'NOR'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'conditional_filters'))));
     $return = array('elements' => $elements, 'current_id' => $current_id);
     return $return;
 }
 private function sanitize_input($settings, $defaults)
 {
     require_once WDI_DIR . "/admin/models/WDIModelThemes_wdi.php";
     $model = new WDIModelThemes_wdi();
     $sanitize_types = $model->get_sanitize_types();
     $sanitized_output = array();
     foreach ($settings as $setting_name => $value) {
         switch ($sanitize_types[$setting_name]) {
             case 'string':
                 $sanitized_val = $this->sanitize_string($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'number':
                 $sanitized_val = $this->sanitize_number($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'bool':
                 $sanitized_val = $this->sanitize_bool($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'url':
                 $sanitized_val = $this->sanitize_url($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'length':
                 $sanitized_val = $this->sanitize_length($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'length_multi':
                 $sanitized_val = $this->sanitize_length_multi($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'color':
                 $sanitized_val = $this->sanitize_color($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'position':
                 $sanitized_val = $this->sanitize_position($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'css_box_shadow':
                 $sanitized_val = $this->sanitize_css_box_shadow($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'number_max_100':
                 $sanitized_val = $this->sanitize_number_max_100($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
             case 'number_neg':
                 $sanitized_val = $this->sanitize_number_neg($value, $defaults[$setting_name]);
                 $sanitized_output[$setting_name] = $sanitized_val;
                 break;
         }
     }
     return $sanitized_output;
 }
 public function get_theme_row($theme_id)
 {
     require_once WDI_DIR . '/admin/models/WDIModelThemes_wdi.php';
     $theme_row = WDIModelThemes_wdi::get_theme_row($theme_id);
     return WDILibrary::objectToArray($theme_row);
 }