refactor: rename templates/
into partials/
, split into admin and public
This commit is contained in:
parent
84c299a368
commit
88e3302166
43 changed files with 0 additions and 0 deletions
14
src/admin/partials/configure-label-solution.html
Normal file
14
src/admin/partials/configure-label-solution.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-1-selection]]</p>
|
||||
</div>
|
||||
<table class="configure-label-solution widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-selection]]</td>
|
||||
<td>[[selection]]</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-2-selection]]</p>
|
||||
</div>
|
18
src/admin/partials/customize-css-migration.html
Normal file
18
src/admin/partials/customize-css-migration.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-css]]</p>
|
||||
</div>
|
||||
<table class="customize_css_migration widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-css]]</td>
|
||||
<td>[[css]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-show-legacy]]</td>
|
||||
<td>[[show-legacy]] <span class="footnotes_notice">[[notice-show-legacy]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-show-legacy]]</p>
|
||||
</div>
|
33
src/admin/partials/customize-css-new.html
Normal file
33
src/admin/partials/customize-css-new.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<table id="customize_css_new" class="customize_css_new widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[headline]]<br />
|
||||
<div class="list">
|
||||
<p>.footnote_referrer = enclosing <span>
|
||||
<p>.footnote_referrer > a = optional <a> enclosing the <sup>
|
||||
<p>.footnote_plugin_tooltip_text = inner <sup>, not tooltip
|
||||
<p><!--closing p tags are not mandatory-->
|
||||
<p>.footnote_tooltip = inner <span>
|
||||
<p>.footnote_tooltip_continue = nested <span>
|
||||
<p><!--closing p tags are not mandatory-->
|
||||
<p>.footnotes_reference_container = enclosing <div>
|
||||
<p>.footnote_container_prepare = label <div>
|
||||
<p>.footnote_reference_container_label = <span>
|
||||
<p>.footnote_reference_container_collapse_button = sibling <span>
|
||||
<p><!--closing p tags are not mandatory-->
|
||||
<p>.footnotes_table = <table>
|
||||
<p>.footnotes_plugin_reference_row = <tr>
|
||||
<p>.footnote_plugin_index_combi = first <td> if identical footnotes are combined
|
||||
<p>.footnote_plugin_index = first <td> if identical footnotes are not combined
|
||||
<p>.footnote_index = <a> or <span> in first <td> in 3-column table
|
||||
<p>.footnote_plugin_symbol = second <td> in 3-column table
|
||||
<p>.footnote_plugin_link = <a> or <span> if identical footnotes are not combined
|
||||
<p>.footnote_backlink = <a> or <span> if identical footnotes are combined, or in second <td> in 3-column table
|
||||
<p>.footnote_index_arrow = nested <span>, symbol only
|
||||
<p>.footnote_plugin_text = second <td>, or third <td> in 3-column table
|
||||
</div>
|
||||
</td>
|
||||
<td>[[css]]</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
11
src/admin/partials/customize-css.html
Normal file
11
src/admin/partials/customize-css.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-css]]</p>
|
||||
</div>
|
||||
<table class="customize_css widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-css]]</td>
|
||||
<td>[[css]]</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
15
src/admin/partials/customize-hyperlink-arrow.html
Normal file
15
src/admin/partials/customize-hyperlink-arrow.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<table class="customize_hyperlink_arrow widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-symbol]]</td>
|
||||
<td>
|
||||
[[symbol-options]]
|
||||
[[symbol-custom]]
|
||||
<span class="footnotes_notice">[[notice-symbol]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-symbol]]</p>
|
||||
</div>
|
24
src/admin/partials/customize-superscript.html
Normal file
24
src/admin/partials/customize-superscript.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<table class="customize_superscript widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-superscript]]</td>
|
||||
<td>[[superscript]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-normalize]]</td>
|
||||
<td>[[normalize]] <span class="footnotes_notice">[[notice-normalize]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-before]]</td>
|
||||
<td>[[before]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-after]]</td>
|
||||
<td>[[after]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-link]]</td>
|
||||
<td><span class="footnotes_notice">[[notice-link]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
62
src/admin/partials/editor-button.html
Normal file
62
src/admin/partials/editor-button.html
Normal file
|
@ -0,0 +1,62 @@
|
|||
<!--<?php//for docblock, @see MCI_Footnotes_Template::process_template()
|
||||
/**
|
||||
* Footnote button for the Classic Editor text mode.
|
||||
*
|
||||
* @since 1.3.0
|
||||
* @lastmodified 2021-02-18T2043+0100
|
||||
*
|
||||
* @since 2.5.4 Bugfix: Editor button: Classic Editor text mode: try to fix uncaught reference error of “QTags is not defined”, thanks to @dpartridge bug report.
|
||||
* @since 2.5.4 Bugfix: Editor button: Classic Editor text mode: correct label to singular.
|
||||
*/?>
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
/**
|
||||
* Brackets the selected text with tags in the text area.
|
||||
*
|
||||
* @param string elementID
|
||||
* @param string openTag
|
||||
* @param string closeTag
|
||||
*/
|
||||
function MCI_Footnotes_wrapText(elementID, openTag, closeTag) {
|
||||
var textArea = jQuery('#' + elementID);
|
||||
var len = textArea.val().length;
|
||||
var start = textArea[0].selectionStart;
|
||||
var end = textArea[0].selectionEnd;
|
||||
var selectedText = textArea.val().substring(start, end);
|
||||
var replacement = openTag + selectedText + closeTag;
|
||||
textArea.val(textArea.val().substring(0, start) + replacement + textArea.val().substring(end, len));
|
||||
}
|
||||
/**
|
||||
* Adds a button to the Classic Editor text mode.
|
||||
*
|
||||
* - Bugfix: Editor button: Classic Editor text mode: try to fix uncaught reference error of “QTags is not defined”, thanks to @dpartridge bug report.
|
||||
*
|
||||
* @reporter @dpartridge
|
||||
* @link https://wordpress.org/support/topic/qtags-addbutton/
|
||||
*
|
||||
*/
|
||||
if ( QTags ) {
|
||||
QTags.addButton( 'MCI_Footnotes_QuickTag_button', 'footnote', MCI_Footnotes_text_editor_callback );
|
||||
}
|
||||
|
||||
/**
|
||||
* callback function when the button is clicked
|
||||
* executes a ajax call to get the start and end tag for the footnotes and
|
||||
* adds them in before and after the selected text
|
||||
*/
|
||||
function MCI_Footnotes_text_editor_callback() {
|
||||
jQuery.ajax({
|
||||
type: 'POST',
|
||||
url: '/wp-admin/admin-ajax.php',
|
||||
data: {
|
||||
action: 'footnotes_getTags'
|
||||
},
|
||||
success: function(data, textStatus, XMLHttpRequest){
|
||||
var l_arr_Tags = JSON.parse(data);
|
||||
MCI_Footnotes_wrapText("content", l_arr_Tags['start'], l_arr_Tags['end']);
|
||||
},
|
||||
error: function(MLHttpRequest, textStatus, errorThrown){
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
50
src/admin/partials/expert-lookup.html
Normal file
50
src/admin/partials/expert-lookup.html
Normal file
|
@ -0,0 +1,50 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-1]]</p>
|
||||
<p>[[description-2]]</p>
|
||||
<p>[[description-3]]</p>
|
||||
</div>
|
||||
<table class="expert_lookup widefat fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>[[head-hook]]</th>
|
||||
<th>[[head-checkbox]]</th>
|
||||
<th>[[head-numbox]]</th>
|
||||
<th>[[head-url]]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-the-title]]</td>
|
||||
<td>[[the-title]]</td>
|
||||
<td>[[priority-the-title]]</td>
|
||||
<td><a href="[[url-the-title]]" target="_blank">[[url-the-title]]</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-the-content]]</td>
|
||||
<td>[[the-content]]</td>
|
||||
<td>[[priority-the-content]]</td>
|
||||
<td><a href="[[url-the-content]]" target="_blank">[[url-the-content]]</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-the-excerpt]]</td>
|
||||
<td>[[the-excerpt]]</td>
|
||||
<td>[[priority-the-excerpt]]</td>
|
||||
<td><a href="[[url-the-excerpt]]" target="_blank">[[url-the-excerpt]]</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-widget-title]]</td>
|
||||
<td>[[widget-title]]</td>
|
||||
<td>[[priority-widget-title]]</td>
|
||||
<td><a href="[[url-widget-title]]" target="_blank">[[url-widget-title]]</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-widget-text]]</td>
|
||||
<td>[[widget-text]]</td>
|
||||
<td>[[priority-widget-text]]</td>
|
||||
<td><a href="[[url-widget-text]]" target="_blank">[[url-widget-text]]</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-4]]</p>
|
||||
</div>
|
2
src/admin/partials/how-to-donate.html
Normal file
2
src/admin/partials/how-to-donate.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<input type="button" class="button button-primary" value="[[caption]]"
|
||||
onclick="window.open('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6Z6CZDW8PPBBJ');" />
|
17
src/admin/partials/how-to-help.html
Normal file
17
src/admin/partials/how-to-help.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div class="footnote_placeholder_box_container">
|
||||
[[label-start]] <b>[[start]]</b>
|
||||
<br/>
|
||||
[[label-end]] <b>[[end]]</b>
|
||||
</div>
|
||||
|
||||
<div class="footnote_placeholder_box_example">
|
||||
<span class="footnote_highlight_placeholder">[[example-code]]</span>
|
||||
<br/>
|
||||
[[example-string]]
|
||||
<br/>
|
||||
[[example]]
|
||||
</div>
|
||||
|
||||
<div style="text-align:center;">
|
||||
[[information]]
|
||||
</div>
|
32
src/admin/partials/mouse-over-box-appearance.html
Normal file
32
src/admin/partials/mouse-over-box-appearance.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<table class="mouse_over_box_appearance widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-font-size]]</td>
|
||||
<td>[[font-size-enable]][[font-size-scalar]][[font-size-unit]] <span class="footnotes_notice">[[notice-font-size]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-color]]</td>
|
||||
<td>[[color]] <span class="footnotes_notice">[[notice-color]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-background]]</td>
|
||||
<td>[[background]] <span class="footnotes_notice">[[notice-background]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-border-width]]</td>
|
||||
<td>[[border-width]] <span class="footnotes_notice">[[notice-border-width]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-border-color]]</td>
|
||||
<td>[[border-color]] <span class="footnotes_notice">[[notice-border-color]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-border-radius]]</td>
|
||||
<td>[[border-radius]] <span class="footnotes_notice">[[notice-border-radius]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-box-shadow-color]]</td>
|
||||
<td>[[box-shadow-color]] <span class="footnotes_notice">[[notice-box-shadow-color]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
8
src/admin/partials/mouse-over-box-dimensions.html
Normal file
8
src/admin/partials/mouse-over-box-dimensions.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<table class="mouse_over_box_dimensions widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-max-width]]</td>
|
||||
<td>[[max-width]] [[width]] <span class="footnotes_notice">[[notice-max-width]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
15
src/admin/partials/mouse-over-box-display.html
Normal file
15
src/admin/partials/mouse-over-box-display.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<table class="mouse_over_box_display widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-enable]]</td>
|
||||
<td>[[enable]] <span class="footnotes_notice">[[notice-enable]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-alternative]]</td>
|
||||
<td>[[alternative]] <span class="footnotes_notice">[[notice-alternative]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-alternative]]</p>
|
||||
</div>
|
16
src/admin/partials/mouse-over-box-position.html
Normal file
16
src/admin/partials/mouse-over-box-position.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<table class="mouse_over_box_position widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-position]]</td>
|
||||
<td>[[position]] [[position-alternative]] <span class="footnotes_notice">[[notice-position]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-offset-x]]</td>
|
||||
<td>[[offset-x]] [[offset-x-alternative]] <span class="footnotes_notice">[[notice-offset-x]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-offset-y]]</td>
|
||||
<td>[[offset-y]] [[offset-y-alternative]] <span class="footnotes_notice">[[notice-offset-y]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
22
src/admin/partials/mouse-over-box-text.html
Normal file
22
src/admin/partials/mouse-over-box-text.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-delimiter]]</p>
|
||||
</div>
|
||||
<table class="mouse_over_box_text widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-delimiter]]</td>
|
||||
<td>[[delimiter]] <span class="footnotes_notice">[[notice-delimiter]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-mirror]]</td>
|
||||
<td>[[mirror]] <span class="footnotes_notice">[[notice-mirror]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-separator]]</td>
|
||||
<td>[[separator]] <span class="footnotes_notice">[[notice-separator]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-mirror]]</p>
|
||||
</div>
|
20
src/admin/partials/mouse-over-box-timing.html
Normal file
20
src/admin/partials/mouse-over-box-timing.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<table class="mouse_over_box_timing widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-fade-in-delay]]</td>
|
||||
<td>[[fade-in-delay]] <span class="footnotes_notice">[[notice-fade-in-delay]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-fade-in-duration]]</td>
|
||||
<td>[[fade-in-duration]] <span class="footnotes_notice">[[notice-fade-in-duration]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-fade-out-delay]]</td>
|
||||
<td>[[fade-out-delay]] <span class="footnotes_notice">[[notice-fade-out-delay]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-fade-out-duration]]</td>
|
||||
<td>[[fade-out-duration]] <span class="footnotes_notice">[[notice-fade-out-duration]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
16
src/admin/partials/mouse-over-box-truncation.html
Normal file
16
src/admin/partials/mouse-over-box-truncation.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<table class="mouse_over_box_truncation widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-truncation]]</td>
|
||||
<td>[[truncation]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-max-length]]</td>
|
||||
<td>[[max-length]] <span class="footnotes_notice">[[notice-max-length]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-readon]]</td>
|
||||
<td>[[readon]]</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
91
src/admin/partials/other-plugins.html
Normal file
91
src/admin/partials/other-plugins.html
Normal file
|
@ -0,0 +1,91 @@
|
|||
<div class="plugin-card">
|
||||
<div class="plugin-card-top">
|
||||
<a href="[[server]]/wp-admin/plugin-install.php?tab=plugin-information&plugin=[[plugin-name]]&TB_iframe=true&width=600&height=550" class="thickbox plugin-icon">
|
||||
<img src="[[plugin-icon]]"/>
|
||||
</a>
|
||||
<div class="name column-name">
|
||||
<h4>
|
||||
<a href="[[server]]/wp-admin/plugin-install.php?tab=plugin-information&plugin=[[plugin-name]]&TB_iframe=true&width=600&height=550" class="thickbox">[[plugin-title]]</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="action-links">
|
||||
<ul class="plugin-action-buttons">
|
||||
<li>
|
||||
[[install-link]]
|
||||
</li>
|
||||
<li>
|
||||
<a href="[[server]]/wp-admin/plugin-install.php?tab=plugin-information&plugin=[[plugin-name]]&TB_iframe=true&width=600&height=550" class="thickbox" aria-label="More information about [[plugin-title]]" data-title="[[plugin-title]]">[[more-details-label]]</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="desc column-description">
|
||||
<p id="manfisher-[[plugin-name]]-description"></p>
|
||||
<p class="authors">
|
||||
<cite id="manfisher-[[plugin-name]]-author"></cite>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="plugin-card-bottom">
|
||||
<div class="vers column-rating">
|
||||
<div class="star-rating" title="">
|
||||
<span class="screen-reader-text" id="manfisher-[[plugin-name]]-rating-text"></span>
|
||||
<div class="star"></div>
|
||||
<div class="star"></div>
|
||||
<div class="star"></div>
|
||||
<div class="star"></div>
|
||||
<div class="star"></div>
|
||||
</div>
|
||||
<span class="num-ratings" id="manfisher-[[plugin-name]]-rating-num"></span>
|
||||
</div>
|
||||
<div class="column-updated">
|
||||
<strong>[[last-updated-label]]:</strong>
|
||||
<span id="manfisher-[[plugin-name]]-updated"></span>
|
||||
</div>
|
||||
<div class="column-downloaded" id="manfisher-[[plugin-name]]-downloads"></div>
|
||||
<div class="column-compatibility">
|
||||
<!--<span class="compatibility-compatible"></span>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery.ajax({
|
||||
type: 'POST',
|
||||
url: '/wp-admin/admin-ajax.php',
|
||||
data: {
|
||||
action: 'footnotes_get_plugin_info',
|
||||
plugin: '[[plugin-name]]'
|
||||
},
|
||||
dataType: 'json',
|
||||
success: function (data, textStatus, XMLHttpRequest) {
|
||||
var l_obj_Description = jQuery("#manfisher-[[plugin-name]]-description");
|
||||
var l_obj_Author = jQuery("#manfisher-[[plugin-name]]-author");
|
||||
var l_obj_RatingText = jQuery("#manfisher-[[plugin-name]]-rating-text");
|
||||
var l_obj_RatingNum = jQuery("#manfisher-[[plugin-name]]-rating-num");
|
||||
var l_obj_LastUpdated = jQuery("#manfisher-[[plugin-name]]-updated");
|
||||
var l_obj_Downloads = jQuery("#manfisher-[[plugin-name]]-downloads");
|
||||
|
||||
if (data == null) {
|
||||
l_obj_Description.text("No response received.");
|
||||
} else if (data.error) {
|
||||
l_obj_Description.text(data.error);
|
||||
} else {
|
||||
l_obj_Description.text(data.PluginDescription);
|
||||
l_obj_Author.append("By " + data.PluginAuthor);
|
||||
l_obj_RatingText.text(data.PluginRatingText);
|
||||
l_obj_RatingText.next().addClass(data.PluginRating1);
|
||||
l_obj_RatingText.next().next().addClass(data.PluginRating2);
|
||||
l_obj_RatingText.next().next().next().addClass(data.PluginRating3);
|
||||
l_obj_RatingText.next().next().next().next().addClass(data.PluginRating4);
|
||||
l_obj_RatingText.next().next().next().next().next().addClass(data.PluginRating5);
|
||||
l_obj_RatingNum.text("(" + data.PluginRating + ")");
|
||||
l_obj_LastUpdated.text(data.PluginLastUpdated);
|
||||
l_obj_Downloads.text(data.PluginDownloads + " downloads");
|
||||
}
|
||||
},
|
||||
error: function (MLHttpRequest, textStatus, errorThrown) {
|
||||
console.log(textStatus);
|
||||
}
|
||||
});
|
||||
</script>
|
14
src/admin/partials/settings-amp.html
Normal file
14
src/admin/partials/settings-amp.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-1-amp]]</p>
|
||||
</div>
|
||||
<table class="settings_amp widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-amp]]</td>
|
||||
<td>[[amp]] <span class="footnotes_notice">[[notice-amp]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-2-amp]]</p>
|
||||
</div>
|
11
src/admin/partials/settings-excerpts.html
Normal file
11
src/admin/partials/settings-excerpts.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table class="settings_excerpts widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-excerpts]]</td>
|
||||
<td>[[excerpts]] <span class="footnotes_notice">[[notice-excerpts]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-excerpts]]</p>
|
||||
</div>
|
28
src/admin/partials/settings-hard-links.html
Normal file
28
src/admin/partials/settings-hard-links.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<table class="settings_hard_links widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-hard-links]]</td>
|
||||
<td>[[hard-links]] <span class="footnotes_notice">[[notice-hard-links]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-footnote]]</td>
|
||||
<td>[[footnote]] <span class="footnotes_notice">[[notice-footnote]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-referrer]]</td>
|
||||
<td>[[referrer]] <span class="footnotes_notice">[[notice-referrer]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-separator]]</td>
|
||||
<td>[[separator]] <span class="footnotes_notice">[[notice-separator]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-backlink-tooltips]]</td>
|
||||
<td>[[backlink-tooltips]] <span class="footnotes_notice">[[notice-backlink-tooltips]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-backlink-tooltip-text]]</td>
|
||||
<td>[[backlink-tooltip-text]] <span class="footnotes_notice">[[notice-backlink-tooltip-text]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
12
src/admin/partials/settings-love.html
Normal file
12
src/admin/partials/settings-love.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<table class="settings_love widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-love]]</td>
|
||||
<td>[[love]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-no-love]]</td>
|
||||
<td>[[no-love]]</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
15
src/admin/partials/settings-numbering.html
Normal file
15
src/admin/partials/settings-numbering.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<table class="settings_numbering widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-counter-style]]</td>
|
||||
<td>[[counter-style]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-identical]]</td>
|
||||
<td>[[identical]] <span class="footnotes_notice">[[notice-identical]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-identical]]</p>
|
||||
</div>
|
121
src/admin/partials/settings-reference-container.html
Normal file
121
src/admin/partials/settings-reference-container.html
Normal file
|
@ -0,0 +1,121 @@
|
|||
<table class="settings_reference_container widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-name]]</td>
|
||||
<td>[[name]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-element]]</td>
|
||||
<td>[[element]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-border]]</td>
|
||||
<td>[[border]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-collapse]]</td>
|
||||
<td>[[collapse]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-script]]</td>
|
||||
<td>[[script]] <span class="footnotes_notice">[[notice-script]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-position]]</td>
|
||||
<td>[[position]] <span class="footnotes_notice">[[notice-position]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-shortcode]]</td>
|
||||
<td>[[shortcode]] <span class="footnotes_notice">[[notice-shortcode]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-section]]</td>
|
||||
<td>[[section]] <span class="footnotes_notice">[[notice-section]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-startpage]]</td>
|
||||
<td>[[startpage]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-margin-top]]</td>
|
||||
<td>[[margin-top]] <span class="footnotes_notice">[[notice-margin-top]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-margin-bottom]]</td>
|
||||
<td>[[margin-bottom]] <span class="footnotes_notice">[[notice-margin-bottom]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-page-layout]]</td>
|
||||
<td>[[page-layout]] <span class="footnotes_notice">[[notice-page-layout]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-url-wrap]]</td>
|
||||
<td>[[url-wrap]] <span class="footnotes_notice">[[notice-url-wrap]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-symbol]]</td>
|
||||
<td>[[symbol-enable]] <span class="footnotes_notice">[[notice-symbol]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-switch]]</td>
|
||||
<td>[[switch]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-3column]]</td>
|
||||
<td>[[3column]] <span class="footnotes_notice">[[notice-3column]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-row-borders]]</td>
|
||||
<td>[[row-borders]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-separator]]</td>
|
||||
<td>
|
||||
[[separator-enable]]
|
||||
[[separator-options]]
|
||||
[[separator-custom]]
|
||||
<span class="footnotes_notice">[[notice-separator]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-terminator]]</td>
|
||||
<td>
|
||||
[[terminator-enable]]
|
||||
[[terminator-options]]
|
||||
[[terminator-custom]]
|
||||
<span class="footnotes_notice">[[notice-terminator]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-width]]</td>
|
||||
<td>
|
||||
[[width-enable]]
|
||||
[[width-scalar]]
|
||||
[[width-unit]]
|
||||
<span class="footnotes_notice">[[notice-width]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-max-width]]</td>
|
||||
<td>
|
||||
[[max-width-enable]]
|
||||
[[max-width-scalar]]
|
||||
[[max-width-unit]]
|
||||
<span class="footnotes_notice">[[notice-max-width]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-line-break]]</td>
|
||||
<td>[[line-break]]
|
||||
<span class="footnotes_notice">[[notice-line-break]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-link]]</td>
|
||||
<td>[[link]] <span class="footnotes_notice">[[notice-link]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-link]]</p>
|
||||
</div>
|
32
src/admin/partials/settings-scrolling.html
Normal file
32
src/admin/partials/settings-scrolling.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<table class="settings_scrolling widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-scroll-css]]</td>
|
||||
<td>[[scroll-css]] <span class="footnotes_notice">[[notice-scroll-css]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-scroll-offset]]</td>
|
||||
<td>[[scroll-offset]] <span class="footnotes_notice">[[notice-scroll-offset]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-scroll-duration]]</td>
|
||||
<td>[[scroll-duration]] <span class="footnotes_notice">[[notice-scroll-duration]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-scroll-asymmetricity]]</td>
|
||||
<td>[[scroll-asymmetricity]] <span class="footnotes_notice">[[notice-scroll-asymmetricity]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-scroll-down-duration]]</td>
|
||||
<td>[[scroll-down-duration]] <span class="footnotes_notice">[[notice-scroll-down-duration]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-scroll-down-delay]]</td>
|
||||
<td>[[scroll-down-delay]] <span class="footnotes_notice">[[notice-scroll-down-delay]]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-scroll-up-delay]]</td>
|
||||
<td>[[scroll-up-delay]] <span class="footnotes_notice">[[notice-scroll-up-delay]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
63
src/admin/partials/settings-start-end.html
Normal file
63
src/admin/partials/settings-start-end.html
Normal file
|
@ -0,0 +1,63 @@
|
|||
<div class="footnotes_description">
|
||||
<p>[[description-escapement]]</p>
|
||||
</div>
|
||||
<table class="settings_start_end widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-short-code-start]]</td>
|
||||
<td>
|
||||
<span>[[short-code-start]]</span>
|
||||
<span>[[short-code-start-user]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[[label-short-code-end]]</td>
|
||||
<td>
|
||||
<span>[[short-code-end]]</span>
|
||||
<span>[[short-code-end-user]]</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-parentheses]]</p>
|
||||
</div>
|
||||
<table class="settings_start_end widefat fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[[label-syntax]]</td>
|
||||
<td>[[syntax]] <span class="footnotes_notice">[[notice-syntax]]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footnotes_description">
|
||||
<p>[[description-syntax]]</p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var l_obj_ShortCodeStart = jQuery("#[[short-code-start-id]]");
|
||||
var l_obj_ShortCodeEnd = jQuery("#[[short-code-end-id]]");
|
||||
var l_obj_ShortCodeStartUserDefined = jQuery("#[[short-code-start-user-id]]");
|
||||
var l_obj_ShortCodeEndUserDefined = jQuery("#[[short-code-end-user-id]]");
|
||||
|
||||
function footnotes_Display_UserDefined_Placeholders() {
|
||||
if (l_obj_ShortCodeStart.val() == "userdefined") {
|
||||
l_obj_ShortCodeStartUserDefined.parent().show();
|
||||
l_obj_ShortCodeEndUserDefined.parent().show();
|
||||
} else {
|
||||
l_obj_ShortCodeStartUserDefined.parent().hide();
|
||||
l_obj_ShortCodeEndUserDefined.parent().hide();
|
||||
}
|
||||
}
|
||||
footnotes_Display_UserDefined_Placeholders();
|
||||
|
||||
l_obj_ShortCodeStart.on('change', function() {
|
||||
var l_int_SelectedIndex = jQuery(this).prop("selectedIndex");
|
||||
jQuery('#[[short-code-end-id]] option:eq(' + l_int_SelectedIndex + ')').prop('selected', true);
|
||||
footnotes_Display_UserDefined_Placeholders();
|
||||
});
|
||||
l_obj_ShortCodeEnd.on('change', function() {
|
||||
var l_int_SelectedIndex = jQuery(this).prop("selectedIndex");
|
||||
jQuery('#[[short-code-start-id]] option:eq(' + l_int_SelectedIndex + ')').prop('selected', true);
|
||||
footnotes_Display_UserDefined_Placeholders();
|
||||
});
|
||||
</script>
|
Reference in a new issue