コード例 #1
1
ファイル: data.php プロジェクト: woocommerce/woocommerce
 /**
  * Test product setters and getters
  * @since 2.7.0
  */
 public function test_product_getters_and_setters()
 {
     global $wpdb;
     $attributes = array();
     $attribute = new WC_Product_Attribute();
     $attribute->set_id(0);
     $attribute->set_name('Test Attribute');
     $attribute->set_options(array('Fish', 'Fingers'));
     $attribute->set_position(0);
     $attribute->set_visible(true);
     $attribute->set_variation(false);
     $attributes['test-attribute'] = $attribute;
     $getters_and_setters = array('name' => 'Test', 'slug' => 'test', 'status' => 'publish', 'catalog_visibility' => 'search', 'featured' => false, 'description' => 'Hello world', 'short_description' => 'hello', 'sku' => 'TEST SKU', 'regular_price' => 15.0, 'sale_price' => 10.0, 'date_on_sale_from' => '1475798400', 'date_on_sale_to' => '1477267200', 'total_sales' => 20, 'tax_status' => 'none', 'tax_class' => '', 'manage_stock' => true, 'stock_quantity' => 10, 'stock_status' => 'instock', 'backorders' => 'notify', 'sold_individually' => false, 'weight' => 100, 'length' => 10, 'width' => 10, 'height' => 10, 'upsell_ids' => array(2, 3), 'cross_sell_ids' => array(4, 5), 'parent_id' => 0, 'reviews_allowed' => true, 'default_attributes' => array(), 'purchase_note' => 'A note', 'menu_order' => 2, 'gallery_image_ids' => array(), 'download_expiry' => -1, 'download_limit' => 5, 'attributes' => $attributes);
     $product = new WC_Product();
     foreach ($getters_and_setters as $function => $value) {
         $product->{"set_{$function}"}($value);
     }
     $product->save();
     $product = new WC_Product_Simple($product->get_id());
     foreach ($getters_and_setters as $function => $value) {
         $this->assertEquals($value, $product->{"get_{$function}"}(), $function);
     }
     $image_url = media_sideload_image("https://cldup.com/Dr1Bczxq4q.png", $product->get_id(), '', 'src');
     $image_id = $wpdb->get_col($wpdb->prepare("SELECT ID FROM {$wpdb->posts} WHERE guid='%s';", $image_url));
     $product->set_image_id($image_id[0]);
     $product->save();
     $this->assertEquals($image_id[0], $product->get_image_id());
 }
コード例 #2
0
 /**
  * Get the source's images and save them locally, for posterity, unless we can't.
  *
  * @since 4.2.0
  * @access public
  *
  * @param int    $post_id Post ID.
  * @param string $content Optional. Current expected markup for Press This. Expects slashed. Default empty.
  * @return string New markup with old image URLs replaced with the local attachment ones if swapped.
  */
 public function side_load_images($post_id, $content = '')
 {
     $content = wp_unslash($content);
     if (preg_match_all('/<img [^>]+>/', $content, $matches) && current_user_can('upload_files')) {
         foreach ((array) $matches[0] as $image) {
             // This is inserted from our JS so HTML attributes should always be in double quotes.
             if (!preg_match('/src="([^"]+)"/', $image, $url_matches)) {
                 continue;
             }
             $image_src = $url_matches[1];
             // Don't try to sideload a file without a file extension, leads to WP upload error.
             if (!preg_match('/[^\\?]+\\.(?:jpe?g|jpe|gif|png)(?:\\?|$)/i', $image_src)) {
                 continue;
             }
             // Sideload image, which gives us a new image src.
             $new_src = media_sideload_image($image_src, $post_id, null, 'src');
             if (!is_wp_error($new_src)) {
                 // Replace the POSTED content <img> with correct uploaded ones.
                 // Need to do it in two steps so we don't replace links to the original image if any.
                 $new_image = str_replace($image_src, $new_src, $image);
                 $content = str_replace($image, $new_image, $content);
             }
         }
     }
     // Edxpected slashed
     return wp_slash($content);
 }
コード例 #3
0
function press_it() {
	// define some basic variables
	$quick['post_status'] = isset($_REQUEST['publish']) ? 'publish' : 'draft';
	$quick['post_category'] = $_REQUEST['post_category'];
	$quick['tags_input'] = $_REQUEST['tags_input'];
	$quick['post_title'] = $_REQUEST['post_title'];
	$quick['post_content'] = '';

	// insert the post with nothing in it, to get an ID
	$post_ID = wp_insert_post($quick, true);

	$content = '';
	switch ( $_REQUEST['post_type'] ) {
		case 'text':
		case 'quote':
			$content .= $_REQUEST['content'];
			break;

		case 'photo':
			$content = $_REQUEST['content'];

			foreach( (array) $_REQUEST['photo_src'] as $key => $image) {
				
				// see if files exist in content - we don't want to upload non-used selected files.
				if( strpos($_REQUEST['content'], $image) !== false ) {
					$upload = media_sideload_image($image, $post_ID, $_REQUEST['photo_description'][$key]);
					 
					// Replace the POSTED content <img> with correct uploaded ones.
					// escape quote for matching
					$quoted = preg_quote2($image);
					if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content);
				}
			}

			break;

		case "video":
			if($_REQUEST['embed_code']) 
				$content .= $_REQUEST['embed_code']."\n\n";
			$content .= $_REQUEST['content'];
			break;
		}
	// set the post_content
	$quick['post_content'] = $content;

	// error handling for $post
	if ( is_wp_error($post_ID)) {
		wp_die($id);
		wp_delete_post($post_ID);
	// error handling for media_sideload
	} elseif ( is_wp_error($upload)) {
		wp_die($upload);
		wp_delete_post($post_ID);
	} else {
		$quick['ID'] = $post_ID;
		wp_update_post($quick);
	}
	return $post_ID;
}
コード例 #4
0
 private function __copyFiles($szFileName)
 {
     $upload_dir = wp_upload_dir();
     $_szFileName = $szFileName;
     if (!$this->__checkRecursiveFileExists($szFileName, $upload_dir["basedir"])) {
         // $filename should be the path to a file in the upload directory.
         $szPath = plugins_url() . "/" . $this->_szPluginDir . "/images/" . $_szFileName;
         media_sideload_image($szPath, 0);
     }
 }
コード例 #5
0
function fpd_admin_upload_image_to_wp($name, $base64_image, $add_to_library = true)
{
    //upload to wordpress
    $upload = wp_upload_bits($name, null, base64_decode($base64_image));
    //add to media library
    if ($add_to_library && isset($upload['url'])) {
        media_sideload_image($upload['url'], 0);
    }
    return $upload['error'] === false ? $upload['url'] : false;
}
コード例 #6
0
/**
 * Press It form handler.
 *
 * @package WordPress
 * @subpackage Press_This
 * @since 2.6.0
 *
 * @return int Post ID
 */
function press_it() {

	$post = get_default_post_to_edit();
	$post = get_object_vars($post);
	$post_ID = $post['ID'] = (int) $_POST['post_id'];

	if ( !current_user_can('edit_post', $post_ID) )
		wp_die(__('You are not allowed to edit this post.'));

	$post['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : '';
	$post['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : '';
	$post['post_title'] = isset($_POST['title']) ? $_POST['title'] : '';
	$content = isset($_POST['content']) ? $_POST['content'] : '';

	$upload = false;
	if ( !empty($_POST['photo_src']) && current_user_can('upload_files') ) {
		foreach( (array) $_POST['photo_src'] as $key => $image) {
			// see if files exist in content - we don't want to upload non-used selected files.
			if ( strpos($_POST['content'], htmlspecialchars($image)) !== false ) {
				$desc = isset($_POST['photo_description'][$key]) ? $_POST['photo_description'][$key] : '';
				$upload = media_sideload_image($image, $post_ID, $desc);

				// Replace the POSTED content <img> with correct uploaded ones. Regex contains fix for Magic Quotes
				if ( !is_wp_error($upload) )
					$content = preg_replace('/<img ([^>]*)src=\\\?(\"|\')'.preg_quote(htmlspecialchars($image), '/').'\\\?(\2)([^>\/]*)\/*>/is', $upload, $content);
			}
		}
	}
	// set the post_content and status
	$post['post_content'] = $content;
	if ( isset( $_POST['publish'] ) && current_user_can( 'publish_posts' ) )
		$post['post_status'] = 'publish';
	elseif ( isset( $_POST['review'] ) )
		$post['post_status'] = 'pending';
	else
		$post['post_status'] = 'draft';

	// error handling for media_sideload
	if ( is_wp_error($upload) ) {
		wp_delete_post($post_ID);
		wp_die($upload);
	} else {
		// Post formats
		if ( isset( $_POST['post_format'] ) ) {
			if ( current_theme_supports( 'post-formats', $_POST['post_format'] ) )
				set_post_format( $post_ID, $_POST['post_format'] );
			elseif ( '0' == $_POST['post_format'] )
				set_post_format( $post_ID, false );
		}

		$post_ID = wp_update_post($post);
	}

	return $post_ID;
}
コード例 #7
0
/**
 * Press It form handler.
 *
 * @package WordPress
 * @subpackage Press_This
 * @since 2.6.0
 *
 * @return int Post ID
 */
function press_it()
{
    // define some basic variables
    $quick = array();
    $quick['post_status'] = 'draft';
    // set as draft first
    $quick['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : null;
    $quick['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : null;
    $quick['post_title'] = trim($_POST['title']) != '' ? $_POST['title'] : '  ';
    $quick['post_content'] = isset($_POST['post_content']) ? $_POST['post_content'] : '';
    // insert the post with nothing in it, to get an ID
    $post_ID = wp_insert_post($quick, true);
    if (is_wp_error($post_ID)) {
        wp_die($post_ID);
    }
    $content = isset($_POST['content']) ? $_POST['content'] : '';
    $upload = false;
    if (!empty($_POST['photo_src']) && current_user_can('upload_files')) {
        foreach ((array) $_POST['photo_src'] as $key => $image) {
            // see if files exist in content - we don't want to upload non-used selected files.
            if (strpos($_POST['content'], htmlspecialchars($image)) !== false) {
                $desc = isset($_POST['photo_description'][$key]) ? $_POST['photo_description'][$key] : '';
                $upload = media_sideload_image($image, $post_ID, $desc);
                // Replace the POSTED content <img> with correct uploaded ones. Regex contains fix for Magic Quotes
                if (!is_wp_error($upload)) {
                    $content = preg_replace('/<img ([^>]*)src=\\\\?(\\"|\')' . preg_quote(htmlspecialchars($image), '/') . '\\\\?(\\2)([^>\\/]*)\\/*>/is', $upload, $content);
                }
            }
        }
    }
    // set the post_content and status
    $quick['post_status'] = isset($_POST['publish']) ? 'publish' : 'draft';
    $quick['post_content'] = $content;
    // error handling for media_sideload
    if (is_wp_error($upload)) {
        wp_delete_post($post_ID);
        wp_die($upload);
    } else {
        // Post formats
        if (current_theme_supports('post-formats') && isset($_POST['post_format'])) {
            $post_formats = get_theme_support('post-formats');
            if (is_array($post_formats)) {
                $post_formats = $post_formats[0];
                if (in_array($_POST['post_format'], $post_formats)) {
                    set_post_format($post_ID, $_POST['post_format']);
                } elseif ('0' == $_POST['post_format']) {
                    set_post_format($post_ID, false);
                }
            }
        }
        $quick['ID'] = $post_ID;
        wp_update_post($quick);
    }
    return $post_ID;
}
コード例 #8
0
/**
 * Press It form handler.
 *
 * @package WordPress
 * @subpackage Press_This
 * @since 2.6.0
 *
 * @return int Post ID
 */
function press_it()
{
    // define some basic variables
    $quick['post_status'] = 'draft';
    // set as draft first
    $quick['post_category'] = isset($_REQUEST['post_category']) ? $_REQUEST['post_category'] : null;
    $quick['tax_input'] = isset($_REQUEST['tax_input']) ? $_REQUEST['tax_input'] : '';
    $quick['post_title'] = isset($_REQUEST['title']) ? $_REQUEST['title'] : '';
    $quick['post_content'] = '';
    // insert the post with nothing in it, to get an ID
    $post_ID = wp_insert_post($quick, true);
    $content = isset($_REQUEST['content']) ? $_REQUEST['content'] : '';
    $upload = false;
    if (!empty($_REQUEST['photo_src']) && current_user_can('upload_files')) {
        foreach ((array) $_REQUEST['photo_src'] as $key => $image) {
            // see if files exist in content - we don't want to upload non-used selected files.
            if (strpos($_REQUEST['content'], $image) !== false) {
                $desc = isset($_REQUEST['photo_description'][$key]) ? $_REQUEST['photo_description'][$key] : '';
                $upload = media_sideload_image($image, $post_ID, $desc);
                // Replace the POSTED content <img> with correct uploaded ones. Regex contains fix for Magic Quotes
                if (!is_wp_error($upload)) {
                    $content = preg_replace('/<img ([^>]*)src=\\\\?(\\"|\')' . preg_quote($image, '/') . '\\\\?(\\2)([^>\\/]*)\\/*>/is', $upload, $content);
                }
            }
        }
    }
    // set the post_content and status
    $quick['post_status'] = isset($_REQUEST['publish']) ? 'publish' : 'draft';
    $quick['post_content'] = $content;
    $quick['post_title'] = $_REQUEST['title'];
    $url = $_REQUEST['URL'];
    $quick['ID'] = $post_ID;
    wp_update_post($quick);
    if ($url && $url != "External URL (optional)") {
        add_post_meta($post_ID, 'linked_list_url', $url, false);
    }
    // error handling for $post
    if (is_wp_error($post_ID)) {
        wp_die($id);
        wp_delete_post($post_ID);
        // error handling for media_sideload
    } elseif (is_wp_error($upload)) {
        wp_die($upload);
        wp_delete_post($post_ID);
    } else {
        $quick['ID'] = $post_ID;
        wp_update_post($quick);
    }
    return $post_ID;
}
コード例 #9
0
ファイル: cacheimages.php プロジェクト: hscale/webento
 function grab_image_from_url($image, $post_ID)
 {
     // Set a big timelimt for processing as we are pulling in potentially big files.
     set_time_limit(600);
     // get the image
     $img = media_sideload_image($image, $post_ID);
     if (!is_wp_error($img)) {
         preg_match_all('|<img.*?src=[\'"](.*?)[\'"].*?>|i', $img, $newimage);
         if (!empty($newimage[1][0])) {
             $this->db->query($this->db->prepare("UPDATE {$this->db->posts} SET post_content = REPLACE(post_content, %s, %s);", $image, $newimage[1][0]));
         }
     }
     return $image;
 }
コード例 #10
0
 /**
  * Imports galleries from WP Flickr Background
  *
  * @param object $main The object of the Main class
  */
 public static function doImport(Main $main)
 {
     global $wpdb;
     $options = get_option(static::WP_OPTION_NAME);
     $galleries = new Galleries($main);
     $images = new Images($main);
     // Turn how many gallery's we process into chunks for progress bar
     $chunks = ceil(100 / count($options['galleries']) - 1);
     $chunk = 0;
     foreach ($options['galleries'] as $wpfbg_gallery) {
         $image_set = sprintf(__('%s (Imported)', $main->getName()), $wpfbg_gallery['name']);
         $gallery_id = $galleries->save(0, $image_set, $wpfbg_gallery['desc']);
         if (!$gallery_id) {
             $main->addDelayedNotice(sprintf(__('Unable to create Image Set <strong>%s</strong>', $main->getName()), $image_set), true);
             continue;
         }
         // If we have custom CSS, add this as a meta to the gallery
         if (!empty($wpfbg_gallery['customcss'])) {
             add_post_meta($gallery_id, \Myatu\WordPress\BackgroundManager\Meta\Stylesheet::MT_CSS, $wpfbg_gallery['customcss'], true);
         }
         foreach ($wpfbg_gallery['photos'] as $photo) {
             if ($photo['id'][0] != 'L') {
                 // Images that do not start with an "L" are only available via a remote URL.
                 $r = media_sideload_image($photo['background'], $gallery_id);
                 if (is_wp_error($r)) {
                     $main->addDelayedNotice(sprintf(__('Unable to import image <em>%s</em> into Image Set <strong>%s</strong>', $main->getName()), $photo['background'], $image_set), true);
                 }
             } else {
                 // Strip any -DDDxDDD from the filename within the URL
                 $background_image_url = preg_replace('#^(.*?)(-\\d{2,4}x\\d{2,4}(?=\\.))(.*)$#', '$1$3', $photo['background']);
                 // Fetch the image ID from the posts/attachments
                 $background_image_id = $wpdb->get_var($wpdb->prepare("SELECT `ID` FROM `{$wpdb->posts}` WHERE `guid` = %s", $background_image_url));
                 // Change the parent of the image attachment to that of the gallery
                 if ($background_image_id && ($image = get_post($background_image_id))) {
                     $r = wp_insert_attachment($image, false, $gallery_id);
                 }
                 if (!$background_image_id || !$image || !$r) {
                     $main->addDelayedNotice(sprintf(__('Unable to import image <em>%s</em> into Image Set <strong>%s</strong>', $main->getName()), $background_image_url, $image_set), true);
                 }
             }
         }
         $chunk++;
         static::setProgress($chunk * $chunks);
     }
     // And voila!
     $main->addDelayedNotice(__('Completed import from WP Flickr Background', $main->getName()));
     unset($galleries);
     unset($images);
 }
コード例 #11
0
 public function check_recipe_demo()
 {
     if (isset($_GET['wpurp_reset_demo_recipe'])) {
         update_option('wpurp_demo_recipe', false);
         WPUltimateRecipe::get()->helper('notices')->add_admin_notice('<strong>WP Ultimate Recipe</strong> The Recipe Demo has been reset');
     }
     if (!get_option('wpurp_demo_recipe', false)) {
         // Demo Recipe content
         $_POST = array('recipe_meta_box_nonce' => wp_create_nonce('recipe'), 'recipe_description' => __('This must be the best demo recipe I have ever seen. I could eat this every single day.', 'wp-ultimate-recipe'), 'recipe_rating' => '4', 'recipe_servings' => '2', 'recipe_servings_type' => __('people', 'wp-ultimate-recipe'), 'recipe_prep_time' => '10', 'recipe_prep_time_text' => __('minutes', 'wp-ultimate-recipe'), 'recipe_cook_time' => '20', 'recipe_cook_time_text' => __('minutes', 'wp-ultimate-recipe'), 'recipe_passive_time' => '1', 'recipe_passive_time_text' => __('hour', 'wp-ultimate-recipe'), 'recipe_ingredients' => array(array('group' => '', 'amount' => '175', 'unit' => 'g', 'ingredient' => 'tagliatelle', 'notes' => ''), array('group' => '', 'amount' => '200', 'unit' => 'g', 'ingredient' => 'bacon', 'notes' => 'tiny strips'), array('group' => 'Fresh Pesto', 'amount' => '1', 'unit' => 'clove', 'ingredient' => 'garlic', 'notes' => ''), array('group' => 'Fresh Pesto', 'amount' => '12.5', 'unit' => 'g', 'ingredient' => 'pine kernels', 'notes' => ''), array('group' => 'Fresh Pesto', 'amount' => '50', 'unit' => 'g', 'ingredient' => 'basil leaves', 'notes' => ''), array('group' => 'Fresh Pesto', 'amount' => '6.25', 'unit' => 'cl', 'ingredient' => 'olive oil', 'notes' => 'extra virgin'), array('group' => 'Fresh Pesto', 'amount' => '27.5', 'unit' => 'g', 'ingredient' => 'Parmesan cheese', 'notes' => 'freshly grated')), 'recipe_instructions' => array(array('group' => 'Fresh Pesto (you can make this in advance)', 'description' => 'We\'ll be using a food processor to make the pesto. Put the garlic, pine kernels and some salt in there and process briefly.', 'image' => ''), array('group' => 'Fresh Pesto (you can make this in advance)', 'description' => 'Add the basil leaves (but keep some for the presentation) and blend to a green paste.', 'image' => ''), array('group' => 'Fresh Pesto (you can make this in advance)', 'description' => 'While processing, gradually add the olive oil and finally add the Parmesan cheese.', 'image' => ''), array('group' => 'Finishing the dish', 'description' => 'Bring a pot of salted water to the boil and cook your tagliatelle al dente.', 'image' => ''), array('group' => 'Finishing the dish', 'description' => 'Use the cooking time of the pasta to sauté your bacon strips.', 'image' => ''), array('group' => 'Finishing the dish', 'description' => 'After about 8 to 10 minutes, the pasta should be done. Drain it and put it back in the pot to mix it with the pesto.', 'image' => ''), array('group' => 'Finishing the dish', 'description' => 'Present the dish with some fresh basil leaves on top.', 'image' => '')), 'recipe_notes' => __('Use this section for whatever you like.', 'wp-ultimate-recipe'));
         $post_content = '<p>' . __('Use this like normal post content. The recipe will automatically be included at the end of the post, or wherever you place the shortcode:', 'wp-ultimate-recipe') . '</p>[recipe]<br/><p>' . __('This text will appear below your recipe.', 'wp-ultimate-recipe');
         if (WPUltimateRecipe::is_addon_active('nutritional-information')) {
             $post_content .= ' ' . __('Followed by the nutrition label:', 'wp-ultimate-recipe') . '</p>[nutrition-label]<br/>';
         } else {
             $post_content .= '</p>';
         }
         // Insert post
         $post = array('post_title' => __('Demo Recipe', 'wp-ultimate-recipe'), 'post_content' => $post_content, 'post_type' => 'recipe', 'post_status' => 'private', 'post_author' => get_current_user_id());
         $post_id = wp_insert_post($post);
         update_option('wpurp_demo_recipe', $post_id);
         // Update post taxonomies
         $tags = array('cuisine' => array('Italian'), 'course' => array('Main Dish'));
         foreach ($tags as $tag => $terms) {
             $term_ids = array();
             foreach ($terms as $term) {
                 $existing_term = term_exists($term, $tag);
                 if ($existing_term == 0 || $existing_term == null) {
                     $new_term = wp_insert_term($term, $tag);
                     $term_ids[] = (int) $new_term['term_id'];
                 } else {
                     $term_ids[] = (int) $existing_term['term_id'];
                 }
             }
             wp_set_object_terms($post_id, $term_ids, $tag);
         }
         // Recipe image
         $url = WPUltimateRecipe::get()->coreUrl . '/img/demo-recipe.jpg';
         media_sideload_image($url, $post_id);
         $attachments = get_posts(array('numberposts' => '1', 'post_parent' => $post_id, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC'));
         if (sizeof($attachments) > 0) {
             set_post_thumbnail($post_id, $attachments[0]->ID);
         }
         // Nutritional Information
         $nutritional = array('calories' => '1276', 'carbohydrate' => '71', 'protein' => '57', 'fat' => '85', 'saturated_fat' => '22', 'polyunsaturated_fat' => '10', 'monounsaturated_fat' => '44', 'trans_fat' => '', 'cholesterol' => '238', 'sodium' => '2548', 'potassium' => '620', 'fiber' => '4', 'sugar' => '4', 'vitamin_a' => '2', 'vitamin_c' => '0.1', 'calcium' => '16', 'iron' => '12');
         update_post_meta($post_id, 'recipe_nutritional', $nutritional);
         // Update recipe content
         WPUltimateRecipe::get()->helper('recipe_save')->save($post_id, get_post($post_id));
     }
 }
コード例 #12
0
 public function doClone()
 {
     $postFinder = PostFinder::getInstance();
     $lastPost = $postFinder->getRandomPost();
     $url = $lastPost->href;
     $advancedCloner = new PostCloner($url, TRUE);
     $post = $advancedCloner->getPost();
     if (!$this->is_post_exist($post->title)) {
         $postArr = array('post_title' => $post->title, 'post_content' => $post->content, 'post_status' => 'publish', 'post_author' => 1);
         $postId = wp_insert_post($postArr);
         require_once ABSPATH . 'wp-admin/includes/media.php';
         require_once ABSPATH . 'wp-admin/includes/file.php';
         require_once ABSPATH . 'wp-admin/includes/image.php';
         media_sideload_image($post->thumbnail, $postId);
     }
 }
コード例 #13
0
 private function addProfilePhoto($user_id, $newUser, $value, $membername)
 {
     $addPhoto = false;
     $newPhoto = trim($value);
     if ($newUser) {
         $addPhoto = true;
     } else {
         $currUserPhoto = basename(get_user_meta($user_id, 'profilepicture', true));
         if (strcasecmp($currUserPhoto, $newPhoto) != 0) {
             $addPhoto = true;
         }
     }
     if ($addPhoto && $newPhoto) {
         $photoHTML = media_sideload_image($this->rotaryImageURL . $value, 1, $membername);
         if (!is_wp_error($photoHTML)) {
             $doc = new DOMDocument();
             @$doc->loadHTML($photoHTML);
             $tags = $doc->getElementsByTagName('img');
             update_user_meta($user_id, 'profilepicture', $tags->item(0)->getAttribute('src'));
         }
     }
 }
コード例 #14
0
function td_get_video_thumb($post_id)
{
    //verify post is not a revision
    if (!wp_is_post_revision($post_id)) {
        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
            return;
        }
        $td_post_video = get_post_meta($post_id, 'td_post_video', true);
        //load video support
        $td_video_support = new td_video_support();
        //check to see if the url is valid
        if (empty($td_post_video['td_video']) or $td_video_support->validateVideoUrl($td_post_video['td_video']) === false) {
            return;
        }
        if (!empty($td_post_video['td_last_video']) and $td_post_video['td_last_video'] == $td_post_video['td_video']) {
            //we did not update the url
            return;
        }
        //$myFile = "D:/td_video.txt";
        //$fh = fopen($myFile, 'a') or die("can't open file");
        $stringData = $post_id . ' - ' . print_r($td_post_video, true) . "\n";
        //return;
        $videoThumbUrl = $td_video_support->getThumbUrl($td_post_video['td_video']);
        /*
                $stringData .= $post_id . ' - ' . $videoThumbUrl . "\n";
                fwrite($fh, $stringData);
                fclose($fh);
        */
        if (!empty($videoThumbUrl)) {
            // add the function above to catch the attachments creation
            add_action('add_attachment', 'td_add_featured_image');
            // load the attachment from the URL
            media_sideload_image($videoThumbUrl, $post_id, $post_id);
            // we have the Image now, and the function above will have fired too setting the thumbnail ID in the process, so lets remove the hook so we don't cause any more trouble
            remove_action('add_attachment', 'td_add_featured_image');
        }
    }
}
コード例 #15
0
ファイル: classes.php プロジェクト: mrjarbenne/wp-idea-stream
 /**
  * Side upload the image and set it as the post thumbnail
  */
 private function upload()
 {
     // Not an image ?
     if (!preg_match('/[^\\?]+\\.(?:jpe?g|jpe|gif|png)(?:\\?|$)/i', $this->src)) {
         $this->result = new WP_Error('not_an_image', __('This image file type is not supported.', 'wp-idea-stream'));
         // We can proceed
     } else {
         // First there can be a chance the src is already saved as an attachment
         $thumbnail_id = self::get_existing_attachment($this->src);
         if (!empty($thumbnail_id)) {
             $this->result = set_post_thumbnail($this->post_id, $thumbnail_id);
             // Otherwise, we need to save it
         } else {
             // Temporarly filter the attachment url to set the Thumbnail ID
             add_filter('wp_get_attachment_url', array($this, 'intercept_id'), 10, 2);
             $this->new_src = media_sideload_image($this->src, $this->post_id, null, 'src');
             remove_filter('wp_get_attachment_url', array($this, 'intercept_id'), 10, 2);
             if (!is_wp_error($this->new_src) && isset($this->thumbnail_id)) {
                 $this->result = set_post_thumbnail($this->post_id, $this->thumbnail_id);
                 update_post_meta($this->thumbnail_id, '_ideastream_original_src', esc_url_raw($this->src));
             } else {
                 $this->result = new WP_Error('sideload_failed');
             }
         }
     }
 }
コード例 #16
0
 /**
  * Get main image and save to post as featured image
  *
  * @param $save, $insert_id
  *
  */
 public function create_featured_image($save, $insert_id)
 {
     if ($save['has_image'] == '1') {
         $save_media = $save['image'];
         if ($save_media && $insert_id) {
             // Get the URL of the image
             $save_media_url = $save_media['src'];
             $upload_dir = wp_upload_dir();
             // Set upload folder
             $image_data = file_get_contents($save_media_url);
             // Get image data
             $filename = basename($save_media_url);
             // Create image file name
             // Check folder permission and define file location
             if (wp_mkdir_p($upload_dir['path'])) {
                 $file = $upload_dir['path'] . '/' . $filename;
             } else {
                 $file = $upload_dir['basedir'] . '/' . $filename;
             }
             // Create the image  file on the server
             // file_put_contents( $file, $image_data );
             media_sideload_image($save_media_url, $insert_id, $save['given_title']);
             // Check image file type
             $wp_filetype = wp_check_filetype($filename, null);
             // Set attachment data
             $attachment = array('post_mime_type' => $wp_filetype['type'], 'post_title' => sanitize_file_name($filename), 'post_content' => '', 'post_status' => 'inherit');
             // Create the attachment
             $attach_id = wp_insert_attachment($attachment, $file, $insert_id);
             // Define attachment metadata
             $attach_data = wp_generate_attachment_metadata($attach_id, $file);
             // Assign metadata to attachment
             wp_update_attachment_metadata($attach_id, $attach_data);
             // And finally assign featured image to post
             set_post_thumbnail($insert_id, $attach_id);
         }
     }
 }
コード例 #17
0
 /**
  * woo_process_old_custom_fields converts old custom fields into featured images
  * @since  6.1.0
  * @param  integer $n offset incrementer
  * @return integer post id or negative value for fail
  */
 function woo_process_old_custom_fields($n = 0)
 {
     $processed_posts = 0;
     // The Query
     $query_args['posts_per_page'] = 5;
     $query_args['offset'] = $n * 5;
     $query_args['post_type'] = array('post');
     $query_args['post_status'] = 'any';
     $the_query = new WP_Query($query_args);
     // Total count of query
     $found_posts = intval($the_query->found_posts);
     if ($the_query->have_posts()) {
         $count = 0;
         $processed_posts++;
         // Loop
         while ($the_query->have_posts()) {
             $the_query->the_post();
             $post_id = get_the_id();
             $url = get_post_meta($post_id, 'image', true);
             $desc = "";
             if ('' != $url) {
                 // Download the custom field
                 $image = media_sideload_image($url, $post_id, $desc);
                 if (is_wp_error($image)) {
                     // Failure
                     $processed_posts = 0;
                 } else {
                     // Get existing attachments
                     $attachments = get_posts(array('post_type' => 'attachment', 'number_posts' => 1, 'post_status' => null, 'post_parent' => $post_id, 'orderby' => 'post_date', 'order' => 'DESC'));
                     if (isset($attachments[0])) {
                         $thumbnail_id = intval($attachments[0]->ID);
                         if (0 < $thumbnail_id) {
                             // Set Featured Image attachment ID
                             update_post_meta($post_id, '_thumbnail_id', $thumbnail_id);
                             // Delete existing older post meta
                             delete_post_meta($post_id, 'image');
                             // Process Completed Successfully
                             $processed_posts = $post_id;
                         }
                         // End If Statement
                     } else {
                         // Fail
                         $processed_posts = 0;
                     }
                     // End If Statement
                 }
                 // End If Statement
             }
             // End If Statement
             // Output processed post title
             echo get_the_id() . ' - "<em>' . get_the_title($post_id) . '</em>" .... processed successfully</br>';
         }
         // End While Loop
     }
     // End If Statement
     wp_reset_postdata();
     // Check if end of query has been reached
     if ($found_posts >= $n * 5 + 5) {
         return -1;
     } else {
         return $processed_posts;
     }
     // End If Statement
 }
コード例 #18
0
ファイル: admin.php プロジェクト: pixelswithin/sbt
function usp_upload_image()
{
    if (current_user_can('edit_theme_options')) {
        error_reporting(E_ALL | E_STRICT);
        $nonce = $_POST["nonce"];
        // Check our nonce, if they don't match then bounce!
        if (!wp_verify_nonce($nonce, 'usp_nonce')) {
            die('Get Bounced!');
        }
        // Make tmp directory to temporarily store images
        $dir = USP_PATH . 'admin/tmp';
        if (!is_dir($dir)) {
            mkdir($dir);
        }
        // Is directory writeable
        if (!is_writable(USP_PATH . 'admin/tmp/')) {
            echo __('Unable to save image, check your server permissions.', USP_NAME);
        }
        // Get image variables
        $img = Trim(stripslashes($_POST["image"]));
        // Image url
        $desc = Trim(stripslashes($_POST["description"]));
        // image description
        $tmp_path = USP_PATH . 'admin/tmp/';
        // Temp image path
        $upload_path = USP_ADMIN_URL . 'tmp/';
        // Full url path for image upload
        // Create temp. image variable
        $tmp = 'image-' . rand() . '.jpg';
        $tmp_img = $tmp_path . '' . $tmp;
        // Generate temp. image
        //$content = file_get_contents($img);
        // Lets use cURL
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $img);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
        $picture = curl_exec($ch);
        curl_close($ch);
        $saved_file = file_put_contents($tmp_img, $picture);
        // Set default return value
        $json = json_encode(array('error' => true, 'msg' => __('Unable to save image, check your server permissions.', USP_NAME)));
        // Was the temporary image able to be saved?
        if ($saved_file) {
            // Upload generated file to media library using media_sideload_image()
            $file = media_sideload_image($upload_path . '' . $tmp, 0, $desc);
            // Success JSON
            //echo __('File successfully uploaded to media library.', USP_NAME);
            $json = json_encode(array('error' => false, 'msg' => __('File successfully uploaded to media library.', USP_NAME)));
            // Delete the file we just uplaoded from the tmp dir.
            if (file_exists($tmp_path . '' . $tmp)) {
                unlink($tmp_path . '' . $tmp);
            } else {
                echo __('Nothing to delete, file does not exist', USP_NAME);
            }
        }
        echo $json;
        die;
    }
}
コード例 #19
0
ファイル: press-this.php プロジェクト: kraftbj/Press-This
 /**
  * Get the sources images and save them locally, fr posterity, unless we can't.
  *
  * @since 4.2
  *
  * @param $post_id int
  * @param $content string Current expected markup for PT
  * @return string New markup with old image URLs replaced with the local attachment ones if swapped
  */
 public function side_load_images($post_id, $content = '')
 {
     $new_content = $content;
     preg_match_all('/<img [^>]+>/', $content, $matches);
     if (!empty($matches) && current_user_can('upload_files')) {
         foreach ((array) $matches[0] as $key => $image) {
             preg_match('/src=["\']{1}([^"\']+)["\']{1}/', stripslashes($image), $url_matches);
             if (empty($url_matches[1])) {
                 continue;
             }
             $image_url = $url_matches[1];
             //Don't sideload images already hosted on our WP instance
             if (false !== strpos($image_url, preg_replace('/^(http:.+)\\/wp-admin\\/.+/', '\\1/wp-content/', $this->script_name()))) {
                 continue;
             }
             // Don't try to sideload file without a file extension, leads to WP upload error,
             // then a "PHP Notice:  Undefined offset: 0 in /wp-admin/includes/media.php on line 811"
             // Matching regex to skip from media_sideload_image() in otherwise erroring /wp-admin/includes/media.php
             if (!preg_match('/[^\\?]+\\.(jpe?g|jpe|gif|png)\\b/i', $image_url)) {
                 continue;
             }
             // See if files exist in content - we don't want to upload non-used selected files.
             if (false !== strpos($new_content, htmlspecialchars($image_url))) {
                 // Sideload image, which ives us a new image tag, strip the empty alt that comes with it.
                 $upload = str_replace(' alt=""', '', media_sideload_image($image_url, $post_id));
                 // Preserve assigned class, id, width, height and alt attributes
                 if (preg_match_all('/(class|width|height|id|alt)=\\\\?(\\"|\')[^"\']+\\\\?(\\2)/', $image, $attr_matches) && is_array($attr_matches[0])) {
                     foreach ($attr_matches[0] as $attr) {
                         $upload = str_replace('<img', '<img ' . $attr, $upload);
                     }
                 }
                 // Replace the POSTED content <img> with correct uploaded ones. Regex contains fix for Magic Quotes
                 if (!is_wp_error($upload)) {
                     $new_content = str_replace($image, $upload, $new_content);
                 }
             }
         }
     }
     // Error handling for media_sideload, send original content back
     if (is_wp_error($new_content)) {
         return $content;
     }
     return $new_content;
 }
コード例 #20
0
ファイル: index.php プロジェクト: joanjunyent/linkmarklet
function linkmarklet_post()
{
    global $linkmarklet_debug;
    $settings = get_option(LINKMARKLET_PREFIX . 'settings');
    // set our time (if applicable)
    $timeframe_min = !isset($settings['future_publish']['min']) || $settings['future_publish']['min'] === '' ? false : intval($settings['future_publish']['min']);
    $timeframe_max = !isset($settings['future_publish']['max']) || $settings['future_publish']['max'] === '' ? false : intval($settings['future_publish']['max']);
    $publish_start = !isset($settings['future_publish']['start']) || $settings['future_publish']['start'] === '' ? false : intval($settings['future_publish']['start']);
    $publish_end = !isset($settings['future_publish']['end']) || $settings['future_publish']['end'] === '' ? false : intval($settings['future_publish']['end']);
    // by default it'll be right now
    $timestamp = (int) current_time('timestamp');
    $timestamp_gmt = (int) current_time('timestamp', 1);
    if ($linkmarklet_debug) {
        error_log('$timestamp (source) = ' . $timestamp . ' ' . date('Y-m-d H:i:s', $timestamp));
        error_log('$timestamp_gmt (source) = ' . $timestamp_gmt . ' ' . date('Y-m-d H:i:s', $timestamp_gmt));
    }
    $future_publish = false;
    // check to see if we need to bump our publish time
    if ($timeframe_min !== false && $timeframe_max !== false) {
        // set the post date
        if ($linkmarklet_debug) {
            error_log('trigger: timeframe');
        }
        // figure out our start time which is either right now, or the future-most post
        $args = array('numberposts' => 1, 'post_status' => array('publish', 'pending', 'future'));
        $posts_array = get_posts($args);
        // if there are any posts, we can check it out
        $post_timestamp = false;
        if ($posts_array) {
            if ($linkmarklet_debug) {
                error_log('found post');
            }
            foreach ($posts_array as $post) {
                setup_postdata($post);
                $post_timestamp = strtotime($post->post_date);
                // local time
                $post_timestamp_gmt = strtotime($post->post_date_gmt);
                if ($linkmarklet_debug) {
                    error_log(print_r($post, true));
                    error_log('======================');
                }
            }
            if ($linkmarklet_debug) {
                error_log('$post_timestamp = ' . $post_timestamp . ' ' . date('Y-m-d H:i:s', $post_timestamp));
                error_log('$timestamp = ' . $timestamp . ' ' . date('Y-m-d H:i:s', $timestamp));
            }
        }
        // get the future-most timestamp and use that
        if ($post_timestamp + $timeframe_min * 60 > $timestamp) {
            // $timestamp is still now() in local time
            $future_publish = true;
            if ($linkmarklet_debug) {
                error_log('FUTURE PUBLISH');
            }
            // our timestamps need to be adjusted
            $timestamp = $post_timestamp;
            $timestamp_gmt = $post_timestamp_gmt;
            if ($linkmarklet_debug) {
                error_log('$timestamp (before 1) = ' . $timestamp . ' ' . date('Y-m-d H:i:s', $timestamp));
                error_log('$timestamp_gmt (before 1) = ' . $timestamp_gmt . ' ' . date('Y-m-d H:i:s', $timestamp_gmt));
            }
            // determine how many seconds we'll offset
            $offset = rand($timeframe_min * 60, $timeframe_max * 60);
            if ($linkmarklet_debug) {
                error_log('$offset (in seconds) = ' . $offset);
            }
            // the post is scheduled so we need to offset both
            $timestamp = $timestamp + $offset;
            $timestamp_gmt = $timestamp_gmt + $offset;
            if ($linkmarklet_debug) {
                error_log('$timestamp (after) = ' . $timestamp . ' ' . date('Y-m-d H:i:s', $timestamp));
                error_log('$timestamp_gmt (after) = ' . $timestamp_gmt . ' ' . date('Y-m-d H:i:s', $timestamp_gmt));
                error_log('NEW FUTURE PUBLISH TIME: ' . date('Y-m-d H:i:s', $timestamp));
            }
        }
    }
    // we need to check to see if we're within the posting window (if set)
    if ($publish_start !== false && $publish_end !== false) {
        if ($linkmarklet_debug) {
            error_log('checking publish window...');
        }
        // our publish window needs to be put within today's context
        $publish_start = date('U', strtotime(date('Y-m-d') . ' ' . $publish_start . ':00:00'));
        $publish_end = date('U', strtotime(date('Y-m-d') . ' ' . $publish_end . ':00:00'));
        if ($linkmarklet_debug) {
            error_log('window: ' . $publish_start . ' - ' . $publish_end);
        }
        // check to see if we're too early
        if ($timestamp < $publish_start) {
            if ($linkmarklet_debug) {
                error_log('too early');
            }
            $future_publish = true;
            $timestamp = $publish_start;
            $timestamp_gmt = $publish_start - get_option('gmt_offset') * HOUR_IN_SECONDS;
            if ($linkmarklet_debug) {
                error_log('$timestamp (after) = ' . $timestamp . ' ' . date('Y-m-d H:i:s', $timestamp));
                error_log('$timestamp_gmt (after) = ' . $timestamp_gmt . ' ' . date('Y-m-d H:i:s', $timestamp_gmt));
            }
        }
        // check to see if we're too late
        if ($timestamp > $publish_end) {
            if ($linkmarklet_debug) {
                error_log('too late');
            }
            // need to push it to tomorrow's start time
            $future_publish = true;
            $timestamp = $publish_start + 24 * 60 * 60;
            $timestamp_gmt = $publish_start + 24 * 60 * 60 - get_option('gmt_offset') * HOUR_IN_SECONDS;
            if ($linkmarklet_debug) {
                error_log('$timestamp (after) = ' . $timestamp . ' ' . date('Y-m-d H:i:s', $timestamp));
                error_log('$timestamp_gmt (after) = ' . $timestamp_gmt . ' ' . date('Y-m-d H:i:s', $timestamp_gmt));
            }
        }
    }
    $settings = get_option(LINKMARKLET_PREFIX . 'settings');
    $post = get_default_post_to_edit();
    $post = get_object_vars($post);
    $post_ID = $post['ID'] = intval($_POST['post_id']);
    if (!current_user_can('edit_post', $post_ID)) {
        wp_die(__('You are not allowed to edit this post.'));
    }
    // set our category
    $post['post_category'] = !empty($settings['category']) ? intval($settings['category']) : 0;
    // set our post properties
    $post['post_title'] = isset($_POST['title']) ? sanitize_text_field($_POST['title']) : '';
    $content = isset($_POST['content']) ? $_POST['content'] : '';
    // Markdown on Save?
    if (is_plugin_active('markdown-on-save/markdown-on-save.php') && !empty($settings['markdown'])) {
        // we need to set up our post data to tell Markdown on Save we want to use it
        $post['cws_using_markdown'] = 1;
        $post['_cws_markdown_nonce'] = wp_create_nonce('cws-markdown-save');
    }
    // see if we need to process any images
    $images = array();
    // $markdown_pattern = "/(!\\[(.*?)\\]\\s?\\([ \\n]*(?:<(\\S*)>|(.*?))[ \\n]*(([\\'\"])(.*?)\\6[ \\n]*)?\\))/ui";
    $markdown_pattern = "/(!\\[(.*?)\\]\\s?\\([ \\n]*(?:<(\\S*)>|(.*?))[ \\n]*?\\))/ui";
    preg_match_all($markdown_pattern, $content, $images);
    $upload = false;
    if (isset($images[4]) && !empty($images[4]) && current_user_can('upload_files')) {
        if ($linkmarklet_debug) {
            error_log('attempting sideload');
        }
        foreach ($images[4] as $key => $image) {
            // see if files exist in content - we don't want to upload non-used selected files.
            if (strpos($content, htmlspecialchars($image)) !== false) {
                if ($linkmarklet_debug) {
                    error_log('image: ' . $image);
                }
                $upload = media_sideload_image($image, $post_ID, '');
                if (!is_wp_error($upload)) {
                    // we only want to strip out the URL at this point so we need just the URL of the upload
                    $new_image = array();
                    preg_match("~https?://.*/(.*?).(jpe?g|gif|png)~ui", $upload, $new_image);
                    if (!empty($new_image[0])) {
                        $url = esc_url($_POST['url']);
                        if (is_plugin_active('markdown-on-save/markdown-on-save.php') && !empty($settings['markdown'])) {
                            $hosted_image_final = str_replace($image, $new_image[0], $images[0][$key]);
                        } else {
                            $hosted_image_final = '<img src="' . esc_url($new_image[0]) . '" alt="' . esc_attr($images[2][$key]) . '" />';
                        }
                        $hosted_image = '<a href="' . esc_url($url) . '">' . $hosted_image_final . '</a>';
                        // swap out the ORIGINAL (offsite) Markdown with our linked, hosted version
                        $content = str_replace($images[0][$key], $hosted_image, $content);
                        if ($linkmarklet_debug) {
                            error_log('upload: ' . $new_image[0]);
                        }
                    }
                }
            }
        }
    }
    // set the post_content and status
    $post['post_content'] = wp_kses_post($content);
    $post['post_status'] = 'draft';
    // set our post format
    if (isset($settings['post_format'])) {
        if (current_theme_supports('post-formats', $settings['post_format'])) {
            set_post_format($post_ID, $settings['post_format']);
        } else {
            set_post_format($post_ID, false);
        }
    }
    // set the category
    $post['post_category'] = array_map('absint', array($post['post_category']));
    // set the slug
    $post['post_name'] = sanitize_title($_POST['slug']);
    // update what we've set
    $post_ID = wp_update_post($post);
    // we also need to add our custom field link
    $custom_field = isset($settings['custom_field']) ? sanitize_key($settings['custom_field']) : false;
    if (!empty($custom_field)) {
        update_post_meta($post_ID, $custom_field, esc_url($_POST['url']));
    }
    // set our post tags if applicable
    if (!empty($settings['support_tags']) && !empty($_POST['tags'])) {
        wp_set_post_tags($post_ID, $_POST['tags']);
    }
    // mark as published if that's the intention
    if (isset($_POST['publish']) && current_user_can('publish_posts')) {
        if ($future_publish) {
            $post['post_status'] = 'future';
            if ($linkmarklet_debug) {
                error_log('*** altering timestamps');
            }
            $post['edit_date'] = date('Y-m-d H:i:s', $timestamp);
            $post['post_date'] = date('Y-m-d H:i:s', $timestamp);
            $post['post_date_gmt'] = date('Y-m-d H:i:s', $timestamp_gmt);
            if ($linkmarklet_debug) {
                error_log(print_r($post, true));
                error_log('======================');
            }
        } else {
            $post['post_status'] = 'publish';
        }
    }
    // our final update
    $post_ID = wp_update_post($post);
    return $post_ID;
}
コード例 #21
0
ファイル: td_demo_site.php プロジェクト: Vatia13/wordpress
 function add_featured_image()
 {
     global $wpdb;
     $featured_image_url = get_template_directory_uri() . '/images/demo/' . $this->last_attachment_id . '.jpg';
     //check to see if the attachement is already uploaded
     $td_attachment_id = $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE post_title = '" . 'td_demo_atachement_' . $this->last_attachment_id . "'");
     if (empty($td_attachment_id)) {
         //the attachement is not already present, upload it and add it as featured image
         add_action('add_attachment', array($this, 'new_attachment'));
         $lastAttachement = media_sideload_image($featured_image_url, $this->last_page_id, 'td_demo_atachement_' . $this->last_attachment_id);
         remove_action('add_attachment', array($this, 'new_attachment'));
         $this->log("add_featured_image", 'new attachment added to ID: ' . $this->last_page_id);
     } else {
         // the attachement is already present, just update the last post to use it as a featured image
         set_post_thumbnail($this->last_page_id, $td_attachment_id);
         $this->log("add_featured_image", 'existing attachment ' . $td_attachment_id . ' added to ID: ' . $this->last_page_id);
     }
     //reset the total atachements
     if ($this->last_attachment_id >= 5) {
         $this->last_attachment_id = 1;
     } else {
         $this->last_attachment_id++;
     }
 }
コード例 #22
0
/**
 * Ajax Save Options
 *
 * @uses get_option()
 *
 * @since 1.0.0
 */
function of_ajax_callback()
{
    global $options_machine, $of_options;
    $nonce = $_POST['security'];
    if (!wp_verify_nonce($nonce, 'of_ajax_nonce')) {
        die('-1');
    }
    //get options array from db
    $all = of_get_options();
    $save_type = $_POST['type'];
    //echo $_POST['data'];
    //Uploads
    if ($save_type == 'upload') {
        $clickedID = $_POST['data'];
        // Acts as the name
        $filename = $_FILES[$clickedID];
        $filename['name'] = preg_replace('/[^a-zA-Z0-9._\\-]/', '', $filename['name']);
        $override['test_form'] = false;
        $override['action'] = 'wp_handle_upload';
        $uploaded_file = wp_handle_upload($filename, $override);
        $upload_tracking[] = $clickedID;
        //update $options array w/ image URL
        $upload_image = $all;
        //preserve current data
        $upload_image[$clickedID] = $uploaded_file['url'];
        of_save_options($upload_image);
        if (!empty($uploaded_file['error'])) {
            echo 'Upload Error: ' . $uploaded_file['error'];
        } else {
            echo $uploaded_file['url'];
        }
        // Is the Response
    } elseif ($save_type == 'image_reset') {
        $id = $_POST['data'];
        // Acts as the name
        $delete_image = $all;
        //preserve rest of data
        $delete_image[$id] = '';
        //update array key with empty value
        of_save_options($delete_image);
    } elseif ($save_type == 'backup_options') {
        $backup = $all;
        $backup['backup_log'] = date('r');
        of_save_options($backup, BACKUPS);
        die('1');
    } elseif ($save_type == 'restore_options') {
        $smof_data = get_option(BACKUPS);
        update_option(OPTIONS, $smof_data);
        of_save_options($smof_data);
        die('1');
    } elseif ($save_type == 'import_options') {
        $smof_data = unserialize(base64_decode($smof_data));
        //100% safe - ignore theme check nag
        of_save_options($smof_data);
        die('1');
    } elseif ($save_type == 'save') {
        wp_parse_str(stripslashes($_POST['data']), $smof_data);
        unset($smof_data['security']);
        unset($smof_data['of_save']);
        if (SNPSHPWP_FBUILDER === true) {
            global $fbuilder;
            $options = array('bottom_margin' => $smof_data['fb_bmargin'], 'high_rezolution_width' => $smof_data['fb_hres_w'], 'high_rezolution_margin' => $smof_data['fb_hres_c'], 'med_rezolution_width' => $smof_data['fb_mres_w'], 'med_rezolution_margin' => $smof_data['fb_mres_c'], 'med_rezolution_hide_sidebar' => $smof_data['fb_mres_s'] == 1 ? 'true' : 'false', 'low_rezolution_width' => $smof_data['fb_lres_w'], 'low_rezolution_margin' => $smof_data['fb_lres_c'], 'low_rezolution_hide_sidebar' => $smof_data['fb_lres_s'] == 1 ? 'true' : 'false');
            $fbuilder->set_options($options);
        }
        of_save_options($smof_data);
        die('1');
    } elseif ($save_type == 'reset') {
        of_save_options($options_machine->Defaults);
        die('1');
        //options reset
    } elseif ($save_type == 'demo_remove') {
        set_transient('snpshpwp_remove_demo', 'true');
        die('1');
        //options reset
    } elseif ($save_type == 'demo_install') {
        $curr_style = $_POST['style'];
        $curr_theme = $_POST['theme'];
        $curr_images = $_POST['images'];
        $curr_pages = $_POST['pages'];
        $site_url = get_option("siteurl");
        $template_url = get_template_directory_uri();
        $snpshpwp_options = array('snapshop' => array('options' => array('blog_layout' => '3', 'blog_excerpt' => '223', 'snpshpwp_hide_featarea' => '0', 'snpshpwp_hide_title' => '0', 'snpshpwp_hide_tags' => '0', 'snpshpwp_hide_related_main' => '0', 'snpshpwp_related_columns' => '3', 'snpshpwp_hide_meta' => '0', 'snpshpwp_hide_author' => '0', 'snpshpwp_hide_postmeta' => '0', 'snpshpwp_hide_share' => '0', 'snpshpwp_hide_related_side' => '1', 'contactform_message' => '', 'contact' => array(1 => array('order' => '1', 'url' => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/82.jpg', 'name' => 'James McMilan', 'email' => '*****@*****.**', 'job' => 'Web Designer', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'twitter.png'), 3 => array('socialnetworksurl' => '#', 'socialnetworks' => 'google.png')))), 'favicon' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti57' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti72' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti114' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti144' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'header_bar' => '0', 'header_bar_height' => '30', 'header_bar_left' => array('disabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'login-link' => 'login-link', 'network-icons' => 'network-icons', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt'), 'enabled' => array('placebo' => 'placebo', 'tagline' => 'tagline')), 'header_bar_right' => array('disabled' => array('placebo' => 'placebo', 'menu' => 'menu', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'login-link' => 'login-link'), 'enabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'tagline-alt' => 'tagline-alt')), 'header_bar_menu' => 'side-menu', 'header_bar_networks' => '1', 'header_bar_tagline' => '<i class="fa fa-phone-square"></i> REACH OUT TO US: <STRONG>+381 (0) 63 255 7004</STRONG>', 'header_bar_tagline_alt' => 'Write us at: <STRONG><a href="#">info@yourdomain.com</a></STRONG>', 's_header_bar_bg' => '#ffffff', 's_header_bar_txt' => '#222222', 's_header_bar_lnk' => '#222222', 's_header_bar_lnkhvr' => '#c74c44', 's_header_bar_brdr' => '#cccccc', 'f_header_bar_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_bar_mnggl_on' => '1', 'f_header_bar_mnggl' => array('face' => 'PT Sans', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'header_height' => '60', 'header_sticky' => '1', 'header_width' => '1920', 'header_mode' => 'default', 'header_left' => array('disabled' => array('placebo' => 'placebo', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'woo-cart' => 'woo-cart', 'network-icons' => 'network-icons', 'sidenav' => 'sidenav', 'search' => 'search', 'login-link' => 'login-link'), 'enabled' => array('placebo' => 'placebo', 'logo' => 'logo', 'menu' => 'menu')), 'header_right' => array('disabled' => array('placebo' => 'placebo', 'logo' => 'logo', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons'), 'enabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'woo-cart' => 'woo-cart', 'search' => 'search', 'sidenav' => 'sidenav')), 'header_logo' => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/logo1.png', 'header_tagline' => 'FramedWP by br0', 'header_tagline_alt' => 'WordPress', 'header_left_sidenav' => 'header-left-sidenav', 'header_right_sidenav' => 'header-right-sidenav', 'header_menu' => 'header-1', 'header_networks' => '1', 'header_custom' => '', 'header_custom_height' => '100', 's_header_bg' => '#ffffff', 's_header_txt' => '#222222', 's_header_lnk' => '#222222', 's_header_lnkhvr' => '#c74c44', 's_header_brdr' => '#cccccc', 's_header_tpbrdr' => '#222222', 's_header_drpdwn_bg' => '#222222', 's_header_drpdwn_lnk' => '#ffffff', 's_header_drpdwn_lnkhvr' => '#c74c44', 's_header_ldbr' => '#c74c44', 'f_header_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_mnggl_on' => '0', 'f_header_mnggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_header_drpdwn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_drpdwnggl_on' => '1', 'f_header_drpdwnggl' => array('face' => 'Open Sans', 'size' => '13px', 'style' => 'normal', 'weight' => '400'), 'breadcrumbs_active' => '0', 'breadcrumbs_height' => '60', 'breadcrumbs_tagline' => '', 's_breadcrumbs_bg' => '#ffffff', 's_breadcrumbs_txt' => '#222222', 's_breadcrumbs_lnk' => '#222222', 's_breadcrumbs_lnkhvr' => '#c74c44', 's_breadcrumbs_brdr' => '#cccccc', 'f_breadcrumbs' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_breadcrumbs_ggl_on' => '0', 'f_breadcrumbs_ggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'snpshpwp_hide_page_title' => '0', 'enable_comments' => '0', 's_post_bg' => '#ffffff', 's_post_txt' => '#808080', 's_post_hdr' => '#222222', 's_post_lnk' => '#c74c44', 's_post_lnkhvr' => '#c74c44', 's_post_brdr' => '#cccccc', 's_post_bttn' => '#222222', 's_post_bttnhvr' => '#c74c44', 's_post_bttnlnk' => '#ffffff', 's_post_bttnlnkhvr' => '#ffffff', 'f_post_mn' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_mnggl_on' => '1', 'f_post_mnggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdrggl_on' => '0', 'f_post_hdrggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsv' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsvggl_on' => '1', 'f_post_crsvggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'italic', 'weight' => '400'), 'sidebar-size' => '5', 'sidebar-blog' => '1', 'sidebar-blog-position' => '0', 'sidebar-single' => '1', 'sidebar-single-position' => '1', 'sidebar-page' => '1', 'sidebar-page-position' => '0', 'sidebar' => array(1 => array('order' => '1', 'title' => 'Header Left Sidenav'), 2 => array('order' => '2', 'title' => 'Header Right Sidenav'), 3 => array('order' => '3', 'title' => 'Bottom 1'), 4 => array('order' => '4', 'title' => 'Bottom 2'), 5 => array('order' => '5', 'title' => 'Bottom 3'), 6 => array('order' => '6', 'title' => 'Bottom 4'), 7 => array('order' => '7', 'title' => 'Blog Archive - Custom')), 'footer_area' => '0', 'footer_widgets' => '0', 'footer_sidebar' => '3', 'footer_width' => '1301', 's_footer_tpbrdr' => '#222222', 's_footer_bg' => '#ffffff', 's_footer_txt' => '#808080', 's_footer_hdr' => '#222222', 's_footer_lnk' => '#222222', 's_footer_lnkhvr' => '#c74c44', 'f_footer_wt' => array('face' => 'Lovelo', 'size' => '15px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtggl_on' => '0', 'f_footer_wtggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxt' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxtggl_on' => '1', 'f_footer_wtxtggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'footer_bar' => '0', 'footer_height' => '60', 'footer_left' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'tagline-alt' => 'tagline-alt', 'to-the-top' => 'to-the-top'), 'enabled' => array('placebo' => 'placebo', 'menu' => 'menu')), 'footer_right' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'menu' => 'menu', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'network-icons' => 'network-icons'), 'enabled' => array('placebo' => 'placebo', 'to-the-top' => 'to-the-top')), 'footer_menu' => 'header-1', 'footer_networks' => '1', 'footer_tagline' => 'SnapShopWP 2014', 'footer_tagline_alt' => 'WordPress', 'footer_up_text' => '', 's_footer_lmnt_bg' => '#ffffff', 's_footer_lmnt_txt' => '#808080', 's_footer_lmnt_lnk' => '#808080', 's_footer_lmnt_lnkhvr' => '#c74c44', 's_footer_lmnt_brdr' => '#eaeaea', 'f_footer_fbr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_footer_fbrggl_on' => '1', 'f_footer_fbrggl' => array('face' => 'Open Sans', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'woo-columns' => '4', 'woo-columns-rel' => '4', 'woo_per_page' => '12', 'woo_rel_per_page' => '4', 'sidebar-woo' => '1', 'sidebar-woo-position' => '1', 'sidebar-woo-single' => '1', 'sidebar-woo-single-position' => '0', 'sidebar-woo-size' => '5', 'shop-widgets-before' => 'none', 'shop-widgets-after' => 'none', 'product-widgets-before' => 'none', 'product-widgets-after' => 'none', 'site_layout' => 'wide', 'responsive' => '1', 'loader_background' => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/logo-clean.png', 'tracking-code' => '', 'content_width' => '1920', 'fb_hres_c' => '36', 'fb_bmargin' => '36', 'fb_hres_w' => '1200', 'fb_mres_c' => '18', 'custom-css-high' => '', 'fb_mres_w' => '1024', 'fb_lres_c' => '6', 'fb_mres_s' => '1', 'custom-css-med' => '.snpshpwp_element_login-link, .snpshpwp_element_language-bar {display:none;}', 'fb_lres_w' => '768', 'fb_lres_s' => '1', 'custom-css-low' => '.snpshpwp_top_right > div {display:none;}', 'fimage_width' => '960', 'fimage_height' => '400', 'fimage_override' => '0', 'single_fimage_width' => '1200', 'single_fimage_height' => '400', 'single_fimage_override' => '1', 'twitter_ck' => 'WTpkUO8EKqFf7LIufyxymw', 'twitter_cs' => 'FTTyvUgl576OSiA86aFL4s3Mo3Ym7XmRoccOsN4xqU', 'twitter_at' => '966576138-B4gBnApgj9Khbt7931uowPw6KVHfBb4fB1Njp5SC', 'twitter_ats' => 'gBqkVVG6cW2qC9sInSVKYBD0N0IpXgmauPsifhSg8wg4J', 'mailchimp' => '0', 'mailchimp_override' => '', 'language' => array(1 => array('order' => '1', 'flag' => 'uk.png', 'language' => 'English', 'langurl' => '#'), 2 => array('order' => '2', 'flag' => 'france.png', 'language' => 'French', 'langurl' => '#'), 3 => array('order' => '3', 'flag' => 'germany.png', 'language' => 'German', 'langurl' => '#')), 'custom-css' => '', 'custom-css-snpshp_limit_width' => '1301'), 'home' => '2', 'widgets' => array('sidebars_widgets' => array('sidebar-1' => array(0 => 'text-3', 1 => 'search-2', 2 => 'recent-posts-2', 3 => 'recent-comments-2', 4 => 'archives-2', 5 => 'meta-2'), 'wp_inactive_widgets' => array(), 'sidebar-blog' => array(0 => 'snpshpwp_category-3', 1 => 'recent-posts-5'), 'sidebar-single' => array(0 => 'snpshpwp_category-6', 1 => 'categories-4', 2 => 'tag_cloud-3'), 'sidebar-page' => array(0 => 'text-4', 1 => 'text-5', 2 => 'snpshpwp_category-5', 3 => 'woocommerce_products-6', 4 => 'snpshpwp_twitter-2'), 'footer-1' => array(0 => 'text-2'), 'footer-2' => array(0 => 'text-9', 1 => 'woocommerce_product_search-2'), 'footer-3' => array(0 => 'text-7', 1 => 'socialbro-3'), 'footer-4' => array(), 'footer-5' => array(), 'sidebar-woo' => array(0 => 'woocommerce_product_categories-2', 1 => 'woocommerce_price_filter-2'), 'sidebar-woo-single' => array(0 => 'woocommerce_product_categories-3'), 'header-left-sidenav' => array(0 => 'snpshpwp_category-4', 1 => 'nav_menu-2', 2 => 'recent-posts-3'), 'header-right-sidenav' => array(0 => 'nav_menu-3', 1 => 'nav_menu-4', 2 => 'socialbro-2'), 'bottom-1' => array(0 => 'woocommerce_top_rated_products-2'), 'bottom-2' => array(0 => 'woocommerce_recent_reviews-2'), 'bottom-3' => array(0 => 'woocommerce_products-5'), 'bottom-4' => array(0 => 'woocommerce_product_categories-4'), 'blog-archive-custom' => array(0 => 'snpshpwp_category-7', 1 => 'tag_cloud-4', 2 => 'text-6'), 'array_version' => 3), 'widget_categories' => array(4 => array('title' => '', 'count' => 1, 'hierarchical' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_text' => array(2 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/envato/logo-footer.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 3 => array('title' => 'OUR LINKS', 'text' => '<a href="#">Envato.com</h3></a><BR> <a href="#">Themeforest.net</a><BR> <a href="#">Codecanyon.net</a><BR> <a href="#">Videohive.net</a><BR> <a href="#">Shindiristudio.com</a><BR>', 'filter' => false), 4 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/envato/logo-footer.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 5 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad21.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad13.jpg"></img>', 'filter' => false), 6 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg">', 'filter' => false), 7 => array('title' => 'GET IN TOUCH', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 9 => array('title' => 'Search Products', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), '_multiwidget' => 1), 'widget_rss' => array(1 => array(), '_multiwidget' => 1), 'widget_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_recent-posts' => array(2 => array('title' => '', 'number' => 5), 3 => array('title' => '', 'number' => 5, 'show_date' => false), 5 => array('title' => '', 'number' => 5, 'show_date' => false), '_multiwidget' => 1), 'widget_recent-comments' => array(2 => array('title' => '', 'number' => 5), '_multiwidget' => 1), 'widget_archives' => array(2 => array('title' => '', 'count' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_meta' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_nav_menu' => array(2 => array('title' => '', 'nav_menu' => 13), 3 => array('title' => 'THIS IS SNAPSHOP', 'nav_menu' => 32), 4 => array('title' => 'CLOSE AND PERSONAL', 'nav_menu' => 33), '_multiwidget' => 1), 'widget_pages' => array(1 => array(), '_multiwidget' => 1), 'widget_snpshpwp_twitter' => array(1 => array(), 2 => array('title' => 'LATEST FROM TWITTER', 'user' => '', 'count' => '1'), '_multiwidget' => 1), 'widget_snpshpwp_category' => array(3 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '5'), 4 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '3'), 5 => array('title' => 'LATEST BLOG POSTS', 'order' => 'date', 'category' => '-1', 'number' => '3'), 6 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), 7 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), '_multiwidget' => 1), 'widget_woocommerce_products' => array(5 => array('title' => '', 'number' => '4', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), 6 => array('title' => 'FEATURED PRODUCTS', 'number' => '3', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_categories' => array(2 => array('title' => 'Product Categories', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 3 => array('title' => 'Product Categories', 'orderby' => 'name', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 4 => array('title' => '', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_tag_cloud' => array(3 => array('title' => '', 'taxonomy' => 'post_tag'), 4 => array('title' => 'POPULAR TAGS', 'taxonomy' => 'post_tag'), '_multiwidget' => 1), 'widget_woocommerce_price_filter' => array(2 => array('title' => 'Filter by price'), '_multiwidget' => 1), 'widget_woocommerce_recently_viewed_products' => array('_multiwidget' => 1), 'widget_woocommerce_product_tag_cloud' => array(1 => array(), '_multiwidget' => 1), 'widget_socialbro' => array(2 => array('title' => 'CONNECT WITH SNAPSHOP', 'opacity' => '50', 'hover_opacity' => '100', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Like Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Follow Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Plus Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Rate Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pin Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::Digg Us'), 3 => array('title' => '', 'opacity' => '100', 'hover_opacity' => '70', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Facebook||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Google +||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Twitter||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pinteresr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::DiggIt||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0059_Vector-Smart-Object.png::#::Flickr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Envato||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0015_Vector-Smart-Object.png::#::RSS'), '_multiwidget' => 1), 'widget_calendar' => array(1 => array(), '_multiwidget' => 1), 'widget_rev-slider-widget' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_widget_cart' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav_filters' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_recent_reviews' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1), 'widget_woocommerce_top_rated_products' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1)), 'images' => array(1362 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/logo-newsletter.png', 1315 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt8.jpg', 1314 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt7.jpg', 1313 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt6.jpg', 1309 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt5.jpg', 1304 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt4.jpg', 1303 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt3.jpg', 1302 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt2.jpg', 1298 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shirt1.jpg', 1286 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/08/shoes-big.jpg', 1212 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes5-1.jpg', 1211 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes5.jpg', 1209 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes4-1.jpg', 1208 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes4.jpg', 1206 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes3-1.jpg', 1205 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes3.jpg', 1203 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes2-1.jpg', 1202 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes2.jpg', 1200 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes1-1.jpg', 1199 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/shoes1.jpg', 1197 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-23.jpg', 1196 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-13.jpg', 1195 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/45.jpg', 1193 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-14.jpg', 1192 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/35.jpg', 1190 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-24.jpg', 1189 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-14.jpg', 1188 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/25.jpg', 1186 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-24.jpg', 1185 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-14.jpg', 1184 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/16.jpg', 1181 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-32.jpg', 1180 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-22.jpg', 1179 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-12.jpg', 1178 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/63.jpg', 1176 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-32.jpg', 1175 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-22.jpg', 1174 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-12.jpg', 1173 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/52.jpg', 1171 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-32.jpg', 1170 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-22.jpg', 1169 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-12.jpg', 1168 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/44.jpg', 1166 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-33.jpg', 1165 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-23.jpg', 1164 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-13.jpg', 1163 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/34.jpg', 1161 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-33.jpg', 1160 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-23.jpg', 1159 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-13.jpg', 1158 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/24.jpg', 1156 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-33.jpg', 1155 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-23.jpg', 1154 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-13.jpg', 1153 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/14.jpg', 1095 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/blog3.jpg', 1093 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/blog2.jpg', 1057 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/blog1.jpg', 1026 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad31.jpg', 974 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture10.jpg', 966 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture4.jpg', 965 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture7.jpg', 964 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture6.jpg', 963 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture5.jpg', 961 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture8.jpg', 957 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/background.jpg', 950 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture3.png', 949 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture2.png', 948 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/furniture1.png', 943 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/clothes5.jpg', 942 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/clothes4.jpg', 941 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/clothes3.jpg', 940 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/clothes2.jpg', 939 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/clothes1.jpg', 934 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/gadget4.jpg', 932 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/gadget3.jpg', 930 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/gadget2.jpg', 925 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/gadget1.jpg', 922 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/about-us-wide.jpg', 839 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/caseinfo-xx-bg-light.png', 789 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/43.jpg', 788 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/82.jpg', 787 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/62.jpg', 779 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/about-us1.jpg', 778 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/about-us.jpg', 765 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/cubes.png', 739 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook15.jpg', 738 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook14.jpg', 737 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook13.jpg', 736 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook121.jpg', 735 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook111.jpg', 732 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook10.jpg', 731 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook9.jpg', 730 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook8.jpg', 729 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook7.jpg', 724 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook12.jpg', 721 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook6.jpg', 710 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook5.jpg', 709 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook4.jpg', 708 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook3.jpg', 707 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/wlookbook2.jpg', 697 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/menu-image-11.jpg', 695 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Dark-Chalkboard.jpg', 693 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sHAPED.gif', 690 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/lookbook5.jpg', 688 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/lookbook4.jpg', 685 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/lookbook3.jpg', 682 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/lookbook2.jpg', 674 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-3-blur.png', 673 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-2-blur-more.png', 671 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-5.png', 670 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-4.png', 669 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-3.png', 668 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-2.png', 667 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-1.png', 666 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/Para-Background.jpg', 608 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner8.jpg', 607 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner7.jpg', 606 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner6.jpg', 605 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner5.jpg', 604 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner4.jpg', 603 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner3.jpg', 602 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/banner21.jpg', 562 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/lookbook1.jpg', 544 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-header1.jpg', 541 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg', 527 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/menu-image5.jpg', 492 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-parallax11.jpg', 472 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/logo-clean.png', 461 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/tablets.png', 435 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-simple-image1.jpg', 425 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-simple-headert.jpg', 419 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/timeline4.jpg', 418 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/timeline3.jpg', 417 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/timeline2.jpg', 416 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/timeline12.jpg', 415 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/timeline11.jpg', 412 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/timeline1.jpg', 405 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/grid3.jpg', 404 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/grid2.jpg', 403 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/grid1.jpg', 365 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/preview1.jpg', 362 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-feature12.jpg', 361 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-feature11.jpg', 360 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-feature1.jpg', 359 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/42.jpg', 358 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/33.jpg', 357 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/23.jpg', 354 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/grid-home1.jpg', 297 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad21.jpg', 295 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad13.jpg', 279 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8-31.jpg', 278 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8-21.jpg', 277 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8-11.jpg', 276 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/81.jpg', 274 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7-31.jpg', 273 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7-21.jpg', 272 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7-11.jpg', 271 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/71.jpg', 269 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-31.jpg', 268 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-21.jpg', 267 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-11.jpg', 266 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/61.jpg', 264 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-31.jpg', 263 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-21.jpg', 262 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-11.jpg', 261 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/51.jpg', 259 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-31.jpg', 258 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-21.jpg', 257 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-11.jpg', 256 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/41.jpg', 254 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-32.jpg', 253 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-22.jpg', 252 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-12.jpg', 251 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/32.jpg', 249 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-32.jpg', 248 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-22.jpg', 247 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-12.jpg', 246 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/22.jpg', 244 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-32.jpg', 243 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-22.jpg', 242 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-12.jpg', 241 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/13.jpg', 228 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/grid-home.jpg', 218 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-parallax1.jpg', 202 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/featured3.jpg', 201 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/featured1.jpg', 200 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/featured2.jpg', 190 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/home-parallax.jpg', 186 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/featured31.jpg', 185 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/featured22.jpg', 183 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/featured11.jpg', 166 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8-3.jpg', 165 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8-2.jpg', 164 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8-1.jpg', 163 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/8.jpg', 161 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7-3.jpg', 160 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7-2.jpg', 159 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7-1.jpg', 158 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/7.jpg', 156 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-3.jpg', 155 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-2.jpg', 154 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6-1.jpg', 153 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/6.jpg', 151 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-3.jpg', 150 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-2.jpg', 149 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5-1.jpg', 148 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/5.jpg', 146 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-3.jpg', 145 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-2.jpg', 144 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4-1.jpg', 143 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/4.jpg', 138 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-31.jpg', 137 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-21.jpg', 136 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-11.jpg', 135 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/31.jpg', 133 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-31.jpg', 132 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-21.jpg', 131 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-11.jpg', 130 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/21.jpg', 124 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-31.jpg', 123 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-21.jpg', 122 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-11.jpg', 121 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/12.jpg', 94 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/logo1.png', 90 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/11.jpg', 79 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-3.jpg', 78 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-2.jpg', 77 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3-1.jpg', 76 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/3.jpg', 74 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-3.jpg', 73 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-2.jpg', 72 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2-1.jpg', 71 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/2.jpg', 69 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-3.jpg', 68 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-2.jpg', 67 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1-1.jpg', 66 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/1.jpg', 61 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/15.jpg', 35 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/06/4-1.jpg', 32 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/04/blog002.jpg', 30 => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/06/blog001.jpg')), 'snapshop-boxed' => array('options' => array('blog_layout' => '3', 'blog_excerpt' => '223', 'snpshpwp_hide_featarea' => '0', 'snpshpwp_hide_title' => '0', 'snpshpwp_hide_tags' => '0', 'snpshpwp_hide_related_main' => '0', 'snpshpwp_related_columns' => '3', 'snpshpwp_hide_meta' => '0', 'snpshpwp_hide_author' => '0', 'snpshpwp_hide_postmeta' => '0', 'snpshpwp_hide_share' => '0', 'snpshpwp_hide_related_side' => '1', 'contactform_message' => '', 'contact' => array(1 => array('order' => '1', 'url' => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/82.jpg', 'name' => 'James McMilan', 'email' => '*****@*****.**', 'job' => 'Web Designer', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'twitter.png'), 3 => array('socialnetworksurl' => '#', 'socialnetworks' => 'google.png'))), 2 => array('order' => '2', 'url' => '', 'name' => 'Trisha Takinawa', 'email' => '*****@*****.**', 'job' => 'Sales Manager', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'white_spotify.png')))), 'favicon' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti57' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti72' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti114' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti144' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'header_bar' => '0', 'header_bar_height' => '30', 'header_bar_left' => array('disabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'login-link' => 'login-link', 'network-icons' => 'network-icons', 'tagline-alt' => 'tagline-alt', 'menu' => 'menu'), 'enabled' => array('placebo' => 'placebo', 'tagline' => 'tagline')), 'header_bar_right' => array('disabled' => array('placebo' => 'placebo', 'menu' => 'menu', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'login-link' => 'login-link'), 'enabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'tagline-alt' => 'tagline-alt')), 'header_bar_menu' => 'side-menu-1', 'header_bar_networks' => '1', 'header_bar_tagline' => '<i class="fa fa-phone-square"></i> REACH OUT TO US: <STRONG>+381 (0) 63 255 7004</STRONG>', 'header_bar_tagline_alt' => 'Write us at: <STRONG><a href="#">info@yourdomain.com</a></STRONG>', 's_header_bar_bg' => '#111111', 's_header_bar_txt' => '#ffffff', 's_header_bar_lnk' => '#ffffff', 's_header_bar_lnkhvr' => '#c74c44', 's_header_bar_brdr' => '#c74c44', 'f_header_bar_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_bar_mnggl_on' => '1', 'f_header_bar_mnggl' => array('face' => 'Rokkitt', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'header_height' => '60', 'header_sticky' => '0', 'header_width' => '1920', 'header_mode' => 'center', 'header_left' => array('disabled' => array('placebo' => 'placebo', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'woo-cart' => 'woo-cart', 'network-icons' => 'network-icons', 'sidenav' => 'sidenav', 'search' => 'search', 'login-link' => 'login-link', 'logo' => 'logo'), 'enabled' => array('placebo' => 'placebo', 'menu' => 'menu')), 'header_right' => array('disabled' => array('placebo' => 'placebo', 'logo' => 'logo', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'login-link' => 'login-link', 'sidenav' => 'sidenav'), 'enabled' => array('placebo' => 'placebo', 'woo-cart' => 'woo-cart', 'search' => 'search')), 'header_logo' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/uploads/2014/07/logo1.png', 'header_tagline' => 'FramedWP by br0', 'header_tagline_alt' => 'WordPress', 'header_left_sidenav' => 'header-left-sidenav', 'header_right_sidenav' => 'header-right-sidenav', 'header_menu' => 'header-1', 'header_networks' => '1', 'header_custom' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/uploads/sites/6/2014/08/logo-boxed-slider.png', 'header_custom_height' => '160', 's_header_bg' => '#ffffff', 's_header_txt' => '#222222', 's_header_lnk' => '#222222', 's_header_lnkhvr' => '#c74c44', 's_header_brdr' => '#cccccc', 's_header_tpbrdr' => '#222222', 's_header_drpdwn_bg' => '#222222', 's_header_drpdwn_lnk' => '#ffffff', 's_header_drpdwn_lnkhvr' => '#c74c44', 's_header_ldbr' => '#c74c44', 'f_header_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_mnggl_on' => '1', 'f_header_mnggl' => array('face' => 'Rokkitt', 'size' => '17px', 'style' => 'normal', 'weight' => '500'), 'f_header_drpdwn' => array('face' => 'Lovelo', 'size' => '17px', 'style' => 'normal', 'weight' => '400'), 'f_header_drpdwnggl_on' => '1', 'f_header_drpdwnggl' => array('face' => 'Rokkitt', 'size' => '15px', 'style' => 'normal', 'weight' => '400'), 'breadcrumbs_active' => '0', 'breadcrumbs_height' => '60', 'breadcrumbs_tagline' => '', 's_breadcrumbs_bg' => '#ffffff', 's_breadcrumbs_txt' => '#808080', 's_breadcrumbs_lnk' => '#222222', 's_breadcrumbs_lnkhvr' => '#c74c44', 's_breadcrumbs_brdr' => '#cccccc', 'f_breadcrumbs' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_breadcrumbs_ggl_on' => '1', 'f_breadcrumbs_ggl' => array('face' => 'Rokkitt', 'size' => '17px', 'style' => 'normal', 'weight' => '400'), 'snpshpwp_hide_page_title' => '0', 'enable_comments' => '0', 's_post_bg' => '#ffffff', 's_post_txt' => '#808080', 's_post_hdr' => '#222222', 's_post_lnk' => '#c74c44', 's_post_lnkhvr' => '#c74c44', 's_post_brdr' => '#cccccc', 's_post_bttn' => '#222222', 's_post_bttnhvr' => '#c74c44', 's_post_bttnlnk' => '#ffffff', 's_post_bttnlnkhvr' => '#ffffff', 'f_post_mn' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_mnggl_on' => '1', 'f_post_mnggl' => array('face' => 'Rokkitt', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdrggl_on' => '1', 'f_post_hdrggl' => array('face' => 'Rokkitt', 'size' => '17px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsv' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsvggl_on' => '1', 'f_post_crsvggl' => array('face' => 'Rokkitt', 'size' => '16px', 'style' => 'italic', 'weight' => '400'), 'sidebar-size' => '5', 'sidebar-blog' => '1', 'sidebar-blog-position' => '0', 'sidebar-single' => '1', 'sidebar-single-position' => '1', 'sidebar-page' => '1', 'sidebar-page-position' => '0', 'sidebar' => array(1 => array('order' => '1', 'title' => 'Header Left Sidenav'), 2 => array('order' => '2', 'title' => 'Header Right Sidenav'), 3 => array('order' => '3', 'title' => 'Bottom 1'), 4 => array('order' => '4', 'title' => 'Bottom 2'), 5 => array('order' => '5', 'title' => 'Bottom 3'), 6 => array('order' => '6', 'title' => 'Bottom 4'), 7 => array('order' => '7', 'title' => 'Blog Archive - Custom')), 'footer_area' => '0', 'footer_widgets' => '0', 'footer_sidebar' => '3', 'footer_width' => '1301', 's_footer_tpbrdr' => '#222222', 's_footer_bg' => '#222222', 's_footer_txt' => '#808080', 's_footer_hdr' => '#ffffff', 's_footer_lnk' => '#ffffff', 's_footer_lnkhvr' => '#c74c44', 'f_footer_wt' => array('face' => 'Lovelo', 'size' => '15px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtggl_on' => '1', 'f_footer_wtggl' => array('face' => 'Rokkitt', 'size' => '17px', 'style' => 'normal', 'weight' => '600'), 'f_footer_wtxt' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxtggl_on' => '1', 'f_footer_wtxtggl' => array('face' => 'Rokkitt', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'footer_bar' => '0', 'footer_height' => '60', 'footer_left' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'tagline-alt' => 'tagline-alt', 'to-the-top' => 'to-the-top'), 'enabled' => array('placebo' => 'placebo', 'menu' => 'menu')), 'footer_right' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'menu' => 'menu', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'network-icons' => 'network-icons'), 'enabled' => array('placebo' => 'placebo', 'to-the-top' => 'to-the-top')), 'footer_menu' => 'header-1', 'footer_networks' => '1', 'footer_tagline' => 'SnapShopWP 2014', 'footer_tagline_alt' => 'WordPress', 'footer_up_text' => '', 's_footer_lmnt_bg' => '#111111', 's_footer_lmnt_txt' => '#808080', 's_footer_lmnt_lnk' => '#808080', 's_footer_lmnt_lnkhvr' => '#c74c44', 's_footer_lmnt_brdr' => '#222222', 'f_footer_fbr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_footer_fbrggl_on' => '1', 'f_footer_fbrggl' => array('face' => 'Rokkitt', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'woo-columns' => '3', 'woo-columns-rel' => '4', 'woo_per_page' => '12', 'woo_rel_per_page' => '4', 'sidebar-woo' => '1', 'sidebar-woo-position' => '1', 'sidebar-woo-single' => '0', 'sidebar-woo-single-position' => '0', 'sidebar-woo-size' => '4', 'shop-widgets-before' => 'none', 'shop-widgets-after' => 'none', 'product-widgets-before' => 'none', 'product-widgets-after' => 'none', 'site_layout' => 'boxed', 'responsive' => '1', 'loader_background' => 'http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/uploads/sites/6/2014/08/logo-newsletter.png', 'tracking-code' => '', 'content_width' => '1360', 'fb_hres_c' => '36', 'fb_bmargin' => '36', 'fb_hres_w' => '1200', 'fb_mres_c' => '18', 'custom-css-high' => '', 'fb_mres_w' => '1024', 'fb_lres_c' => '6', 'fb_mres_s' => '1', 'custom-css-med' => '', 'fb_lres_w' => '768', 'fb_lres_s' => '1', 'custom-css-low' => '', 'fimage_width' => '960', 'fimage_height' => '400', 'fimage_override' => '0', 'single_fimage_width' => '1200', 'single_fimage_height' => '400', 'single_fimage_override' => '1', 'twitter_ck' => 'WTpkUO8EKqFf7LIufyxymw', 'twitter_cs' => 'FTTyvUgl576OSiA86aFL4s3Mo3Ym7XmRoccOsN4xqU', 'twitter_at' => '966576138-B4gBnApgj9Khbt7931uowPw6KVHfBb4fB1Njp5SC', 'twitter_ats' => 'gBqkVVG6cW2qC9sInSVKYBD0N0IpXgmauPsifhSg8wg4J', 'mailchimp' => '0', 'mailchimp_override' => '', 'language' => array(1 => array('order' => '1', 'flag' => 'uk.png', 'language' => 'English', 'langurl' => '#'), 2 => array('order' => '2', 'flag' => 'france.png', 'language' => 'French', 'langurl' => '#'), 3 => array('order' => '3', 'flag' => 'germany.png', 'language' => 'German', 'langurl' => '#')), 'custom-css' => '', 'custom-css-snpshp_limit_width' => '1301'), 'home' => '2', 'widgets' => array('sidebars_widgets' => array('sidebar-1' => array(0 => 'text-3', 1 => 'search-2', 2 => 'recent-posts-2', 3 => 'recent-comments-2', 4 => 'archives-2', 5 => 'meta-2'), 'wp_inactive_widgets' => array(), 'sidebar-blog' => array(0 => 'snpshpwp_category-3', 1 => 'recent-posts-5'), 'sidebar-single' => array(0 => 'snpshpwp_category-6', 1 => 'categories-4', 2 => 'tag_cloud-3'), 'sidebar-page' => array(0 => 'text-4', 1 => 'text-5', 2 => 'snpshpwp_category-5', 3 => 'woocommerce_products-6', 4 => 'snpshpwp_twitter-2'), 'footer-1' => array(0 => 'text-2'), 'footer-2' => array(0 => 'text-9', 1 => 'woocommerce_product_search-2'), 'footer-3' => array(0 => 'text-7', 1 => 'socialbro-3'), 'footer-4' => array(), 'footer-5' => array(), 'sidebar-woo' => array(0 => 'woocommerce_product_categories-2'), 'sidebar-woo-single' => array(0 => 'woocommerce_product_categories-3'), 'header-left-sidenav' => array(0 => 'snpshpwp_category-4', 1 => 'nav_menu-2', 2 => 'recent-posts-3'), 'header-right-sidenav' => array(0 => 'nav_menu-3', 1 => 'nav_menu-4', 2 => 'socialbro-2'), 'bottom-1' => array(0 => 'woocommerce_top_rated_products-2'), 'bottom-2' => array(0 => 'woocommerce_recent_reviews-2'), 'bottom-3' => array(0 => 'woocommerce_products-5'), 'bottom-4' => array(0 => 'woocommerce_product_categories-4'), 'blog-archive-custom' => array(0 => 'snpshpwp_category-7', 1 => 'tag_cloud-4', 2 => 'text-6'), 'array_version' => 3), 'widget_categories' => array(4 => array('title' => '', 'count' => 1, 'hierarchical' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_text' => array(2 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/shop-boxed/wp-content/uploads/sites/6/2014/08/logo-boxed-footer1.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 3 => array('title' => 'OUR LINKS', 'text' => '<a href="#">Envato.com</h3></a><BR> <a href="#">Themeforest.net</a><BR> <a href="#">Codecanyon.net</a><BR> <a href="#">Videohive.net</a><BR> <a href="#">Shindiristudio.com</a><BR>', 'filter' => false), 4 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/envato/logo-footer.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 5 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad21.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad13.jpg"></img>', 'filter' => false), 6 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg">', 'filter' => false), 7 => array('title' => 'GET IN TOUCH', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 9 => array('title' => 'Search Products', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), '_multiwidget' => 1), 'widget_rss' => array(1 => array(), '_multiwidget' => 1), 'widget_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_recent-posts' => array(2 => array('title' => '', 'number' => 5), 3 => array('title' => '', 'number' => 5, 'show_date' => false), 5 => array('title' => '', 'number' => 5, 'show_date' => false), '_multiwidget' => 1), 'widget_recent-comments' => array(2 => array('title' => '', 'number' => 5), '_multiwidget' => 1), 'widget_archives' => array(2 => array('title' => '', 'count' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_meta' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_nav_menu' => array(2 => array('title' => '', 'nav_menu' => 13), 3 => array('title' => 'THIS IS SNAPSHOP', 'nav_menu' => 32), 4 => array('title' => 'CLOSE AND PERSONAL', 'nav_menu' => 33), '_multiwidget' => 1), 'widget_pages' => array(1 => array(), '_multiwidget' => 1), 'widget_snpshpwp_twitter' => array(1 => array(), 2 => array('title' => 'LATEST FROM TWITTER', 'user' => '', 'count' => '1'), '_multiwidget' => 1), 'widget_snpshpwp_category' => array(3 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '5'), 4 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '3'), 5 => array('title' => 'LATEST BLOG POSTS', 'order' => 'date', 'category' => '-1', 'number' => '3'), 6 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), 7 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), '_multiwidget' => 1), 'widget_woocommerce_products' => array(5 => array('title' => '', 'number' => '4', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), 6 => array('title' => 'FEATURED PRODUCTS', 'number' => '3', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_categories' => array(2 => array('title' => 'Product Categories', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => 0, 'show_children_only' => 0), 3 => array('title' => 'Product Categories', 'orderby' => 'name', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 4 => array('title' => '', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => 0, 'show_children_only' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_tag_cloud' => array(3 => array('title' => '', 'taxonomy' => 'post_tag'), 4 => array('title' => 'POPULAR TAGS', 'taxonomy' => 'post_tag'), '_multiwidget' => 1), 'widget_woocommerce_price_filter' => array('_multiwidget' => 1, 1 => array()), 'widget_woocommerce_recently_viewed_products' => array('_multiwidget' => 1, 1 => array()), 'widget_woocommerce_product_tag_cloud' => array(1 => array(), '_multiwidget' => 1), 'widget_socialbro' => array(2 => array('title' => 'CONNECT WITH SNAPSHOP', 'opacity' => '50', 'hover_opacity' => '100', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Like Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Follow Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Plus Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Rate Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pin Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::Digg Us'), 3 => array('title' => '', 'opacity' => '100', 'hover_opacity' => '70', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Facebook||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Google +||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Twitter||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pinteresr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::DiggIt||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0059_Vector-Smart-Object.png::#::Flickr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Envato||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0015_Vector-Smart-Object.png::#::RSS'), '_multiwidget' => 1), 'widget_calendar' => array(1 => array(), '_multiwidget' => 1), 'widget_rev-slider-widget' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_widget_cart' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav_filters' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_recent_reviews' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1), 'widget_woocommerce_top_rated_products' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1))), 'snapshop-creative' => array('options' => array('blog_layout' => '3', 'blog_excerpt' => '223', 'snpshpwp_hide_featarea' => '0', 'snpshpwp_hide_title' => '0', 'snpshpwp_hide_tags' => '0', 'snpshpwp_hide_related_main' => '0', 'snpshpwp_related_columns' => '3', 'snpshpwp_hide_meta' => '0', 'snpshpwp_hide_author' => '0', 'snpshpwp_hide_postmeta' => '0', 'snpshpwp_hide_share' => '0', 'snpshpwp_hide_related_side' => '1', 'contactform_message' => '', 'contact' => array(1 => array('order' => '1', 'url' => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/82.jpg', 'name' => 'James McMilan', 'email' => '*****@*****.**', 'job' => 'Web Designer', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'twitter.png'), 3 => array('socialnetworksurl' => '#', 'socialnetworks' => 'google.png'))), 2 => array('order' => '2', 'url' => '', 'name' => 'Trisha Takinawa', 'email' => '*****@*****.**', 'job' => 'Sales Manager', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'white_spotify.png')))), 'favicon' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti57' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti72' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti114' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti144' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'header_bar' => '1', 'header_bar_height' => '30', 'header_bar_left' => array('disabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'login-link' => 'login-link', 'network-icons' => 'network-icons', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt'), 'enabled' => array('placebo' => 'placebo', 'tagline' => 'tagline')), 'header_bar_right' => array('disabled' => array('placebo' => 'placebo', 'menu' => 'menu', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'login-link' => 'login-link'), 'enabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'tagline-alt' => 'tagline-alt')), 'header_bar_menu' => 'side-menu', 'header_bar_networks' => '1', 'header_bar_tagline' => '<i class="fa fa-phone-square"></i> REACH OUT TO US: <STRONG>+381 (0) 63 255 7004</STRONG>', 'header_bar_tagline_alt' => 'Write us at: <STRONG><a href="#">info@yourdomain.com</a></STRONG>', 's_header_bar_bg' => '#ffffff', 's_header_bar_txt' => '#222222', 's_header_bar_lnk' => '#222222', 's_header_bar_lnkhvr' => '#c74c44', 's_header_bar_brdr' => '#cccccc', 'f_header_bar_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_bar_mnggl_on' => '1', 'f_header_bar_mnggl' => array('face' => 'PT Sans', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'header_height' => '68', 'header_sticky' => '1', 'header_width' => '1860', 'header_mode' => 'default', 'header_left' => array('disabled' => array('placebo' => 'placebo', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'woo-cart' => 'woo-cart', 'network-icons' => 'network-icons', 'search' => 'search', 'login-link' => 'login-link', 'menu' => 'menu', 'sidenav' => 'sidenav'), 'enabled' => array('placebo' => 'placebo', 'logo' => 'logo')), 'header_right' => array('disabled' => array('placebo' => 'placebo', 'logo' => 'logo', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'login-link' => 'login-link', 'search' => 'search', 'woo-cart' => 'woo-cart'), 'enabled' => array('placebo' => 'placebo', 'sidenav' => 'sidenav')), 'header_logo' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/uploads/sites/7/2014/08/logo-creative.png', 'header_tagline' => 'FramedWP by br0', 'header_tagline_alt' => 'WordPress', 'header_left_sidenav' => 'right-main-menu', 'header_right_sidenav' => 'right-main-menu', 'header_menu' => 'header-1', 'header_networks' => '1', 'header_custom' => '', 'header_custom_height' => '100', 's_header_bg' => '#222222', 's_header_txt' => '#ffffff', 's_header_lnk' => '#ffffff', 's_header_lnkhvr' => '#c74c44', 's_header_brdr' => '#222222', 's_header_tpbrdr' => '#000000', 's_header_drpdwn_bg' => '#333333', 's_header_drpdwn_lnk' => '#f2f2f2', 's_header_drpdwn_lnkhvr' => '#c74c44', 's_header_ldbr' => '#c74c44', 'f_header_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_mnggl_on' => '1', 'f_header_mnggl' => array('face' => 'Open Sans', 'size' => '16px', 'style' => 'normal', 'weight' => '700'), 'f_header_drpdwn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_drpdwnggl_on' => '1', 'f_header_drpdwnggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'breadcrumbs_active' => '0', 'breadcrumbs_height' => '60', 'breadcrumbs_tagline' => '', 's_breadcrumbs_bg' => '#ffffff', 's_breadcrumbs_txt' => '#222222', 's_breadcrumbs_lnk' => '#222222', 's_breadcrumbs_lnkhvr' => '#c74c44', 's_breadcrumbs_brdr' => '#cccccc', 'f_breadcrumbs' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_breadcrumbs_ggl_on' => '0', 'f_breadcrumbs_ggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'snpshpwp_hide_page_title' => '0', 'enable_comments' => '0', 's_post_bg' => '#ffffff', 's_post_txt' => '#808080', 's_post_hdr' => '#222222', 's_post_lnk' => '#c74c44', 's_post_lnkhvr' => '#c74c44', 's_post_brdr' => '#ffffff', 's_post_bttn' => '#222222', 's_post_bttnhvr' => '#c74c44', 's_post_bttnlnk' => '#ffffff', 's_post_bttnlnkhvr' => '#ffffff', 'f_post_mn' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_mnggl_on' => '1', 'f_post_mnggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdrggl_on' => '0', 'f_post_hdrggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsv' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsvggl_on' => '1', 'f_post_crsvggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'italic', 'weight' => '400'), 'sidebar-size' => '5', 'sidebar-blog' => '1', 'sidebar-blog-position' => '0', 'sidebar-single' => '1', 'sidebar-single-position' => '1', 'sidebar-page' => '1', 'sidebar-page-position' => '0', 'sidebar' => array(1 => array('order' => '1', 'title' => 'Header Left Sidenav'), 2 => array('order' => '2', 'title' => 'Header Right Sidenav'), 3 => array('order' => '3', 'title' => 'Bottom 1'), 4 => array('order' => '4', 'title' => 'Bottom 2'), 5 => array('order' => '5', 'title' => 'Bottom 3'), 6 => array('order' => '6', 'title' => 'Bottom 4'), 7 => array('order' => '7', 'title' => 'Blog Archive - Custom'), 8 => array('order' => '8', 'title' => 'Right Main Menu')), 'footer_area' => '0', 'footer_widgets' => '1', 'footer_sidebar' => '3', 'footer_width' => '1301', 's_footer_tpbrdr' => '#222222', 's_footer_bg' => '#ffffff', 's_footer_txt' => '#808080', 's_footer_hdr' => '#222222', 's_footer_lnk' => '#222222', 's_footer_lnkhvr' => '#c74c44', 'f_footer_wt' => array('face' => 'Lovelo', 'size' => '15px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtggl_on' => '0', 'f_footer_wtggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxt' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxtggl_on' => '1', 'f_footer_wtxtggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'footer_bar' => '0', 'footer_height' => '60', 'footer_left' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'tagline-alt' => 'tagline-alt', 'to-the-top' => 'to-the-top'), 'enabled' => array('placebo' => 'placebo', 'menu' => 'menu')), 'footer_right' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'menu' => 'menu', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'network-icons' => 'network-icons'), 'enabled' => array('placebo' => 'placebo', 'to-the-top' => 'to-the-top')), 'footer_menu' => 'header-1', 'footer_networks' => '1', 'footer_tagline' => 'SnapShopWP 2014', 'footer_tagline_alt' => 'WordPress', 'footer_up_text' => '', 's_footer_lmnt_bg' => '#222222', 's_footer_lmnt_txt' => '#f2f2f2', 's_footer_lmnt_lnk' => '#f2f2f2', 's_footer_lmnt_lnkhvr' => '#c74c44', 's_footer_lmnt_brdr' => '#222222', 'f_footer_fbr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_footer_fbrggl_on' => '1', 'f_footer_fbrggl' => array('face' => 'Open Sans', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'woo-columns' => '4', 'woo-columns-rel' => '4', 'woo_per_page' => '12', 'woo_rel_per_page' => '4', 'sidebar-woo' => '1', 'sidebar-woo-position' => '1', 'sidebar-woo-single' => '0', 'sidebar-woo-single-position' => '0', 'sidebar-woo-size' => '5', 'shop-widgets-before' => '1', 'shop-widgets-after' => 'none', 'product-widgets-before' => 'none', 'product-widgets-after' => 'none', 'site_layout' => 'contained', 'responsive' => '1', 'loader_background' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/uploads/sites/7/2014/08/logo-bllurred-11.jpg', 'tracking-code' => '', 'content_width' => '1400', 'fb_hres_c' => '36', 'fb_bmargin' => '36', 'fb_hres_w' => '1200', 'fb_mres_c' => '18', 'custom-css-high' => '', 'fb_mres_w' => '1024', 'fb_lres_c' => '6', 'fb_mres_s' => '1', 'custom-css-med' => '', 'fb_lres_w' => '768', 'fb_lres_s' => '1', 'custom-css-low' => '', 'fimage_width' => '960', 'fimage_height' => '400', 'fimage_override' => '0', 'single_fimage_width' => '1200', 'single_fimage_height' => '400', 'single_fimage_override' => '1', 'twitter_ck' => 'WTpkUO8EKqFf7LIufyxymw', 'twitter_cs' => 'FTTyvUgl576OSiA86aFL4s3Mo3Ym7XmRoccOsN4xqU', 'twitter_at' => '966576138-B4gBnApgj9Khbt7931uowPw6KVHfBb4fB1Njp5SC', 'twitter_ats' => 'gBqkVVG6cW2qC9sInSVKYBD0N0IpXgmauPsifhSg8wg4J', 'mailchimp' => '0', 'mailchimp_override' => '', 'language' => array(1 => array('order' => '1', 'flag' => 'uk.png', 'language' => 'English', 'langurl' => '#'), 2 => array('order' => '2', 'flag' => 'france.png', 'language' => 'French', 'langurl' => '#'), 3 => array('order' => '3', 'flag' => 'germany.png', 'language' => 'German', 'langurl' => '#')), 'custom-css' => '', 'custom-css-snpshp_limit_width' => '1301'), 'home' => '1284', 'widgets' => array('sidebars_widgets' => array('sidebar-1' => array(0 => 'text-3', 1 => 'search-2', 2 => 'recent-posts-2', 3 => 'recent-comments-2', 4 => 'archives-2', 5 => 'meta-2'), 'wp_inactive_widgets' => array(), 'sidebar-blog' => array(0 => 'snpshpwp_category-3', 1 => 'recent-posts-5'), 'sidebar-single' => array(0 => 'snpshpwp_category-6', 1 => 'categories-4', 2 => 'tag_cloud-3'), 'sidebar-page' => array(0 => 'text-4', 1 => 'text-5', 2 => 'snpshpwp_category-5', 3 => 'woocommerce_products-6', 4 => 'snpshpwp_twitter-2'), 'footer-1' => array(0 => 'text-2'), 'footer-2' => array(0 => 'text-9', 1 => 'woocommerce_product_search-2'), 'footer-3' => array(0 => 'text-7', 1 => 'socialbro-3'), 'footer-4' => array(), 'footer-5' => array(), 'sidebar-woo' => array(0 => 'woocommerce_product_categories-2'), 'sidebar-woo-single' => array(0 => 'woocommerce_product_categories-3'), 'shop-widgets-before-1' => array(), 'header-left-sidenav' => array(0 => 'snpshpwp_category-4', 1 => 'nav_menu-2', 2 => 'recent-posts-3'), 'header-right-sidenav' => array(0 => 'nav_menu-3', 1 => 'nav_menu-4', 2 => 'socialbro-2'), 'bottom-1' => array(0 => 'woocommerce_top_rated_products-2'), 'bottom-2' => array(0 => 'woocommerce_recent_reviews-2'), 'bottom-3' => array(0 => 'woocommerce_products-5'), 'bottom-4' => array(0 => 'woocommerce_product_categories-4'), 'blog-archive-custom' => array(0 => 'snpshpwp_category-7', 1 => 'tag_cloud-4', 2 => 'text-6'), 'right-main-menu' => array(0 => 'nav_menu-5', 1 => 'nav_menu-7', 2 => 'nav_menu-8', 3 => 'nav_menu-6', 4 => 'socialbro-4'), 'array_version' => 3), 'widget_categories' => array(4 => array('title' => '', 'count' => 1, 'hierarchical' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_text' => array(2 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/envato/logo-footer.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 3 => array('title' => 'OUR LINKS', 'text' => '<a href="#">Envato.com</h3></a><BR> <a href="#">Themeforest.net</a><BR> <a href="#">Codecanyon.net</a><BR> <a href="#">Videohive.net</a><BR> <a href="#">Shindiristudio.com</a><BR>', 'filter' => false), 4 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/envato/logo-footer.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 5 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad21.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad13.jpg"></img>', 'filter' => false), 6 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg">', 'filter' => false), 7 => array('title' => 'GET IN TOUCH', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 9 => array('title' => 'Search Products', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), '_multiwidget' => 1), 'widget_rss' => array(1 => array(), '_multiwidget' => 1), 'widget_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_recent-posts' => array(2 => array('title' => '', 'number' => 5), 3 => array('title' => '', 'number' => 5, 'show_date' => false), 5 => array('title' => '', 'number' => 5, 'show_date' => false), '_multiwidget' => 1), 'widget_recent-comments' => array(2 => array('title' => '', 'number' => 5), '_multiwidget' => 1), 'widget_archives' => array(2 => array('title' => '', 'count' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_meta' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_nav_menu' => array(2 => array('title' => '', 'nav_menu' => 32), 3 => array('title' => 'THIS IS SNAPSHOP', 'nav_menu' => 32), 4 => array('title' => 'CLOSE AND PERSONAL', 'nav_menu' => 33), 5 => array('title' => 'SNAPSHOP WP THEME', 'nav_menu' => 32), 6 => array('title' => 'YOUR ITEMS', 'nav_menu' => 33), 7 => array('title' => 'FEATURED ITEMS', 'nav_menu' => 33), 8 => array('title' => 'THIS IS SNAPSHOP', 'nav_menu' => 33), '_multiwidget' => 1), 'widget_pages' => array(1 => array(), '_multiwidget' => 1), 'widget_snpshpwp_twitter' => array(1 => array(), 2 => array('title' => 'LATEST FROM TWITTER', 'user' => '', 'count' => '1'), '_multiwidget' => 1), 'widget_snpshpwp_category' => array(3 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '5'), 4 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '3'), 5 => array('title' => 'LATEST BLOG POSTS', 'order' => 'date', 'category' => '-1', 'number' => '3'), 6 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), 7 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), '_multiwidget' => 1), 'widget_woocommerce_products' => array(5 => array('title' => '', 'number' => '4', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), 6 => array('title' => 'FEATURED PRODUCTS', 'number' => '3', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_categories' => array(2 => array('title' => 'Product Categories', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 3 => array('title' => 'Product Categories', 'orderby' => 'name', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 4 => array('title' => '', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_tag_cloud' => array(3 => array('title' => '', 'taxonomy' => 'post_tag'), 4 => array('title' => 'POPULAR TAGS', 'taxonomy' => 'post_tag'), '_multiwidget' => 1), 'widget_woocommerce_price_filter' => array('_multiwidget' => 1, 1 => array()), 'widget_woocommerce_recently_viewed_products' => array('_multiwidget' => 1, 1 => array()), 'widget_woocommerce_product_tag_cloud' => array(1 => array(), '_multiwidget' => 1), 'widget_socialbro' => array(2 => array('title' => 'CONNECT WITH SNAPSHOP', 'opacity' => '50', 'hover_opacity' => '100', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Like Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Follow Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Plus Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Rate Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pin Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::Digg Us'), 3 => array('title' => '', 'opacity' => '100', 'hover_opacity' => '70', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Facebook||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Google +||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Twitter||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pinteresr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::DiggIt||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0059_Vector-Smart-Object.png::#::Flickr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Envato||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0015_Vector-Smart-Object.png::#::RSS'), 4 => array('title' => '', 'opacity' => '70', 'hover_opacity' => '100', 'icons' => 'http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/widgets/socialbro/images/Style2/Style2_0067_Vector-Smart-Object.png::#::Facebook||http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/widgets/socialbro/images/Style2/Style2_0064_Vector-Smart-Object.png::#::Google +||http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/widgets/socialbro/images/Style2/Style2_0066_Vector-Smart-Object.png::#::Twitter||http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/widgets/socialbro/images/Style2/Style2_0059_Vector-Smart-Object.png::#::Flickr||http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/widgets/socialbro/images/Style2/Style2_0063_Vector-Smart-Object.png::#::Pinterest||http://www.shindiristudio.com/snapshop/shop-creative/wp-content/themes/snapshopWP/widgets/socialbro/images/Style2/Style2_0043_Vector-Smart-Object.png::#::MySpace'), '_multiwidget' => 1), 'widget_calendar' => array(1 => array(), '_multiwidget' => 1), 'widget_rev-slider-widget' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_widget_cart' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav_filters' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_recent_reviews' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1), 'widget_woocommerce_top_rated_products' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1))), 'snapshop-classic' => array('options' => array('blog_layout' => '3', 'blog_excerpt' => '223', 'snpshpwp_hide_featarea' => '0', 'snpshpwp_hide_title' => '0', 'snpshpwp_hide_tags' => '0', 'snpshpwp_hide_related_main' => '0', 'snpshpwp_related_columns' => '3', 'snpshpwp_hide_meta' => '0', 'snpshpwp_hide_author' => '0', 'snpshpwp_hide_postmeta' => '0', 'snpshpwp_hide_share' => '0', 'snpshpwp_hide_related_side' => '1', 'contactform_message' => '', 'contact' => array(1 => array('order' => '1', 'url' => 'http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/82.jpg', 'name' => 'James McMilan', 'email' => '*****@*****.**', 'job' => 'Web Designer', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'twitter.png'), 3 => array('socialnetworksurl' => '#', 'socialnetworks' => 'google.png'))), 2 => array('order' => '2', 'url' => '', 'name' => 'Trisha Takinawa', 'email' => '*****@*****.**', 'job' => 'Sales Manager', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'contact' => array(1 => array('socialnetworksurl' => '#', 'socialnetworks' => 'facebook.png'), 2 => array('socialnetworksurl' => '#', 'socialnetworks' => 'white_spotify.png')))), 'favicon' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti57' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti72' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti114' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'apple_ti144' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/themes/snapshopWP/images/snpshpwp_favicon.png', 'header_bar' => '0', 'header_bar_height' => '30', 'header_bar_left' => array('disabled' => array('placebo' => 'placebo', 'language-bar' => 'language-bar', 'login-link' => 'login-link', 'network-icons' => 'network-icons', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt'), 'enabled' => array('placebo' => 'placebo', 'tagline' => 'tagline')), 'header_bar_right' => array('disabled' => array('placebo' => 'placebo', 'menu' => 'menu', 'tagline' => 'tagline', 'network-icons' => 'network-icons'), 'enabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'language-bar' => 'language-bar', 'tagline-alt' => 'tagline-alt')), 'header_bar_menu' => 'side-menu', 'header_bar_networks' => '1', 'header_bar_tagline' => '<i class="fa fa-phone-square"></i> REACH OUT TO US: <STRONG>+381 (0) 63 255 7004</STRONG>', 'header_bar_tagline_alt' => 'Write us at: <STRONG><a href="#">info@yourdomain.com</a></STRONG>', 's_header_bar_bg' => '#020202', 's_header_bar_txt' => '#ffffff', 's_header_bar_lnk' => '#d0b369', 's_header_bar_lnkhvr' => '#ffffff', 's_header_bar_brdr' => '#020202', 'f_header_bar_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_bar_mnggl_on' => '1', 'f_header_bar_mnggl' => array('face' => 'PT Sans', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'header_height' => '70', 'header_sticky' => '1', 'header_width' => '1400', 'header_mode' => 'default', 'header_left' => array('disabled' => array('placebo' => 'placebo', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'woo-cart' => 'woo-cart', 'network-icons' => 'network-icons', 'sidenav' => 'sidenav', 'search' => 'search', 'login-link' => 'login-link'), 'enabled' => array('placebo' => 'placebo', 'logo' => 'logo', 'menu' => 'menu')), 'header_right' => array('disabled' => array('placebo' => 'placebo', 'logo' => 'logo', 'menu' => 'menu', 'tagline-alt' => 'tagline-alt', 'woo-login-link' => 'woo-login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'login-link' => 'login-link', 'sidenav' => 'sidenav'), 'enabled' => array('placebo' => 'placebo', 'woo-cart' => 'woo-cart', 'search' => 'search')), 'header_logo' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/uploads/sites/8/2014/08/logo-classic2.png', 'header_tagline' => 'FramedWP by br0', 'header_tagline_alt' => 'WordPress', 'header_left_sidenav' => 'header-left-sidenav', 'header_right_sidenav' => 'header-right-sidenav', 'header_menu' => 'header-1', 'header_networks' => '1', 'header_custom' => '', 'header_custom_height' => '100', 's_header_bg' => '#333333', 's_header_txt' => '#ffffff', 's_header_lnk' => '#ffffff', 's_header_lnkhvr' => '#d0b369', 's_header_brdr' => '#222222', 's_header_tpbrdr' => '#111111', 's_header_drpdwn_bg' => '#222222', 's_header_drpdwn_lnk' => '#ffffff', 's_header_drpdwn_lnkhvr' => '#d0b369', 's_header_ldbr' => '#d0b369', 'f_header_mn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_mnggl_on' => '1', 'f_header_mnggl' => array('face' => 'Raleway', 'size' => '14px', 'style' => 'normal', 'weight' => '500'), 'f_header_drpdwn' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_header_drpdwnggl_on' => '1', 'f_header_drpdwnggl' => array('face' => 'Raleway', 'size' => '13px', 'style' => 'normal', 'weight' => '300'), 'breadcrumbs_active' => '0', 'breadcrumbs_height' => '60', 'breadcrumbs_tagline' => '', 's_breadcrumbs_bg' => '#ffffff', 's_breadcrumbs_txt' => '#222222', 's_breadcrumbs_lnk' => '#222222', 's_breadcrumbs_lnkhvr' => '#c74c44', 's_breadcrumbs_brdr' => '#cccccc', 'f_breadcrumbs' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_breadcrumbs_ggl_on' => '0', 'f_breadcrumbs_ggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'snpshpwp_hide_page_title' => '0', 'enable_comments' => '0', 's_post_bg' => '#ffffff', 's_post_txt' => '#808080', 's_post_hdr' => '#222222', 's_post_lnk' => '#d0b369', 's_post_lnkhvr' => '#d1ab4d', 's_post_brdr' => '#cccccc', 's_post_bttn' => '#222222', 's_post_bttnhvr' => '#d0b369', 's_post_bttnlnk' => '#ffffff', 's_post_bttnlnkhvr' => '#ffffff', 'f_post_mn' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_mnggl_on' => '1', 'f_post_mnggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_post_hdrggl_on' => '1', 'f_post_hdrggl' => array('face' => 'Raleway', 'size' => '16px', 'style' => 'normal', 'weight' => '300'), 'f_post_crsv' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_post_crsvggl_on' => '1', 'f_post_crsvggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'italic', 'weight' => '400'), 'sidebar-size' => '5', 'sidebar-blog' => '1', 'sidebar-blog-position' => '0', 'sidebar-single' => '1', 'sidebar-single-position' => '1', 'sidebar-page' => '1', 'sidebar-page-position' => '0', 'sidebar' => array(1 => array('order' => '1', 'title' => 'Header Left Sidenav'), 2 => array('order' => '2', 'title' => 'Header Right Sidenav'), 3 => array('order' => '3', 'title' => 'Bottom 1'), 4 => array('order' => '4', 'title' => 'Bottom 2'), 5 => array('order' => '5', 'title' => 'Bottom 3'), 6 => array('order' => '6', 'title' => 'Bottom 4'), 7 => array('order' => '7', 'title' => 'Blog Archive - Custom')), 'footer_area' => '0', 'footer_widgets' => '0', 'footer_sidebar' => '3', 'footer_width' => '1301', 's_footer_tpbrdr' => '#222222', 's_footer_bg' => '#222222', 's_footer_txt' => '#808080', 's_footer_hdr' => '#ffffff', 's_footer_lnk' => '#d0b369', 's_footer_lnkhvr' => '#ffffff', 'f_footer_wt' => array('face' => 'Lovelo', 'size' => '15px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtggl_on' => '0', 'f_footer_wtggl' => array('face' => 'PT Serif', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxt' => array('face' => 'Lovelo', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'f_footer_wtxtggl_on' => '1', 'f_footer_wtxtggl' => array('face' => 'Open Sans', 'size' => '14px', 'style' => 'normal', 'weight' => '400'), 'footer_bar' => '0', 'footer_height' => '40', 'footer_left' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'tagline' => 'tagline', 'network-icons' => 'network-icons', 'tagline-alt' => 'tagline-alt', 'to-the-top' => 'to-the-top'), 'enabled' => array('placebo' => 'placebo', 'menu' => 'menu')), 'footer_right' => array('disabled' => array('placebo' => 'placebo', 'login-link' => 'login-link', 'menu' => 'menu', 'tagline' => 'tagline', 'tagline-alt' => 'tagline-alt', 'network-icons' => 'network-icons'), 'enabled' => array('placebo' => 'placebo', 'to-the-top' => 'to-the-top')), 'footer_menu' => 'header-1', 'footer_networks' => '1', 'footer_tagline' => 'SnapShopWP 2014', 'footer_tagline_alt' => 'WordPress', 'footer_up_text' => '', 's_footer_lmnt_bg' => '#d0b369', 's_footer_lmnt_txt' => '#222222', 's_footer_lmnt_lnk' => '#222222', 's_footer_lmnt_lnkhvr' => '#ffffff', 's_footer_lmnt_brdr' => '#222222', 'f_footer_fbr' => array('face' => 'Lovelo', 'size' => '16px', 'style' => 'normal', 'weight' => '400'), 'f_footer_fbrggl_on' => '1', 'f_footer_fbrggl' => array('face' => 'Open Sans', 'size' => '12px', 'style' => 'normal', 'weight' => '400'), 'woo-columns' => '3', 'woo-columns-rel' => '4', 'woo_per_page' => '12', 'woo_rel_per_page' => '4', 'sidebar-woo' => '1', 'sidebar-woo-position' => '1', 'sidebar-woo-single' => '0', 'sidebar-woo-single-position' => '0', 'sidebar-woo-size' => '4', 'shop-widgets-before' => 'none', 'shop-widgets-after' => 'none', 'product-widgets-before' => 'none', 'product-widgets-after' => 'none', 'site_layout' => 'contained', 'responsive' => '1', 'loader_background' => 'http://www.shindiristudio.com/snapshop/shop-classic/wp-content/uploads/2014/07/logo-clean.png', 'tracking-code' => '', 'content_width' => '1400', 'fb_hres_c' => '36', 'fb_bmargin' => '36', 'fb_hres_w' => '1200', 'fb_mres_c' => '18', 'custom-css-high' => '', 'fb_mres_w' => '1024', 'fb_lres_c' => '6', 'fb_mres_s' => '1', 'custom-css-med' => '', 'fb_lres_w' => '768', 'fb_lres_s' => '1', 'custom-css-low' => '.snpshpwp_element_woo-cart {display:none;}', 'fimage_width' => '960', 'fimage_height' => '400', 'fimage_override' => '0', 'single_fimage_width' => '1200', 'single_fimage_height' => '400', 'single_fimage_override' => '1', 'twitter_ck' => 'WTpkUO8EKqFf7LIufyxymw', 'twitter_cs' => 'FTTyvUgl576OSiA86aFL4s3Mo3Ym7XmRoccOsN4xqU', 'twitter_at' => '966576138-B4gBnApgj9Khbt7931uowPw6KVHfBb4fB1Njp5SC', 'twitter_ats' => 'gBqkVVG6cW2qC9sInSVKYBD0N0IpXgmauPsifhSg8wg4J', 'mailchimp' => '0', 'mailchimp_override' => '', 'language' => array(1 => array('order' => '1', 'flag' => 'uk.png', 'language' => 'English', 'langurl' => '#'), 2 => array('order' => '2', 'flag' => 'france.png', 'language' => 'French', 'langurl' => '#'), 3 => array('order' => '3', 'flag' => 'germany.png', 'language' => 'German', 'langurl' => '#')), 'custom-css' => '', 'custom-css-snpshp_limit_width' => '1301'), 'home' => '631', 'widgets' => array('sidebars_widgets' => array('sidebar-1' => array(0 => 'text-3', 1 => 'search-2', 2 => 'recent-posts-2', 3 => 'recent-comments-2', 4 => 'archives-2', 5 => 'meta-2'), 'wp_inactive_widgets' => array(), 'sidebar-blog' => array(0 => 'snpshpwp_category-3', 1 => 'recent-posts-5'), 'sidebar-single' => array(0 => 'snpshpwp_category-6', 1 => 'categories-4', 2 => 'tag_cloud-3'), 'sidebar-page' => array(0 => 'text-4', 1 => 'text-5', 2 => 'snpshpwp_category-5', 3 => 'woocommerce_products-6', 4 => 'snpshpwp_twitter-2'), 'footer-1' => array(0 => 'text-2'), 'footer-2' => array(0 => 'text-9', 1 => 'woocommerce_product_search-2'), 'footer-3' => array(0 => 'text-7', 1 => 'socialbro-3'), 'footer-4' => array(), 'footer-5' => array(), 'sidebar-woo' => array(0 => 'woocommerce_product_categories-2'), 'sidebar-woo-single' => array(0 => 'woocommerce_product_categories-3'), 'header-left-sidenav' => array(0 => 'snpshpwp_category-4', 1 => 'nav_menu-2', 2 => 'recent-posts-3'), 'header-right-sidenav' => array(0 => 'nav_menu-3', 1 => 'nav_menu-4', 2 => 'socialbro-2'), 'bottom-1' => array(0 => 'woocommerce_top_rated_products-2'), 'bottom-2' => array(0 => 'woocommerce_recent_reviews-2'), 'bottom-3' => array(0 => 'woocommerce_products-5'), 'bottom-4' => array(0 => 'woocommerce_product_categories-4'), 'blog-archive-custom' => array(0 => 'snpshpwp_category-7', 1 => 'tag_cloud-4', 2 => 'text-6'), 'array_version' => 3), 'widget_categories' => array(4 => array('title' => '', 'count' => 1, 'hierarchical' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_text' => array(2 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/shop-classic/wp-content/uploads/sites/8/2014/08/logo-classic-footer1.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 3 => array('title' => 'OUR LINKS', 'text' => '<a href="#">Envato.com</h3></a><BR> <a href="#">Themeforest.net</a><BR> <a href="#">Codecanyon.net</a><BR> <a href="#">Videohive.net</a><BR> <a href="#">Shindiristudio.com</a><BR>', 'filter' => false), 4 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/envato/logo-footer.png"></img> <br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 5 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad21.jpg"></img><br><img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/ad13.jpg"></img>', 'filter' => false), 6 => array('title' => '', 'text' => '<img src="http://www.shindiristudio.com/snapshop/wp-content/uploads/2014/07/sidebar-ad.jpg">', 'filter' => false), 7 => array('title' => 'GET IN TOUCH', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), 9 => array('title' => 'Search Products', 'text' => 'Aenean erat lacus, vulputate sit amet lacinia vestibulum, ornare a augue.', 'filter' => false), '_multiwidget' => 1), 'widget_rss' => array(1 => array(), '_multiwidget' => 1), 'widget_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_recent-posts' => array(2 => array('title' => '', 'number' => 5), 3 => array('title' => '', 'number' => 5, 'show_date' => false), 5 => array('title' => '', 'number' => 5, 'show_date' => false), '_multiwidget' => 1), 'widget_recent-comments' => array(2 => array('title' => '', 'number' => 5), '_multiwidget' => 1), 'widget_archives' => array(2 => array('title' => '', 'count' => 0, 'dropdown' => 0), '_multiwidget' => 1), 'widget_meta' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_nav_menu' => array(2 => array('title' => '', 'nav_menu' => 13), 3 => array('title' => 'THIS IS SNAPSHOP', 'nav_menu' => 32), 4 => array('title' => 'CLOSE AND PERSONAL', 'nav_menu' => 33), '_multiwidget' => 1), 'widget_pages' => array(1 => array(), '_multiwidget' => 1), 'widget_snpshpwp_twitter' => array(1 => array(), 2 => array('title' => 'LATEST FROM TWITTER', 'user' => '', 'count' => '1'), '_multiwidget' => 1), 'widget_snpshpwp_category' => array(3 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '5'), 4 => array('title' => 'Fresh', 'order' => 'date', 'category' => '-1', 'number' => '3'), 5 => array('title' => 'LATEST BLOG POSTS', 'order' => 'date', 'category' => '-1', 'number' => '3'), 6 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), 7 => array('title' => 'LATEST POSTS', 'order' => 'date', 'category' => '-1', 'number' => '5'), '_multiwidget' => 1), 'widget_woocommerce_products' => array(5 => array('title' => '', 'number' => '4', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), 6 => array('title' => 'FEATURED PRODUCTS', 'number' => '3', 'show' => '', 'orderby' => 'date', 'order' => 'desc', 'hide_free' => 0, 'show_hidden' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_categories' => array(2 => array('title' => 'Product Categories', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 3 => array('title' => 'Product Categories', 'orderby' => 'name', 'dropdown' => 0, 'count' => '1', 'hierarchical' => '1', 'show_children_only' => 0), 4 => array('title' => '', 'orderby' => 'order', 'dropdown' => 0, 'count' => '1', 'hierarchical' => 0, 'show_children_only' => 0), '_multiwidget' => 1), 'widget_woocommerce_product_search' => array(2 => array('title' => ''), '_multiwidget' => 1), 'widget_tag_cloud' => array(3 => array('title' => '', 'taxonomy' => 'post_tag'), 4 => array('title' => 'POPULAR TAGS', 'taxonomy' => 'post_tag'), '_multiwidget' => 1), 'widget_woocommerce_price_filter' => array('_multiwidget' => 1), 'widget_woocommerce_recently_viewed_products' => array('_multiwidget' => 1, 1 => array()), 'widget_woocommerce_product_tag_cloud' => array(1 => array(), '_multiwidget' => 1), 'widget_socialbro' => array(2 => array('title' => 'CONNECT WITH SNAPSHOP', 'opacity' => '50', 'hover_opacity' => '100', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Like Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Follow Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Plus Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Rate Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pin Us||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::Digg Us'), 3 => array('title' => '', 'opacity' => '100', 'hover_opacity' => '70', 'icons' => 'http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0067_Vector-Smart-Object.png::#::Facebook||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0064_Vector-Smart-Object.png::#::Google +||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0066_Vector-Smart-Object.png::#::Twitter||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0063_Vector-Smart-Object.png::#::Pinteresr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0055_Vector-Smart-Object.png::#::DiggIt||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0059_Vector-Smart-Object.png::#::Flickr||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0069_Vector-Smart-Object.png::#::Envato||http://www.shindiristudio.com/snapshop/wp-content/themes/snapshopWP/widgets/socialbro/images/Style1/Style1_0015_Vector-Smart-Object.png::#::RSS'), '_multiwidget' => 1), 'widget_calendar' => array(1 => array(), '_multiwidget' => 1), 'widget_rev-slider-widget' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_widget_cart' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_layered_nav_filters' => array(1 => array(), '_multiwidget' => 1), 'widget_woocommerce_recent_reviews' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1), 'widget_woocommerce_top_rated_products' => array(1 => array(), 2 => array('title' => '', 'number' => '4'), '_multiwidget' => 1))));
        if ($curr_images == 'yes') {
            if (isset($snpshpwp_options['snapshop']['images'])) {
                foreach ($snpshpwp_options['snapshop']['images'] as $k => $v) {
                    media_sideload_image($v, $k);
                }
            }
        }
        if ($curr_theme == 'yes') {
            $curr_snpshpwp_options = $snpshpwp_options[$curr_style]['options'];
            foreach ($curr_snpshpwp_options as $k => $v) {
                set_theme_mod($k, $v);
            }
            $curr_snpshpwp_widgets = $snpshpwp_options[$curr_style]['widgets'];
            foreach ($curr_snpshpwp_widgets as $k => $v) {
                update_option($k, $v);
            }
            if (SNPSHPWP_FBUILDER === true) {
                global $fbuilder;
                $options = array('bottom_margin' => $snpshpwp_options[$curr_style]['options']['fb_bmargin'], 'high_rezolution_width' => $snpshpwp_options[$curr_style]['options']['fb_hres_w'], 'high_rezolution_margin' => $snpshpwp_options[$curr_style]['options']['fb_hres_c'], 'med_rezolution_width' => $snpshpwp_options[$curr_style]['options']['fb_mres_w'], 'med_rezolution_margin' => $snpshpwp_options[$curr_style]['options']['fb_mres_c'], 'med_rezolution_hide_sidebar' => $snpshpwp_options[$curr_style]['options']['fb_mres_s'] == 1 ? 'true' : 'false', 'low_rezolution_width' => $snpshpwp_options[$curr_style]['options']['fb_lres_w'], 'low_rezolution_margin' => $snpshpwp_options[$curr_style]['options']['fb_lres_c'], 'low_rezolution_hide_sidebar' => $snpshpwp_options[$curr_style]['options']['fb_lres_s'] == 1 ? 'true' : 'false');
                $fbuilder->set_options($options);
            }
        }
        if ($curr_pages == 'yes') {
            include_once dirname(__FILE__) . '/../demo/snapshop.inc';
            update_option('show_on_front', 'page');
            update_option('page_on_front', $snpshpwp_options[$curr_style]['home']);
            update_option('permalink_structure', '/%postname%/');
            global $wp_rewrite;
            $wp_rewrite->set_permalink_structure('/%postname%/');
        }
        /*		set_transient('SnapShopWP_Demo_Installation', 'installed');*/
        die('1');
    }
    die;
}
コード例 #23
0
ファイル: index.php プロジェクト: slfrsn/Divi-Cinematic
 function movie_details_ajax()
 {
     $api_url = get_stylesheet_directory_uri() . '/movies/api.php?tmdb=' . urlencode($_POST['tmdb']);
     $api_request = file_get_contents($api_url);
     $movie_obj = json_decode($api_request, true);
     $movie = $movie_obj['movie'];
     // Set the variables
     // Using addcslashes() to double escape quotes sometimes returned in the synopsis
     if (!empty($movie_obj)) {
         update_post_meta($_POST['id'], 'json_response', addcslashes($api_request, '"'));
     }
     if (!empty($movie['duration'])) {
         update_post_meta($_POST['id'], 'runtime_minutes', $movie['duration']);
     }
     if (!empty($movie['synopsis'])) {
         update_post_meta($_POST['id'], 'description', $movie['synopsis']);
     }
     if (!empty($movie['cast'])) {
         update_post_meta($_POST['id'], 'starring', $movie['cast']);
     }
     if (!empty($movie['trailer'])) {
         update_post_meta($_POST['id'], 'trailer', $movie['trailer']);
     }
     if (!empty($movie['website'])) {
         update_post_meta($_POST['id'], 'website', $movie['website']);
     }
     if (!empty($movie['rating'])) {
         update_post_meta($_POST['id'], 'rating', $movie['rating']);
         update_post_meta($_POST['id'], 'rating_description', rating_description($movie['rating']));
     }
     // Build the genre string to use in a hidden form input later
     if (!empty($movie['genres'])) {
         $genre_string = '';
         // Create the genre if it doesn't exist
         foreach ($movie['genres'] as $genre) {
             if (!term_exists($genre, 'genre')) {
                 wp_insert_term(ucwords($genre), 'genre');
             }
             $genre_string .= $genre . ',';
         }
     }
     // This is the only output sent back to the AJAX call
     echo $api_request;
     // Add the poster to the media library
     if (!empty($movie['poster'])) {
         $media = media_sideload_image($movie['poster'], $_POST['id'], !empty($movie['title']) ? $movie['title'] : $_POST['title']);
     }
     wp_die();
 }
コード例 #24
0
ファイル: plugin.php プロジェクト: TrueSQN/truesqncom
 function my_sideload_image()
 {
     $remoteurl = $_POST['_agca_upload_image'];
     $file = media_sideload_image($remoteurl, 0, "AG Custom Admin Template Image (do not delete)");
     $fileparts = explode("src='", $file);
     $url = explode("'", $fileparts[1]);
     echo $url[0];
     exit;
 }
コード例 #25
0
function mcs_import_event($event)
{
    $check = mc_check_data('add', $event, 0);
    if ($check[0]) {
        $response = my_calendar_save('add', $check);
        $event_id = $response['event_id'];
        $response = $response['message'];
        if (isset($event['event_image']) && $event['event_image'] != '') {
            $e = mc_get_event_core($event_id);
            $post_id = $e->event_post;
            $image = media_sideload_image($event['event_image'], $post_id);
            $media = get_attached_media('image', $post_id);
            $attach = array_shift($media);
            $attach_id = $attach->ID;
            set_post_thumbnail($post_id, $attach_id);
        }
    }
}
コード例 #26
0
ファイル: migrator.php プロジェクト: IlhamFS/wordpress
 /**
  *  Import Images
  */
 public function check_for_images($data)
 {
     $validated_data = array();
     if (!is_array($data)) {
         return stripslashes($data);
     }
     foreach ($data as $option => $option_data) {
         if (is_array($option_data)) {
             $validated_data[$option] = $this->check_for_images($option_data);
         } elseif ('image' == $option || 'featuredimage' == $option) {
             // Check to see if this image exists in our media library already
             $check_for_image = $this->check_for_image_in_media($option_data);
             if (NULL != $check_for_image) {
                 $get_image_id = $check_for_image;
             } else {
                 // @TODO: Try improve the image loading
                 $import_image = media_sideload_image($option_data, 0);
                 if (NULL != $import_image && !is_wp_error($import_image)) {
                     $get_image_id = $this->get_attachment_id_from_url($import_image);
                 }
             }
             if (isset($get_image_id)) {
                 $validated_data[$option] = $get_image_id;
             } else {
                 $validated_data[$option] = stripslashes($option_data);
             }
         } else {
             $validated_data[$option] = stripslashes($option_data);
         }
     }
     return $validated_data;
 }
コード例 #27
0
 public function save_meta_boxes($post_id, $post)
 {
     // $post_id and $post are required
     if (empty($post_id) || empty($post)) {
         return;
     }
     // Dont' save meta boxes for revisions or autosaves
     if (defined('DOING_AUTOSAVE') || is_int(wp_is_post_revision($post)) || is_int(wp_is_post_autosave($post))) {
         return;
     }
     // Check the nonce
     if (empty($_POST['dh_meta_box_nonce']) || !wp_verify_nonce($_POST['dh_meta_box_nonce'], 'dh_meta_box_nonce')) {
         return;
     }
     // Check the post being saved == the $post_id to prevent triggering this call for other save_post events
     if (empty($_POST['post_ID']) || $_POST['post_ID'] != $post_id) {
         return;
     }
     // Check user has permission to edit
     if (!current_user_can('edit_post', $post_id)) {
         return;
     }
     if (isset($_POST['dh_meta'])) {
         $dh_meta = $_POST['dh_meta'];
         if (get_post_format() == 'video') {
             $_dh_video_embed = $dh_meta['_dh_video_embed'];
             if (dh_is_video_support($_dh_video_embed) && $_dh_video_embed != dh_get_post_meta('video_embed_hidden')) {
                 $videoThumbUrl = dh_get_video_thumb_url($_dh_video_embed);
                 if (!empty($videoThumbUrl)) {
                     // add the function above to catch the attachments creation
                     add_action('add_attachment', array(&$this, 'add_video_featured_image'));
                     // load the attachment from the URL
                     media_sideload_image($videoThumbUrl, $post_id, $post_id);
                     // we have the Image now, and the function above will have fired too setting the thumbnail ID in the process, so lets remove the hook so we don't cause any more trouble
                     remove_action('add_attachment', array(&$this, 'add_video_featured_image'));
                 }
             }
         }
         // Process
         foreach ((array) $_POST['dh_meta'] as $key => $val) {
             $val = wp_unslash($val);
             if (is_array($val)) {
                 $option_value = array_filter(array_map('sanitize_text_field', (array) $val));
                 update_post_meta($post_id, $key, $option_value);
             } else {
                 update_post_meta($post_id, $key, wp_kses_post($val));
             }
         }
     }
     do_action('dh_metabox_save', $post_id);
 }
コード例 #28
0
 function process_image()
 {
     $response = '';
     $data[] = '';
     $error = 0;
     if (isset($_POST['ids'])) {
         $ids = $_POST['ids'];
     }
     $data['choose-tool'] = $_POST['args'];
     $post = get_post($ids);
     $response .= '<h3><a href="' . esc_url(admin_url('post.php?post=' . $post->ID . '&action=edit')) . '" target="_blank">' . get_the_title($post->ID) . '</a></h3>';
     if ('import-media' == $data['choose-tool']) {
         $response .= 'Running import media tool<br>';
         $res = $this->extract_multi($post);
         $response .= $res['response'];
         $error = $error + (int) $res['error'];
         die(sprintf($response . '<br>Media tool complete (Post ID %1$s) in %2$s seconds. %3$d errors', esc_html($post->ID), timer_stop(), $error = $error > 0 ? $error : 'no'));
     } elseif ('convert-import' == $data['choose-tool']) {
         $response .= 'Running import and set featured image tool<br>';
         $res = $this->extract_multi($post);
         $response .= $res['response'];
         $error = $error + (int) $res['error'];
     }
     /** If the post already has an attached thumbnail continue with the loop  */
     if (has_post_thumbnail($post->ID)) {
         $response .= 'Featured image already set <br>';
         die(sprintf($response . '<br>Media tool complete (Post ID %1$s) in %2$s seconds. %3$d errors', esc_html($post->ID), timer_stop(), $error = $error > 0 ? $error : 'no'));
     }
     /** @var $attachments array of attached images to the post */
     $attachments = $this->get_attach($post->ID);
     if (!$attachments) {
         $img = $this->extract_image($post);
         if (empty($img)) {
             $response .= 'No images found <br>';
             die(sprintf($response . '<br>Media tool complete (Post ID %1$s) in %2$s seconds. %3$d errors', esc_html($post->ID), timer_stop(), $error = $error > 0 ? $error : 'no'));
         }
         /** @var $file string or WP_Error of image attached to the post  */
         $file = media_sideload_image($img, (int) $post->ID);
         if (is_wp_error($file)) {
             $response .= '<span style="color:red">Upload Error: Could not upload image. Check for malformed img src url</span><br>';
             $error++;
         } else {
             $atts = $this->get_attach($post->ID);
             foreach ($atts as $a) {
                 $img = set_post_thumbnail($post->ID, $a['ID']);
                 if ($img) {
                     $thumb = wp_get_attachment_thumb_url($a['ID']);
                     $response .= '<img src="' . esc_url($thumb) . '" /><br>';
                     $response .= '<a href="' . wp_nonce_url(get_edit_post_link($a['ID'], true)) . '" >' . get_the_title($a['ID']) . '</a>  Set as Featured Image</p><br>';
                 }
             }
             unset($atts);
             unset($a);
         }
     } else {
         foreach ($attachments as $a) {
             $img = set_post_thumbnail($post->ID, $a['ID']);
             if ($img) {
                 $thumb = wp_get_attachment_thumb_url($a['ID']);
                 $response .= '<img src="' . esc_url($thumb) . '" /><br>';
                 $response .= '<a href="' . wp_nonce_url(get_edit_post_link($a['ID'], true)) . '" >' . get_the_title($a['ID']) . '</a>  Set as Featured Image</p><br>';
             }
         }
         unset($attachments);
         unset($a);
     }
     die(sprintf($response . '<br>Media tool complete (Post ID %1$s) in %2$s seconds. %3$d errors', esc_html($post->ID), timer_stop(), $error = $error > 0 ? $error : 'no'));
 }
コード例 #29
0
function thirstyUploadImageFromUrl()
{
    $imgUrl = !empty($_POST['imgUrl']) ? $_POST['imgUrl'] : '';
    $postId = !empty($_POST['postId']) ? $_POST['postId'] : '';
    if (empty($imgUrl) || empty($postId)) {
        return;
    }
    $image = media_sideload_image($imgUrl, $postId, '');
    echo $image;
    die;
}
コード例 #30
0
 /**
  * Download images
  * @param type $data
  * @return type
  */
 protected function download_images($data)
 {
     if (is_array($data)) {
         foreach ($data as $key => $val) {
             $data[$key] = $this->download_images($val);
         }
     } else {
         $image_exp = '!http://[a-z0-9\\-\\.\\/]+\\.(?:jpe?g|png|gif)!Ui';
         if (preg_match_all($image_exp, $data, $matches)) {
             if (isset($matches[0]) && is_array($matches[0])) {
                 foreach ($matches[0] as $match) {
                     $new_image = media_sideload_image($match, null);
                     if (!is_wp_error($new_image)) {
                         //$new_image is html tag img, we need to retrieve src attribute
                         $dom = new DOMDocument();
                         $dom->loadHTML($new_image);
                         $imageTags = $dom->getElementsByTagName('img')->item(0);
                         $data = $imageTags->getAttribute('src');
                     }
                 }
             }
         }
     }
     return $data;
 }