| 1 |
<?php |
| 2 |
/** |
| 3 |
* Display |
| 4 |
* |
| 5 |
* @package Public |
| 6 |
* @subpackage |
| 7 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 1.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
global $wpdb; |
| 17 |
$table = $wpdb->prefix . "wow_" . $this->plugin['prefix']; |
| 18 |
$result = $wpdb->get_results( "SELECT * FROM $table order by id asc" ); |
| 19 |
|
| 20 |
if ( count( $result ) > 0 ) { |
| 21 |
foreach ( $result as $key => $val ) { |
| 22 |
echo do_shortcode( '[' . esc_attr( $this->plugin['shortcode'] ) . ' id=' . absint( $val->id ) . ']' ); |
| 23 |
} |
| 24 |
} |
| 25 |
|