<?php if (function_exists('bbpress')) { //Services vc_map(array("name" => __("bbPress Forums", SH_NAME), "base" => "bbp-forum-index", "class" => "", "category" => __('Jollyall', SH_NAME), "icon" => 'faqs', "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Forum", SH_NAME), "param_name" => "forum", "description" => '')))); } if (post_type_exists('sh_form')) { //Services vc_map(array("name" => __("Form Builder", SH_NAME), "base" => "sh_form", "class" => "fa fa-briefcase", "category" => __('Tlazya', SH_NAME), "icon" => 'faqs', "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Form", SH_NAME), "param_name" => "id", 'value' => sh_get_posts_array('sh_form', true), "description" => __("Enter the sorting order.", SH_NAME))))); } class WPBakeryShortCode_Sh_Skills extends WPBakeryShortCodesContainer { } class WPBakeryShortCode_Sh_Skill extends WPBakeryShortCode { } class WPBakeryShortCode_Sh_Pricing_Table_Section extends WPBakeryShortCodesContainer { } class WPBakeryShortCode_Sh_Pricing_Table extends WPBakeryShortCode { } class WPBakeryShortCode_Sh_Work_Process extends WPBakeryShortCodesContainer { } class WPBakeryShortCode_Sh_Process extends WPBakeryShortCode { } class WPBakeryShortCode_Sh_Fun_Facts extends WPBakeryShortCodesContainer { }
<?php //include(get_template_directory().'/includes/resource/awesom_icons.php'); $settings = array(); $settings['post']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this deal', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%')); $settings['page']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this deal', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%')); $settings['bistro_service']['font_awesome'] = array('type' => 'select', 'id' => 'font_awesome', 'title' => __('Choos Font Awesome Icon', SH_NAME), 'desc' => __('Choose an icon fron the font icons list', SH_NAME), 'options' => array_values(array_map(create_function('$v', 'return ucwords($v);'), $GLOBALS['_font_awesome'])), 'attributes' => array('style' => 'width:40%')); $settings['bistro_service']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this service', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%')); $settings['bistro_deal']['start_date'] = array('type' => 'date', 'id' => 'start_date', 'title' => __('Start Date', SH_NAME), 'desc' => __('Choose start date of the deal', SH_NAME), 'attributes' => array('style' => 'width:30%')); $settings['bistro_deal']['end_date'] = array('type' => 'date', 'id' => 'end_date', 'title' => __('End Date', SH_NAME), 'desc' => __('Choose end date of the deal', SH_NAME), 'attributes' => array('style' => 'width:30%')); $settings['bistro_deal']['products'] = array('type' => 'select', 'title' => __('Select Product', SH_NAME), 'id' => 'products', 'desc' => __('Choose the products for this deal', SH_NAME), 'options' => sh_get_posts_array('wpsc-product'), 'attributes' => array('style' => 'width:45%')); $settings['bistro_deal']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this deal', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%')); $settings['bistro_team']['designation'] = array('type' => 'text', 'title' => __('Designation', SH_NAME), 'id' => 'designation', 'desc' => __('Enter the designation of the member', SH_NAME), 'attributes' => array('style' => 'width:45%')); $settings['bistro_team']['facebook'] = array('type' => 'text', 'title' => __('Facebook', SH_NAME), 'id' => 'facebook', 'desc' => __('Enter the facebook url', SH_NAME), 'attributes' => array('style' => 'width:45%')); $settings['bistro_team']['twitter'] = array('type' => 'text', 'title' => __('Twitter', SH_NAME), 'id' => 'twitter', 'desc' => __('Enter the twitter url', SH_NAME), 'attributes' => array('style' => 'width:45%')); $settings['bistro_team']['google_plus'] = array('type' => 'text', 'title' => __('Google Plus', SH_NAME), 'id' => 'google_plus', 'desc' => __('Enter the google Plus url', SH_NAME), 'attributes' => array('style' => 'width:45%')); $settings['bistro_portfolio']['project_url'] = array('type' => 'text', 'title' => __('Project URL', SH_NAME), 'id' => 'project_url', 'desc' => __('Enter the project url', SH_NAME), 'attributes' => array('style' => 'width:45%')); $settings['bistro_portfolio']['video_url'] = array('type' => 'multi_text', 'title' => __('Videos URL', SH_NAME), 'id' => 'video_url', 'attributes' => array('style' => 'width:45%'));
/** @see WP_Widget::form */ function form($instance) { $email = $instance ? esc_attr($instance['email']) : get_bloginfo('admin_email'); $form_id = $instance ? esc_attr($instance['form_id']) : 1; //$number = ( $instance ) ? esc_attr($instance['number']) : ''; ?> <p> <label for="<?php echo esc_attr($this->get_field_id('email')); ?> "><?php esc_html_e('Reciever Email:', SH_NAME); ?> </label> <input class="widefat" id="<?php echo esc_attr($this->get_field_id('email')); ?> " name="<?php echo esc_attr($this->get_field_name('email')); ?> " type="text" value="<?php echo esc_attr($email); ?> " /> </p> <p> <?php $forms = sh_get_posts_array('sh_form'); //printr($forms); ?> <label for="<?php echo esc_attr($this->get_field_id('form_id')); ?> "><?php esc_html_e('Choose Form:', SH_NAME); ?> </label> <select id="<?php echo esc_attr($this->get_field_id('form_id')); ?> " name="<?php echo esc_attr($this->get_field_name('form_id')); ?> " class="widefat"> <?php foreach ($forms as $k => $fom) { ?> <option value="<?php echo esc_attr($k); ?> " <?php selected($k, $form_id); ?> ><?php echo balanceTags($fom); ?> </option> <?php } ?> </select> </p> <?php }
<?php $sh_sc = array(); /* Rise Shortcodes */ $sh_sc['sh_donate_now'] = array("name" => __("Donte Now", SH_NAME), "base" => "sh_donate_now", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Donate Now', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title 1 ", SH_NAME), "param_name" => "title1", "description" => __("Enter title before Donate Now.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text 1 ", SH_NAME), "param_name" => "text1", "description" => __("Enter text before Donate Now.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title 2", SH_NAME), "param_name" => "title2", "description" => __("Enter title of Donate Now", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text 2", SH_NAME), "param_name" => "text2", "description" => __("Enter text of Donate Now", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Target Amount", SH_NAME), "param_name" => "target", "description" => __("Enter Target Amount.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Raised Amount", SH_NAME), "param_name" => "raised", "description" => __("Enter Raised Amount.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Dropdown", SH_NAME), "param_name" => "type", "description" => __("Dropdown For Links.", SH_NAME), 'value' => array(__('Paypal', SH_NAME) => 'paypal', __('Custom Link', SH_NAME) => 'custom')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Custom Link", SH_NAME), "param_name" => "custom_link", "description" => __("Enter Custom Link.", SH_NAME)))); $sh_sc['sh_projects'] = array("name" => __("Projects", SH_NAME), "base" => "sh_projects", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Project Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter title for Project Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text", SH_NAME), "param_name" => "text", "description" => __("Enter Text for Project Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("Number of Project to show.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_categories(array('taxonomy' => 'projects_category', 'hide_empty' => false))), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)), array("type" => "attach_images", "holder" => "div", "class" => "", "heading" => __('Background Image', SH_NAME), "param_name" => "bg", "description" => __('Upload Background Image.', SH_NAME)))); $sh_sc['sh_causes'] = array("name" => __("Causes", SH_NAME), "base" => "sh_causes", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Cause Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter title for Cause Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text", SH_NAME), "param_name" => "text", "description" => __("Enter Text for Cause Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("Number of Cause to show.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_categories(array('taxonomy' => 'causes_category', 'hide_empty' => false))), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)))); $sh_sc['sh_events'] = array("name" => __("Events", SH_NAME), "base" => "sh_events", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Events Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter title for Events Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("Number of Events to show.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_categories(array('taxonomy' => 'events_category', 'hide_empty' => false))), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)), array("type" => "attach_images", "holder" => "div", "class" => "", "heading" => __('Background Image', SH_NAME), "param_name" => "bg", "description" => __('Upload Background Image.', SH_NAME)))); $sh_sc['sh_gallery'] = array("name" => __("Gallery", SH_NAME), "base" => "sh_gallery", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Gallery Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter title for Gallery Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text", SH_NAME), "param_name" => "text", "description" => __("Enter Text for Gallery Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("Number of Images to show.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_posts_array('sh_gallery')), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)))); $sh_sc['sh_testimonials'] = array("name" => __("Testimonial", SH_NAME), "base" => "sh_testimonials", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Testimonial Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("Number of Testimonial to show.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_categories(array('taxonomy' => 'testimonials_category', 'hide_empty' => false))), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)))); $sh_sc['sh_donors'] = array("name" => __("Donors", SH_NAME), "base" => "sh_donors", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Donors Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter title for Donors Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text", SH_NAME), "param_name" => "text", "description" => __("Enter Text for Donors Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("Number of Donors to show.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_categories(array('taxonomy' => 'donors_category', 'hide_empty' => false))), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)), array("type" => "attach_images", "holder" => "div", "class" => "", "heading" => __('Background Image', SH_NAME), "param_name" => "bg", "description" => __('Upload Background Image for Donors Section.', SH_NAME)))); $sh_sc['sh_team'] = array("name" => __("Team", SH_NAME), "base" => "sh_team", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', 'description' => __('Team Section.', SH_NAME), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter title for Team Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text", SH_NAME), "param_name" => "text", "description" => __("Enter Text for Team Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number", SH_NAME), "param_name" => "number", "description" => __("How many members of Team to show?", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __('Category', SH_NAME), "param_name" => "cat", "value" => array_flip(sh_get_categories(array('taxonomy' => 'team_category', 'hide_empty' => false))), "description" => __('Choose Category.', SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order By", SH_NAME), "param_name" => "sort", 'value' => array_flip(array('date' => __('Date', SH_NAME), 'title' => __('Title', SH_NAME), 'name' => __('Name', SH_NAME), 'author' => __('Author', SH_NAME), 'comment_count' => __('Comment Count', SH_NAME), 'random' => __('Random', SH_NAME))), "description" => __("Enter the sorting order.", SH_NAME)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Order", SH_NAME), "param_name" => "order", 'value' => array('ASC' => __('Ascending', SH_NAME), 'DESC' => __('Descending', SH_NAME)), "description" => __("Enter the Order.", SH_NAME)))); $sh_sc['sh_newsletter'] = array("name" => __("Newsletter Bar", SH_NAME), "base" => "sh_newsletter", "class" => "", "category" => __('Rise', SH_NAME), "icon" => 'fa-briefcase', "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title", SH_NAME), "param_name" => "title", "description" => __("Enter Title for Newsletter Section.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Botton Text", SH_NAME), "param_name" => "button_text", "description" => __("Enter Botton Text.", SH_NAME)), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Feed ID", SH_NAME), "param_name" => "f_id", "description" => __("Enter Feed.", SH_NAME)))); $sh_sc = apply_filters('_sh_shortcodes_array', $sh_sc); return $sh_sc;