Please watch the video before proceeding to further installation"; echo "

Or click on How to create a responsive website page for full Documentation

"; echo ''; echo "

By clicking Install Now button; it will delete all your existing contents and will create a new website

"; echo "

'; $mailchimp_json = 'a:8:{s:5:"lists";a:1:{i:0;s:10:"82a177072e";}s:15:"required_fields";s:5:"EMAIL";s:12:"double_optin";s:1:"1";s:15:"update_existing";s:1:"0";s:17:"replace_interests";s:1:"1";s:18:"hide_after_success";s:1:"0";s:8:"redirect";s:0:"";s:3:"css";s:1:"0";}'; /*echo "
";
	print_r(unserialize($mailchimp_json));
	echo "
";*/ if($wpdb->get_row("SELECT post_title FROM $wpdb->posts WHERE post_title = '" . $mailchimp_title . "'", 'ARRAY_A')) { //echo $form_title.' already exists'; } else { $my_post = array( 'post_title' => wp_strip_all_tags($mailchimp_title), 'post_type' => 'mc4wp-form', 'post_content' => $mailchimp_content, 'post_status' => 'publish', 'post_author' => 1, ); // Insert the post into the database $post_id1 = wp_insert_post( $my_post ); update_post_meta($post_id1, '_mc4wp_settings', unserialize($mailchimp_json)); update_post_meta($post_id1, 'text_subscribed', 'Thank you, your sign-up request was successful! Please check your email inbox to confirm.'); update_post_meta($post_id1, 'text_invalid_email', 'Please provide a valid email address.'); update_post_meta($post_id1, 'text_required_field_missing', 'Please fill in the required fields.'); update_post_meta($post_id1, 'text_already_subscribed', 'Given email address is already subscribed, thank you!'); update_post_meta($post_id1, 'text_error', 'Oops. Something went wrong. Please try again later.'); update_post_meta($post_id1, 'text_unsubscribed', 'You were successfully unsubscribed.'); update_post_meta($post_id1, 'text_not_subscribed', 'Given email address is not subscribed.'); update_post_meta($post_id1, 'text_no_lists_selected', 'Please select at least one list.'); update_post_meta($post_id1, 'text_updated', 'Thank you, your records have been updated!'); $mailchimp_form_id = $post_id1; } $form_title = "Contact form for bisnezia"; $form_content = '[text* your-name class:form-control placeholder "Name"] [email* your-email class:form-control placeholder "Email"] [text your-subject class:form-control placeholder "Subject"] [textarea your-message class:form-control placeholder "Message"] [submit class:btn class:btn-lg class:btn-primary class:btn-block "Send"] 1 Bisnezia "[your-subject]" [your-name] abc@xyz.com From: [your-name] <[your-email]> Subject: [your-subject] Message Body: [your-message] -- This e-mail was sent from a contact form on Bisnezia (http://localhost/wordpress_bisnezia) Reply-To: [your-email] Bisnezia "[your-subject]" Bisnezia [your-email] Message Body: [your-message] -- This e-mail was sent from a contact form on Bisnezia (http://localhost/wordpress_bisnezia) Reply-To: abc@xyz.com Thank you for your message. It has been sent. There was an error trying to send your message. Please try again later. One or more fields have an error. Please check and try again. There was an error trying to send your message. Please try again later. You must accept the terms and conditions before sending your message. The field is required. The field is too long. The field is too short. The date format is incorrect. The date is before the earliest one allowed. The date is after the latest one allowed. There was an unknown error uploading the file. You are not allowed to upload files of this type. The file is too big. There was an error uploading the file. The number format is invalid. The number is smaller than the minimum allowed. The number is larger than the maximum allowed. The answer to the quiz is incorrect. Your entered code is incorrect. The e-mail address entered is invalid. The URL is invalid. The telephone number is invalid.'; $form = '[text* your-name class:form-control placeholder "Name"] [email* your-email class:form-control placeholder "Email"] [text your-subject class:form-control placeholder "Subject"] [textarea your-message class:form-control placeholder "Message"] [submit class:btn class:btn-lg class:btn-primary class:btn-block "Send"]'; $mail = 'a:9:{s:6:"active";b:1;s:7:"subject";s:25:"Bisnezia "[your-subject]"";s:6:"sender";s:25:"[your-name] ";s:9:"recipient";s:11:"abc@xyz.com";s:4:"body";s:182:"From: [your-name] <[your-email]> Subject: [your-subject] Message Body: [your-message] -- This e-mail was sent from a contact form on Bisnezia (http://localhost/wordpress_bisnezia)";s:18:"additional_headers";s:22:"Reply-To: [your-email]";s:11:"attachments";s:0:"";s:8:"use_html";b:0;s:13:"exclude_blank";b:0;}'; $mail_array = array( 'active' => 1, 'subject' => 'Bisnezia "[your-subject]"', 'sender' => '[your-name ', 'recipient' => 'abc@xyz.com', 'body' => 'From: [your-name] <[your-email]> Subject: [your-subject] Message Body: [your-message] -- This e-mail was sent from a contact form on Bisnezia (http://localhost/wordpress_bisnezia)', 'additional_headers' => 'Reply-To: [your-email]' ); $mail = serialize($mail_array); $mail_2 = 'a:9:{s:6:"active";b:0;s:7:"subject";s:25:"Bisnezia "[your-subject]"";s:6:"sender";s:22:"Bisnezia ";s:9:"recipient";s:12:"[your-email]";s:4:"body";s:124:"Message Body: [your-message] -- This e-mail was sent from a contact form on Bisnezia (http://localhost/wordpress_bisnezia)";s:18:"additional_headers";s:21:"Reply-To: abc@xyz.com";s:11:"attachments";s:0:"";s:8:"use_html";b:0;s:13:"exclude_blank";b:0;}'; $mail2_array = array( 'active' => 0, 'subject' => 'Bisnezia "[your-subject]"', 'sender' => '[your-name ', 'recipient' => 'abc@xyz.com', 'body' => 'From: [your-name] <[your-email]> Subject: [your-subject] Message Body: [your-message] -- This e-mail was sent from a contact form on Bisnezia (http://localhost/wordpress_bisnezia)', 'additional_headers' => 'Reply-To: [your-email]' ); $mail_2 = serialize($mail2_array); $messages = 'a:23:{s:12:"mail_sent_ok";s:45:"Thank you for your message. It has been sent.";s:12:"mail_sent_ng";s:71:"There was an error trying to send your message. Please try again later.";s:16:"validation_error";s:61:"One or more fields have an error. Please check and try again.";s:4:"spam";s:71:"There was an error trying to send your message. Please try again later.";s:12:"accept_terms";s:69:"You must accept the terms and conditions before sending your message.";s:16:"invalid_required";s:22:"The field is required.";s:16:"invalid_too_long";s:22:"The field is too long.";s:17:"invalid_too_short";s:23:"The field is too short.";s:12:"invalid_date";s:29:"The date format is incorrect.";s:14:"date_too_early";s:44:"The date is before the earliest one allowed.";s:13:"date_too_late";s:41:"The date is after the latest one allowed.";s:13:"upload_failed";s:46:"There was an unknown error uploading the file.";s:24:"upload_file_type_invalid";s:49:"You are not allowed to upload files of this type.";s:21:"upload_file_too_large";s:20:"The file is too big.";s:23:"upload_failed_php_error";s:38:"There was an error uploading the file.";s:14:"invalid_number";s:29:"The number format is invalid.";s:16:"number_too_small";s:47:"The number is smaller than the minimum allowed.";s:16:"number_too_large";s:46:"The number is larger than the maximum allowed.";s:23:"quiz_answer_not_correct";s:36:"The answer to the quiz is incorrect.";s:17:"captcha_not_match";s:31:"Your entered code is incorrect.";s:13:"invalid_email";s:38:"The e-mail address entered is invalid.";s:11:"invalid_url";s:19:"The URL is invalid.";s:11:"invalid_tel";s:32:"The telephone number is invalid.";}'; $additional_settings = ''; $locale = 'en_US'; if($wpdb->get_row("SELECT post_title FROM $wpdb->posts WHERE post_title = '" . $form_title . "'", 'ARRAY_A')) { //echo $form_title.' already exists'; } else { $my_post = array( 'post_title' => wp_strip_all_tags($form_title), 'post_type' => 'wpcf7_contact_form', 'post_content' => $form_content, 'post_status' => 'publish', 'post_author' => 1, ); // Insert the post into the database $post_id1 = wp_insert_post( $my_post ); update_post_meta($post_id1, '_form', $form); update_post_meta($post_id1, '_mail', unserialize($mail)); update_post_meta($post_id1, '_mail_2', unserialize($mail_2)); update_post_meta($post_id1, '_messages', unserialize($messages)); update_post_meta($post_id1, '_additional_settings', $additional_settings); update_post_meta($post_id1, '_locale', $locale); $contact_form_id = $post_id1; } //echo $mail."
"; //echo $messages."
"; //echo "
";
	//print_r(unserialize($mail));
	//print_r(unserialize($mail_2));
	//print_r(unserialize($messages));
	//print_r(unserialize(serialize($my_post = array('post_title'    => wp_strip_all_tags($form_title), 'post_type'      => 'wpcf7_contact_form','post_content'  => $form_content,				'post_status'   => 'publish',				'post_author'   => 1,			))			));
	//echo "
"; //exit; $bisnezia_base_url = site_url()."/wp-content/themes/bisnezia-free"; $post_image = bisnezia_image_upload($bisnezia_base_url."/bisnezia_data/453x550.png"); $background_image = bisnezia_image_upload($bisnezia_base_url."/bisnezia_data/1920x1200.png"); $services_image = bisnezia_image_upload($bisnezia_base_url."/bisnezia_data/220x220.png"); $logo_image = bisnezia_image_upload($bisnezia_base_url."/bisnezia_data/bisnezia_logo.png"); $male_avatar = bisnezia_image_upload($bisnezia_base_url."/bisnezia_data/male-avatar.png"); //echo $post_image."
"; //echo $background_image."
"; $portfolio_data[] = array( "title" => "Web Development Project", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Web"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Web Design Project", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Design"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Android Application Project", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Android"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "IOS Application Project", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("IOS"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Worldclass theme edit", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Web"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Eyewear website project", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Web", "Design"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Fashion website development", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Design"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Shoes website development", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Web"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "The golden Compass", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Android", "IOS"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Bollywood Entertainment", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("IOS"), "thumbnail"=> $post_image['id'] ); $portfolio_data[] = array( "title" => "Hollywood Entertainment", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "category" => array("Android"), "thumbnail"=> $post_image['id'] ); $team_data[] = array( "title" => "Suhail Ahmad", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Zubair Ahmad", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Shakil Ahmad", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Muhammad Ismail", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Sajjad Ghani", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Imran Ghani", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Muhammad Arsalan", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $team_data[] = array( "title" => "Isfaq Ahmad", "description" => "This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. This is the demo description for this portfolio. ", "thumbnail"=> $male_avatar['id'], "designation" => "Director", "facebook_link"=>"#facebook", "linkedin_link"=>"#linkedin", "twitter_link"=>"#twitter", "instagram_link"=>"#instagram" ); $blog_data[] = array( "title" => "This is first blog title", "description" => "This is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. ", "thumbnail"=> $background_image['id'] ); $blog_data[] = array( "title" => "This is Second blog title", "description" => "This is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. ", "thumbnail"=> $background_image['id'] ); $blog_data[] = array( "title" => "This is Third blog title", "description" => "This is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. is is the demo description for this Blog. ", "thumbnail"=> $background_image['id'] ); foreach($blog_data as $one_blog){ if($wpdb->get_row("SELECT post_title FROM $wpdb->posts WHERE post_title = '" . $one_blog['title'] . "'", 'ARRAY_A')) { //echo $one_blog['title'].' already exists'; } else { $my_post = array( 'post_title' => wp_strip_all_tags($one_blog['title']), 'post_type' => 'post', 'post_content' => $one_blog['description'], 'post_status' => 'publish', 'post_author' => 1, ); // Insert the post into the database $post_id1 = wp_insert_post( $my_post ); set_post_thumbnail( $post_id1, $one_blog['thumbnail'] ); } } foreach($portfolio_data as $one_portfolio){ $cat_array = array(); foreach($one_portfolio['category'] as $one_cat){ $term = term_exists($one_cat, 'portfolio-category'); if ($term !== 0 && $term !== NULL) { $cat_array[] = intval($term['term_id']); $all_portfolio_cats[] = intval($term['term_id']); } else { $cat_defaults = array( 'cat_name' => $one_cat, 'category_description' => 'portfolio category', 'category_nicename' => strtolower(str_replace(" ", "-")), 'category_parent' => 0, 'taxonomy' => 'portfolio-category' ); $cat_id = wp_insert_category($cat_defaults); $cat_array[] = intval($cat_id); $all_portfolio_cats[] = intval($cat_id); } } if($wpdb->get_row("SELECT post_title FROM $wpdb->posts WHERE post_title = '" . $one_portfolio['title'] . "'", 'ARRAY_A')) { //echo $one_portfolio['title'].' already exists'; } else { $my_post = array( 'post_title' => wp_strip_all_tags($one_portfolio['title']), 'post_type' => 'portfolio', 'post_content' => $one_portfolio['description'], 'post_status' => 'publish', 'post_author' => 1, 'post_category' => $one_portfolio['category'] ); // Insert the post into the database $post_id1 = wp_insert_post( $my_post ); set_post_thumbnail( $post_id1, $one_portfolio['thumbnail'] ); wp_set_object_terms( $post_id1, $cat_array, 'portfolio-category', true ); } } foreach($team_data as $one_team){ if($wpdb->get_row("SELECT post_title FROM $wpdb->posts WHERE post_title = '" . $one_team['title'] . "'", 'ARRAY_A')) { //echo $one_team['title'].' already exists'; } else { $my_post = array( 'post_title' => wp_strip_all_tags($one_team['title']), 'post_type' => 'team_manager', 'post_content' => $one_team['description'], 'post_status' => 'publish', 'post_author' => 1, ); // Insert the post into the database $post_id1 = wp_insert_post( $my_post ); set_post_thumbnail( $post_id1, $one_team['thumbnail'] ); update_post_meta($post_id1, 'tm_jtitle', $one_team['designation']); update_post_meta($post_id1, 'tm_flink', $one_team['facebook_link']); update_post_meta($post_id1, 'tm_tlink', $one_team['twitter_link']); update_post_meta($post_id1, 'tm_llink', $one_team['linkedin_link']); update_post_meta($post_id1, 'tm_instagram', $one_team['instagram_link']); $all_team[] = $post_id1; } } $redux_data_array = array ( 'last_tab' => 1, 'wct-logo-image' => array ( 'url' => $logo_image['url'], 'id' => $logo_image['id'], 'height' => 143, 'width' => 442, 'thumbnail' => str_replace(array(".png", ".jpg"), array("-150x143.png", "-150x143.jpg"), $logo_image['url']), ), 'wct-favicon-image' => array ( 'url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '', ), 'wct-logo-alt-text' => 'Logo Alt Text', 'wct-menu-font-color' => array ( 'color' => '#ffffff', 'alpha' => 1, 'rgba' => 'rgba(255,255,255,1)', ), 'wct-menu-font-color-inverse' => array ( 'color' => '#000000', 'alpha' => 1, 'rgba' => 'rgba(0,0,0,1)', ), 'wct-menu-inverse-background' => array ( 'color' => '#ffffff', 'alpha' => 1, 'rgba' => 'rgba(255,255,255,1)', ), 'wct-menu-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '18px', 'line-height' => '20px', 'color' => '#ffffff', ), 'wct-slides' => array ( '0' => array ( 'title' => 'Fresh Bubba', 'description' => 'This is the demo text for this slider', 'url' => 'http://example.com', 'sort' => 0, 'attachment_id' => $post_image['id'], 'thumb' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $post_image['url']), 'image' => $post_image['url'], 'height' => 550, 'width' => 453, ), '1' => array ( 'title' => 'Fresh Bubba', 'description' => 'This is the demo text for this slider', 'url' => 'http://example.com', 'sort' => 1, 'attachment_id' => $post_image['id'], 'thumb' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $post_image['url']), 'image' => $post_image['url'], 'height' => 550, 'width' => 453, ), '2' => array ( 'title' => 'Fresh Bubba', 'description' => 'This is the demo text for this slider', 'url' => 'http://example.com', 'sort' => 2, 'attachment_id' => $post_image['id'], 'thumb' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $post_image['url']), 'image' => $post_image['url'], 'height' => 550, 'width' => 453, ), '3' => array ( 'title' => 'Fresh Bubba', 'description' => 'This is the demo text for this slider', 'url' => 'http://example.com', 'sort' => 3, 'attachment_id' => $post_image['id'], 'thumb' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $post_image['url']), 'image' => $post_image['url'], 'height' => 550, 'width' => 453, ), '4' => array ( 'title' => 'Fresh Bubba', 'description' => 'This is the demo text for this slider', 'url' => 'http://example.com', 'sort' => 4, 'attachment_id' => $post_image['id'], 'thumb' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $post_image['url']), 'image' => $post_image['url'], 'height' => 550, 'width' => 453, ), ), 'wct-large-screen-slides' => 3, 'wct-desktop-screen-slides' => 3, 'wct-desktop-small-screen-slides' => 2, 'wct-tablet-screen-slides' => 1, 'wct-slider-speed' => 2000, 'wct-slider-fade-background-color' => '#000000', 'wct-slider-titles-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '25px', 'line-height' => '20px', 'color' => '#ffffff', ), 'wct-slider-desc-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '18px', 'line-height' => '20px', 'color' => '#ffffff', ), 'wct-services-enable' => 1, 'wct-service-parallex' => array ( 'url' => $background_image['url'], 'id' => $background_image['id'], 'height' => 1200, 'width' => 1920, 'thumbnail' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $background_image['url']), ), 'wct-services-background-color' => '#202626', 'wct-services-circles-color' => '#202626', 'wct-services-title' => 'Services', 'wct-services-title-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '35px', 'line-height' => '20px', 'color' => '#ffffff', ), 'wct-services-text-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '19px', 'line-height' => '25px', 'color' => '#ffffff', ), 'wct-services-slug' => 'services', 'wct-service-image-1' => array ( 'url' => $services_image['url'], 'id' => $services_image['id'], 'height' => 220, 'width' => 220, 'thumbnail' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $services_image['url']), ), 'wct-services-1-title-1' => 'Stay Foxy', 'wct-services-1-title-2' => 'by Arnel', 'wct-services-1-title-3' => 'http://www.google.com', 'wct-services-1-description' => 'Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.', 'wct-service-image-2' => array ( 'url' => $services_image['url'], 'id' => $services_image['id'], 'height' => 220, 'width' => 220, 'thumbnail' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $services_image['url']), ), 'wct-services-2-title-1' => 'Stay Foxy', 'wct-services-2-title-2' => 'by Arnel', 'wct-services-2-title-3' => 'http://www.google.com', 'wct-services-2-description' => 'Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.', 'wct-service-image-3' => array ( 'url' => $services_image['url'], 'id' => $services_image['id'], 'height' => 220, 'width' => 220, 'thumbnail' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $services_image['url']), ), 'wct-services-3-title-1' => 'Stay Foxy', 'wct-services-3-title-2' => 'by Arnel', 'wct-services-3-title-3' => 'http://www.google.com', 'wct-services-3-description' => 'Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.', 'wct-subscribe-enable' => 1, 'wct-subscribe-parallex' => array ( 'url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '', ), 'wct-subscribe-background-color' => '#202626', 'wct-subscribe-title' => 'Subscribe Now', 'wct-subscribe-slug' => 'subscribe', 'wct-subscribe-subtitle' => 'The Subscribe section is cool', 'wct-subscribe-shorttag' => '[mc4wp_form id="'.$mailchimp_form_id.'"]', 'wct-about-enable' => 1, 'wct-about-parallex' => array ( 'url' => $background_image['url'], 'id' => $background_image['id'], 'height' => 1200, 'width' => 1920, 'thumbnail' => str_replace(array(".png", ".jpg"), array("-150x150.png", "-150x150.jpg"), $background_image['url']), ), 'wct-about-background-color' => '#202626', 'wct-about-title' => 'About Us', 'wct-about-title-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '35px', 'line-height' => '25px', 'color' => '#ffffff', ), 'wct-about-text-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '20px', 'line-height' => '25px', 'color' => '#ffffff', ), 'wct-about-slug' => 'aboutus', 'wct-about-video-frame' => '', 'wct-about-subtitle' => 'The about us section is cool', 'wct-about-short-description' => 'This section contains introduction and other information regarding the company, as many information as we can add in this section.', 'wct-about-bullets' => array ( '0' => 'This is point one', '1' => 'We are here to serve you better.', '2' => 'This is our best wordpress theme for almost anything', '3' => 'Enjoy best service ever', ), 'wct-portfolio-enable' => 1, 'wct-portfolio-parallex' => array ( 'url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '', ), 'wct-portfolio-background-color' => '#ffffff', 'wct-portfolio-title' => 'Live Portfolio', 'wct-portfolio-title-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '35px', 'line-height' => '25px', 'color' => '#202626', ), 'wct-portfolio-slug' => 'portfolio', 'wct-portfolio-subtitle' => 'The Portfolio section is cool', 'wct-portfolio-categories' => array ( /*'0' => 35, '1' => 34, '2' => 36, '3' => 33,*/ ), 'wct-portfolio-order' => 2, 'wct-blogs-enable' => 1, 'wct-blogs-parallex' => array ( 'url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '', ), 'wct-blogs-background-color' => '#202626', 'wct-blogs-title' => 'Blogs', 'wct-blogs-title-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '35px', 'line-height' => '25px', 'color' => '#ffffff', ), 'wct-blogs-slug' => 'blogs', 'wct-blogs-subtitle' => 'The Blogs section is cool', 'wct-blogs-categories' => array ( '0' => 1, ), 'wct-blogs-order' => 2, 'wct-blog-titles-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '50px', 'line-height' => '50px', 'color' => '#ffffff', ), 'wct-blog-descriptions-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '21px', 'line-height' => '30px', 'color' => '#ffffff', ), 'wct-blogs-read-more-color' => '#2e6da4', 'wct-team-enable' => 1, 'wct-team-parallex' => array ( 'url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '', ), 'wct-team-background-color' => '#ffffff', 'wct-team-title' => 'Team Members', 'wct-team-title-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '35px', 'line-height' => '25px', 'color' => '#202626', ), 'wct-team-slug' => 'team', 'wct-team-subtitle' => 'The Team section is cool', 'wct-team-categories' => array ( /*'0' => 237, '1' => 238, '2' => 239, '3' => 240, '4' => 241, '5' => 242, '6' => 243, '7' => 244,*/ ), 'wct-team-order' => 2, 'wct-contact-enable' => 1, 'wct-contact-parallex' => array ( 'url' => '', 'id' => '', 'height' => '', 'width' => '', 'thumbnail' => '', ), 'wct-contact-background-color' => '#202626', 'wct-contact-title' => 'Contact Us', 'wct-contact-title-font' => array ( 'font-family' => '', 'font-options' => '', 'google' => 1, 'font-backup' => '', 'font-weight' => '', 'font-style' => '', 'subsets' => '', 'text-align' => '', 'font-size' => '35px', 'line-height' => '25px', 'color' => '#ffffff', ), 'wct-contact-slug' => 'contact', 'wct-contact-subtitle' => 'The Contact section is cool', 'wct-contact-left-box' => '[contact-form-7 id="'.$contact_form_id.'" title="Contact form for bisnezia"]', 'wct-contact-right-box' => '', 'wct-contact-street' => '402 N State Home Rd Monroe Township, NJ 08831', 'wct-contact-email' => 'suhail_ahmad64@yahoo.com', 'wct-contact-phone' => '0345-9302920', 'wct-contact-copyright' => 'Copyright © 2017 Bisnezia.com', 'redux_options_object' => '', 'redux_import_export' => '', 'redux-backup' => 1, ); $all_portfolio_cats = array_unique($all_portfolio_cats); foreach($all_portfolio_cats as $one_cat){ $redux_data_array['wct-portfolio-categories'][] = $one_cat; } foreach($all_team as $one_team){ $redux_data_array['wct-team-categories'][] = $one_team; } //echo "
";
	print_r(json_encode($redux_data_array));
	//echo "
"; die(); } function bisnezia_image_upload($url){ $image_id = media_sideload_image($url, 0, 'attached image'); //echo $image_id; //print_r($image_id); $img1 = explode("src='", $image_id); $img2 = explode("'", $img1[1]); $img_image = $img2[0]; // Get the Attachment ID $attachment_id = get_attachment_id_from_src ($img_image); $return_array['url'] = $img_image; $return_array['id'] = $attachment_id; return $return_array; } /*function upload_image_as_attachment ($image_url, $post_id, $title) { $img_name = basename ($image_url); $local_url = wp_get_upload_dir().'/'.$img_name; if(file_exists($local_url)){ $attachment_url = $local_url; $attachment_id = get_attachment_id_from_src ($attachment_url); $return_array['url'] = $attachment_url; $return_array['id'] = $attachment_id; return $return_array; } else { $attachment_src = media_sideload_image( $image_url, $post_id, $title, 'src' ); //$id = attachment_url_to_postid($attachment_src); $img1 = explode("src='", $attachment_src); $img2 = explode("'", $img1[1]); $img_image = $img2[0]; // Get the Attachment ID $attachment_id = get_attachment_id_from_src ($img_image); $return_array['url'] = $img_image; $return_array['id'] = $attachment_id; return $return_array; } }*/ function get_attachment_id_from_src ($image_src) { global $wpdb; $query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$image_src'"; $id = $wpdb->get_var($query); return $id; } add_action( 'admin_footer', 'demo_contents_ajax_call' ); // Write our JS below here function demo_contents_ajax_call() { ?> ?>