function post_grid_layout_hover_ajax() { $layout_key = $_POST['layout']; $class_post_grid_functions = new class_post_grid_functions(); $layout = $class_post_grid_functions->layout_hover($layout_key); ?> <div class="<?php echo $layout_key; ?> "> <?php foreach ($layout as $item_key => $item_info) { ?> <div class="item <?php echo $item_key; ?> " style=" <?php echo $item_info['css']; ?> "> <?php if ($item_key == 'thumb') { ?> <img src="<?php echo post_grid_plugin_url; ?> assets/admin/images/thumb.png" /> <?php } elseif ($item_key == 'title') { ?> Lorem Ipsum is simply <?php } elseif ($item_key == 'excerpt') { ?> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text <?php } elseif ($item_key == 'excerpt_read_more') { ?> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text <a href="#">Read more</a> <?php } elseif ($item_key == 'read_more') { ?> <a href="#">Read more</a> <?php } elseif ($item_key == 'post_date') { ?> 18/06/2015 <?php } elseif ($item_key == 'author') { ?> PickPlugins <?php } elseif ($item_key == 'categories') { ?> <a hidden="#">Category 1</a> <a hidden="#">Category 2</a> <?php } elseif ($item_key == 'tags') { ?> <a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a> <?php } elseif ($item_key == 'comments_count') { ?> 3 Comments <?php } elseif ($item_key == 'wc_full_price') { ?> <del>$45</del> - <ins>$40</ins> <?php } elseif ($item_key == 'wc_sale_price') { ?> $45 <?php } elseif ($item_key == 'wc_regular_price') { ?> $45 <?php } elseif ($item_key == 'wc_add_to_cart') { ?> Add to Cart <?php } elseif ($item_key == 'wc_rating_star') { ?> ***** <?php } elseif ($item_key == 'wc_rating_text') { ?> 2 Reviews <?php } elseif ($item_key == 'wc_categories') { ?> <a hidden="#">Category 1</a> <a hidden="#">Category 2</a> <?php } elseif ($item_key == 'wc_tags') { ?> <a hidden="#">Tags 1</a> <a hidden="#">Tags 2</a> <?php } else { echo $item_info['name']; } ?> </div> <?php } ?> </div> <?php die; }