-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathB_shift_import_admin.php
More file actions
34 lines (23 loc) · 1.36 KB
/
B_shift_import_admin.php
File metadata and controls
34 lines (23 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
?>
<div class="wrap">
<img src="<?php echo plugin_dir_url(__FILE__); ?>/img/banner_brafton.jpg" class="bshift-admn-banner">
<h2>Create New B-Shift Slider</h2>
<p><a href="<?php echo get_site_url(); ?>/wp-admin/admin.php?page=slider_settings_page" style="border: 1px solid;
padding: 4px; background-color: #FFF; font-weight: 600; text-decoration: none;" class="engage">Create New Slider</a></p>
<div class="container" style="background-color: #FFC">
<div class="row">
<?php
global $post;
$slider_query = new WP_Query(array('post_type' => 'b-shift-slider','post_status'=>'any'));
if($slider_query->have_posts()) : while ($slider_query->have_posts()) : $slider_query->the_post(); ?>
<?php $id = get_the_ID(); ?>
<div class="col-md-3"><a href="<?php echo get_home_url(); ?>/wp-admin/admin.php?page=edit_slider&slider_id=<?php the_ID(); ?>"> <?php the_title(); ?></a></div>
<div class="col-md-3"> <?php the_time('F jS, Y'); ?></div>
<div class="col-md-3"> [bshift id="<?php the_ID() ?>"]</div>
<div class="col-md-3"><a href="<?php echo get_delete_post_link(); ?>">Delete</a></div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div> <!--end container. -->
</div>