| 1 |
<script type="text/javascript"> |
| 2 |
(function($){ |
| 3 |
$(document).ready(function(){ |
| 4 |
$('.vimeography-question').tooltip(); |
| 5 |
|
| 6 |
$('.vimeography-duplicate-gallery').click(function(e){ |
| 7 |
var id = $(this).attr('data-id'); |
| 8 |
$('#vimeography-list-action').val('duplicate'); |
| 9 |
$('#vimeography-list-id').val(id); |
| 10 |
$('#vimeography-list-form').submit(); |
| 11 |
}); |
| 12 |
|
| 13 |
$('.vimeography-delete-gallery').click(function(e){ |
| 14 |
e.preventDefault(); |
| 15 |
var id = $(this).attr('data-id'); |
| 16 |
if(confirm('WARNING: You are about to delete this gallery. \'Cancel\' to stop, \'OK\' to delete.')) |
| 17 |
{ |
| 18 |
$('#vimeography-list-action').val('delete'); |
| 19 |
$('#vimeography-list-id').val(id); |
| 20 |
$('#vimeography-list-form').submit(); |
| 21 |
} |
| 22 |
}); |
| 23 |
}); |
| 24 |
})(jQuery) |
| 25 |
</script> |
| 26 |
|
| 27 |
<style type="text/css"> |
| 28 |
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";} |
| 29 |
.clearfix:after{clear:both;} |
| 30 |
.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;} |
| 31 |
.input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;} |
| 32 |
.tooltip{position:absolute;z-index:1020;display:block;visibility:visible;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);}.tooltip.in{opacity:0.8;filter:alpha(opacity=80);} |
| 33 |
.tooltip.top{margin-top:-2px;} |
| 34 |
.tooltip.right{margin-left:2px;} |
| 35 |
.tooltip.bottom{margin-top:2px;} |
| 36 |
.tooltip.left{margin-left:-2px;} |
| 37 |
.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000000;} |
| 38 |
.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;} |
| 39 |
.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #000000;} |
| 40 |
.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000;} |
| 41 |
.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} |
| 42 |
.tooltip-arrow{position:absolute;width:0;height:0;} |
| 43 |
</style> |
| 44 |
|
| 45 |
<div class="wrap"> |
| 46 |
<div class="wp_bootstrap"> |
| 47 |
<!-- Display Plugin Icon, Header, and Description --> |
| 48 |
<div class="icon32" id="icon-options-general"><br></div> |
| 49 |
<h2 class="page-title">Edit Galleries <a href="{{new_gallery_url}}" class="button add-new-h2">Add New</a></h2> |
| 50 |
|
| 51 |
{{#messages}} |
| 52 |
<div class="alert alert-{{type}} fade in"> |
| 53 |
<a class="close" data-dismiss="alert" href="#">×</a> |
| 54 |
<h3 class="alert-heading">{{heading}}</h3> |
| 55 |
<p>{{message}}</p> |
| 56 |
</div> |
| 57 |
{{/messages}} |
| 58 |
</div> |
| 59 |
|
| 60 |
{{#galleries_to_show}} |
| 61 |
<table cellspacing="0" class="widefat fixed"> |
| 62 |
<thead> |
| 63 |
<tr> |
| 64 |
<th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox" onclick="jQuery('.vimeography_list_checkbox').attr('checked', this.checked);" name="form_bulk_check_all"></th> |
| 65 |
<th class="manage-column column-cb check-column" id="active" scope="col"></th> |
| 66 |
<th style="width:50px;" class="manage-column" id="id" scope="col">Id</th> |
| 67 |
<th width="360" class="manage-column column-title" id="title" scope="col">Title</th> |
| 68 |
<th style="" class="manage-column column-author" id="author" scope="col">Video Source <div class="wp_bootstrap" style="display:inline-block;"><a class="vimeography-question" href="#" rel="tooltip" title="This tells you the location of the videos that your gallery is using."><i class="icon-question-sign"></i></a></div></th> |
| 69 |
<th style="" class="manage-column" id="template" scope="col">Shortcode <div class="wp_bootstrap" style="display:inline-block;"><a class="vimeography-question" href="#" rel="tooltip" title="Copy and paste this on to your post or page to show the gallery!"><i class="icon-question-sign"></i></a></div></th> |
| 70 |
<th style="" class="manage-column" id="theme-name" scope="col">Active Theme <div class="wp_bootstrap" style="display:inline-block;"><a class="vimeography-question" href="#" rel="tooltip" title="The theme that is currently applied to your gallery."><i class="icon-question-sign"></i></a></div></th> |
| 71 |
</tr> |
| 72 |
</thead> |
| 73 |
|
| 74 |
<tfoot> |
| 75 |
<tr> |
| 76 |
<th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox" onclick="jQuery('.vimeography_list_checkbox').attr('checked', this.checked);" name="form_bulk_check_all"></th> |
| 77 |
<th class="manage-column column-cb check-column" id="active" scope="col"></th> |
| 78 |
<th class="manage-column" id="id" scope="col">Id</th> |
| 79 |
<th width="350" class="manage-column column-title" id="title" scope="col">Title</th> |
| 80 |
<th style="" class="manage-column column-author" id="source" scope="col">Video Source</th> |
| 81 |
<th style="" class="manage-column" id="shortcode" scope="col">Shortcode</th> |
| 82 |
<th style="" class="manage-column column-author" id="theme" scope="col">Active Theme</th> |
| 83 |
</tr> |
| 84 |
</tfoot> |
| 85 |
|
| 86 |
<tbody class="list:user user-list"> |
| 87 |
|
| 88 |
{{#galleries}} |
| 89 |
<tr valign="top" class="author-self status-inherit"> |
| 90 |
<th class="check-column" scope="row"><input type="checkbox" class="vimeography_list_checkbox" value="{{id}}" name="form[]"></th> |
| 91 |
|
| 92 |
<td><div class="wp_bootstrap"><i class="icon-ok" style="cursor:pointer;"></i></div></td> |
| 93 |
<td class="column-id">{{id}}</td> |
| 94 |
<td class="column-title"> |
| 95 |
<strong><a title="Edit" href="{{edit_url}}" class="row-title">{{title}}</a></strong> |
| 96 |
|
| 97 |
<div class="row-actions"> |
| 98 |
<span class="edit"><a href="{{edit_url}}" title="Edit this gallery">Edit</a> |</span> |
| 99 |
<span class="edit"><a target="_blank" href="{{edit_url}}" title="Preview this gallery">Preview</a> |</span> |
| 100 |
<span class="edit"><a class="vimeography-duplicate-gallery" data-id="{{id}}" href="#" title="Duplicate this gallery">Duplicate</a> |</span> |
| 101 |
<span class="edit"><a class="vimeography-delete-gallery" data-id="{{id}}" href="#" title="Delete">Delete</a></span> |
| 102 |
</div> |
| 103 |
</td> |
| 104 |
<td class="column-date"><strong><a href="{{source_url}}" target="_blank" title="{{source_url}}">{{source_url}}</a></strong></td> |
| 105 |
<td class="column-date"><strong>[vimeography id="{{id}}"]</strong></td> |
| 106 |
<td class="column-date"><strong>{{theme_name}}</strong></td> |
| 107 |
</tr> |
| 108 |
{{/galleries}} |
| 109 |
|
| 110 |
</tbody> |
| 111 |
</table> |
| 112 |
<form id="vimeography-list-form" method="post" action="{{admin_url}}edit-galleries"> |
| 113 |
<input id="vimeography-list-action" type="hidden" name="vimeography-list[action]" value="" /> |
| 114 |
<input id="vimeography-list-id" type="hidden" name="vimeography-list[id]" value="" /> |
| 115 |
{{{nonce}}} |
| 116 |
</form> |
| 117 |
{{#pagination}} |
| 118 |
<div class="wp_bootstrap"> |
| 119 |
<div class="pagination"> |
| 120 |
<ul> |
| 121 |
<li{{^previous-page}} class="disabled{{/previous-page}}"><a href="{{#previous-page}}{{admin_url}}edit-galleries&p={{previous-page}}{{/previous-page}}{{^previous-page}}#{{/previous-page}}">←</a></li> |
| 122 |
{{#pages}} |
| 123 |
<li{{#active}} class="active"{{/active}}><a href="{{admin_url}}edit-galleries&p={{number}}">{{number}}</a></li> |
| 124 |
{{/pages}} |
| 125 |
<li{{^next-page}} class="disabled{{/next-page}}"><a href="{{#next-page}}{{admin_url}}edit-galleries&p={{next-page}}{{/next-page}}{{^next-page}}#{{/next-page}}">→</a></li> |
| 126 |
</ul> |
| 127 |
</div> |
| 128 |
</div> |
| 129 |
{{/pagination}} |
| 130 |
{{/galleries_to_show}} |
| 131 |
|
| 132 |
{{^galleries_to_show}} |
| 133 |
<h1>You don't have any galleries. <a href="{{new_gallery_url}}" title="Create a new gallery">Care to make one?</a></h1> |
| 134 |
{{/galleries_to_show}} |
| 135 |
</div> |