| 1 |
<?php |
| 2 |
include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/headView.php"; |
| 3 |
include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/headerView.php"; |
| 4 |
?> |
| 5 |
<div id="__tagembed__widgetab" class="__tagembed__tabcontent"> |
| 6 |
<div class="__tagembed__widgetarea"> |
| 7 |
<div class="__tagembed__widgetactions"> |
| 8 |
<div><h3>My Widget</h3></div> |
| 9 |
<div style="display:<?php echo (empty($__tagembed__widgets)) ? 'none' : ''; ?>"> |
| 10 |
<a class="__tagembed__btn" href="javascript:void(0);" id="__tagembed__widget_create_form">Create</a> |
| 11 |
</div> |
| 12 |
</div> |
| 13 |
<div class="__tagembed__widgetinn" > |
| 14 |
<?php |
| 15 |
if (!empty($__tagembed__widgets)): |
| 16 |
$count = 0; |
| 17 |
foreach ($__tagembed__widgets as $__tagembed__widget): |
| 18 |
?> |
| 19 |
<div class="__tagembed__widgetbox <?php echo $__tagembed__active_widget_id == $__tagembed__widget->id ? 'active' : ''; ?>" id="__tagembed__widgetbox<?php echo esc_html($count); ?>"> |
| 20 |
<div class="__tagembed__widgethead"> |
| 21 |
<div> |
| 22 |
<h3><?php echo esc_html($__tagembed__widget->name); ?></h3> |
| 23 |
<ul> |
| 24 |
<li><?php echo esc_html($__tagembed__widget->feedCount); ?> Feeds</li> |
| 25 |
<li><?php echo esc_html($__tagembed__widget->networkCount); ?> Networks</li> |
| 26 |
</ul> |
| 27 |
</div> |
| 28 |
<div class="tooltip"> |
| 29 |
<div class="__tagembed__toggleOnBut __tagembed__switch"> |
| 30 |
<div class="__tagembed__onoffswitch"> |
| 31 |
<input data-widgetStatus="<?php echo esc_html($__tagembed__widget->status); ?>" onchange="__tagembed__updateWidgetStauts('<?php echo esc_html($__tagembed__widget->id); ?>', '<?php echo esc_html($count); ?>');" type="checkbox" name="widget-<?php echo esc_html($count); ?>" id="widget-<?php echo esc_html($count); ?>" class="__tagembed__onoffswitch-checkbox __tagembed__updateStatus" data-on-color="#009385" data-off-color="#989898" <?php echo (esc_html($__tagembed__widget->status)) ? 'checked' : ''; ?>> |
| 32 |
<label class="__tagembed__onoffswitch-label" for="widget-<?php echo esc_html($count); ?>"> |
| 33 |
<span class="__tagembed__onoffswitch-inner"></span> |
| 34 |
<span class="__tagembed__onoffswitch-switch" style="background: rgb(152, 152, 152);"></span> |
| 35 |
</label> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
<span class="tooltiptext">Status</span> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
<div class="__tagembed__widget_sourcecode"> |
| 42 |
<p>[tagembed widgetid <?php echo esc_html($__tagembed__widget->id); ?>]</p> |
| 43 |
<button onclick="__tagembed__copyToWidgetShortCode('[tagembed widgetid <?php echo esc_html($__tagembed__widget->id); ?>]');" title="Copy Short Code"><i class="fa fa-files-o" aria-hidden="true"></i></button> |
| 44 |
</div> |
| 45 |
<div class="__tagembed__widgetfoot"> |
| 46 |
<ul> |
| 47 |
<li><a href="javascript:void(0);" onclick="__tagembed__menus(2, '<?php echo esc_html($__tagembed__widget->id); ?>')"> Open </a></li> |
| 48 |
<li><a href="javascript:void(0);" onclick="__tagembed__widgetEditForm('<?php echo esc_html($__tagembed__widget->id); ?>', '<?php echo esc_html($__tagembed__widget->name); ?>');"> Rename </a></li> |
| 49 |
<li><a href="javascript:void(0);" onclick="__tagembed__deleteWidget('<?php echo esc_html($__tagembed__widget->id); ?>', '__tagembed__widgetbox<?php echo esc_html($count); ?>');"> Delete </a></li > |
| 50 |
</ul> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
<?php |
| 54 |
$count++; |
| 55 |
endforeach; |
| 56 |
endif; |
| 57 |
?> |
| 58 |
</div> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
<?php include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/footerView.php"; ?> |