58b3dd27f6
- Add: Setting to enable/disable the mouse-over box - Add: Current WordPress Theme to the Diagnostics sub page - Add: ManFisher note in the "other Plugins" sub page - Update: Removed unnecessary hidden inputs from the Settings page - Update: Merged public CSS files to reduce the output and improve the performance - Update: Translations (EN and DE) - Bugfix: Removed the 'trim' function to allow whitespaces at the beginning and end of each setting - Bugfix: Convert the footnotes short code to HTML special chars when adding them into the page/post editor (visual and text) - Bugfix: Detailed error messages if other Plugins can't be loaded. Also added empty strings as default values to avoid 'undefined' git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@1000036 b8457f37-d9ea-0310-8a92-e5e31aec5664
45 lines
No EOL
1.4 KiB
HTML
45 lines
No EOL
1.4 KiB
HTML
<div class="plugin-card">
|
|
<div class="plugin-card-top">
|
|
<div>
|
|
<h4><a href="" target="_blank" class="thickbox" id="[[name]]-url">[[title]]</a></h4>
|
|
</div>
|
|
<div class="action-links">
|
|
<ul class="plugin-action-buttons">
|
|
<li><a class="install-now button" href="" id="[[name]]-website">Website</a></li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<p id="[[name]]-description"></p>
|
|
</div>
|
|
</div>
|
|
<div class="plugin-card-bottom">
|
|
<div class="column-updated"><p id="[[name]]-version"></p></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url: '/wp-admin/admin-ajax.php',
|
|
data: {
|
|
action: 'footnotes_getPluginInfo',
|
|
plugin: '[[name]]'
|
|
},
|
|
dataType: 'json',
|
|
success: function (data, textStatus, XMLHttpRequest) {
|
|
if (data == null) {
|
|
jQuery("#[[name]]-description").text("No response received.");
|
|
} else if (data.error) {
|
|
console.log(data.error);
|
|
jQuery("#[[name]]-description").text(data.error);
|
|
} else {
|
|
jQuery("#[[name]]-url").attr("href", data.PluginUrl);
|
|
jQuery("#[[name]]-website").attr("href", data.PluginUrl);
|
|
jQuery("#[[name]]-description").text(data.PluginDescription);
|
|
jQuery("#[[name]]-version").text("Version: " + data.PluginVersion);
|
|
}
|
|
},
|
|
error: function (MLHttpRequest, textStatus, errorThrown) {
|
|
console.log(textStatus);
|
|
}
|
|
});
|
|
</script> |