Version Description
- Add 'Show quick icon' parameter to plugin settings
Download this release
Release Info
Developer | arisoft |
Plugin | ARI Adminer – WordPress Database Manager |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- ari-adminer.php +1 -1
- includes/class-plugin.php +18 -0
- includes/defines.php +1 -1
- includes/helpers/class-settings.php +32 -0
- languages/ari-adminer.pot +36 -18
- readme.txt +8 -2
ari-adminer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: ARI Adminer
|
4 |
Plugin URI: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
5 |
Description: Powerful, compact and easy to use database manager plugin for WordPress.
|
6 |
-
Version: 1.1.
|
7 |
Author: ARI Soft
|
8 |
Author URI: http://www.ari-soft.com
|
9 |
Text Domain: ari-adminer
|
3 |
Plugin Name: ARI Adminer
|
4 |
Plugin URI: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
5 |
Description: Powerful, compact and easy to use database manager plugin for WordPress.
|
6 |
+
Version: 1.1.6
|
7 |
Author: ARI Soft
|
8 |
Author URI: http://www.ari-soft.com
|
9 |
Text Domain: ari-adminer
|
includes/class-plugin.php
CHANGED
@@ -94,6 +94,9 @@ class Plugin extends Ari_Plugin {
|
|
94 |
private function admin_init() {
|
95 |
Settings::init();
|
96 |
|
|
|
|
|
|
|
97 |
$no_header = (bool) Request::get_var( 'noheader' );
|
98 |
|
99 |
if ( ! $no_header ) {
|
@@ -109,6 +112,21 @@ class Plugin extends Ari_Plugin {
|
|
109 |
}
|
110 |
}
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
protected function need_to_update() {
|
113 |
$installed_version = get_option( ARIADMINER_VERSION_OPTION );
|
114 |
|
94 |
private function admin_init() {
|
95 |
Settings::init();
|
96 |
|
97 |
+
if ( Settings::get_option( 'show_quick_icon' ) )
|
98 |
+
$this->add_quick_icon();
|
99 |
+
|
100 |
$no_header = (bool) Request::get_var( 'noheader' );
|
101 |
|
102 |
if ( ! $no_header ) {
|
112 |
}
|
113 |
}
|
114 |
|
115 |
+
private function add_quick_icon() {
|
116 |
+
add_action( 'admin_bar_menu', function( $admin_bar ) {
|
117 |
+
$admin_bar->add_menu(
|
118 |
+
array(
|
119 |
+
'id' => 'adminer-link',
|
120 |
+
'title' => __( 'Adminer', 'ari-adminer' ),
|
121 |
+
'href' => get_admin_url( null, '/admin.php?page=ari-adminer-run-adminer&action=run&noheader=1' ),
|
122 |
+
'meta' => array(
|
123 |
+
'target' => '_blank',
|
124 |
+
)
|
125 |
+
)
|
126 |
+
);
|
127 |
+
});
|
128 |
+
}
|
129 |
+
|
130 |
protected function need_to_update() {
|
131 |
$installed_version = get_option( ARIADMINER_VERSION_OPTION );
|
132 |
|
includes/defines.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
define( 'ARIADMINER_VERSION', '1.1.
|
3 |
define( 'ARIADMINER_SLUG', 'ari-adminer' );
|
4 |
define( 'ARIADMINER_ASSETS_URL', ARIADMINER_URL . 'assets/' );
|
5 |
define( 'ARIADMINER_VERSION_OPTION', 'ari_adminer' );
|
1 |
<?php
|
2 |
+
define( 'ARIADMINER_VERSION', '1.1.6' );
|
3 |
define( 'ARIADMINER_SLUG', 'ari-adminer' );
|
4 |
define( 'ARIADMINER_ASSETS_URL', ARIADMINER_URL . 'assets/' );
|
5 |
define( 'ARIADMINER_VERSION_OPTION', 'ari_adminer' );
|
includes/helpers/class-settings.php
CHANGED
@@ -22,6 +22,8 @@ class Settings {
|
|
22 |
'roles' => array(),
|
23 |
|
24 |
'stop_on_logout' => false,
|
|
|
|
|
25 |
);
|
26 |
|
27 |
public static function init() {
|
@@ -86,6 +88,18 @@ class Settings {
|
|
86 |
ARIADMINER_SETTINGS_GENERAL_SECTION
|
87 |
);
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
add_settings_field(
|
90 |
'crypt_key',
|
91 |
self::format_option_name(
|
@@ -245,6 +259,24 @@ class Settings {
|
|
245 |
echo $html;
|
246 |
}
|
247 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
public static function render_general_crypt_key() {
|
249 |
$val = Helper::get_crypt_key();
|
250 |
|
22 |
'roles' => array(),
|
23 |
|
24 |
'stop_on_logout' => false,
|
25 |
+
|
26 |
+
'show_quick_icon' => false,
|
27 |
);
|
28 |
|
29 |
public static function init() {
|
88 |
ARIADMINER_SETTINGS_GENERAL_SECTION
|
89 |
);
|
90 |
|
91 |
+
add_settings_field(
|
92 |
+
'show_quick_icon',
|
93 |
+
self::format_option_name(
|
94 |
+
__( 'Show quick icon', 'ari-adminer' ),
|
95 |
+
|
96 |
+
__( 'An icon will be added to quick links to open the page with DB using default connection.', 'ari-adminer' )
|
97 |
+
),
|
98 |
+
array( __CLASS__, 'render_general_quick_link' ),
|
99 |
+
ARIADMINER_SETTINGS_GENERAL_PAGE,
|
100 |
+
ARIADMINER_SETTINGS_GENERAL_SECTION
|
101 |
+
);
|
102 |
+
|
103 |
add_settings_field(
|
104 |
'crypt_key',
|
105 |
self::format_option_name(
|
259 |
echo $html;
|
260 |
}
|
261 |
|
262 |
+
public static function render_general_quick_link() {
|
263 |
+
$val = self::get_option( 'show_quick_icon' );
|
264 |
+
|
265 |
+
$html = sprintf(
|
266 |
+
'<p>
|
267 |
+
<label>
|
268 |
+
<input type="checkbox" name="%1$s[show_quick_icon]" value="1" %2$s />
|
269 |
+
%3$s
|
270 |
+
</label>
|
271 |
+
</p>',
|
272 |
+
ARIADMINER_SETTINGS_NAME,
|
273 |
+
$val ? ' checked="checked"' : '',
|
274 |
+
__( 'Show quick icon', 'ari-adminer' )
|
275 |
+
);
|
276 |
+
|
277 |
+
echo $html;
|
278 |
+
}
|
279 |
+
|
280 |
public static function render_general_crypt_key() {
|
281 |
$val = Helper::get_crypt_key();
|
282 |
|
languages/ari-adminer.pot
CHANGED
@@ -5,9 +5,9 @@
|
|
5 |
msgid ""
|
6 |
msgstr ""
|
7 |
"Project-Id-Version: ARI "
|
8 |
-
"Adminer v 1.1.
|
9 |
"POT-Creation-Date: "
|
10 |
-
"2017-
|
11 |
"PO-Revision-Date: \n"
|
12 |
"Last-Translator: Your "
|
13 |
"Name <you@example.com>\n"
|
@@ -44,7 +44,8 @@ msgstr ""
|
|
44 |
"_nc:4c,1,2\n"
|
45 |
"X-Poedit-Basepath: ..\n"
|
46 |
"Language: en_US\n"
|
47 |
-
"X-Generator: Poedit
|
|
|
48 |
"X-Poedit-"
|
49 |
"SearchPath-0: .\n"
|
50 |
"X-Poedit-"
|
@@ -129,6 +130,10 @@ msgstr ""
|
|
129 |
msgid "Settings"
|
130 |
msgstr ""
|
131 |
|
|
|
|
|
|
|
|
|
132 |
#: includes/controllers/adminer-runner/class-run.php:17
|
133 |
msgid ""
|
134 |
"You do not have "
|
@@ -232,22 +237,22 @@ msgid ""
|
|
232 |
"a>."
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: includes/helpers/class-settings.php:
|
236 |
msgid "Adminer theme"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: includes/helpers/class-settings.php:
|
240 |
msgid ""
|
241 |
"The selected theme will "
|
242 |
"be used in Adminer "
|
243 |
"application."
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: includes/helpers/class-settings.php:
|
247 |
msgid "Mode"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: includes/helpers/class-settings.php:
|
251 |
msgid ""
|
252 |
"If \"Advanced\" mode is "
|
253 |
"selected, \"Adminer\" "
|
@@ -261,13 +266,13 @@ msgid ""
|
|
261 |
"functionality."
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: includes/helpers/class-settings.php:
|
265 |
msgid ""
|
266 |
"Stop \"Adminer\" on "
|
267 |
"logout"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: includes/helpers/class-settings.php:
|
271 |
msgid ""
|
272 |
"If the parameter is "
|
273 |
"enabled, all \"Adminer\" "
|
@@ -277,11 +282,11 @@ msgid ""
|
|
277 |
"WordPress."
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: includes/helpers/class-settings.php:
|
281 |
msgid "Roles"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: includes/helpers/class-settings.php:
|
285 |
msgid ""
|
286 |
"Only users with the "
|
287 |
"selected user role will "
|
@@ -289,11 +294,24 @@ msgid ""
|
|
289 |
"plugin."
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: includes/helpers/class-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
msgid "Crypt key"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: includes/helpers/class-settings.php:
|
297 |
msgid ""
|
298 |
"Define an unique string "
|
299 |
"which will be used to "
|
@@ -302,25 +320,25 @@ msgid ""
|
|
302 |
"OpenSSL PHP extension."
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: includes/helpers/class-settings.php:
|
306 |
msgid "Advanced"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: includes/helpers/class-settings.php:
|
310 |
msgid "Simple"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: includes/helpers/class-settings.php:
|
314 |
msgid "Stop on logout"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: includes/helpers/class-settings.php:
|
318 |
msgid ""
|
319 |
"A crypt key could not be "
|
320 |
"saved."
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: includes/helpers/class-settings.php:
|
324 |
msgid ""
|
325 |
"Passwords could not be "
|
326 |
"re-crypted with new "
|
5 |
msgid ""
|
6 |
msgstr ""
|
7 |
"Project-Id-Version: ARI "
|
8 |
+
"Adminer v 1.1.6\n"
|
9 |
"POT-Creation-Date: "
|
10 |
+
"2017-12-10 23:50+0300\n"
|
11 |
"PO-Revision-Date: \n"
|
12 |
"Last-Translator: Your "
|
13 |
"Name <you@example.com>\n"
|
44 |
"_nc:4c,1,2\n"
|
45 |
"X-Poedit-Basepath: ..\n"
|
46 |
"Language: en_US\n"
|
47 |
+
"X-Generator: Poedit "
|
48 |
+
"2.0.3\n"
|
49 |
"X-Poedit-"
|
50 |
"SearchPath-0: .\n"
|
51 |
"X-Poedit-"
|
130 |
msgid "Settings"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/class-plugin.php:120
|
134 |
+
msgid "Adminer"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
#: includes/controllers/adminer-runner/class-run.php:17
|
138 |
msgid ""
|
139 |
"You do not have "
|
237 |
"a>."
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: includes/helpers/class-settings.php:46
|
241 |
msgid "Adminer theme"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/helpers/class-settings.php:48
|
245 |
msgid ""
|
246 |
"The selected theme will "
|
247 |
"be used in Adminer "
|
248 |
"application."
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/helpers/class-settings.php:58
|
252 |
msgid "Mode"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: includes/helpers/class-settings.php:60
|
256 |
msgid ""
|
257 |
"If \"Advanced\" mode is "
|
258 |
"selected, \"Adminer\" "
|
266 |
"functionality."
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: includes/helpers/class-settings.php:70
|
270 |
msgid ""
|
271 |
"Stop \"Adminer\" on "
|
272 |
"logout"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: includes/helpers/class-settings.php:72
|
276 |
msgid ""
|
277 |
"If the parameter is "
|
278 |
"enabled, all \"Adminer\" "
|
282 |
"WordPress."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: includes/helpers/class-settings.php:82
|
286 |
msgid "Roles"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: includes/helpers/class-settings.php:84
|
290 |
msgid ""
|
291 |
"Only users with the "
|
292 |
"selected user role will "
|
294 |
"plugin."
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: includes/helpers/class-settings.php:94
|
298 |
+
#: includes/helpers/class-settings.php:274
|
299 |
+
msgid "Show quick icon"
|
300 |
+
msgstr ""
|
301 |
+
|
302 |
+
#: includes/helpers/class-settings.php:96
|
303 |
+
msgid ""
|
304 |
+
"An icon will be added to "
|
305 |
+
"quick links to open the "
|
306 |
+
"page with DB using "
|
307 |
+
"default connection."
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#: includes/helpers/class-settings.php:106
|
311 |
msgid "Crypt key"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: includes/helpers/class-settings.php:108
|
315 |
msgid ""
|
316 |
"Define an unique string "
|
317 |
"which will be used to "
|
320 |
"OpenSSL PHP extension."
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: includes/helpers/class-settings.php:188
|
324 |
msgid "Advanced"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: includes/helpers/class-settings.php:190
|
328 |
msgid "Simple"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: includes/helpers/class-settings.php:219
|
332 |
msgid "Stop on logout"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: includes/helpers/class-settings.php:375
|
336 |
msgid ""
|
337 |
"A crypt key could not be "
|
338 |
"saved."
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/helpers/class-settings.php:383
|
342 |
msgid ""
|
343 |
"Passwords could not be "
|
344 |
"re-crypted with new "
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: arisoft
|
|
3 |
Donate link: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
4 |
Tags: adminer, sql, database, mysql, report, sqlite, table, postgresql, dump, backup, import, export, phpmyadmin
|
5 |
Requires at least: 3.4
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -74,6 +74,9 @@ Sure, it is available [here](http://www.ari-soft.com/docs/wordpress/ari-adminer/
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 1.1.5 =
|
78 |
* Fix bug: show Move/Copy buttons when only one database is available
|
79 |
|
@@ -123,6 +126,9 @@ Sure, it is available [here](http://www.ari-soft.com/docs/wordpress/ari-adminer/
|
|
123 |
|
124 |
== Upgrade Notice ==
|
125 |
|
|
|
|
|
|
|
126 |
= 1.1.5 =
|
127 |
* Fix bug: show Move/Copy buttons when only one database is available
|
128 |
|
3 |
Donate link: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
4 |
Tags: adminer, sql, database, mysql, report, sqlite, table, postgresql, dump, backup, import, export, phpmyadmin
|
5 |
Requires at least: 3.4
|
6 |
+
Tested up to: 4.9.1
|
7 |
+
Stable tag: 1.1.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.1.6 =
|
78 |
+
* Add 'Show quick icon' parameter to plugin settings
|
79 |
+
|
80 |
= 1.1.5 =
|
81 |
* Fix bug: show Move/Copy buttons when only one database is available
|
82 |
|
126 |
|
127 |
== Upgrade Notice ==
|
128 |
|
129 |
+
= 1.1.6 =
|
130 |
+
* Add 'Show quick icon' parameter to plugin settings
|
131 |
+
|
132 |
= 1.1.5 =
|
133 |
* Fix bug: show Move/Copy buttons when only one database is available
|
134 |
|