Dashboard updates, version 2.0.1 release prep
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2408090 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
2bbb7f0f0e
commit
23749a3355
5 changed files with 8 additions and 63 deletions
|
@ -146,59 +146,9 @@ class MCI_Footnotes_Layout_Init {
|
|||
$l_obj_Template = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_DASHBOARD, "manfisher");
|
||||
echo $l_obj_Template->getContent();
|
||||
|
||||
printf('<em>visit <a href="http://manfisher.net/" target="_blank">ManFisher Medien ManuFaktur</a> or <a href="http://herndler.org" target="_blank">herndler.org</a></em>');
|
||||
printf('<em>visit <a href="https://cheret.de/plugins/footnotes-2/" target="_blank">Mark Cheret</a></em>');
|
||||
printf("<br/><br/>");
|
||||
printf("<h3>%s</h3>", __('Take a look on other Plugins we have developed.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME));
|
||||
|
||||
// collect plugin list as JSON
|
||||
$l_arr_Response = wp_remote_get("http://herndler.org/project/other-wordpress-plugins.php");
|
||||
// check if response is valid
|
||||
if (is_wp_error($l_arr_Response)) {
|
||||
printf(__("Error loading other WordPress Plugins from Manfisher. Sorry!", MCI_Footnotes_Config::C_STR_PLUGIN_NAME));
|
||||
return;
|
||||
}
|
||||
// get the body of the response
|
||||
$l_str_Response = $l_arr_Response["body"];
|
||||
// convert the body to a json string
|
||||
$l_arr_Plugins = json_decode($l_str_Response, true);
|
||||
|
||||
$l_str_Server = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://" . $_SERVER["SERVER_NAME"];
|
||||
|
||||
// load template file
|
||||
$l_obj_Template = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_DASHBOARD, "other-plugins");
|
||||
|
||||
printf('<div id="the-list">');
|
||||
// iterate through each Plugin
|
||||
foreach($l_arr_Plugins as $l_arr_PluginInfo) {
|
||||
$l_str_InstallButton = '<a class="install-now button" href="'.$l_str_Server.'/wp-admin/update.php?action=install-plugin&plugin='.$l_arr_PluginInfo["name"].'&_wpnonce=e7a5c90faf" aria-label="Install '.$l_arr_PluginInfo["title"].' now">'.__("Install now", MCI_Footnotes_Config::C_STR_PLUGIN_NAME).'</a>';
|
||||
$l_str_AlreadyInstalled = '<span class="button button-disabled" title="'.__("This Plugin is already installed and up to date.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME).'">'.__("Installed", MCI_Footnotes_Config::C_STR_PLUGIN_NAME).'</span>';
|
||||
$l_bool_isPluginInstalled = false;
|
||||
// iterate through each installed WordPress Plugin
|
||||
foreach (get_plugins() as $l_arr_Plugin) {
|
||||
if (strtolower($l_arr_PluginInfo["title"]) == strtolower($l_arr_Plugin["Name"])) {
|
||||
$l_bool_isPluginInstalled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// replace Plugin information
|
||||
$l_obj_Template->replace(
|
||||
array(
|
||||
"server" => $l_str_Server,
|
||||
"plugin-name" => $l_arr_PluginInfo["name"],
|
||||
"plugin-title" => $l_arr_PluginInfo["title"],
|
||||
"plugin-icon" => strlen($l_arr_PluginInfo["img"]) > 0 ? "http://plugins.svn.wordpress.org/" . $l_arr_PluginInfo["name"] ."/assets/" . $l_arr_PluginInfo["img"] : "",
|
||||
|
||||
"install-link" => !$l_bool_isPluginInstalled ? $l_str_InstallButton : $l_str_AlreadyInstalled,
|
||||
"more-details-label" => __("More Details", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||
"last-updated-label" => __("Last Updated", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)
|
||||
)
|
||||
);
|
||||
// display Plugin
|
||||
echo $l_obj_Template->getContent();
|
||||
// reload template
|
||||
$l_obj_Template->reload();
|
||||
}
|
||||
printf('</div>');
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Plugin URI: http://wordpress.org/plugins/footnotes/
|
||||
Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine.
|
||||
Author: Mark Cheret
|
||||
Version: 2.0.0
|
||||
Version: 2.0.1
|
||||
Author URI: http://cheret.de/plugins/footnotes-2/
|
||||
Text Domain: footnotes
|
||||
Domain Path: /languages
|
||||
|
|
|
@ -61,10 +61,10 @@
|
|||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Inserts the Footnotes short code.',
|
||||
author : 'ManFisher Medien ManuFaktur',
|
||||
authorurl : 'http://http://manfisher.net/',
|
||||
author : 'Mark Cheret',
|
||||
authorurl : 'https://cheret.de',
|
||||
infourl : 'http://wordpress.org/plugins/footnotes/',
|
||||
version : "1.5.0"
|
||||
version : "2.0.0"
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
@ -4,7 +4,7 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen
|
|||
Requires at least: 3.9
|
||||
Tested up to: 5.5
|
||||
Requires PHP: 5.6
|
||||
Stable Tag: 2.0.1
|
||||
Stable Tag: 2.0.0
|
||||
License: GPLv3 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
|
|
|
@ -6,11 +6,6 @@
|
|||
<h2 style="margin: 0; color: rgb(64, 64, 64); line-height: 36px; font-size: 24px; ">Ideology</h2>
|
||||
<p style="margin: 0 0 9px; font-size: 13px; line-height: 18px;">You know WordPress is a great community effort and boatloads of people are involved and spending their spare time to freely (free as in money) contribute to WordPress as a platform or at the very core. Our aim as developers and those gravitating around developer's halos is to give back to the community with our own ideas which we think are great and well worth our whiles to put our own time into. For some of us, it would be a huge honour to serve the WordPress core developer team.</p>
|
||||
|
||||
<h2 style="margin: 0; color: rgb(64, 64, 64); line-height: 36px; font-size: 24px; ">the footnotes mastermind</h2>
|
||||
<p style="margin: 0 0 9px; font-size: 13px; line-height: 18px;">... only recently took it on himself to start up a company to fuel the (financial and fatherly) needs of his family. So far it's been running dang fine, as you might have guessed. Only God knows what the future will hold. And while definitely trusting God it would be unwise to be foolish, right?</p>
|
||||
<h2 style="margin: 0;color: rgb(64, 64, 64); line-height: 36px; font-size: 24px; ">the ManFisher menu</h2>
|
||||
<p style="margin: 0 0 9px; font-size: 13px; line-height: 18px;">Word about my company "ManFisher Media ManuFactory" needs to be spread. And this new "ManFisher" menu is a small yet bearable way of telling the world that there's a WordPress dedicated company on the market that's one of the few who understand WordPress as an approach and as a style of development. And to be honest: I didn't even come up with this idea in the first place! Some of you may be confused, as to why this step was taken and why stuff is now in this menu.</p>
|
||||
<p style="font-size: 13px; line-height: 18px;">Let me explain:</p>
|
||||
<p style="font-size: 13px; line-height: 18px;">We have already developed 5 Plugins and my head is still spinning with ideas with not necessarily new Plugin ideas but definitely unique ideas worth of their own Plugin. Such as footnotes is appreciated by many users for its well researched underlying paradigms, a host of new Plugins are in the process of being planned and developed which will all boast the same kind of dedication and craftsmenship. To give all those ideas a future and common home, we've put it into this one comprehensive menu. So hopefully users will appreciate this and take the logo of "ManFisher" as a quality assurance label and put forth trust into the company and its likable guys.</p>
|
||||
<p style="font-size: 13px; line-height: 18px;">You are now officially allowed to be excited about all that is to come.</p>
|
||||
<p style="margin: 0 0 9px; font-size: 13px; line-height: 18px;">Will soon disappear as the company name changed and I believe it's overbearing to have that menu for such a simple function as footnotes</p>
|
||||
</div>
|
Reference in a new issue