Exemple #1
0
function ajax_load()
{
    if (isset($_GET['action'])) {
        if ($_GET['action'] == 'menu') {
            get_menu_list();
            exit;
        }
        if ($_GET['action'] == 'category_list') {
            get_category_list();
            exit;
        }
        if ($_GET['action'] == 'blog_list') {
            get_blog_list();
            exit;
        }
        if ($_GET['action'] == 'lol_list') {
            get_lol_list();
            exit;
        }
        if ($_GET['action'] == 'lol_hero_list') {
            get_lol_hero_list();
            exit;
        }
        if ($_GET['action'] == 'lol_info') {
            get_lol_info();
            exit;
        }
    }
}
Exemple #2
0
function add_page_option_element()
{
    global $post, $page_meta_boxes;
    //init array
    $page_meta_boxes['Page Item']['name']['Blog']['category']['options'] = get_category_list('category');
    $page_meta_boxes['Page Item']['name']['Blog']['read-the-blog']['options'] = array_merge(array('None'), get_post_slug_list('page'));
    $page_meta_boxes['Page Item']['name']['Gallery']['page']['options'] = get_post_slug_list('gdl-gallery');
    $page_meta_boxes['Page Item']['name']['Personnal']['category']['options'] = get_category_list('personnal-category');
    $page_meta_boxes['Page Item']['name']['Package']['category']['options'] = get_category_list('package-category');
    $page_meta_boxes['Page Item']['name']['Portfolio']['category']['options'] = get_category_list('portfolio-category');
    $page_meta_boxes['Page Item']['name']['Portfolio']['view-all-portfolio']['options'] = array_merge(array('None'), get_post_slug_list('page'));
    $page_meta_boxes['Page Item']['name']['Post-Slider']['category']['options'] = get_category_list('category');
    $page_meta_boxes['Page Item']['name']['Price-Item']['category']['options'] = get_category_list('price-table-category');
    $page_meta_boxes['Page Item']['name']['Testimonial']['category']['options'] = get_category_list('testimonial-category');
    $page_meta_boxes['Choose Left Sidebar']['options'] = get_sidebar_name();
    $page_meta_boxes['Choose Right Sidebar']['options'] = $page_meta_boxes['Choose Left Sidebar']['options'];
    echo '<div id="gdl-overlay-wrapper">';
    echo '<div id="gdl-overlay-content">';
    set_nonce();
    //get value
    foreach ($page_meta_boxes as $page_meta_box) {
        if ($page_meta_box['type'] == 'page-option-item') {
            $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['xml'], true);
            print_page_default_elements($page_meta_box);
            print_page_selected_elements($page_meta_box);
        } else {
            if ($page_meta_box['type'] == 'imagepicker') {
                $slider_xml_string = get_post_meta($post->ID, $page_meta_box['xml'], true);
                if (!empty($slider_xml_string)) {
                    $slider_xml_val = new DOMDocument();
                    $slider_xml_val->loadXML($slider_xml_string);
                    $page_meta_box['value'] = $slider_xml_val->documentElement;
                }
                print_meta($page_meta_box);
            } else {
                if (empty($page_meta_box['name'])) {
                    $page_meta_box['name'] = '';
                }
                $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['name'], true);
                print_meta($page_meta_box);
            }
        }
        echo "<div class='clear'></div>";
        if (empty($page_meta_box['hr'])) {
            if ($page_meta_box['type'] != 'open' && $page_meta_box['type'] != 'close') {
                echo '<hr class="separator mt20">';
            }
        }
    }
    echo '</div>';
    echo '</div>';
}
function wp_affiliate_post_menu()
{
    global $wpdb, $wp_affiliate_prefix;
    $category_form = "\r\n<h2>Add Base Category</h2>\r\n<div id=\"wp_affiliate_add_category_results\" style=\"color:red;\"></div>\r\n<table>\r\n<tr><td align=\"right\">\r\n<b>Category Name:</b>\r\n</td><td>\r\n<input type=\"text\" name=\"wp_affiliate_add_new_category\">\r\n</td></tr></table>\r\n<input type=\"hidden\" name=\"wp_affiliate_category_parent\" value=\"0\">\r\n<input type=\"button\" value=\"Add Base Category\" onclick=\"wp_affiliate_ajax_add_category(this.form.wp_affiliate_add_new_category,this.form.wp_affiliate_category_parent);\" >\r\n";
    echo $category_form;
    echo "\r\n<h2>Categorical Listing Of Links</h2>\r\n<div id=\"wp_affiliate_category_list\">\r\n";
    $category_list = get_category_list();
    if ($category_list) {
        echo get_category_list();
    } else {
        echo "<ul id=\"wpanav\"><ul>";
    }
    //"No categories! Add at least one in order to add links!";
    echo "\r\n</div>";
}
Exemple #4
0
function add_page_option_element()
{
    global $post, $page_meta_boxes;
    //init array
    $page_meta_boxes['Page Item']['name']['Blog']['category']['options'] = get_category_list('category');
    $page_meta_boxes['Page Item']['name']['Gallery']['page']['options'] = get_title_list('gallery');
    $page_meta_boxes['Page Item']['name']['Portfolio']['category']['options'] = get_category_list('portfolio-category');
    $page_meta_boxes['Page Item']['name']['Portfolio']['view-all-project']['options'] = array_merge(array('No'), get_title_list('page'));
    $page_meta_boxes['Page Item']['name']['Testimonial']['category']['options'] = get_category_list('testimonial-category');
    $page_meta_boxes['Page Item']['name']['Testimonial']['specific']['options'] = get_title_list('testimonial');
    $page_meta_boxes['Choose Left Sidebar']['options'] = get_sidebar_name();
    $page_meta_boxes['Choose Right Sidebar']['options'] = $page_meta_boxes['Choose Left Sidebar']['options'];
    $page_meta_boxes['Bg Slider Type']['options'] = array_merge(array('Current Page'), get_title_list('page'));
    echo '<div id="gdl-overlay-wrapper">';
    echo '<div id="gdl-overlay-content">';
    set_nonce();
    //get value
    foreach ($page_meta_boxes as $page_meta_box) {
        if ($page_meta_box['type'] == 'open' || $page_meta_box['type'] == 'close' || $page_meta_box['type'] == 'text') {
            print_meta($page_meta_box);
        } else {
            if ($page_meta_box['type'] == 'page-option-item') {
                $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['xml'], true);
                print_page_default_elements($page_meta_box);
                print_page_selected_elements($page_meta_box);
            } else {
                if ($page_meta_box['type'] == 'imagepicker') {
                    $slider_xml_string = get_post_meta($post->ID, $page_meta_box['xml'], true);
                    if (!empty($slider_xml_string)) {
                        $slider_xml_val = new DOMDocument();
                        $slider_xml_val->loadXML($slider_xml_string);
                        $page_meta_box['value'] = $slider_xml_val->documentElement;
                    }
                    print_meta($page_meta_box);
                } else {
                    $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['name'], true);
                    print_meta($page_meta_box);
                }
            }
        }
        echo "<div class='clear'></div>";
        echo empty($page_meta_box['hr']) ? '<hr class="separator mt20">' : '';
    }
    echo '</div>';
    echo '</div>';
}
function get_category_list($parent = 0, $escape = false)
{
    global $wpdb, $wp_affiliate_prefix;
    $table_name = $wpdb->prefix . $wp_affiliate_prefix . "_categories";
    $results = $wpdb->get_results("SELECT * FROM " . $table_name . " WHERE parent=" . $parent . " ORDER BY category ASC");
    if (!$results) {
        return;
    }
    $category_list = "<ul";
    if ($parent == 0) {
        $category_list .= " id=\"wpanav\" ";
    }
    $category_list .= ">\n";
    foreach ($results as $result) {
        $js_category = str_replace("-", "_", sanitize_title($result->category));
        $category_list .= "<li id=\"catli" . $result->id . "\" >" . $result->category . " <a href=\"#\" onclick=\"wp_affiliate_show_add_link_box(" . $result->id . "," . $result->parent . ", '" . $js_category . "');return false;\">Add A Link</a> <a href=\"#\" onclick=\"wp_affiliate_show_add_sub_category_box(" . $result->id . "," . $result->parent . ", '" . $js_category . "');return false;\">Add Sub Category</a> (<a href=\"#\" onclick=\"wp_affiliate_ajax_delete_category(" . $result->id . "); return false;\">Delete Category</a>)<div id=\"add-link-" . $result->parent . "-" . $js_category . "\" style=\"display:none;\"></div><div id=\"add-sub-category-" . $result->parent . "-" . $js_category . "\" style=\"display:none;\"></div>\n";
        $category_list .= get_link_list($result->id, $result->category);
        $category_list .= get_category_list($result->id);
        $category_list .= "</li>\n";
    }
    $category_list .= "</ul>\n";
    return $category_list;
}
Exemple #6
0
function list_category($config)
{
    $cate_list = get_category_list($config);
    if ($cate_list) {
        $num = count($cate_list);
        if ($num < 2) {
            echo "<p>There is {$num} category</p>";
        } else {
            echo "<p>There are {$num} categories</p>";
        }
        echo "<table border='1' cellspacing='0'>";
        echo "<tr>";
        echo "\t<th>ID</th>";
        echo "\t<th>Name</th>";
        echo "\t<th>Receipt</th>";
        echo "\t<th>Description</th>";
        echo "\t<th colspan='2'>Action</th>";
        echo "</tr>";
        for ($i = 0; $i < $num; $i++) {
            echo "<tr>";
            echo "\t<td>" . $cate_list[$i]['Id'] . "</td>";
            echo "\t<td>" . $cate_list[$i]['Name'] . "</td>";
            if ($cate_list[$i]['Receipt']) {
                echo "\t<td>Yes</td>";
            } else {
                echo "\t<td>&nbsp;</td>";
            }
            echo "\t<td>" . $cate_list[$i]['Description'] . "&nbsp;</td>";
            echo "\t<td><a href='category.php?action_type=edit&id=" . $cate_list[$i]['Id'] . "'>Edit</a></td>";
            echo "\t<td><a href='category.php?action_type=delete&id=" . $cate_list[$i]['Id'] . "'>Delete</a></td>";
            echo "<tr/>";
        }
        echo "</table>";
    } else {
        echo "There is no any category";
    }
}
Exemple #7
0
    if ('exMvUpCat' == $cmd) {
        move_up_category($catId);
    }
    if ('exMvDownCat' == $cmd) {
        move_down_category($catId);
    }
    if ('exMvUpForum' == $cmd) {
        move_up_forum($forumId);
    }
    if ('exMvDownForum' == $cmd) {
        move_down_forum($forumId);
    }
}
//end of admin commands
//load category and forum lists
$categories = get_category_list();
$total_categories = count($categories);
$forum_list = get_forum_list();
if (claro_is_user_authenticated()) {
    $userGroupList = get_user_group_list(claro_get_current_user_id());
    $userGroupList = array_keys($userGroupList);
    $tutorGroupList = get_tutor_group_list(claro_get_current_user_id());
} else {
    $userGroupList = array();
    $tutorGroupList = array();
}
//add javascript control for "dangerous" commands (delete-empty)
$htmlHeadXtra[] = "<script type=\"text/javascript\">\n    function confirm_delete(name)\n    {\n       if(confirm('" . clean_str_for_javascript(get_lang('Are you sure to delete')) . " ' + name + ' ?'))\n       {return true;}\n       else\n       {return false;}\n    }\n    \n    function confirm_empty(name)\n    {\n       if(confirm('" . clean_str_for_javascript(get_lang('Delete all messages of')) . " ' + name + ' ?'))\n       {return true;}\n       else\n       {return false;}\n    }\n    </script>";
//prepare display
$nameTools = get_lang('Forums');
$pagetype = 'index';
            }
            $items .= '</li>';
            $count++;
        }
        wp_reset_postdata();
        $items .= '</ul>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap full-width">';
            $items .= pagenavi($portfolio_items);
            $items .= '</div>';
        }
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="wpb_portfolio_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper portfolio-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<div class="heading-wrap"><h2 class="wpb_heading">' . $title . '</h2></div>' : '';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $include_isotope;
        global $has_portfolio;
        $include_isotope = true;
        $has_portfolio = true;
        return $output;
    }
}
WPBMap::map('portfolio', array("name" => __("Portfolio", "js_composer"), "base" => "portfolio", "class" => "wpb_portfolio", "icon" => "icon-wpb-portfolio", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Portfolio type", "js_composer"), "param_name" => "portfolio_type", "value" => array(__('Default', "js_composer") => "default", __('Masonry', "js_composer") => "masonry"), "description" => __("Select the type of portfolio you'd like to show.", "js_composer")), array("type" => "dropdown", "heading" => __("Display type", "js_composer"), "param_name" => "display_type", "value" => array(__('Standard', "js_composer") => "standard", __('Bordered', "js_composer") => "bordered", __('Gallery', "js_composer") => "gallery", __('Bordered gallery', "js_composer") => "bordered_gallery"), "description" => __("Select the type of portfolio you'd like to show.", "js_composer")), array("type" => "dropdown", "heading" => __("Column count", "js_composer"), "param_name" => "columns", "value" => array("4", "3", "2", "1"), "description" => __("How many portfolio columns to display.", "js_composer")), array("type" => "dropdown", "heading" => __("Show title text", "js_composer"), "param_name" => "show_title", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show the item title text.", "js_composer")), array("type" => "dropdown", "heading" => __("Show client text", "js_composer"), "param_name" => "show_client", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show the item client text.", "js_composer")), array("type" => "dropdown", "heading" => __("Show item excerpt", "js_composer"), "param_name" => "show_excerpt", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show the item excerpt text.", "js_composer")), array("type" => "textfield", "heading" => __("Excerpt Length", "js_composer"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "12", "description" => __("The number of portfolio items to show per page. Leave blank to show ALL portfolio items.", "js_composer")), array("type" => "dropdown", "heading" => __("Portfolio category", "js_composer"), "param_name" => "category", "value" => get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", "js_composer")), array("type" => "dropdown", "heading" => __("Pagination", "js_composer"), "param_name" => "pagination", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show portfolio pagination.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
Exemple #9
0
?>
  
  
<!--MAINCONTENT-->
<div id="maincontent">
	<div id="wrapproduct">
  	<div class="content">
    	<h2><img src="/images/products/maincategory/<?php 
echo $type;
?>
.png" /></h2>
      
      <ul class="listcategory" id="list_category">
      
      	<?php 
$data = get_category_list($type, $rowspage, $p);
$maxpage = 1;
if (isset($data["maxpage"])) {
    $maxpage = $data["maxpage"];
}
if ($data["result"]) {
    foreach ($data["result"] as $row) {
        $idcat = $row->id;
        $img = $row->img;
        $img_hover = $row->img_hover;
        echo "\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"/products/list/?type=" . $type . "&amp;cat=" . $idcat . "#maincontent\">\n\t\t\t\t\t\t\t\t<img class=\"no-slide\" src=\"/mmcp/images/category/" . $img . "\" width=\"269\" height=\"269\"/>       \n\t\t\t\t\t\t\t\t<img class=\"slide\" src=\"/mmcp/images/category/" . $img_hover . "\" width=\"269\" height=\"269\"/>\n\t\t\t\t\t\t\t</a>          \n\t\t\t\t\t\t</li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t";
    }
}
?>
                          
      </ul>              
    function form($instance)
    {
        if ($instance) {
            $title = esc_attr($instance['title']);
            $post_cat = esc_attr($instance['post_cat']);
            $show_num = esc_attr($instance['show_num']);
        } else {
            $title = '';
            $post_cat = '';
            $show_num = '3';
        }
        ?>


		<!-- Text Input -->
		<p>
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title :', 'gdl_back_office');
        ?>
</label> 
			<input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
" />
		</p>		

		<!-- Post Category -->
		<p>
			<label for="<?php 
        echo $this->get_field_id('post_cat');
        ?>
"><?php 
        _e('Category :', 'gdl_back_office');
        ?>
</label>		
			<select class="widefat" name="<?php 
        echo $this->get_field_name('post_cat');
        ?>
" id="<?php 
        echo $this->get_field_id('post_cat');
        ?>
">
			<?php 
        $category_list = get_category_list('package-category');
        foreach ($category_list as $category) {
            ?>

				<option value="<?php 
            echo $category;
            ?>
" <?php 
            if ($post_cat == $category) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            echo $category;
            ?>
</option>				
			<?php 
        }
        ?>
	
			</select> 
		</p>
			
		<!-- Show Num --> 
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_num');
        ?>
"><?php 
        _e('Show Count :', 'gdl_back_office');
        ?>
</label>
			<input class="widefat" id="<?php 
        echo $this->get_field_id('show_num');
        ?>
" name="<?php 
        echo $this->get_field_name('show_num');
        ?>
" type="text" value="<?php 
        echo $show_num;
        ?>
" />
		</p>

	<?php 
    }
Exemple #11
0
	Testimonials Meta Box
	
	================================================== */
$meta_boxes[] = array('id' => 'testimonials_meta_box', 'title' => 'Testimonial Meta', 'pages' => array('testimonials'), 'fields' => array(array('name' => 'Testimonial Cite', 'id' => $prefix . 'testimonial_cite', 'desc' => "Enter the cite for the testimonial.", 'clone' => false, 'type' => 'text', 'std' => '')));
/* ==================================================
		
	Product Meta Box
	
	================================================== */
$meta_boxes[] = array('id' => 'product_meta_box', 'title' => 'Product Meta', 'pages' => array('product'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => '', 'title' => 'Main Detail Options', 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => 'Show page title', 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => 'Show the page title at the top of the page.', 'std' => $default_show_page_heading), array('name' => 'Page Title (Line 1)', 'id' => $prefix . 'page_title_one', 'desc' => "Enter the first line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title (Line 2)', 'id' => $prefix . 'page_title_two', 'desc' => "Enter the second line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title Background', 'id' => "{$prefix}page_title_bg", 'type' => 'select', 'options' => array('none' => 'None', 'alt-one' => 'Alt 1', 'alt-two' => 'Alt 2', 'alt-three' => 'Alt 3', 'alt-four' => 'Alt 4', 'alt-five' => 'Alt 5', 'alt-six' => 'Alt 6', 'alt-seven' => 'Alt 7', 'alt-eight' => 'Alt 8', 'alt-nine' => 'Alt 9', 'alt-ten' => 'Alt 10'), 'multiple' => false, 'std' => $default_page_heading_bg_alt, 'desc' => 'Choose the background for the page title (configured in the Flexform Options panel).'), array('name' => '', 'id' => "{$prefix}altbg-preview", 'type' => 'altbgpreview'), array('name' => '', 'title' => 'Sidebar Options', 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => 'Sidebar configuration', 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => 'No Sidebars', 'left-sidebar' => 'Left Sidebar', 'right-sidebar' => 'Right Sidebar', 'both-sidebars' => 'Both Sidebars'), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => 'Choose the sidebar configuration for the detail page of this portfolio item.'), array('name' => 'Left Sidebar', 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => 'Right Sidebar', 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => 'Page Background Image Options (boxed layout only)', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Background Image', 'desc' => 'The image that will be used as the page background image.', 'id' => "{$prefix}background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => 'Background Image Size', 'desc' => 'For fullscreen images, choose Cover. For repeating patterns, choose Auto.', 'id' => "{$prefix}background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'cover'), array('name' => '', 'title' => 'Misc. Options', 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => 'Remove breadcrumbs', 'id' => "{$prefix}no_breadcrumbs", 'type' => 'checkbox', 'desc' => 'Remove the breadcrumbs on the page.', 'std' => 0), array('name' => 'Extra page class', 'id' => $prefix . 'extra_page_class', 'desc' => "If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'clone' => false, 'type' => 'text', 'std' => '')));
/* ==================================================
		
	Page Meta Box
	
	================================================== */
$meta_boxes[] = array('id' => 'page_meta_box', 'title' => 'Page Meta', 'pages' => array('page'), 'fields' => array(array('name' => '', 'title' => 'Page Options', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Hide page header', 'id' => "{$prefix}hide_page_header", 'type' => 'checkbox', 'desc' => 'Hide the page header / top bar on this page.', 'std' => 0), array('name' => 'Hide page footer', 'id' => "{$prefix}hide_page_footer", 'type' => 'checkbox', 'desc' => 'Hide the page footer and copyright bar on this page.', 'std' => 0), array('name' => 'Show page title', 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => 'Show the page title at the top of the page.', 'std' => $default_show_page_heading), array('name' => 'Page Title (Line 1)', 'id' => $prefix . 'page_title_one', 'desc' => "Enter the first line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title (Line 2)', 'id' => $prefix . 'page_title_two', 'desc' => "Enter the second line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title Background', 'id' => "{$prefix}page_title_bg", 'type' => 'select', 'options' => array('none' => 'None', 'alt-one' => 'Alt 1', 'alt-two' => 'Alt 2', 'alt-three' => 'Alt 3', 'alt-four' => 'Alt 4', 'alt-five' => 'Alt 5', 'alt-six' => 'Alt 6', 'alt-seven' => 'Alt 7', 'alt-eight' => 'Alt 8', 'alt-nine' => 'Alt 9', 'alt-ten' => 'Alt 10'), 'multiple' => false, 'std' => $default_page_heading_bg_alt, 'desc' => 'Choose the background for the page title (configured in the Flexform Options panel).'), array('name' => '', 'id' => "{$prefix}altbg-preview", 'type' => 'altbgpreview'), array('name' => '', 'title' => 'Page Background Image Options (boxed layout only)', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Background Image', 'desc' => 'The image that will be used as the page background image.', 'id' => "{$prefix}background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => 'Background Image Size', 'desc' => 'For fullscreen images, choose Cover. For repeating patterns, choose Auto.', 'id' => "{$prefix}background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'cover'), array('name' => '', 'title' => 'Slider Options', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Show Swift Slider', 'id' => "{$prefix}posts_slider", 'type' => 'checkbox', 'desc' => 'Show the Swift Slider at the top of the page.', 'std' => 0), array('name' => 'Swift Slider Type', 'id' => "{$prefix}posts_slider_type", 'type' => 'select', 'options' => array('post' => 'Posts', 'portfolio' => 'Portfolio', 'hybrid' => 'Hybrid'), 'multiple' => false, 'std' => 'post', 'desc' => 'Choose the post type to display in the Swift Slider.'), array('name' => 'Swift Slider category', 'id' => "{$prefix}posts_slider_category", 'type' => 'select', 'desc' => 'Select the category for which the Swift Slider should show posts from.', 'options' => get_category_list('category'), 'std' => ''), array('name' => 'Swift Slider portfolio category', 'id' => "{$prefix}posts_slider_portfolio_category", 'type' => 'select', 'desc' => 'Select the category for which the Swift Slider should show portfolio items from.', 'options' => get_category_list('portfolio-category'), 'std' => ''), array('name' => 'Swift Slider count', 'id' => $prefix . 'posts_slider_count', 'desc' => "The number of posts to show in the Swift Slider.", 'type' => 'text', 'std' => '5'), array('name' => 'Revolution slider alias', 'id' => $prefix . 'rev_slider_alias', 'desc' => "Enter the revolution slider alias for the slider that you want to show. NOTE: If you have the Swift Slider enabled above, then this will be ignored.", 'type' => 'text', 'std' => ''), array('name' => '', 'title' => 'Sidebar Options', 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => 'Sidebar configuration', 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => 'No Sidebars', 'left-sidebar' => 'Left Sidebar', 'right-sidebar' => 'Right Sidebar', 'both-sidebars' => 'Both Sidebars'), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => 'Choose the sidebar configuration for the detail page of this portfolio item.'), array('name' => 'Left Sidebar', 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => 'Right Sidebar', 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => 'Misc. Options', 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => 'Remove breadcrumbs', 'id' => "{$prefix}no_breadcrumbs", 'type' => 'checkbox', 'desc' => 'Remove the breadcrumbs on the page.', 'std' => 0), array('name' => 'Extra page class', 'id' => $prefix . 'extra_page_class', 'desc' => "If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => 'Remove top spacing', 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => 'Remove the spacing at the top of the page.', 'std' => 0), array('name' => 'Remove bottom spacing', 'id' => "{$prefix}no_bottom_spacing", 'type' => 'checkbox', 'desc' => 'Remove the spacing at the bottom of the page.', 'std' => 0)));
/********************* META BOX REGISTERING ***********************/
/**
 * Register meta boxes
 *
 * @return void
 */
function sf_register_meta_boxes()
{
    global $meta_boxes;
    // Make sure there's no errors when the plugin is deactivated or during upgrade
    if (class_exists('RW_Meta_Box')) {
        foreach ($meta_boxes as $meta_box) {
            if ($meta_box['id'] == "page_meta_box") {
                if (!rw_maybe_include("woocommerce.php")) {
                    new RW_Meta_Box($meta_box);
Exemple #12
0
if ($cmd == 'exEdForum') {
    $forumPostAllowed = isset($_REQUEST['forumPostUnallowed']) ? false : true;
    if (trim($_REQUEST['forumName'] != '')) {
        if (update_forum_settings($_REQUEST['forumId'], $_REQUEST['forumName'], $_REQUEST['forumDesc'], $forumPostAllowed, $_REQUEST['forumCatId'])) {
            $dialogBox->success(get_lang('Forum updated'));
        } else {
            $dialogBox->error(get_lang('Unable to update forum'));
        }
    } else {
        $dialogBox->error(get_lang('Missing field(s)'));
        $cmd = 'rqEdForum';
    }
}
if ($cmd == 'rqEdForum') {
    $forumSettingList = get_forum_settings($_REQUEST['forumId']);
    $formCategoryList = get_category_list();
    if (count($formCategoryList) > 0) {
        $catSelectBox = get_lang('Category') . ' : <br />' . "\n" . '<select name="forumCatId">';
        foreach ($formCategoryList as $thisFormCategory) {
            if ($forumSettingList['cat_id'] == $thisFormCategory['cat_id']) {
                $selectedState = ' selected="selected" ';
            } else {
                $selectedState = '';
            }
            $catSelectBox .= '<option  value="' . $thisFormCategory['cat_id'] . '"' . $selectedState . '>' . htmlspecialchars($thisFormCategory['cat_title']) . '</option>';
        }
        $catSelectBox .= '</select><br />' . "\n";
    } else {
        $catSelectBox = '';
    }
    $formForumNameValue = isset($_REQUEST['forumName']) ? $_REQUEST['forumName'] : $forumSettingList['forum_name'];
<tr>
<td width="15%"><b>Автор</b></td>
<td width="40%">Выбор изображений по автору</td>
<td><?php 
echo get_artists_list();
?>
</td></tr></tbody>
</table>
</td></tr><tr bgcolor="#ffffff"><td>

<table width="100%" cellspacing="0" cellpadding="4"><tbody>
<tr>
<td width="15%"><b>Категория</b></td>
<td width="40%">Выбор изображения по категориям</td>
<td><?php 
echo get_category_list();
?>
</td></tr>
<tr>
<td width="15%">&nbsp;</td>
<td width="40%">Включая "рабочий стол":</td>
<td><input type="checkbox" name="666"></td></tr></tbody></table>
</td></tr>

<tr bgcolor="#ffffff">
<td><table width="100%" cellspacing="0" cellpadding="4"><tbody><tr>
<td width="15%"><b>Цветность</b></td>
<td colspan="2"><input id="sfio" type="radio" checked="" value="all" name="color"> <label for="sfio">Без фильтрации</label>&nbsp;&nbsp;<input id="ss" type="radio" value="color" name="color"> <label for="ss">Только цветные</label>&nbsp;&nbsp;<input id="ss" type="radio" value="bw" name="color"> <label for="ss">Только чёрно-белые</label>&nbsp;&nbsp;</td></tr></tbody></table></td></tr></tbody></table>
</form>

<?php 
Exemple #14
0
            $items .= '<figure>';
            $image = aq_resize($client_img_url, $client_width, $client_height, true, false);
            if ($image) {
                if ($client_link_url) {
                    $items .= '<a href="' . $client_link_url . '" target="_blank"><img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" /></a>';
                } else {
                    $items .= '<img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" />';
                }
            }
            $items .= '</figure>';
        }
        wp_reset_postdata();
        $items .= '</ul></div>';
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        if ($alt_background == "none" || $sidebars != "no-sidebars") {
            $output .= "\n\t" . '<div class="wpb_featured_clients_widget wpb_content_element ' . $width . $el_class . '">';
        } else {
            $output .= "\n\t" . '<div class="wpb_featured_clients_widget wpb_content_element alt-bg ' . $alt_background . ' ' . $width . $el_class . '">';
        }
        $output .= "\n\t\t" . '<div class="wpb_wrapper clients-wrap row">';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
WPBMap::map('clients_featured', array("name" => __("Clients (Featured)", "js_composer"), "base" => "clients_featured", "class" => "clients_featured", "icon" => "icon-wpb-clients-featured", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Clients category", "js_composer"), "param_name" => "category", "value" => get_category_list('clients-category'), "description" => __("Choose the category for the client items.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "5", "description" => __("The number of clients to show per page. Leave blank to show ALL clients.", "js_composer")), array("type" => "dropdown", "heading" => __("Show alt background", "js_composer"), "param_name" => "alt_background", "value" => array(__("None", "js_composer") => "none", __("Alt 1", "js_composer") => "alt-one", __("Alt 2", "js_composer") => "alt-two", __("Alt 3", "js_composer") => "alt-three", __("Alt 4", "js_composer") => "alt-four", __("Alt 5", "js_composer") => "alt-five", __("Alt 6", "js_composer") => "alt-six", __("Alt 7", "js_composer") => "alt-seven", __("Alt 8", "js_composer") => "alt-eight", __("Alt 9", "js_composer") => "alt-nine", __("Alt 10", "js_composer") => "alt-ten"), "description" => __("Show an alternative background around the asset. These can all be set in Flexform Options > Asset Background Options. NOTE: This is only available on a page with the no sidebar setup.", "js_composer")), array("type" => "altbg_preview", "heading" => __("Alt Background Preview", "js_composer"), "param_name" => "altbg_preview", "value" => "", "description" => __("", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
Exemple #15
0
            $jobs->the_post();
            $job_title = get_the_title();
            $job_text = get_the_content();
            $items .= '<li class="job">';
            $items .= '<h3>' . $job_title . '</h3>';
            $items .= '<div class="job-text">' . do_shortcode($job_text) . '</div>';
            $items .= '</li>';
        }
        wp_reset_postdata();
        $items .= '</ul>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($jobs);
            $items .= '</div>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper jobs-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<div class="heading-wrap"><h3 class="wpb_heading wpb_text_heading"><span>' . $title . '</span></h3></div>' : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        //
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
WPBMap::map('jobs', array("name" => __("Jobs", "js_composer"), "base" => "jobs", "class" => "", "icon" => "icon-wpb-jobs", "wrapper_class" => "clearfix", "controls" => "full", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "6", "description" => __("The number of jobs to show per page. Leave blank to show ALL jobs.", "js_composer")), array("type" => "dropdown", "heading" => __("Jobs Order", "js_composer"), "param_name" => "order", "value" => array(__('Random', "js_composer") => "rand", __('Latest', "js_composer") => "date"), "description" => __("Choose the order of the jobs.", "js_composer")), array("type" => "dropdown", "heading" => __("Jobs category", "js_composer"), "param_name" => "category", "value" => get_category_list('jobs-category'), "description" => __("Choose the category for the jobs.", "js_composer")), array("type" => "dropdown", "heading" => __("Pagination", "js_composer"), "param_name" => "pagination", "value" => array(__('No', "js_composer") => "no", __('Yes', "js_composer") => "yes"), "description" => __("Show jobs pagination.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
 /**
  * Returns all the forums of a course.
  * @throws InvalidArgumentException if the $cid in not provided.
  * @webservice{/module/MOBILE/CLFRM/getResourcesList/cidReq}
  * @ws_arg{Method,getResourcesList}
  * @ws_arg{cidReq,SYSCODE of requested cours}
  * @return array of Forums object
  */
 function getResourcesList()
 {
     $cid = claro_get_current_course_id();
     if ($cid == null) {
         throw new InvalidArgumentException('Missing cid argument!');
     }
     FromKernel::uses('forum.lib');
     $claroNotification = Claroline::getInstance()->notification;
     $date = $claroNotification->getLastActionBeforeLoginDate(claro_get_current_user_id());
     $d = new DateTime($date);
     $d->sub(new DateInterval('PT1M'));
     $categories = get_category_list();
     $list = array();
     foreach (get_forum_list() as $item) {
         if ($item['cat_id'] == GROUP_FORUMS_CATEGORY) {
             continue;
         }
         $item['resourceId'] = $item['forum_id'];
         $item['title'] = $item['forum_name'];
         foreach ($categories as $cat) {
             if ($cat['cat_id'] == $item['cat_id']) {
                 $item['cat_title'] = $cat['cat_title'];
                 $item['cat_order'] = $cat['cat_order'];
                 break;
             }
         }
         $item['topics'] = array();
         $topics = new topicLister($item['forum_id'], 0, $item['forum_topics']);
         foreach ($topics->get_topic_list() as $topic) {
             $topic['resourceId'] = $topic['topic_id'];
             $topic['title'] = $topic['topic_title'];
             $topic['poster_firstname'] = $topic['prenom'];
             $topic['poster_lastname'] = $topic['nom'];
             $topic['date'] = $topic['topic_time'];
             $topic['posts'] = array();
             $posts = new postLister($topic['topic_id'], 0, $topic['topic_replies'] + 1);
             foreach ($posts->get_post_list() as $post) {
                 $notified = $claroNotification->isANotifiedRessource($cid, $date, claro_get_current_user_id(), claro_get_current_group_id(), get_tool_id_from_module_label('CLFRM'), $item['forum_id'] . '-' . $topic['topic_id'] . '-' . $post['post_id'], false);
                 $post['notifiedDate'] = $notified ? $date : $post['post_time'];
                 $post['seenDate'] = $d->format('Y-m-d H:i');
                 $post['post_text'] = trim(strip_tags($post['post_text']));
                 $post['resourceId'] = $post['post_id'];
                 $post['date'] = $post['post_time'];
                 unset($post['post_id']);
                 unset($post['topic_id']);
                 unset($post['forum_id']);
                 unset($post['poster_id']);
                 unset($post['post_time']);
                 unset($post['poster_ip']);
                 $topic['posts'][] = $post;
             }
             unset($topic['topic_id']);
             unset($topic['topic_title']);
             unset($topic['topic_poster']);
             unset($topic['topic_time']);
             unset($topic['topic_replies']);
             unset($topic['topic_last_post_id']);
             unset($topic['forum_id']);
             unset($topic['topic_notify']);
             unset($topic['nom']);
             unset($topic['prenom']);
             unset($topic['post_time']);
             $item['topics'][] = $topic;
         }
         unset($item['forum_id']);
         unset($item['forum_name']);
         unset($item['forum_moderator']);
         unset($item['forum_topics']);
         unset($item['forum_posts']);
         unset($item['forum_last_post_id']);
         unset($item['forum_type']);
         unset($item['group_id']);
         unset($item['poster_id']);
         unset($item['post_time']);
         $list[] = $item;
     }
     return $list;
 }
Exemple #17
0
            $items .= '</div></li>';
            $item_figure = '';
        }
        wp_reset_postdata();
        $items .= '</ul>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap full-width">';
            $items .= pagenavi($blog_items);
            $items .= '</div>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="wpb_blog_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper blog-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<div class="heading-wrap"><h3 class="wpb_heading">' . $title . '</h3></div>' : '';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        if ($blog_type == "masonry") {
            global $include_isotope;
            $include_isotope = true;
        }
        global $has_blog;
        $has_blog = true;
        return $output;
    }
}
WPBMap::map('blog', array("name" => __("Blog", "js_composer"), "base" => "blog", "class" => "wpb_blog", "icon" => "icon-wpb-blog", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Blog type", "js_composer"), "param_name" => "blog_type", "value" => array(__('Standard', "js_composer") => "standard", __('Mini', "js_composer") => "mini", __('Masonry', "js_composer") => "masonry"), "description" => __("Select the display type for the blog.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "5", "description" => __("The number of blog items to show per page.", "js_composer")), array("type" => "dropdown", "heading" => __("Blog category", "js_composer"), "param_name" => "category", "value" => get_category_list('category'), "description" => __("Choose the category for the blog items.", "js_composer")), array("type" => "textfield", "heading" => __("Excerpt Length", "js_composer"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "js_composer")), array("type" => "dropdown", "heading" => __("Pagination", "js_composer"), "param_name" => "pagination", "value" => array("yes", "no"), "description" => __("Show pagination.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
Exemple #18
0
        global $post, $wp_query;
        $args = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $category_slug, 'posts_per_page' => $item_count);
        $blog_items = query_posts($args);
        if (have_posts()) {
            $items .= '<ul id="posts-ticker" class="news-ticker js-hidden clearfix" data-latesttext="' . __("Latest:", "swiftframework") . '">';
            while (have_posts()) {
                the_post();
                $item_title = get_the_title();
                $post_permalink = get_permalink();
                $items .= '<li class="news-item">';
                $items .= '<a href="' . $post_permalink . '" title="' . $item_title . '">' . $item_title . '</a>';
                $items .= '</li>';
            }
            wp_reset_query();
            $items .= '</ul>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="wpb_posts_ticker_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper posts-ticker-wrap">';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        global $include_ticker;
        $include_ticker = true;
        $output = $this->startRow($el_position, "ticker-row") . $output . $this->endRow($el_position);
        return $output;
    }
}
WPBMap::map('posts_ticker', array("name" => __("Posts Ticker", "js_composer"), "base" => "posts_ticker", "class" => "wpb_posts-ticker", "icon" => "icon-wpb-posts-ticker", "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "4", "description" => __("The number of blog items to show per page.", "js_composer")), array("type" => "dropdown", "heading" => __("Posts category", "js_composer"), "param_name" => "category", "value" => get_category_list('category'), "description" => __("Choose the category for the post items.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
    function form($instance)
    {
        if ($instance) {
            $num_fetch = esc_attr($instance['num_fetch']);
            $category = esc_attr($instance['category']);
        } else {
            $num_fetch = '3';
            $category = '';
        }
        ?>
		
		<!-- Num Fetch --> 
		<p>
			<label for="<?php 
        echo $this->get_field_id('num_fetch');
        ?>
"><?php 
        _e('Num Fetch :', 'gdl_back_office');
        ?>
</label> 
			<input class="widefat" id="<?php 
        echo $this->get_field_id('num_fetch');
        ?>
" name="<?php 
        echo $this->get_field_name('num_fetch');
        ?>
" type="text" value="<?php 
        echo $num_fetch;
        ?>
" />
		</p>			
		
		<!-- Post Category --> 
		<p>
			<label for="<?php 
        echo $this->get_field_id('category');
        ?>
"><?php 
        _e('Category :', 'gdl_back_office');
        ?>
</label> 
			<select class="widefat" id="<?php 
        echo $this->get_field_id('category');
        ?>
" name="<?php 
        echo $this->get_field_name('category');
        ?>
" >
				<?php 
        $category_lists = get_category_list('category');
        foreach ($category_lists as $category_list) {
            $selected = $category == $category_list ? 'selected' : '';
            echo '<option ' . $selected . '>' . $category_list . '</option>';
        }
        ?>
			</select>
		</p>		
		<?php 
    }
Exemple #20
0
function get_posts_slider()
{
    global $post, $wp_query;
    $output = '';
    $options = get_option('sf_flexform_options');
    $posts_slider_type = get_post_meta($post->ID, 'sf_posts_slider_type', true);
    $posts_category = get_post_meta($post->ID, 'sf_posts_slider_category', true);
    $portfolio_category = get_post_meta($post->ID, 'sf_posts_slider_portfolio_category', true);
    $count = get_post_meta($post->ID, 'sf_posts_slider_count', true);
    $args = array();
    if ($posts_slider_type == "post") {
        $category_list = get_category_list('category');
        $slider_category = $category_list[$posts_category];
        if ($slider_category == "All") {
            $slider_category = "all";
        }
        if ($slider_category == "all") {
            $slider_category = '';
        }
        $category_slug = str_replace('_', '-', $slider_category);
        $args = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $category_slug, 'posts_per_page' => $count);
    } else {
        if ($posts_slider_type == "hybrid") {
            $args = array('post_type' => array('post', 'portfolio'), 'post_status' => 'publish', 'posts_per_page' => $count);
        } else {
            $category_list = get_category_list('portfolio-category');
            $slider_category = $category_list[$portfolio_category];
            if ($slider_category == "All") {
                $slider_category = "all";
            }
            if ($slider_category == "all") {
                $slider_category = '';
            }
            $category_slug = str_replace('_', '-', $slider_category);
            $args = array('post_type' => 'portfolio', 'post_status' => 'publish', 'portfolio-category' => $category_slug, 'posts_per_page' => $count);
        }
    }
    $slider_items = new WP_Query($args);
    if ($slider_items->have_posts()) {
        $output .= '<!--// SWIFT SLIDER //-->' . "\n";
        $output .= '<div id="swift-slider" class="flexslider">' . "\n";
        $output .= '<div class="swift-slider-loading"></div>' . "\n";
        $output .= '<ul class="slides">' . "\n";
        while ($slider_items->have_posts()) {
            $slider_items->the_post();
            $post_title = get_the_title();
            $post_permalink = get_permalink();
            $post_author = get_the_author_link();
            $post_date = get_the_date();
            $post_client = get_post_meta($post->ID, 'sf_portfolio_client', true);
            $post_categories = get_the_category_list(', ');
            if ($posts_slider_type == "portfolio") {
                $post_categories = get_the_term_list($post->ID, 'portfolio-category', '', ', ');
            }
            $post_comments = get_comments_number();
            $custom_excerpt = get_post_meta($post->ID, 'sf_custom_excerpt', true);
            $post_excerpt = '';
            if ($custom_excerpt != '') {
                $post_excerpt = custom_excerpt($custom_excerpt, 20);
            } else {
                $post_excerpt = excerpt(20);
            }
            $posts_slider_image = rwmb_meta('sf_posts_slider_image', 'type=image&size=full');
            $caption_position = get_post_meta($post->ID, 'sf_caption_position', true);
            $accent_color = get_option('accent_color', '#fb3c2d');
            $secondary_accent_color = get_option('secondary_accent_color', '#2e2e36');
            $secondary_accent_alt_color = get_option('secondary_accent_alt_color', '#ffffff');
            $media_image_url = "";
            foreach ($posts_slider_image as $detail_image) {
                $media_image_url = $detail_image['url'];
                break;
            }
            if (!$posts_slider_image) {
                $posts_slider_image = get_post_thumbnail_id();
                $media_image_url = wp_get_attachment_url($posts_slider_image, 'full');
            }
            if (!$caption_position) {
                $caption_position = "caption-right";
            }
            $image = aq_resize($media_image_url, 1920, NULL, true, false);
            $output .= '<li>' . "\n";
            $output .= '<div class="slide-caption-container">' . "\n";
            if ($image) {
                $output .= '<div class="flex-caption ' . $caption_position . '">' . "\n";
                $output .= '<div class="flex-caption-details">' . "\n";
                $output .= '<div class="caption-details-inner">' . "\n";
                $output .= '<div class="details clearfix">' . "\n";
                $output .= '<span class="date">' . $post_date . '</span>' . "\n";
                if ($post_client != "") {
                    $output .= '<span class="item-client">' . __("Client: ", "swiftframework") . $post_client . '</span>' . "\n";
                    $output .= '<span class="item-categories">' . $post_categories . '</span>' . "\n";
                } else {
                    $output .= '<span class="item-author">' . __("Posted by ", "swiftframework") . $post_author . '</span>' . "\n";
                    $output .= '<span class="item-categories">' . $post_categories . '</span>' . "\n";
                }
                $output .= '</div>';
                if (comments_open()) {
                    $output .= '<div class="comment-chart chart" data-percent="1" data-count="' . $post_comments . '" data-barcolor="' . $secondary_accent_color . '"><span>0</span><i class="icon-comments"></i></div>' . "\n";
                }
                if (function_exists('lip_get_love_count')) {
                    $output .= '<div class="loveit-chart chart" data-percent="1" data-count="' . lip_get_love_count($post->ID) . '" data-barcolor="' . $accent_color . '"><span>0</span><i class="icon-heart"></i></div>' . "\n";
                }
                $output .= '</div>' . "\n";
                $output .= '</div>' . "\n";
                $output .= '<div class="flex-caption-headline clearfix">' . "\n";
                $output .= '<h4><a href="' . $post_permalink . '"><span>' . $post_title . '</span><i class="icon-angle-right"></i></a></h4>' . "\n";
                $output .= '</div></div></div>' . "\n";
                $output .= '<img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" alt="' . $post_title . '" />' . "\n";
            } else {
                $output .= '<div class="flex-caption-large clearfix">' . "\n";
                $output .= '<h1><a href="' . $post_permalink . '">' . $post_title . '</a></h1>' . "\n";
                $output .= '<div class="excerpt">' . $post_excerpt . '</div>' . "\n";
                $output .= '<div class="cl-charts">' . "\n";
                if (comments_open()) {
                    $output .= '<div class="comment-chart fw-chart chart" data-percent="1" data-count="' . $post_comments . '" data-barcolor="' . $secondary_accent_alt_color . '"><span>0</span><i class="icon-comments"></i></div>' . "\n";
                }
                if (function_exists('lip_get_love_count')) {
                    $output .= '<div class="loveit-chart fw-chart chart" data-percent="1" data-count="' . lip_get_love_count($post->ID) . '" data-barcolor="' . $accent_color . '"><span>0</span><i class="icon-heart"></i></div>' . "\n";
                }
                $output .= '</div>' . "\n";
                $output .= '<div class="details clearfix">' . "\n";
                $output .= '<span class="date">' . $post_date . '</span>' . "\n";
                if ($post_client != "") {
                    $output .= '<span class="item-client">' . __("Client: ", "swiftframework") . $post_client . '</span>' . "\n";
                    $output .= '<span class="item-categories">' . $post_categories . '</span>' . "\n";
                } else {
                    $output .= '<span class="item-author">' . __("Posted by ", "swiftframework") . $post_author . '</span>' . "\n";
                    $output .= '<span class="item-categories">' . $post_categories . '</span>' . "\n";
                }
                $output .= '</div></div></div>' . "\n";
            }
            $output .= '</li>' . "\n";
        }
        wp_reset_postdata();
        $output .= '</ul></div>' . "\n";
    }
    echo $output;
}
Exemple #21
0
                }
                if ($show_excerpt == "yes") {
                    $items .= '<div class="blog-item-excerpt">' . $post_excerpt . '</div>';
                }
                $items .= '</li>';
                $count++;
                $item_class = "";
            }
            wp_reset_query();
            $items .= '</ul>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="wpb_posts_carousel_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper carousel-wrap">';
        if ($title != '') {
            $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="wpb_heading">' . $title . '</h3><div class="carousel-nav"><a href="#" class="carousel-prev"><i class="icon-chevron-left"></i></a><a href="#" class="carousel-next"><i class="icon-chevron-right"></i></a></div></div>';
        } else {
            $output .= "\n\t\t\t" . '<div class="heading-wrap"><div class="carousel-nav"><a href="#" class="carousel-prev"><i class="icon-chevron-left"></i></a><a href="#" class="carousel-next"><i class="icon-chevron-right"></i></a></div></div>';
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $include_carousel;
        $include_carousel = true;
        return $output;
    }
}
WPBMap::map('posts_carousel', array("name" => __("Posts Carousel", "js_composer"), "base" => "posts_carousel", "class" => "wpb_posts_carousel wpb_carousel", "icon" => "icon-wpb-posts-carousel", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "12", "description" => __("The number of blog items to show in the carousel.", "js_composer")), array("type" => "dropdown", "heading" => __("Posts category", "js_composer"), "param_name" => "category", "value" => get_category_list('category'), "description" => __("Choose the category for the blog items.", "js_composer")), array("type" => "dropdown", "heading" => __("Show title text", "js_composer"), "param_name" => "show_title", "value" => array("yes", "no"), "description" => __("Show the item title text.", "js_composer")), array("type" => "dropdown", "heading" => __("Show item excerpt", "js_composer"), "param_name" => "show_excerpt", "value" => array("yes", "no"), "description" => __("Show the item excerpt text.", "js_composer")), array("type" => "dropdown", "heading" => __("Show item details", "js_composer"), "param_name" => "show_details", "value" => array("yes", "no"), "description" => __("Show the item details.", "js_composer")), array("type" => "textfield", "heading" => __("Excerpt Length", "js_composer"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
Exemple #22
0
function print_jquery_filter_portfolio($port_size = "1/4", $show_title = true, $show_tag = true, $parent_category, $header, $num_excerpt = 0)
{
    global $port_div_size_num_class, $sidebar_type;
    global $gdl_admin_translator;
    if ($gdl_admin_translator == 'enable') {
        $translator_all = get_option(THEME_SHORT_NAME . '_translator_all', 'All');
        $translator_continue_reading = get_option(THEME_SHORT_NAME . '_translator_continue_reading', 'Continue Reading');
    } else {
        $translator_all = __('All', 'gdl_front_end');
        $translator_continue_reading = __('Continue Reading ', 'gdl_front_end');
    }
    $item_size = $port_div_size_num_class[$port_size][$sidebar_type];
    // filter portfolio button
    $category_lists = get_category_list('portfolio-category', $parent_category);
    $category_check = array();
    foreach ($category_lists as $category) {
        $category_check[$category] = false;
    }
    if (empty($parent_category)) {
        $category_check = array('All' => $translator_all);
    } else {
        $first_category = get_term_by('slug', $parent_category, 'portfolio-category');
        $category_check[$parent_category] = $first_category->name;
    }
    while (have_posts()) {
        the_post();
        $post_categories = get_the_terms(get_the_ID(), 'portfolio-category');
        if (!empty($post_categories)) {
            foreach ($post_categories as $category) {
                $category_check[$category->slug] = $category->name;
            }
        }
    }
    $is_first = 'active';
    $has_header = !empty($header) ? 'has-header' : 'no-header';
    echo '<div class="portfolio-filter-wrapper ' . $has_header . '">';
    echo '<ul class="portfolio-item-filter">';
    foreach ($category_lists as $category) {
        if (empty($category_check[$category])) {
            continue;
        }
        if ($is_first) {
            $cat_name = 'All';
        } else {
            $cat_name = $category;
        }
        echo '<li><span> / </span><a href="#" class="' . $is_first . '" data-value="' . $cat_name . '">';
        echo $category_check[$category];
        echo '</a></li>';
        $is_first = '';
    }
    echo "</ul>";
    echo '<div class="port-current-bar"></div>';
    echo '<div class="clear"></div>';
    echo '</div>';
    // start portfolio looping
    rewind_posts();
    echo '<div class="portfolio-item-holder row">';
    while (have_posts()) {
        the_post();
        $portfolio_slug = "";
        $post_categories = get_the_terms(get_the_ID(), 'portfolio-category');
        if (!empty($post_categories)) {
            foreach ($post_categories as $category) {
                $portfolio_slug = $portfolio_slug . $category->slug . ' ';
            }
        }
        print_item_size($port_size, 0.1, 'portfolio-item mb40 ' . $portfolio_slug);
        print_portfolio_thumbnail(get_the_ID(), $item_size);
        // portfolio context
        if ($show_title || $show_tag) {
            echo '<div class="portfolio-context">';
            if ($show_title) {
                echo '<h2 class="portfolio-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
            }
            if ($show_tag) {
                $portfolio_tag = get_the_term_list(get_the_ID(), 'portfolio-tag', '', ', ', '');
                echo '<div class="portfolio-tag">';
                echo $portfolio_tag;
                echo '</div>';
            }
            echo '<div class="port-bottom-border"></div>';
            echo '</div>';
            // close portfolio context
            if (!empty($num_excerpt)) {
                echo '<div class="portfolio-excerpt">';
                echo gdl_get_excerpt($num_excerpt);
                echo '<a class="port-continue-reading" href="' . get_permalink() . '">' . $translator_continue_reading . '</a>';
                echo '</div>';
            }
        }
        echo '<div class="clear"></div>';
        echo '</div>';
        // close print_item_size - portfolio_item
    }
    echo '</div>';
    // portfolio item holder
}
Exemple #23
0
function print_portfolio($item_xml)
{
    wp_reset_query();
    global $paged;
    global $sidebar;
    global $port_div_size_num_class;
    global $class_to_num;
    if (empty($paged)) {
        $paged = get_query_var('page') ? get_query_var('page') : 1;
    }
    // get the item class and size from array
    $port_size = find_xml_value($item_xml, 'item-size');
    $item_class = $port_div_size_num_class[$port_size]['class'];
    if ($sidebar == "no-sidebar") {
        $item_size = $port_div_size_num_class[$port_size]['size'];
    } else {
        if ($sidebar == "left-sidebar" || $sidebar == "right-sidebar") {
            $item_size = $port_div_size_num_class[$port_size]['size2'];
        } else {
            $item_size = $port_div_size_num_class[$port_size]['size3'];
        }
    }
    // get the portfolio meta value
    $header = find_xml_value($item_xml, 'header');
    $num_fetch = find_xml_value($item_xml, 'num-fetch');
    $num_excerpt = find_xml_value($item_xml, 'num-excerpt');
    $category = find_xml_value($item_xml, 'category');
    $category_val = $category == 'All' ? '' : $category;
    $filterable = find_xml_value($item_xml, 'filterable');
    $filter_class = '';
    // portfolio header
    if (!empty($header)) {
        echo '<h3 class="portfolio-header-title title-color gdl-title">' . $header . '</h3>';
        $view_all_project = find_xml_value($item_xml, 'view-all-project');
        if ($view_all_project != 'No') {
            $view_all_project_link = get_permalink(get_page_by_title($view_all_project));
            echo '<div class="portfolio-view-all-project">';
            echo '<a href="' . $view_all_project_link . '">' . $translator_view_project . '</a>';
            echo '</div>';
        }
    }
    // category list for filter
    if ($filterable == "Yes") {
        $category_lists = get_category_list('portfolio-category', $category_val);
        echo '<ul id="portfolio-item-filter">';
        foreach ($category_lists as $category_list) {
            $category_term = get_term_by('name', $category_list, 'portfolio-category');
            if (!empty($category_term)) {
                $category_slug = $category_term->slug;
            } else {
                $category_slug = 'all';
            }
            echo '<li><a href="#" class="gdl-button" data-value="' . $category_slug . '">' . $category_list . '</a></li>';
        }
        echo '<div class="clear"></div>';
        echo "</ul>";
    }
    echo '<div class="clear"></div>';
    // start fetching database
    global $post, $wp_query;
    if (!empty($category_val)) {
        $category_term = get_term_by('name', $category_val, 'portfolio-category');
        $category_val = $category_term->slug;
    }
    $post_temp = query_posts(array('post_type' => 'portfolio', 'paged' => $paged, 'portfolio-category' => $category_val, 'posts_per_page' => $num_fetch));
    echo '<div id="portfolio-item-holder" class="portfolio-item-holder">';
    while (have_posts()) {
        the_post();
        // get the category for filter
        $item_categories = get_the_terms($post->ID, 'portfolio-category');
        $category_slug = " ";
        if (!empty($item_categories)) {
            foreach ($item_categories as $item_category) {
                $category_slug = $category_slug . $item_category->slug . ' ';
            }
        }
        // start printing data
        echo '<div class="' . $item_class . $category_slug . ' portfolio-item">';
        $thumbnail_types = get_post_meta($post->ID, 'post-option-thumbnail-types', true);
        if ($thumbnail_types == "Image") {
            $image_type = get_post_meta($post->ID, 'post-option-featured-image-type', true);
            $image_type = empty($image_type) ? "Link to Current Post" : $image_type;
            $thumbnail_id = get_post_thumbnail_id();
            $thumbnail = wp_get_attachment_image_src($thumbnail_id, $item_size);
            $alt_text = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
            if ($image_type == "Link to Current Post") {
                $hover_thumb = "hover-link";
                $pretty_photo = "";
                $permalink = get_permalink();
            } else {
                if ($image_type == "Link to URL") {
                    $hover_thumb = "hover-link";
                    $pretty_photo = "";
                    $permalink = get_post_meta($post->ID, 'post-option-featured-image-url', true);
                } else {
                    if ($image_type == "Lightbox to Current Thumbnail") {
                        $hover_thumb = "hover-zoom";
                        $pretty_photo = ' data-rel="prettyPhoto" ';
                        $permalink = wp_get_attachment_image_src($thumbnail_id, 'full');
                        $permalink = $permalink[0];
                    } else {
                        if ($image_type == "Lightbox to Picture") {
                            $hover_thumb = "hover-zoom";
                            $pretty_photo = ' data-rel="prettyPhoto" ';
                            $permalink = get_post_meta($post->ID, 'post-option-featured-image-url', true);
                            $permalink = $permalink;
                        } else {
                            $hover_thumb = "hover-video";
                            $pretty_photo = ' data-rel="prettyPhoto" ';
                            $permalink = get_post_meta($post->ID, 'post-option-featured-image-url', true);
                            $permalink = $permalink;
                        }
                    }
                }
            }
            if (!empty($thumbnail[0])) {
                echo '<div class="portfolio-thumbnail-image">';
                echo '<div class="overflow-hidden">';
                echo '<a href="' . $permalink . '" ' . $pretty_photo . ' title="' . get_the_title() . '">';
                echo '<span class="portfolio-thumbnail-image-hover">';
                echo '<span class="' . $hover_thumb . '"></span>';
                echo '</span>';
                echo '</a>';
                echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '"/>';
                echo '</div>';
                // overflow-hidden
                echo '</div>';
                // portfolio-thumbnail-image
            } else {
                echo '<div class="port-no-image" style="width:' . gdl_get_width($item_size) . 'px; height: ' . gdl_get_height($item_size) . 'px;"></div>';
            }
        } else {
            if ($thumbnail_types == "Video") {
                $video_link = get_post_meta($post->ID, 'post-option-thumbnail-video', true);
                echo '<div class="portfolio-thumbnail-video">';
                echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
                echo '</div>';
            } else {
                if ($thumbnail_types == "Slider") {
                    $slider_xml = get_post_meta($post->ID, 'post-option-thumbnail-xml', true);
                    $slider_xml_dom = new DOMDocument();
                    $slider_xml_dom->loadXML($slider_xml);
                    echo '<div class="portfolio-thumbnail-slider">';
                    echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
                    echo '</div>';
                }
            }
        }
        $show_port_title = find_xml_value($item_xml, "show-title") == "Yes";
        $show_port_excerpt = find_xml_value($item_xml, "show-excerpt") == "Yes";
        if ($show_port_excerpt || $show_port_title) {
            echo '<div class="portfolio-thumbnail-context">';
            // portfolio title
            if ($show_port_title) {
                echo '<h2 class="portfolio-thumbnail-title port-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
            }
            // portfolio excerpt
            if ($show_port_excerpt) {
                echo '<div class="portfolio-thumbnail-content">' . mb_substr(get_the_excerpt(), 0, $num_excerpt) . '</div>';
            }
            echo '</div>';
            // portfolio thumbnail context
        }
        echo '</div>';
        // portfolio item
    }
    echo "</div>";
    // portfolio item holder
    echo '<div class="clear"></div>';
    if (find_xml_value($item_xml, "pagination") == "Yes") {
        pagination();
    }
}
                    $items .= '</ul>';
                }
                $items .= '</div>';
                $items .= '</li>';
                $count++;
            }
            wp_reset_query();
            $items .= '</ul>';
            $items .= '<a href="#" class="prev"><i class="icon-chevron-left"></i></a><a href="#" class="next"><i class="icon-chevron-right"></i></a>';
        }
        $width = wpb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $output .= "\n\t" . '<div class="wpb_team_carousel_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper carousel-wrap">';
        if ($title != '') {
            $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="wpb_heading">' . $title . '</h3></div>';
        } else {
            $output .= "\n\t\t\t" . '<div class="heading-wrap"></div>';
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $include_carousel, $include_isotope;
        $include_carousel = true;
        $include_isotope = true;
        return $output;
    }
}
WPBMap::map('team_carousel', array("name" => __("Team Carousel", "js_composer"), "base" => "team_carousel", "class" => "team_carousel wpb_carousel", "icon" => "icon-wpb-team-carousel", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Team category", "js_composer"), "param_name" => "category", "value" => get_category_list('team-category'), "description" => __("Choose the category for the portfolio items.", "js_composer")), array("type" => "dropdown", "heading" => __("Social icon type", "js_composer"), "param_name" => "social_icon_type", "value" => array(__('Dark', "js_composer") => "dark", __('Light', "js_composer") => "light", __('Coloured', "js_composer") => "coloured"), "description" => __("Choose the social icon type to show.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
                $testimonials_page_title = get_page_by_path($testimonials_page);
                if (isset($testimonials_page_title)) {
                    $testimonials_page_id = $testimonials_page_title->ID;
                }
            }
            if ($testimonials_page && isset($testimonials_page_title)) {
                $items .= '<a href="' . get_permalink($testimonials_page_id) . '" class="read-more">' . __("More", "swiftframework") . '<i class="icon-angle-right"></i></a>';
            }
        }
        $width = wpb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $el_class .= ' testimonial';
        $output .= "\n\t" . '<div class="wpb_testimonial_carousel_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper carousel-wrap">';
        if ($title != '') {
            $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="wpb_heading">' . $title . '</h3></div>';
        } else {
            $output .= "\n\t\t\t" . '<div class="heading-wrap"></div>';
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $include_carousel, $include_isotope;
        $include_carousel = true;
        $include_isotope = true;
        return $output;
    }
}
WPBMap::map('testimonial_carousel', array("name" => __("Testimonials Carousel", "js_composer"), "base" => "testimonial_carousel", "class" => "wpb_testimonial_carousel wpb_carousel", "icon" => "icon-wpb-testimonial_carousel", "wrapper_class" => "clearfix", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "6", "description" => __("The number of testimonials to show per page. Leave blank to show ALL testimonials.", "js_composer")), array("type" => "dropdown", "heading" => __("Testimonials Order", "js_composer"), "param_name" => "order", "value" => array(__('Random', "js_composer") => "rand", __('Latest', "js_composer") => "date"), "description" => __("Choose the order of the testimonials.", "js_composer")), array("type" => "dropdown", "heading" => __("Testimonials category", "js_composer"), "param_name" => "category", "value" => get_category_list('testimonials-category'), "description" => __("Choose the category for the testimonials.", "js_composer")), array("type" => "dropdown", "heading" => __("Testimonials page link", "js_composer"), "param_name" => "page_link", "value" => array(__('No', "js_composer") => "no", __('Yes', "js_composer") => "yes"), "description" => __("Include a link to the testimonials page (which you must choose in the theme options).", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
Exemple #26
0
function show_filter_form($config)
{
    $filters = $_SESSION['filters'];
    ?>
<h4>Filter</h4>
<form action="detail.php" method="post">
<input type="hidden" name="action_type" value="filter"/>
<table width="600" border="0" cellspacing="0">
	<!-- CATEGORY -->
	<tr>		
		<td>
			<input type="checkbox" name="enable_filter[]" value="category"
				<?php 
    if (isset($filters['categories'])) {
        echo "checked='checked'";
    }
    ?>
			>Category</input>
		</td>
		<td>
			<?php 
    $category_list = get_category_list($config);
    foreach ($category_list as $cate) {
        echo "<input type='checkbox' name='category_filter[]' ";
        echo "value='" . $cate["Id"] . "' ";
        if (isset($filters['categories'])) {
            foreach ($filters['categories'] as $cate_filter) {
                if ($cate["Id"] == $cate_filter) {
                    echo "checked='checked'";
                    break;
                }
            }
        }
        echo "/>" . $cate["Name"] . " ";
    }
    ?>
		</td>
	</tr>
	
	<!-- DETAIL -->
	<tr>
		<td width="130">
			<input type="checkbox" name="enable_filter[]" value="detail"
				<?php 
    if (isset($filters['detail'])) {
        echo "checked='checked'";
    }
    ?>
			>Detail</input>
		</td>
		<td>
			<input type="text" name="detail_text"
				<?php 
    if (isset($filters['detail'])) {
        echo "value='" . $filters['detail'] . "'";
    }
    ?>
			/>
		</td>
	</tr>
	
	<!-- FROM DATE -->
	<tr>
		<td>
			<input type="checkbox" name="enable_filter[]" value="from_date"
				<?php 
    if (isset($filters['from_date'])) {
        echo "checked='checked'";
    }
    ?>
			>From date</input>
		</td>
		<td>
			<?php 
    if (isset($filters['from_date'])) {
        showTimeBox("filter_detail_from_date", $filters['from_date']);
    } else {
        showTimeBox("filter_detail_from_date", 0);
    }
    ?>
		</td>
	</tr>	
	
	<!-- TO DATE -->
	<tr>
		<td>
			<input type="checkbox" name="enable_filter[]" value="to_date"
				<?php 
    if (isset($filters['to_date'])) {
        echo "checked='checked'";
    }
    ?>
			>To date</input>
		</td>
		<td>
			<?php 
    if (isset($filters['to_date'])) {
        showTimeBox("filter_detail_to_date", $filters['to_date']);
    } else {
        showTimeBox("filter_detail_to_date", 0);
    }
    ?>
		</td>
	</tr>
	
	<!-- FROM AMOUNT -->
	<tr>
		<td>
			<input type="checkbox" name="enable_filter[]" value="from_amount"
				<?php 
    if (isset($filters['from_amount'])) {
        echo "checked='checked'";
    }
    ?>
			>From amount</input>
		</td>
		<td>
			<input type="text" name="amount_from_filter"
				<?php 
    if (isset($filters['from_amount'])) {
        echo "value='" . $filters['from_amount'] . "'";
    }
    ?>
			/>
		</td>
	</tr>
	
	<!-- TO AMOUNT -->
	<tr>
		<td>
			<input type="checkbox" name="enable_filter[]" value="to_amount"
				<?php 
    if (isset($filters['to_amount'])) {
        echo "checked='checked'";
    }
    ?>
			>To amount</input>
		</td>
		<td>
			<input type="text" name="amount_to_filter"
				<?php 
    if (isset($filters['to_amount'])) {
        echo "value='" . $filters['to_amount'] . "'";
    }
    ?>
			/>
		</td>
	</tr>
	
	<!-- DESCRIPTION -->
	<tr>
		<td>
			<input type="checkbox" name="enable_filter[]" value="description"
				<?php 
    if (isset($filters['description'])) {
        echo "checked='checked'";
    }
    ?>
			>Description</input>
		</td>
		<td>
			<input type="text" name="desc_text"
				<?php 
    if (isset($filters['description'])) {
        echo "value='" . $filters['description'] . "'";
    }
    ?>
			/>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
			<input type="submit" value="Filter" />
		</td>
	</tr>
</table>
</form>
<?php 
}
/*	
 *	Goodlayers Option File
 *	---------------------------------------------------------------------
 * 	@version	1.0
 * 	@author		Goodlayers
 * 	@link		http://goodlayers.com
 * 	@copyright	Copyright (c) Goodlayers
 *	---------------------------------------------------------------------
 *	This file contains the goodlayers panel elements and create the 
 *	goodlayers panel to the back-end of the framework
 *	---------------------------------------------------------------------
 */
// goodlayers panel navigation elements
$goodlayers_menu = array(__('General', 'gdl_back_office') => array(__('Page Style', 'gdl_back_office') => 'gdl_panel_page_style', __('Blog / Port Style', 'gdl_back_office') => 'gdl_panel_blog_port_style', __('Search / Archive Style', 'gdl_back_office') => 'gdl_panel_search_archive_style', __('Sidebar', 'gdl_back_office') => 'gdl_panel_sidebar', __('Footer Style', 'gdl_back_office') => 'gdl_panel_footer_style', __('Google Analytics', 'gdl_back_office') => 'gdl_panel_google_analytics', __('Favicon', 'gdl_back_office') => 'gdl_panel_favicon', __('Woo Commerce', 'gdl_back_office') => 'gdl_panel_woo_commerce', __('Export/Import Option', 'gdl_back_office') => 'gdl_export_theme_option'), __('Font Style', 'gdl_back_office') => array(__('Font Size', 'gdl_back_office') => 'gdl_panel_font_size', __('Font Family', 'gdl_back_office') => 'gdl_panel_font', __('Font Style (Google)', 'gdl_back_office') => 'gdl_panel_google_font', __('Upload Font', 'gdl_back_office') => 'gdl_panel_upload_font'), __('Overall Elements', 'gdl_back_office') => array(__('Header / Logo', 'gdl_back_office') => 'gdl_panel_logo', __('Top Bar / Navigation', 'gdl_back_office') => 'gdl_panel_top_navigation', __('Background Style', 'gdl_back_office') => 'gdl_panel_background', __('Icon Style', 'gdl_back_office') => 'gdl_panel_icon_style', __('Social Network', 'gdl_back_office') => 'gdl_panel_social_network', __('Social Shares', 'gdl_back_office') => 'gdl_panel_social_shares', __('Footer / Copyright', 'gdl_back_office') => 'gdl_panel_copyright_area'), __('Elements Color', 'gdl_back_office') => array(__('Top Bar / Post Sliding', 'gdl_back_office') => 'gdl_panel_header_top_bar', __('Navigation', 'gdl_back_office') => 'gdl_panel_header_navigation', __('Body', 'gdl_back_office') => 'gdl_panel_body', __('Sidebar / Top Footer', 'gdl_back_office') => 'gdl_panel_sidebar_color', __('Footer / Copyright', 'gdl_back_office') => 'gdl_panel_footer', __('Slider / Stunning text', 'gdl_back_office') => 'gdl_panel_slider', __('Blog / Pagination', 'gdl_back_office') => 'gdl_panel_blog_pagination', __('Portfolio', 'gdl_back_office') => 'gdl_panel_portfolio', __('Contact / Comments', 'gdl_back_office') => 'gdl_panel_contact_form', __('Price / Personnel Item', 'gdl_back_office') => 'gdl_panel_price_personnal_item', __('Additional Elements', 'gdl_back_office') => 'gdl_panel_additional_elements', __('Additional Elements 2', 'gdl_back_office') => 'gdl_panel_additional_elements_2', __('Load Default Color', 'gdl_back_office') => 'gdl_panel_load_default_color'), __('Translator', 'gdl_back_office') => array(__('Enable Admin Translator', 'gdl_back_office') => 'gdl_panel_enable_admin_translator', __('Blog/Portfolio', 'gdl_back_office') => 'gdl_panel_blog_port_translator', __('Contact Form', 'gdl_back_office') => 'gdl_panel_contact_form_translator', __('Additional Elements', 'gdl_back_office') => 'gdl_panel_additional_elements_translator'), __('Plugin Setting', 'gdl_back_office') => array(__('Enable/Disable Plugin', 'gdl_back_office') => 'gdl_panel_plugin_enable', __('Nivo Slider', 'gdl_back_office') => 'gdl_panel_nivo_slider', __('Flex / Carousel Slider', 'gdl_back_office') => 'gdl_panel_flex_slider', __('Anything Slider', 'gdl_back_office') => 'gdl_panel_anything_slider', __('Disable Right Click', 'gdl_back_office') => 'gdl_panel_disable_right_click'));
// goodlayers panel elements ( the head of array links to the menu of navigation elements )
$goodlayers_element = array('gdl_panel_page_style' => array(__('ENABLE RESPONSIVE', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_responsive', 'description' => '*** Anything slider will not supported with the responsive mode ***'), __('CUT EXCERPT BY SPACE', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_space_excerpt', 'description' => 'Enabling this will make the theme cut the end of the excerpt by considering the space.' . ' ( Only use with language that divides the word by space )'), __('DEFAULT DATE FORMAT', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_default_date_format', 'default' => 'd M Y', 'description' => 'See more details about the date format here. http://codex.wordpress.org/Formatting_Date_and_Time'), __('DEFAULT WIDGET DATE FORMAT', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_default_widget_date_format', 'default' => 'd M Y', 'description' => 'See more details about the date format here. http://codex.wordpress.org/Formatting_Date_and_Time'), __('ADDITIONAL STYLE (CSS)', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_additional_style', 'body_class' => 'gdl-additional-style')), 'gdl_panel_blog_port_style' => array(__('DEFAULT POST SIDEBAR', 'gdl_back_office') => array('type' => 'radioimage', 'name' => THEME_SHORT_NAME . '_default_post_sidebar', 'default' => 'post-no-sidebar', 'options' => array('1' => array('value' => 'post-right-sidebar', 'default' => 'selected', 'image' => '/include/images/right-sidebar-120.png'), '2' => array('value' => 'post-left-sidebar', 'image' => '/include/images/left-sidebar-120.png'), '3' => array('value' => 'post-both-sidebar', 'image' => '/include/images/both-sidebar-1.png'), '4' => array('value' => 'post-both-sidebar-reverse', 'image' => '/include/images/both-sidebar-2.png'), '5' => array('value' => 'post-no-sidebar', 'image' => '/include/images/no-sidebar-120.png'))), __('DEFAULT POST LEFT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_default_post_left_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-default-post-left-sidebar'), __('DEFAULT POST RIGHT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_default_post_right_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-default-post-right-sidebar'), __('RELATED POST', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_gdl_related_post', 'default' => 'portfolio', 'options' => array('Yes', 'No')), __('RELATED POST SIZE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_gdl_related_post_size', 'options' => array('1/4', '1/3', '1/2', '1/1')), __('RELATED POST NUM FETCH', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_gdl_related_post_num_fetch', 'default' => '4'), __('PORTFOLIO PAGE STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_use_portfolio_as', 'options' => array('1' => 'portfolio style', '2' => 'blog style'), 'description' => 'You can choose the portfolio page style to be the portfolio style or the same as blog style.'), __('PORTFOLIO SLUG', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_gdl_portfolio_slug', 'default' => 'portfolio', 'description' => 'Change/Rewrite the permalink when you use the permalink type as %postname%.'), __('RELATED PORTFOLIO', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_gdl_related_portfolio', 'default' => 'portfolio', 'options' => array('Yes', 'No'), 'description' => 'Show related portfolio for portfolio post type.'), __('RELATED PORTFOLIO SIZE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_gdl_related_portfolio_size', 'options' => array('1/4', '1/3', '1/2')), __('RELATED PORTFOLIO NUM FETCH', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_gdl_related_portfolio_num_fetch', 'default' => '4'), __('SHOW RELATED PORTFOLIO TITLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_gdl_related_portfolio_title', 'options' => array('Yes', 'No')), __('SHOW RELATED PORTFOLIO TAG', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_gdl_related_portfolio_tag', 'options' => array('Yes', 'No'))), 'gdl_panel_search_archive_style' => array(__('SEARCH/ARCHIVE SIDEBAR', 'gdl_back_office') => array('type' => 'radioimage', 'name' => THEME_SHORT_NAME . '_search_archive_sidebar', 'default' => 'no-sidebar', 'options' => array('1' => array('value' => 'right-sidebar', 'default' => 'selected', 'image' => '/include/images/right-sidebar-120.png'), '2' => array('value' => 'left-sidebar', 'image' => '/include/images/left-sidebar-120.png'), '3' => array('value' => 'both-sidebar', 'image' => '/include/images/both-sidebar-1.png'), '4' => array('value' => 'both-sidebar-reverse', 'image' => '/include/images/both-sidebar-2.png'), '5' => array('value' => 'no-sidebar', 'image' => '/include/images/no-sidebar-120.png'))), __('SEARCH/ARCHIVE LEFT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_search_archive_left_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-default-post-left-sidebar'), __('SEARCH/ARCHIVE RIGHT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_search_archive_right_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-default-post-right-sidebar'), __('SEARCH/ARCHIVE EXCERPT NUM', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_search_archive_num_excerpt', 'default' => '285', 'description' => 'Input the number of character you want to cut from the content to be the excerpt of search and archive page.'), __('SEARCH/ARCHIVE ITEM SIZE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_search_archive_item_size', 'options' => array('1/4 Blog Grid', '1/3 Blog Grid', '1/2 Blog Grid', '1/1 Blog Grid', '1/1 Medium Thumbnail', '1/1 Blog List')), __('SEARCH/ARCHIVE FULL BLOG CONTENT', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_search_archive_full_blog_content', 'options' => array('No', 'Yes')), __('PORTFOLIO ARCHIVE SIZE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_portfolio_archive_size', 'options' => array('1/4', '1/3', '1/2'), 'default' => '1/3'), __('PORTFOLIO ARCHIVE SHOW TITLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_portfolio_archive_show_title', 'options' => array('Yes', 'No')), __('PORTFOLIO ARCHIVE SHOW TAGS', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_portfolio_archive_show_tags', 'options' => array('Yes', 'No'))), 'gdl_panel_sidebar' => array(__('CREATE SIDEBAR', 'gdl_back_office') => array('type' => 'sidebar', 'name' => THEME_SHORT_NAME . '_create_sidebar')), 'gdl_panel_footer_style' => array(__('SHOW FOOTER', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_show_footer'), __('CHOOSE FOOTER STYLE', 'gdl_back_office') => array('type' => 'radioimage', 'name' => THEME_SHORT_NAME . '_footer_style', 'default' => 'footer-style1', 'options' => array('1' => array('value' => 'footer-style1', 'image' => '/include/images/footer-style1.png'), '2' => array('value' => 'footer-style2', 'image' => '/include/images/footer-style2.png'), '3' => array('value' => 'footer-style3', 'image' => '/include/images/footer-style3.png'), '4' => array('value' => 'footer-style4', 'image' => '/include/images/footer-style4.png'), '5' => array('value' => 'footer-style5', 'image' => '/include/images/footer-style5.png'), '6' => array('value' => 'footer-style6', 'image' => '/include/images/footer-style6.png')))), 'gdl_panel_google_analytics' => array(__('ENABLE GOOGLE ANALYTICS', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_analytics', 'default' => 'disable'), __('GOOGLE ANALYTICS CODE', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_analytics_code', 'description' => 'Place the code you get from google here. This should be something like <br>' . htmlspecialchars('<script type="text/javascript">') . '<br> ... <br>' . htmlspecialchars('</script>'))), 'gdl_panel_favicon' => array(__('ENABLE FAVICON', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_favicon', 'default' => 'disable', 'description' => 'Upload the .ICO file type to make the favicon support with all browser.'), __('UPLOAD FAVICON ICON', 'gdl_back_office') => array('type' => 'upload', 'name' => THEME_SHORT_NAME . '_favicon_image')), 'gdl_panel_woo_commerce' => array(__('ALL PRODUCTS SIDEBAR', 'gdl_back_office') => array('type' => 'radioimage', 'name' => THEME_SHORT_NAME . '_woo_all_product_sidebar', 'default' => 'all-prod-no-sidebar', 'options' => array('1' => array('value' => 'all-prod-right-sidebar', 'default' => 'selected', 'image' => '/include/images/right-sidebar-120.png'), '2' => array('value' => 'all-prod-left-sidebar', 'image' => '/include/images/left-sidebar-120.png'), '3' => array('value' => 'all-prod-both-sidebar', 'image' => '/include/images/both-sidebar-120.png'), '4' => array('value' => 'all-prod-no-sidebar', 'image' => '/include/images/no-sidebar-120.png'))), __('ALL PRODUCT LEFT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_woo_all_product_left_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-all-prod-left-sidebar'), __('ALL PRODUCT RIGHT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_woo_all_product_right_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-all-prod-right-sidebar'), __('SINGLE PRODUCTS SIDEBAR', 'gdl_back_office') => array('type' => 'radioimage', 'name' => THEME_SHORT_NAME . '_woo_single_product_sidebar', 'default' => 'single-prod-no-sidebar', 'options' => array('1' => array('value' => 'single-prod-right-sidebar', 'default' => 'selected', 'image' => '/include/images/right-sidebar-120.png'), '2' => array('value' => 'single-prod-left-sidebar', 'image' => '/include/images/left-sidebar-120.png'), '3' => array('value' => 'single-prod-both-sidebar', 'image' => '/include/images/both-sidebar-120.png'), '4' => array('value' => 'single-prod-no-sidebar', 'image' => '/include/images/no-sidebar-120.png'))), __('SINGLE PRODUCT LEFT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_woo_single_product_left_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-single-prod-left-sidebar'), __('SINGLE PRODUCT RIGHT SIDEBAR', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_woo_single_product_right_sidebar', 'options' => get_sidebar_name(), 'body' => 'gdl-single-prod-right-sidebar')), 'gdl_export_theme_option' => array(__('EXPORT OPTION', 'gdl_back_office') => array('type' => 'import-export', 'text' => 'Export', 'id' => 'gdl_export_option_button', 'text_id' => 'gdl_export_option_text'), __('IMPORT OPTION', 'gdl_back_office') => array('type' => 'import-export', 'text' => 'Import', 'id' => 'gdl_import_option_button', 'text_id' => 'gdl_import_option_text')), 'gdl_panel_font_size' => array(__('PAGE TITLE SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_header_title_size', 'default' => '21'), __('CONTENT SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_content_size', 'default' => '13'), __('WIDGET TITLE SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_widget_title_size', 'default' => '18', 'descriptoin' => 'Size of the widget title ( that resides in sidebar and footer ).'), __('H1 SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_h1_size', 'default' => '30', 'description' => 'H1 to H6 size will only effects to the user content ( the h1 to h6 tag that users add them self ) font size. '), __('H2 SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_h2_size', 'default' => '25'), __('H3 SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_h3_size', 'default' => '20'), __('H4 SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_h4_size', 'default' => '18'), __('H5 SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_h5_size', 'default' => '16'), __('H6 SIZE', 'gdl_back_office') => array('type' => 'sliderbar', 'name' => THEME_SHORT_NAME . '_h6_size', 'default' => '15')), 'gdl_panel_font' => array(__('HEADER FONT', 'gdl_back_office') => array('type' => 'font-combobox', 'name' => THEME_SHORT_NAME . '_header_font', 'default' => '- Oswald', 'description' => 'Choose the header font of this theme. This font will be used in all title and header elements including the slider title.'), __('MAIN NAVIGATION FONT', 'gdl_back_office') => array('type' => 'font-combobox', 'name' => THEME_SHORT_NAME . '_navigation_font', 'default' => '- Oswald'), __('SLIDER TITLE FONT', 'gdl_back_office') => array('type' => 'font-combobox', 'name' => THEME_SHORT_NAME . '_slider_title_font', 'default' => '- Oswald'), __('CONTENT FONT', 'gdl_back_office') => array('type' => 'font-combobox', 'name' => THEME_SHORT_NAME . '_content_font', 'default' => '- default', 'description' => 'Choose the font to use with content. CUFON are not allowed to use with the content font.'), __('STUNNING TEXT FONT', 'gdl_back_office') => array('type' => 'font-combobox', 'name' => THEME_SHORT_NAME . '_stunning_text_font', 'default' => '- default', 'description' => 'Choose the font to use with stunning text title.')), 'gdl_panel_google_font' => array(__('INCLUDE FONT WEIGHT', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_google_font_weight', 'default' => 'n,i,b,bi', 'description' => 'This is an example of the font weight <br><br> 300,400,300italic,400italic'), __('INCLUDE FONT SUBSET', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_google_font_subset', 'default' => 'latin', 'description' => 'This is an example of the font subset <br><br> latin,cyrillic,greek,vietnamese,greek-ext,cyrillic-ext,latin-ext')), 'gdl_panel_upload_font' => array(__('UPLOAD FONT', 'gdl_back_office') => array('type' => 'uploadfont', 'name' => THEME_SHORT_NAME . '_upload_font', 'file' => THEME_SHORT_NAME . '_upload_font_file')), 'gdl_panel_logo' => array(__('LOGO', 'gdl_back_office') => array('type' => 'upload', 'name' => THEME_SHORT_NAME . '_logo'), __('LOGO WIDTH', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_logo_width', 'description' => 'Input 2x logo image and specify the width to make it compatibale with retina supported device'), __('LOGO TOP MARGIN', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_logo_top_margin', 'default' => '42', 'description' => 'Input number to set the top space of the logo. Negative value is allowed. Please use -0 instead of 0.'), __('LOGO BOTTOM MARGIN', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_logo_bottom_margin', 'default' => '42', 'description' => 'Input number to set the bottom space of the logo. Negative value is allowed. Please use -0 instead of 0.'), __('BANNER IMAGE', 'gdl_back_office') => array('type' => 'upload', 'name' => THEME_SHORT_NAME . '_header_banner_image'), __('BANNER LINK', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_header_banner_image_link'), __('BANNER SCRIPT', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_header_banner_script', 'descripiton' => 'Banner script will be placed under the banner image ( if available )'), __('BANNER TOP MARGIN', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_banner_top_margin', 'default' => '35'), __('BANNER MAX WIDTH', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_banner_max_width')), 'gdl_panel_top_navigation' => array(__('ENABLE TOP BAR', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_top_bar'), __('ENABLE TOP SEARCH', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_top_search'), __('TOP BAR RIGHT TEXT', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_top_navigation_right'), __('ENABLE RANDOM POST (ON MAIN MENU)', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_random_post', 'description' => 'Turn on this option to show the random (post) icon at the right side of the main navigation'), __('ENABLE POST SLIDING (UNDER MAIN MENU)', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_top_sliding'), __('POST SLIDING CATEGORY', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_top_sliding_category', 'options' => get_category_list('category')), __('POST SLIDING NUM FETCH', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_top_sliding_num_fetch', 'default' => '10')), 'gdl_panel_background' => array(__('BACKGROUND TYPE', 'gdl_back_office') => array('type' => 'combobox', 'id' => 'gdl_background_style', 'name' => THEME_SHORT_NAME . '_background_style', 'options' => array('0' => 'Pattern', '1' => 'None', '2' => 'Custom Image'), 'description' => 'You can choose the background you want between our pre-provided pettern and your custom image.'), __('CHOOSE PATTERN', 'gdl_back_office') => array('type' => 'radioimage', 'body_class' => 'gdl_background_pattern', 'name' => THEME_SHORT_NAME . '_background_pattern', 'default' => '15', 'options' => array('1' => array('value' => '1', 'image' => '/include/images/pattern/pattern-1.png'), '2' => array('value' => '2', 'image' => '/include/images/pattern/pattern-2.png'), '3' => array('value' => '3', 'image' => '/include/images/pattern/pattern-3.png'), '4' => array('value' => '4', 'image' => '/include/images/pattern/pattern-4.png'), '5' => array('value' => '5', 'image' => '/include/images/pattern/pattern-5.png'), '6' => array('value' => '6', 'image' => '/include/images/pattern/pattern-6.png'), '7' => array('value' => '7', 'image' => '/include/images/pattern/pattern-7.png'), '8' => array('value' => '8', 'image' => '/include/images/pattern/pattern-8.png'), '9' => array('value' => '9', 'image' => '/include/images/pattern/pattern-9.png'), '10' => array('value' => '10', 'image' => '/include/images/pattern/pattern-10.png'), '11' => array('value' => '11', 'image' => '/include/images/pattern/pattern-11.png'), '12' => array('value' => '12', 'image' => '/include/images/pattern/pattern-12.png'), '13' => array('value' => '13', 'image' => '/include/images/pattern/pattern-13.png'), '14' => array('value' => '14', 'image' => '/include/images/pattern/pattern-14.png'), '15' => array('value' => '15', 'image' => '/include/images/pattern/pattern-15.png'))), __('CUSTOM BACKGROUND', 'gdl_back_office') => array('type' => 'upload', 'name' => THEME_SHORT_NAME . '_background_custom', 'body_class' => 'gdl_background_custom')), 'gdl_panel_icon_style' => array(__('TOP SEARCH ICON STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_top_search_icon_type', 'options' => array('1' => 'light', '2' => 'dark')), __('POST SLIDING ICON STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_post_sliding_icon_type', 'options' => array('1' => 'light', '2' => 'dark')), __('BODY ICON STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_icon_type', 'options' => array('1' => 'dark', '2' => 'light'), 'description' => 'This option will change all of the icon in this theme( except from footer ) to be dark/light version.'), __('CAROUSEL ICON STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_carousel_icon_type', 'options' => array('0' => 'light', '1' => 'dark'), 'default' => 'light', 'description' => 'This is left and right icon type of the thumbnail in carousel slider.'), __('BOTTOM TWITTER ICON STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_twitter_icon_type', 'options' => array('0' => 'light', '1' => 'dark'), 'default' => 'light', 'description' => 'There are two icon types in this theme, dark and light, you can choose it to display on the twitter at the bottom of the page.'), __('FOOTER ICON STYLE', 'gdl_back_office') => array('type' => 'combobox', 'name' => THEME_SHORT_NAME . '_footer_icon_type', 'options' => array('0' => 'light', '1' => 'dark'), 'description' => 'There are two icon types in this theme, dark and light, you can choose it to display on footer.')), 'gdl_panel_social_network' => array(__('DEVIANTART', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_deviantart', 'description' => 'Place the link you want and deviantart icon will appear. To remove it, just leave it blank.'), __('DIGG', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_digg', 'description' => 'Place the link you want and digg icon will appear. To remove it, just leave it blank.'), __('FACEBOOK', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_facebook', 'description' => 'Place the link you want and facebook icon will appear. To remove it, just leave it blank.'), __('FLICKR', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_flickr', 'description' => 'Place the link you want and flickr icon will appear. To remove it, just leave it blank.'), __('LASTFM', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_lastfm', 'description' => 'Place the link you want and lastfm icon will appear. To remove it, just leave it blank.'), __('LINKEDIN', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_linkedin', 'description' => 'Place the link you want and linkedin icon will appear. To remove it, just leave it blank.'), __('PICASA', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_picasa', 'description' => 'Place the link you want and picasa icon will appear. To remove it, just leave it blank.'), __('RSS', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_rss', 'description' => 'Place the link you want and feed icon will appear. To remove it, just leave it blank.'), __('STUMBLE UPON', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_stumble_upon', 'description' => 'Place the link you want and stumble upon icon will appear. To remove it, just leave it blank.'), __('TUMBLR', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_tumblr', 'description' => 'Place the link you want and tumblr icon will appear. To remove it, just leave it blank.'), __('TWITTER', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter', 'description' => 'Place the link you want and twitter icon will appear. To remove it, just leave it blank.'), __('VIMEO', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_vimeo', 'description' => 'Place the link you want and vimeo icon will appear. To remove it, just leave it blank.'), __('YOUTUBE', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_youtube', 'description' => 'Place the link you want and youtube icon will appear. To remove it, just leave it blank.'), __('GOOGLE PLUS', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_google_plus', 'description' => 'Place the link you want and google plus icon will appear. To remove it, just leave it blank.'), __('EMAIL', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_email', 'description' => 'Place the link you want and email icon will appear. To remove it, just leave it blank.'), __('PINTEREST', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_pinterest', 'description' => 'Place the link you want and pinterest icon will appear. To remove it, just leave it blank.')), 'gdl_panel_social_shares' => array(__('FACEBOOK', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_facebook_share', 'description' => 'Toggle to enable/disable the facebook shares in blog and portfolio page.'), __('TWITTER', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_twitter_share', 'description' => 'Toggle to enable/disable the twitter shares in blog and portfolio page.'), __('STUMBLE UPON', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_stumble_upon_share', 'description' => 'Toggle to enable/disable the stumble upon shares in blog and portfolio page.'), __('MY SPACE', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_my_space_share', 'description' => 'Toggle to enable/disable the my spce shares in blog and portfolio page.'), __('DIGG', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_digg_share', 'description' => 'Toggle to enable/disable the digg shares in blog and portfolio page.'), __('REDDIT', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_reddit_share', 'description' => 'Toggle to enable/disable the reddit shares in blog and portfolio page.'), __('LINKEDIN', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_linkedin_share', 'description' => 'Toggle to enable/disable the linkedin shares in blog and portfolio page.'), __('GOOGLE PLUS', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_google_plus_share', 'description' => 'Toggle to enable/disable the google plus shares in blog and portfolio page.'), __('PINTEREST', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_pinterest_share', 'description' => 'Toggle to enable/disable the pinterest shares in blog and portfolio page.')), 'gdl_panel_copyright_area' => array(__('SHOW TWITTER BAR', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_show_twitter_bar', 'default' => 'disable'), __('SHOW TWITTER ONLY HOMEPAGE', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_show_twitter_only_homepage', 'default' => 'disable'), __('TWITTER ID', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_bar_id', 'description' => 'Follow this http://support.goodlayers.com/fixing-using-twitter-widget to see how to get the twitter authentication information'), __('CONSUMER KEY', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_bar_consumer_id'), __('CONSUMER SECRET', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_bar_consumer_secret'), __('ACCESS TOKEN', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_bar_access_token'), __('ACCESS TOKEN SECRET', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_bar_access_token_secret'), __('CACHE TIME (HOURS)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_bar_cache_time', 'default' => '1'), __('TWITTER NUM FETCH', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_twitter_num_fetch', 'default' => '5'), __('SHOW COPYRIGHT', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_show_copyright'), __('COPYRIGHT TEXT', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_copyright_left_area')), 'gdl_panel_header_top_bar' => array(__('TOP BAR TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_bar_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.top-navigation-wrapper, .top-navigation-wrapper a'), __('TOP BAR BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_bar_background', 'default' => '#000000', 'attr' => array('background-color'), 'selector' => '.top-navigation-wrapper'), __('TOP NAV TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.top-navigation-left a'), __('TOP NAV TEXT CURRENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_text_current', 'default' => '#dddddd', 'attr' => array('color'), 'selector' => '.top-menu li a:hover, .top-menu li.current-menu-ancestor a, .top-menu li.current-menu-item a, .top-menu li.current-post-ancestor a'), __('TOP NAV BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_text_border', 'default' => '#ffffff', 'attr' => array('border-color'), 'selector' => '.top-navigation-left a'), __('TOP NAV SUB MENU TOP BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_sub_menu_border', 'default' => '#b6b6b6', 'attr' => array('border-color'), 'selector' => 'ul.top-menu li.sfHover ul'), __('TOP NAV SUB MENU TOP DIVIDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_sub_menu_top_divider', 'default' => '#000000', 'attr' => array('border-bottom-color'), 'selector' => 'ul.top-menu li ul li a'), __('TOP NAV SUB MENU BOTTOM DIVIDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_sub_menu_bottom_divider', 'default' => '#383838', 'attr' => array('border-top-color'), 'selector' => 'ul.top-menu li ul li a'), __('TOP NAV SUB MENU TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_sub_menu_text', 'default' => '#bcbcbc', 'attr' => array('color'), 'selector' => 'ul.top-menu li li a, ul.top-menu li.current-menu-item li a, ul.top-menu li.current-menu-ancestor li a, ul.top-menu li li.current-menu-item li a, ul.top-menu li li.current-menu-ancestor li a, ul.top-menu li.current-post-ancestor li a'), __('TOP NAV SUB MENU TEXT CURRENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_sub_menu_text_current', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'ul.top-menu li li a:hover, ul.top-menu li li.current-menu-item li a:hover, .top-menu li li.current-menu-ancestor li a:hover, ' . 'ul.top-menu li li.current-menu-item a, ul.top-menu li li.current-menu-ancestor a, ul.top-menu li li.current-menu-ancestor li.current-menu-item a, ul.top-menu li li.current-post-ancestor a'), __('TOP NAV SUB MENU BG', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_nav_sub_menu_bg', 'default' => '#282828', 'attr' => array('background-color'), 'selector' => 'ul.top-menu ul'), __('TOP SEARCH BUTTON BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_search_button_border', 'default' => '#bababa', 'attr' => array('border-color'), 'selector' => 'div.top-search-wrapper input[type="submit"]'), __('TOP SEARCH TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_search_text', 'default' => '#a3a3a3', 'attr' => array('color'), 'selector' => 'div.top-search-wrapper input[type="text"]'), __('TOP SEARCH TEXT BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_search_background', 'default' => '#3a3a3a', 'attr' => array('background-color'), 'selector' => 'div.top-search-wrapper input[type="text"]'), __('POST SLIDING BAR BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_sliding_bar_background', 'default' => '#333333', 'attr' => array('background-color'), 'selector' => 'div.header-top-marquee'), __('POST SLIDING BAR HEAD TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_sliding_bar_head_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.header-top-marquee .marquee-head'), __('POST SLIDING BAR LINK', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_sliding_bar_link', 'default' => '#c7c7c7', 'attr' => array('color'), 'selector' => 'div.header-top-marquee .marquee-wrapper a'), __('POST SLIDING BAR BOTTOM BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_sliding_bar_bottom_border', 'default' => '#d10000', 'attr' => array('border-color'), 'selector' => 'div.header-top-marquee')), 'gdl_panel_header_navigation' => array(__('MAIN NAVIGATION BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_main_navigation_background', 'default' => '#000000', 'attr' => array('background-color'), 'selector' => '.gdl-navigation-wrapper, .main-navigation-wrapper, .sf-menu li a'), __('MAIN NAVIGATION HOVER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_main_navigation_background_hover', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => '.sf-menu li a:hover'), __('MAIN NAVIGATION CURRENT BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_main_navigation_background_current', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => '.sf-menu li.current-menu-ancestor a, .sf-menu li.current-menu-item a, .sf-menu li.current-post-ancestor a'), __('MAIN NAVIGATION TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_main_navigation_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.sf-menu li a, div.random-post a', 'description' => 'This is the text color of the main navigation in the normal state.'), __('MAIN NAVIGATION TEXT HOVER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_main_navigation_text_hover', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.sf-menu li a:hover', 'description' => 'This is the text color of the main navigation in "hover" state.'), __('MAIN NAVIGATION TEXT CURRENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_main_navigation_text_current', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.sf-menu li.current-menu-ancestor a, .sf-menu li.current-menu-item a, .sf-menu li.current-post-ancestor a', 'description' => 'This is the text color of the main navigation in "current page" state.'), __('SUB NAVIGATION BOTTOM BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_top_border', 'default' => '#ce2121', 'attr' => array('border-bottom-color'), 'selector' => 'ul.sf-menu ul.sub-menu'), __('SUB NAVIGATION TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_text', 'default' => '#c1c1c1', 'attr' => array('color'), 'selector' => 'ul.sf-menu li li a, ul.sf-menu li.current-menu-item li a, ul.sf-menu li.current-menu-ancestor li a, ul.sf-menu li li.current-menu-item li a, ul.sf-menu li li.current-menu-ancestor li a, ul.sf-menu li.current-post-ancestor li a'), __('SUB NAVIGATION BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_background', 'default' => '#171717', 'attr' => array('background-color'), 'selector' => 'ul.sf-menu li li a, ul.sf-menu li.current-menu-item li a, ul.sf-menu li.current-menu-ancestor li a, ul.sf-menu li li.current-menu-item li a, ul.sf-menu li li.current-menu-ancestor li a, ul.sf-menu li.current-post-ancestor li a'), __('SUB NAVIGATION TEXT HOVER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_text_hover', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'ul.sf-menu li li a:hover, ul.sf-menu li li.current-menu-item li a:hover, .sf-menu li li.current-menu-ancestor li a:hover'), __('SUB NAVIGATION BACKGROUND HOVER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_background_hover', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'ul.sf-menu li li a:hover, ul.sf-menu li li.current-menu-item li a:hover, .sf-menu li li.current-menu-ancestor li a:hover'), __('SUB NAVIGATION TEXT CURRENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_text_current', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'ul.sf-menu li li.current-menu-item a, ul.sf-menu li li.current-menu-ancestor a, ul.sf-menu li li.current-menu-ancestor li.current-menu-item a, ul.sf-menu li li.current-post-ancestor a'), __('SUB NAVIGATION BACKGROUND CURRENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sub_navigation_background_current', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'ul.sf-menu li li.current-menu-item a, ul.sf-menu li li.current-menu-ancestor a, ul.sf-menu li li.current-menu-ancestor li.current-menu-item a, ul.sf-menu li li.current-post-ancestor a')), 'gdl_panel_body' => array(__('PAGE HEADER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_page_whole_header_background', 'default' => '#ab1b1b', 'attr' => array('background-color'), 'selector' => 'div.header-wrapper'), __('PAGE HEADER TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_page_header_title_color', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => 'h1.page-header-title'), __('PAGE HEADER CAPTION', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_page_header_caption', 'default' => '#999999', 'attr' => array('color'), 'selector' => 'div.page-header-caption'), __('PAGE HEADER BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_page_header_border', 'default' => '#313131', 'attr' => array('border-color'), 'selector' => 'div.page-header-inner-wrapper'), __('ITEM HEADER TITLE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_item_header_title', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => 'h3.gdl-header-title'), __('ITEM HEADER BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_item_header_border', 'default' => '#313131', 'attr' => array('border-color'), 'selector' => 'div.gdl-header-wrapper, ' . 'div.comment-wrapper .comment-title, div.comment-wrapper #reply-title, .gdl-item-border'), __('ITEM HEADER ARROW', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_item_header_arrow_color', 'default' => '#313131', 'attr' => array('color'), 'selector' => 'div.gdl-header-wrapper .icon-double-angle-right'), __('TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_title_color', 'default' => '#111111', 'attr' => array('color'), 'selector' => 'h1, h2, h3, h4, h5, h6', 'description' => 'Change this title color wil effects all title in this theme except footer title, sidebar title, blog thumbnail title and portolio thumbnail title color.'), __('CONTENT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_content_color', 'default' => '#505050', 'attr' => array('color'), 'selector' => 'body'), __('BODY BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_body_background', 'default' => '#404040', 'attr' => array('background-color'), 'selector' => 'html', 'description' => 'Body background will NOT take effects when user use the image as background or use the non transparent pattern '), __('CONTAINER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_container_background', 'default' => '#ffffff', 'attr' => array('background-color'), 'selector' => '.container.main, .gdl-container-color'), __('LINK COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_link_color', 'default' => '#ce2121', 'attr' => array('color'), 'selector' => 'a', 'description' => 'This color effects all of the link color in this theme.'), __('LINK HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_link_hover_color', 'default' => '#ce7777', 'attr' => array('color'), 'selector' => 'a:hover', 'description' => 'This color effects all of the link color on "hover" state in this theme.'), __('SELECTION TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_selection_text_clor', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '::selection, ::-moz-selection'), __('SELECTION BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_selection_background', 'default' => '#4f4f4f', 'attr' => array('background-color'), 'selector' => '::selection, ::-moz-selection', 'description' => 'This is the background color when the text is selected ( hightlight ) on your site.')), 'gdl_panel_sidebar_color' => array(__('SIDEBAR LINK COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sidebar_link_color', 'default' => '#1f1f1f', 'attr' => array('color'), 'selector' => '.sidebar-wrapper a'), __('SIDEBAR LINK HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sidebar_link_hover_color', 'default' => '#9c9c9c', 'attr' => array('color'), 'selector' => '.sidebar-wrapper a:hover'), __('SIDEBAR TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sidebar_title_color', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => '.custom-sidebar-title, .custom-sidebar-title a'), __('SIDEBAR TITLE BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sidebar_title_border_color', 'default' => '#313131', 'attr' => array('border-color'), 'selector' => 'div.custom-sidebar-title-wrapper, div.gdl-tab-widget-header-wrapper'), __('SIDEBAR TITLE ARROW', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sidebar_title_arrow_color', 'default' => '#313131', 'attr' => array('color'), 'selector' => 'div.gdl-sidebar-wrapper .icon-double-angle-right'), __('SIDEBAR INFO COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_sidebar_info_color', 'default' => '#9b9b9b', 'attr' => array('color'), 'selector' => '.sidebar-wrapper .recent-post-widget-info, .sidebar-wrapper .recent-post-widget-info a, .sidebar-wrapper .full-post-widget-info, ' . '.sidebar-wrapper .full-post-widget-info a, .sidebar-wrapper #twitter_update_list, div.recent-comment-widget .recent-comment-widget-date'), __('TAB WIDGET TITLE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_widget_title', 'default' => '#a7a7a7', 'attr' => array('color'), 'selector' => 'div.gdl-tab-widget-header-wrapper a'), __('TAB WIDGET TITLE ACTIVE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_widget_title_active', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => 'div.gdl-tab-widget-header-wrapper a.active, div.gdl-tab-widget-header-wrapper a:hover'), __('POST/PORT WIDGET FRAME', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_widget_frame_background', 'default' => '#eeeeee', 'attr' => array('background-color'), 'selector' => 'div.recent-port-widget .recent-port-widget-thumbnail, div.recent-post-widget .recent-post-widget-thumbnail, div.custom-sidebar .flickr_badge_image'), __('SOCIAL COUNTER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_social_counter_background', 'default' => '#f5f5f5', 'attr' => array('background-color'), 'selector' => 'div.gdl-social-counter-widget'), __('SOCIAL COUNTER COUNT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_social_counter_count', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => 'div.gdl-social-counter-widget span.count'), __('SOCIAL COUNTER TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_social_counter_text', 'default' => '#606060', 'attr' => array('color'), 'selector' => 'div.gdl-social-counter-widget span.title'), __('TAG CLOUD TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tagcloud_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.tagcloud a, .tagcloud a:hover'), __('TAG CLOUD BACKGROUND COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tagcloud_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => '.tagcloud a'), __('TWITTER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_twitter_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'div.footer-twitter-wrapper'), __('TWITTER TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_twitter_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.footer-twitter-wrapper, div.footer-twitter-wrapper a')), 'gdl_panel_footer' => array(__('FOOTER LINK COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_link_color', 'default' => '#efefef', 'attr' => array('color'), 'selector' => '.footer-wrapper a', 'description' => 'This color changes all of the link color inside footer in normal state.'), __('FOOTER LINK HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_link_hover_color', 'default' => '#aaaaaa', 'attr' => array('color'), 'selector' => '.footer-wrapper a:hover', 'description' => 'This is the link color of footer frame in "hover" state.'), __('FOOTER TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_title_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.footer-wrapper .custom-sidebar-title, .footer-wrapper .custom-sidebar-title a'), __('FOOTER CONTENT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_content_color', 'default' => '#919191', 'attr' => array('color'), 'selector' => '.footer-wrapper, .footer-wrapper table th'), __('FOOTER CONTENT INFO COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_content_info_color', 'default' => '#7f7f7f', 'attr' => array('color'), 'selector' => '.footer-wrapper .recent-post-widget-info, .footer-wrapper #twitter_update_list', 'description' => 'The content info is the color of the post date( in post/portfolio widget ) and twitter widget'), __('FOOTER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_background', 'default' => '#0b0b0b', 'attr' => array('background-color'), 'selector' => 'div.footer-wrapper'), __('FOOTER DIVIDER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_divider_color', 'default' => '#353535', 'attr' => array('border-color'), 'selector' => 'div.footer-wrapper *'), __('FOOTER INPUT BOX TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_input_text', 'default' => '#848484', 'attr' => array('color'), 'selector' => 'div.footer-wrapper div.contact-form-wrapper input[type="text"], div.footer-wrapper div.contact-form-wrapper input[type="password"], ' . 'div.footer-wrapper div.contact-form-wrapper textarea, div.footer-wrapper div.custom-sidebar #search-text input[type="text"]'), __('FOOTER INPUT BOX BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_input_background', 'default' => '#282828', 'attr' => array('background-color'), 'selector' => 'div.footer-wrapper div.contact-form-wrapper input[type="text"], div.footer-wrapper div.contact-form-wrapper input[type="password"], ' . 'div.footer-wrapper div.contact-form-wrapper textarea, div.footer-wrapper div.custom-sidebar #search-text input[type="text"]'), __('FOOTER INPUT BOX BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_input_border', 'default' => '#848484', 'attr' => array('border-color'), 'selector' => 'div.footer-wrapper div.contact-form-wrapper input[type="text"], div.footer-wrapper div.contact-form-wrapper input[type="password"], ' . 'div.footer-wrapper div.contact-form-wrapper textarea, div.footer-wrapper div.custom-sidebar #search-text input[type="text"]'), __('FOOTER BUTTON TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_button_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.footer-wrapper .contact-form-wrapper button'), __('FOOTER BUTTON BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_button_color', 'default' => '#ce2121', 'attr' => array('background-color'), 'selector' => '.footer-wrapper .contact-form-wrapper button', 'description' => 'This color is for the submit button of contact widget.'), __('FOOTER PERSONNAL INFO', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_personnal_widget_info', 'default' => '#dbdbdb', 'attr' => array('color'), 'selector' => 'div.footer-wrapper .personnal-widget-item .personnal-widget-info'), __('FOOTER TAG CLOUD TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_tagcloud_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.footer-wrapper .tagcloud a, div.footer-wrapper .tagcloud a:hover'), __('FOOTER TAG CLOUD BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_tagcloud_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'div.footer-wrapper .tagcloud a'), __('FOOTER POST/PORT WIDGET FRAME', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_post_widget_frame_background', 'default' => '#3a3a3a', 'attr' => array('background-color'), 'selector' => 'div.footer-wrapper div.recent-port-widget .recent-port-widget-thumbnail, div.footer-wrapper div.recent-post-widget .recent-post-widget-thumbnail,' . 'div.footer-wrapper .custom-sidebar .flickr_badge_image'), __('FOOTER TAB WIDGET TITLE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_tab_widget_title', 'default' => '#a7a7a7', 'attr' => array('color'), 'selector' => 'div.footer-wrapper div.gdl-tab-widget-header-wrapper a'), __('FOOTER TAB WIDGET TITLE ACTIVE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_footer_tab_widget_title_active', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => 'div.footer-wrapper div.gdl-tab-widget-header-wrapper a.active, div.footer-wrapper div.gdl-tab-widget-header-wrapper a:hover'), __('COPYRIGHT BORDER TOP LINE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_copyright_top_border', 'default' => '#2b2b2b', 'attr' => array('border-top-color'), 'selector' => 'div.footer-wrapper .copyright-border'), __('COPYRIGHT TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_copyright_text', 'default' => '#999999', 'attr' => array('color'), 'selector' => '.copyright-wrapper'), __('COPYRIGHT BACK TO TOP', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_copyright_scroll_top', 'default' => '#4b4b4b', 'attr' => array('background-color'), 'selector' => 'div.copyright-scroll-top')), 'gdl_panel_slider' => array(__('TOP SLIDER BOTTOM BAR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_top_slider_bottom_bar', 'default' => '#e8e8e8', 'attr' => array('border-color'), 'selector' => 'div.gdl-top-slider-wrapper'), __('TOP SLIDER NAVIGATION BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_slider_navigation_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => '.ls-maxima .ls-nav-prev, .ls-maxima .ls-nav-next,' . 'div.gdl-top-slider .flex-direction-nav li .flex-prev, div.gdl-top-slider .flex-direction-nav li .flex-next,' . 'div.gdl-top-slider .nivo-directionNav a.nivo-prevNav, div.gdl-top-slider .nivo-directionNav a.nivo-nextNav'), __('TOP SLIDER NAVIGATION HOVER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_slider_navigation_active_background', 'default' => '#930000', 'attr' => array('background-color'), 'selector' => '.ls-maxima .ls-nav-prev:hover, .ls-maxima .ls-nav-next:hover, ' . 'div.gdl-top-slider .flex-direction-nav li .flex-prev:hover, div.gdl-top-slider .flex-direction-nav li .flex-next:hover, ' . 'div.gdl-top-slider .nivo-directionNav a.nivo-prevNav:hover, div.gdl-top-slider .nivo-directionNav a.nivo-nextNav:hover'), __('SLIDER TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_slider_title_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'h2.gdl-slider-title'), __('SLIDER CAPTION COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_slider_caption_color', 'default' => '#bbbbbb', 'attr' => array('color'), 'selector' => 'div.gdl-slider-caption'), __('SLIDER BULLET COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_slider_bullet_color', 'default' => '#ffffff', 'attr' => array('background-color'), 'selector' => '.ls-maxima .ls-bottom-slidebuttons a, .flex-control-nav li a, .nivo-controlNav a, div.anythingSlider .anythingControls ul a'), __('SLIDER BULLET ACTIVE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_slider_bullet_active', 'default' => '#bbbbbb', 'attr' => array('background'), 'selector' => '.ls-maxima .ls-bottom-slidebuttons a.ls-nav-active, .ls-maxima .ls-bottom-slidebuttons a:hover' . '.flex-control-nav li a:hover, .flex-control-nav li a.flex-active, ' . '.nivo-controlNav a:hover, .nivo-controlNav a.active, ' . 'div.anythingSlider .anythingControls ul a.cur, div.anythingSlider .anythingControls ul a:hover '), __('STUNNING TEXT TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_stunning_text_title_color', 'default' => '#cf2121', 'attr' => array('color'), 'selector' => 'h1.stunning-text-title'), __('STUNNING TEXT CAPTION COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_stunning_text_caption_color', 'default' => '#7a7a7a', 'attr' => array('color'), 'selector' => '.stunning-text-caption'), __('STUNNING TEXT BACKGROUND COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_stunning_text_background_color', 'default' => '#efefef', 'attr' => array('background-color'), 'selector' => '.stunning-text-inner-wrapper')), 'gdl_panel_blog_pagination' => array(__('BLOG PAGE TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_page_title_color', 'default' => '#c33030', 'attr' => array('color'), 'selector' => 'div.gdl-blog-full .blog-title a, div.gdl-related-post .blog-title a'), __('BLOG PAGE TITLE HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_page_title_hover_color', 'default' => '#c33030', 'attr' => array('color'), 'selector' => 'div.gdl-blog-full .blog-title a:hover, div.gdl-related-post .blog-title a:hover', 'description' => 'This is the blog thumbnail title color in "hover" state.'), __('BLOG ITEM TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_title_color', 'default' => '#1f1f1f', 'attr' => array('color'), 'selector' => 'h2.blog-title a, h1.blog-title a, div.portfolio-item .page-item-title a'), __('BLOG ITEM TITLE HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_title_hover_color', 'default' => '#9c9c9c', 'attr' => array('color'), 'selector' => 'h2.blog-title a:hover, h1.blog-title a:hover, div.portfolio-item .page-item-title a:hover', 'description' => 'This is the blog thumbnail title color in "hover" state.'), __('BLOG INFO TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_info_color', 'default' => '#9b9b9b', 'attr' => array('color'), 'selector' => 'div.blog-info-wrapper, div.blog-info-wrapper a'), __('BLOG LIST BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_list_background', 'default' => '#f3f3f3', 'attr' => array('background-color'), 'selector' => 'div.gdl-blog-list'), __('BLOG COMMENT (IMAGE) BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_comment_image_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'div.blog-media-wrapper .blog-comment, div.full-post-widget .blog-comment,' . 'div.post-slider-comment'), __('BLOG COMMENT (IMAGE) TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_comment_image_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.blog-media-wrapper .blog-comment, div.blog-media-wrapper .blog-comment a, ' . 'div.full-post-widget .blog-comment, div.full-post-widget .blog-comment a, div.post-slider-comment'), __('BLOG ABOUT AUTHOR BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_post_about_author_color', 'default' => '#f5f5f5', 'attr' => array('background-color'), 'selector' => '.about-author-wrapper', 'description' => 'The author item is located in the blog page, you can enable/disable it using the post/portfolio options.'), __('PAGINATION BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_pagination_background', 'default' => '#f5f5f5', 'attr' => array('background-color'), 'selector' => 'div.gdl-pagination a'), __('PAGINATION TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_pagination_text', 'default' => '#7b7b7b', 'attr' => array('color'), 'selector' => 'div.gdl-pagination a'), __('PAGINATION HOVER BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_pagination_hover_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'div.gdl-pagination a:hover'), __('PAGINATION HOVER TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_pagination_hover_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.gdl-pagination a:hover'), __('PAGINATION CURRENT BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_pagination_current_background', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => 'div.gdl-pagination span'), __('PAGINATION CURRENT TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_pagination_current_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.gdl-pagination span')), 'gdl_panel_portfolio' => array(__('THUMBNAIL HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_thumbnail_hover_color', 'default' => '#000000', 'attr' => array('background-color'), 'selector' => 'div.portfolio-media-wrapper span.portfolio-thumbnail-image-hover'), __('PORT TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_title_color', 'default' => '#2d2d2d', 'attr' => array('color'), 'selector' => '.portfolio-item .portfolio-title a', 'description' => 'This is the portfolio item title color.'), __('PORT TAG COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_tag_color', 'default' => '#aaaaaa', 'attr' => array('color'), 'selector' => '.portfolio-item .portfolio-tag a, .portfolio-item .portfolio-tag'), __('PORT BOTTOM BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_title_border', 'default' => '#cf2121', 'attr' => array('background-color'), 'selector' => '.portfolio-item .port-bottom-border'), __('PORT TEXT HOVER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_title_hover_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => '.portfolio-item:hover .portfolio-context .portfolio-tag, .portfolio-item:hover .portfolio-context, .portfolio-item:hover .portfolio-context a'), __('PORT FILTER COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_filter_color', 'default' => '#9c9c9c', 'attr' => array('color'), 'selector' => 'ul.portfolio-item-filter li a'), __('PORT FILTER ACTIVE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_filter_border_color', 'default' => '#000000', 'attr' => array('color'), 'selector' => 'ul.portfolio-item-filter li a.active, ul.portfolio-item-filter li a:hover, ul.portfolio-item-filter li span'), __('PORT INFO COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_info_color', 'default' => '#7a7a7a', 'attr' => array('color'), 'selector' => 'div.single-portfolio .port-info'), __('PORT INFO HEAD COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_info_head_color', 'default' => '#404040', 'attr' => array('color'), 'selector' => 'div.single-portfolio .port-info .head'), __('PORT NAV BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_port_carousel_nav', 'default' => '#f6f6f6', 'attr' => array('background-color'), 'selector' => 'div.portfolio-carousel-wrapper .port-nav, div.portfolio-carousel-description .port-nav, div.single-portfolio .port-nav a, ' . 'div.blog-carousel-wrapper .blog-nav, div.gdl-carousel-testimonial .testimonial-navigation a')), 'gdl_panel_contact_form' => array(__('CONTACT/COMMENT BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_contact_form_background_color', 'default' => '#ffffff', 'description' => 'This is a background color of textbox and textarea in contact form and comments area.'), __('CONTACT/COMMENT TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_contact_form_text_color', 'default' => '#888888', 'description' => 'This is a text color of textbox and textarea in contact form and comments area.'), __('CONTACT/COMMENT BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_contact_form_border_color', 'default' => '#e3e3e3'), __('CONTACT/COMMENT FRAME', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_contact_form_frame_color', 'default' => '#f7f7f7'), __('CONTACT/COMMENT INNER SHADOW', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_contact_form_inner_shadow', 'default' => '#ececec', 'description' => 'An inner shadow of the textbox and textarea in contact form and comments area.')), 'gdl_panel_price_personnal_item' => array(__('PRICE BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_background', 'default' => '#f9f9f9', 'attr' => array('background-color'), 'selector' => 'div.price-item-inner-wrapper'), __('PRICE TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_title_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.price-item .price-title-wrapper'), __('PRICE TITLE BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_title_background', 'default' => '#454545', 'attr' => array('background-color'), 'selector' => 'div.price-item .price-title-wrapper'), __('PRICE TAG COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_tag_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.price-item .price-tag'), __('PRICE TAG BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_tag_background', 'default' => '#838383', 'attr' => array('background-color'), 'selector' => 'div.price-item .price-tag'), __('PRICE TAG ACTIVE TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_tag_active_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.best-price .price-tag'), __('PRICE TAG ACTIVE BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_tag_active_background', 'default' => '#ce2121', 'attr' => array('background-color'), 'selector' => 'div.best-price .price-tag'), __('PRICE CONTENT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_content_color', 'default' => '#5e5e5e', 'attr' => array('color'), 'selector' => 'div.price-item'), __('PRICE BUTTON BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_button_background', 'default' => '#ce2121', 'attr' => array('background-color'), 'selector' => 'div.price-button-wrapper .gdl-button'), __('PRICE BUTTON TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_price_button_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.price-button-wrapper .gdl-button'), __('PERSONNAL BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_personnal_background', 'default' => '#f9f9f9', 'attr' => array('background-color'), 'selector' => 'div.personnal-item'), __('PERSONNAL POSITION TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_personnal_position_text', 'default' => '#9d9d9d', 'attr' => array('color'), 'selector' => 'div.personnal-item .personnal-position'), __('PERSONNAL TITLE', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_personnal_title', 'default' => '#353535', 'attr' => array('color'), 'selector' => 'div.personnal-item .personnal-title'), __('PERSONNAL CONTENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_personnal_content', 'default' => '#838383', 'attr' => array('color'), 'selector' => 'div.personnal-item .personnal-content'), __('PERSONNAL WIDGET INFO', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_personnal_widget_info', 'default' => '#4a4a4a', 'attr' => array('color'), 'selector' => 'div.personnal-widget-item .personnal-widget-info')), 'gdl_panel_additional_elements' => array(__('ACCORDION TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_accordion_title', 'default' => '#363636', 'attr' => array('color'), 'selector' => 'ul.gdl-accordion li .accordion-title, ul.gdl-toggle-box li .toggle-box-title'), __('ACCORDION BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_accordion_background', 'default' => '#ffffff', 'attr' => array('background-color'), 'selector' => 'ul.gdl-accordion li, ul.gdl-toggle-box li'), __('ACCORDION BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_accordion_border', 'default' => '#f5f5f5', 'attr' => array('border-color'), 'selector' => 'ul.gdl-accordion li, ul.gdl-toggle-box li, div.gdl-carousel-testimonial .testimonial-content'), __('BLOCKQUOTE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_blockquote_color', 'default' => '#ababab', 'attr' => array('color'), 'selector' => 'blockquote'), __('BLOCKQUOTE BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_blockquote_border', 'default' => '#cfcfcf', 'attr' => array('border-color'), 'selector' => 'body blockquote'), __('BUTTON BACKGROUND COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_button_background_color', 'default' => '#ce2121', 'attr' => array('background-color'), 'selector' => 'a.gdl-button, body button, input[type="submit"], input[type="reset"], input[type="button"]'), __('BUTTON TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_button_text_color', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'a.gdl-button, body button, input[type="submit"], input[type="reset"], input[type="button"]'), __('DIVIDER LINE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_divider_line', 'default' => '#e6e6e6', 'attr' => array('border-color'), 'selector' => 'body *', 'description' => 'This is the color of all divider inside the container( excluding divider of the footer ).'), __('DIVIDER ITEM BACK TO TOP TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_back_to_top_text_color', 'default' => '#919191', 'attr' => array('color'), 'selector' => '.scroll-top', 'description' => 'This is the back to top text color of the divider item ( create from page items or shortcode ).'), __('PROGRESS BAR HILIGHT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_progress_bar_highlight', 'default' => '#ce2121', 'attr' => array('background-color'), 'selector' => 'div.progress-bar-wrapper .progress-bar'), __('PROGRESS BAR BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_progress_bar_background', 'default' => '#f0f0f0', 'attr' => array('background-color'), 'selector' => 'div.progress-bar-wrapper'), __('PROGRESS BAR TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_progress_bar_text', 'default' => '#ffffff', 'attr' => array('color'), 'selector' => 'div.progress-bar-wrapper')), 'gdl_panel_additional_elements_2' => array(__('TABLE BORDER (TABLE TAG)', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_table_border', 'default' => '#e5e5e5', 'attr' => array('border-color'), 'selector' => 'table, table tr, table tr td, table tr th'), __('TABLE TITLE TEXT COLOR (TH TAG)', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_table_text_title', 'default' => '#666666', 'attr' => array('color'), 'selector' => 'table th'), __('TABLE TITLE BACKGROUND (TH TAG)', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_table_title_background', 'default' => '#fdfdfd', 'attr' => array('background-color'), 'selector' => 'table th'), __('TAB ACTIVE BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_background_color', 'default' => '#ffffff', 'attr' => array('background-color'), 'selector' => 'div.gdl-tab ul.gdl-tab-content, div.gdl-tab ul.gdl-tab-title a.active'), __('TAB ACTIVE TEXT COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_text_color', 'default' => '#707070', 'attr' => array('color'), 'selector' => 'div.gdl-tab ul.gdl-tab-content'), __('TAB ACTIVE TITLE COLOR', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_active_text_color', 'default' => '#575757', 'attr' => array('color'), 'selector' => 'div.gdl-tab ul.gdl-tab-title a.active'), __('TAB ACTIVE TITLE BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_active_title_border', 'default' => '#ce2121', 'attr' => array('border-top-color'), 'selector' => 'div.gdl-tab ul.gdl-tab-title li a.active'), __('TAB TITLE TEXT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_title_text', 'default' => '#959595', 'attr' => array('color'), 'selector' => 'div.gdl-tab ul.gdl-tab-title a'), __('TAB TITLE BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_tab_title_background', 'default' => '#fafafa', 'attr' => array('background-color'), 'selector' => 'div.gdl-tab ul.gdl-tab-title a'), __('TESTIMONIAL (SLIDE) CONTENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_testimonial_slide_content', 'default' => '#9d9d9d', 'attr' => array('color'), 'selector' => 'div.gdl-carousel-testimonial .testimonial-content'), __('TESTIMONIAL (SLIDE) INFO', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_testimonial_slide_info', 'default' => '#656565', 'attr' => array('color'), 'selector' => 'div.gdl-carousel-testimonial .testimonial-info'), __('TESTIMONIAL (SLIDE) BACKGROUND', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_testimonial_slide_background', 'default' => '#ffffff', 'attr' => array('background-color'), 'selector' => 'div.gdl-carousel-testimonial .testimonial-content'), __('TESTIMONIAL (STATIC) CONTENT', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_testimonial_static_content_color', 'default' => '#afafaf', 'attr' => array('color'), 'selector' => 'div.gdl-static-testimonial .testimonial-item'), __('TESTIMONIAL (STATIC) BORDER', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_testimonial_static_border', 'default' => '#efefef', 'attr' => array('border-color'), 'selector' => 'div.gdl-static-testimonial .testimonial-item'), __('TESTIMONIAL (STATIC) INFO', 'gdl_back_office') => array('type' => 'colorpicker', 'name' => THEME_SHORT_NAME . '_testimonial_static_info', 'default' => '#848484', 'attr' => array('color'), 'selector' => 'div.gdl-static-testimonial .testimonial-info')), 'gdl_panel_load_default_color' => array(__('LOAD DEFAULT ELEMENTS COLOR', 'gdl_back_office') => array('type' => 'button', 'text' => 'Load Default', 'id' => 'gdl_load_default_color_button', 'description' => 'Click this button to load the default elements color of this theme. Then click save changes to save the default value. <br><br> ' . 'WARNING : All of settings cannot be undo after you click save changes button.'), __('EXPORT COLOR', 'gdl_back_office') => array('type' => 'import-export', 'text' => 'Export', 'id' => 'gdl_export_color_button', 'text_id' => 'gdl_export_color_text'), __('IMPORT COLOR', 'gdl_back_office') => array('type' => 'import-export', 'text' => 'Import', 'id' => 'gdl_import_color_button', 'text_id' => 'gdl_import_color_text')), 'gdl_panel_enable_admin_translator' => array(__('ENABLE ADMIN TRANSLATOR', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_admin_translator')), 'gdl_panel_blog_port_translator' => array(__('BREAKING NEWS', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_breaking_news', 'default' => 'BREAKING NEWS'), __('LEAVE A REPLY (BLOG)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_leave_reply', 'default' => 'Leave a Reply'), __('ABOUT THE AUTHOR (BLOG)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_about_author', 'default' => 'About the Author'), __('CONTINUE READING (BLOG)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_continue_reading', 'default' => 'Continue Reading'), __('READ ALL NEWS (BLOG)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_read_the_blog', 'default' => 'Read All News'), __('RELATED POSTS (BLOG)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_related_posts', 'default' => 'Related Posts'), __('VIEW ALL PORTFOLIO (PORTFOLIO)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_view_all_portfolio', 'default' => 'View All Portfolio'), __('ALL (PORTFOLIO FILTER)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_all', 'default' => 'All'), __('TAG (PORTFOLIO)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_tag', 'default' => 'Tags: '), __('CLIENT (PORTFOLIO)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_client', 'default' => 'Client: '), __('SKILL (PORTFOLIO)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_skill', 'default' => 'Skill: '), __('VISIT WEBSITE (PORTFOLIO)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_visit_website', 'default' => 'Visit Website: '), __('RELATED PORTFOLIO (PORTFOLIO)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_related_portfolio', 'default' => 'Related Portfolio')), 'gdl_panel_contact_form_translator' => array(__('NAME (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_name_contact_form', 'default' => 'Name'), __('NAME ERROR (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_name_error_contact_form', 'default' => 'Please enter your name'), __('EMAIL (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_email_contact_form', 'default' => 'Email'), __('EMAIL ERROR (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_email_error_contact_form', 'default' => 'Please enter a valid email address'), __('MESSAGE (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_message_contact_form', 'default' => 'Message'), __('MESSAGE ERROR (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_message_error_contact_form', 'default' => 'Please enter message'), __('SUBMIT BUTTON (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_submit_contact_form', 'default' => 'Submit'), __('SEND ERROR (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_contact_send_error', 'default' => 'Message cannot be sent to destination'), __('SEND COMPLETE (CONTACT FORM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_contact_send_complete', 'default' => 'The e-mail was sent successfully')), 'gdl_panel_additional_elements_translator' => array(__('BUY NOW (PRICE ITEM)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_translator_read_more_price', 'default' => 'BUY NOW'), __('404 TITLE (404 PAGE)', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_404_title', 'default' => 'Page Not Found'), __('404 CONTENT (404 PAGE)', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_404_content', 'default' => "The page you are looking for doesn't seem to exist."), __('SEARCH RESULTS TITLE (SEARCH PAGE)', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_search_header_title', 'default' => "Search Results."), __('SEARCH NOT FOUND TITLE (SEARCH PAGE)', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_search_not_found_title', 'default' => "Search Not Found."), __('SEARCH NOT FOUND (SEARCH PAGE)', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_search_not_found', 'default' => "Sorry, but nothing matched your search criteria. Please try again with some different keywords.")), 'gdl_panel_nivo_slider' => array(__('SLIDER EFFECTS', 'gdl_back_office') => array('type' => 'combobox', 'oldname' => 'effect', 'name' => THEME_SHORT_NAME . '_nivo_slider_effect', 'options' => array('0' => 'sliceDown', '1' => 'sliceDownLeft', '2' => 'sliceUp', '3' => 'sliceUpLeft', '4' => 'sliceUpDown', '5' => 'sliceUpDownLeft', '6' => 'fold', '7' => 'fade', '8' => 'random', '9' => 'slideInRight', '10' => 'slideInLeft', '11' => 'boxRandom', '12' => 'boxRain', '13' => 'boxRainReverse', '14' => 'boxRainGrow', '15' => 'boxRainGrowReverse')), __('PAUSE ON HOVER', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'pauseOnHover', 'name' => THEME_SHORT_NAME . '_nivo_slider_pause_on_hover', 'description' => 'Pause the nivo slider when user hover at the slider.'), __('SHOW BULLETS', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'controlNav', 'name' => THEME_SHORT_NAME . '_nivo_slider_show_bullets', 'description' => 'Enable to show the nivo slider navigation bullets.'), __('SHOW LEFT/RIGHT NAVIGATION', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'directionNav', 'name' => THEME_SHORT_NAME . '_nivo_slider_show_navigation', 'description' => 'Enable left/right navigation of the nivo slider.'), __('ANIMATION SPEED', 'gdl_back_office') => array('type' => 'inputtext', 'oldname' => 'animSpeed', 'name' => THEME_SHORT_NAME . '_nivo_slider_animation_speed', 'default' => '500', 'description' => 'This is the animation speed during the change of each slide.'), __('PAUSE TIME', 'gdl_back_office') => array('type' => 'inputtext', 'oldname' => 'pauseTime', 'name' => THEME_SHORT_NAME . '_nivo_slider_pause_time', 'default' => '12000', 'description' => 'This option is the pause time of each slider.')), 'gdl_panel_plugin_enable' => array(__('LIGHT BOX THUMBNAIL', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_enable_lightbox_thumbnail', 'description' => 'Enabling the lightbox thumbnail. ( When it\'s gallery mode)'), __('LIGHT BOX THUMBNAIL WIDHT', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_enable_lightbox_thumbnail_width', 'default' => '80'), __('LIGHT BOX THUMBNAIL HEIGHT', 'gdl_back_office') => array('type' => 'inputtext', 'name' => THEME_SHORT_NAME . '_enable_lightbox_thumbnail_height', 'default' => '45')), 'gdl_panel_flex_slider' => array(__('SLIDER EFFECTS', 'gdl_back_office') => array('type' => 'combobox', 'oldname' => 'animation', 'name' => THEME_SHORT_NAME . '_flex_slider_effect', 'options' => array('0' => 'fade', '1' => 'slide')), __('PAUSE ON HOVER', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'pauseOnHover', 'name' => THEME_SHORT_NAME . '_flex_slider_pause_on_hover', 'description' => 'Pause the flex slider when user hover at the slider.'), __('SHOW BULLETS', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'controlNav', 'name' => THEME_SHORT_NAME . '_flex_slider_show_bullets', 'description' => 'Enable to show the flex slider navigation bullets.'), __('SHOW NAVIGATION', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'directionNav', 'name' => THEME_SHORT_NAME . '_flex_slider_show_navigation', 'description' => 'Enable left/right navigation of the flex slider.'), __('ANIMATION SPEED', 'gdl_back_office') => array('type' => 'inputtext', 'oldname' => 'animationSpeed', 'name' => THEME_SHORT_NAME . '_flex_slider_animation_speed', 'default' => '600', 'description' => 'This is the animation speed during the change of each slide.'), __('PAUSE TIME', 'gdl_back_office') => array('type' => 'inputtext', 'oldname' => 'slideshowSpeed', 'name' => THEME_SHORT_NAME . '_flex_slider_pause_time', 'default' => '12000', 'description' => 'This option is the pause time of each slider.'), __('PAUSE ON ACTION', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'pauseOnAction', 'name' => THEME_SHORT_NAME . '_flex_slider_pause_on_action', 'default' => 'false')), 'gdl_panel_anything_slider' => array(__('PAUSE ON HOVER', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'pauseOnHover', 'name' => THEME_SHORT_NAME . '_anything_slider_pause_on_hover', 'description' => 'Pause the anything slider when user hover at the slider.'), __('SHOW BULLETS', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'buildNavigation', 'name' => THEME_SHORT_NAME . '_anything_slider_show_bulltes', 'description' => 'Enable to show the anything slider navigation bullets.'), __('ONLY SHOW BULLETS WHEN HOVER', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'toggleControls', 'name' => THEME_SHORT_NAME . '_anything_slider_hover_bulltes', 'default' => 'disable', 'description' => 'If the bullets navigation is enabled, enable this option will hide the bullets navigation when the mouse cursor is outside the nivo slider frame.'), __('SHOW NAVIGATION', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'buildArrows', 'name' => THEME_SHORT_NAME . '_anything_slider_show_navigation', 'description' => 'Enable left/right navigation of the anything slider.'), __('ONLY SHOW NAVIGATION WHEN HOVER', 'gdl_back_office') => array('type' => 'radioenabled', 'oldname' => 'toggleArrows', 'name' => THEME_SHORT_NAME . '_anything_slider_hover_navigation', 'description' => 'If the left/right navigation is enabled, enable this option will hide the left/right navigation when the mouse cursor is outside the nivo slider frame.'), __('ANIMATION SPEED', 'gdl_back_office') => array('type' => 'inputtext', 'oldname' => 'animationTime', 'name' => THEME_SHORT_NAME . '_anything_slider_animation_speed', 'default' => '600', 'description' => 'This is the animation speed during the change of each slide.'), __('PAUSE TIME', 'gdl_back_office') => array('type' => 'inputtext', 'oldname' => 'delay', 'name' => THEME_SHORT_NAME . '_anything_slider_pause_time', 'default' => '12000', 'description' => 'This option is the pause time of each slider.')), 'gdl_panel_disable_right_click' => array(__('DISABLE RIGHT CLICK', 'gdl_back_office') => array('type' => 'radioenabled', 'name' => THEME_SHORT_NAME . '_disable_right_click', 'default' => 'disable'), __('ALERT MSG', 'gdl_back_office') => array('type' => 'textarea', 'name' => THEME_SHORT_NAME . '_right_click_alert', 'description' => 'If this filed is not empty, there\'ll be alert box show up when user using the right click.')));
// add action to embeded the panel in to dashboard
add_action('admin_menu', 'add_goodlayers_panel');
function add_goodlayers_panel()
{
    $page = add_menu_page('GoodLayers Option', THEME_FULL_NAME, 'administrator', 'goodlayers_admin_panel', 'create_goodlayers_panel');
    add_action('admin_print_scripts-' . $page, 'register_goodlayers_panel_scripts');
    add_action('admin_print_styles-' . $page, 'register_goodlayers_panel_styles');
}
// add ajax action to hook the functions when save button is pressed
add_action('wp_ajax_save_goodlayers_panel', 'save_goodlayers_panel');
function save_goodlayers_panel()
{
    // check_ajax_referer(plugin_basename(__FILE__),'security');
    global $goodlayers_element;
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
		<?php 
    if ($show_portfolio_filtering) {
        ?>
		<div class="heading-controls">
			<div class="filter-wrap">
				<a href="#" class="select"><?php 
        _e("Filter", "swiftframework");
        ?>
</a>
				<ul id="portfolio-filter" class="filtering clearfix">
				<li class="all selected"><a data-filter="*" href="#"><?php 
        _e("All", "swiftframework");
        ?>
</a></li>
				<?php 
        $tax_terms = get_category_list('portfolio-category', 1);
        foreach ($tax_terms as $tax_term) {
            $term_slug = strtolower(str_replace(' ', '-', $tax_term));
            echo '<li class=""><a href="#" title="View all ' . $tax_term . ' items" class="' . $term_slug . '" data-filter=".' . $term_slug . '">' . $tax_term . '</a></li>';
        }
        ?>
				</ul>
			</div>
		</div>
		<?php 
    }
    ?>
		<?php 
    if ($show_rss_icon) {
        ?>
		<a href="<?php 
    /**
     * Displays the widget settings controls on the widget panel.
     * Make use of the get_field_id() and get_field_name() function
     * when creating your form elements. This handles the confusing stuff.
     */
    function form($instance)
    {
        /* Set up some default widget settings. */
        $defaults = array('title' => __('Recent Posts Widget', 'gdl_back_office'), 'post_cat' => __('All', 'gdl_back_office'), 'show_num' => '3');
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>

		<!-- Widget Title: Text Input -->
		<p>
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title :', 'gdl_back_office');
        ?>
</label>
			<input id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" value="<?php 
        echo $instance['title'];
        ?>
" class="width100" />
		</p>

		<!-- Your Name: Text Input -->
		<p>
			<label for="<?php 
        echo $this->get_field_id('post_cat');
        ?>
"><?php 
        _e('Category :', 'gdl_back_office');
        ?>
</label>		
			<select name="<?php 
        echo $this->get_field_name('post_cat');
        ?>
" id="<?php 
        echo $this->get_field_id('post_cat');
        ?>
">
				
			<?php 
        $category_list = get_category_list('category');
        foreach ($category_list as $category) {
            ?>
				<option value="<?php 
            echo $category;
            ?>
" <?php 
            if ($instance['post_cat'] == $category) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            echo $category;
            ?>
</option>				
			<?php 
        }
        ?>
	
			</select> 
		</p>

		<p>
			<label for="<?php 
        echo $this->get_field_id('show_num');
        ?>
"><?php 
        _e('Show Count :', 'gdl_back_office');
        ?>
</label>
			<input id="<?php 
        echo $this->get_field_id('show_num');
        ?>
" name="<?php 
        echo $this->get_field_name('show_num');
        ?>
" value="<?php 
        echo $instance['show_num'];
        ?>
" class="width100" />
		</p>

	<?php 
    }
Exemple #30
0
  

<!--MAINCONTENT-->
<div id="maincontent">
    <div id="wrapproduct">
        <div class="content">
            <!--START MENU CATEGORIES-->
            <ul class="categories">
                <li class="main"><a href="#" class="selected"><?php 
echo $varmaincat;
?>
</a></li>

                <?php 
//fetch category list
$data_menu = get_category_list($type, 200, 1);
if ($data_menu["result"]) {
    foreach ($data_menu["result"] as $row) {
        $idcat = $row->id;
        $namecat = $row->category_name;
        echo "<li><a " . is_selected($idcat, $cat, "class=\"selected\"", "") . " href=\"/products/list/?type=" . $type . "&amp;cat=" . $idcat . "#wrapproduct\">" . $namecat . "</a></li>";
    }
}
//end fetch category list
?>
                       
            </ul>
            <!--END MENU CATEGORIES-->      

            <!--START PRODUCT ITEM-->
            <div class="wraplistitem">