<?php require_once PLUGIN_PATH . 'includes/My-images-table.php'; $obj = new My_images(); $images = $obj->find_images_slider($arg); //var_dump($images); ?> <div id="car-slider"> <div class='car-images'> <?php foreach ($images as $img) { ?> <div class='car-img'> <img src="<?php echo $img['src']; ?> "> <div class="car-content"> <a href="<?php echo $img['href']; ?> "><?php echo $img['title']; ?> </a> </div> </div> <?php } ?>
echo 'not found'; return; } require_once PLUGIN_PATH . 'includes/My-slider-table.php'; $sl_obj = new My_slider(); $slider = $sl_obj->select($_GET['id'], 'name'); $slider = $slider[0]; ?> <h2>Add image to "<?php echo $slider['name']; ?> "</h2> <?php require_once PLUGIN_PATH . 'includes/My-images-table.php'; $images = new My_images(); $img_list = $images->find_images_slider($_GET['id']); //var_dump($img_list); ?> <div class="my-block"> <table class="wp-list-table widefat fixed striped"> <caption><h3>List images.</h3></caption> <thead> <tr> <th>Id</th> <th>image</th> <th>Title</th> <th>description</th> <th>create</th> <th>status</th> <th>action</th> </tr>