Version Description
Changed donate link.
Download this release
Release Info
Developer | Katsushi Kawamori |
Plugin | Media from FTP |
Version | 9.94 |
Comparing to | |
See all releases |
Code changes from version 9.93 to 9.94
- mediafromftp.php +1 -1
- readme.txt +7 -3
- req/MediaFromFtpAdmin.php +53 -11
mediafromftp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Media from FTP
|
4 |
Plugin URI: https://wordpress.org/plugins/media-from-ftp/
|
5 |
-
Version: 9.
|
6 |
Description: Register to media library from files that have been uploaded by FTP.
|
7 |
Author: Katsushi Kawamori
|
8 |
Author URI: https://riverforest-wp.info/
|
2 |
/*
|
3 |
Plugin Name: Media from FTP
|
4 |
Plugin URI: https://wordpress.org/plugins/media-from-ftp/
|
5 |
+
Version: 9.94
|
6 |
Description: Register to media library from files that have been uploaded by FTP.
|
7 |
Author: Katsushi Kawamori
|
8 |
Author URI: https://riverforest-wp.info/
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Media from FTP ===
|
2 |
Contributors: Katsushi Kawamori
|
3 |
-
Donate link: https://
|
4 |
Tags: files, ftp, import, media, sync, uploads
|
5 |
Requires at least: 3.6.0
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 4.9
|
8 |
-
Stable tag: 9.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -32,10 +32,11 @@ Register to media library from files that have been uploaded by FTP.
|
|
32 |
|
33 |
= Special Thanks! Translator =
|
34 |
* Deutsch [pixelverbieger](https://www.pixelverbieger.de/)
|
|
|
35 |
* Español [apasionados](https://apasionados.es/)
|
36 |
* Français [Li-An](https://www.echodesplugins.li-an.fr/)
|
37 |
-
* Russian [khomenkov](https://awesomeprintstudio.com/)
|
38 |
* Italian [ironicmoka](https://profiles.wordpress.org/photoironic/)
|
|
|
39 |
|
40 |
== Installation ==
|
41 |
|
@@ -125,6 +126,9 @@ Register to media library from files that have been uploaded by FTP.
|
|
125 |
|
126 |
== Changelog ==
|
127 |
|
|
|
|
|
|
|
128 |
= 9.93 =
|
129 |
Fixed problem of category for Add On.
|
130 |
|
1 |
=== Media from FTP ===
|
2 |
Contributors: Katsushi Kawamori
|
3 |
+
Donate link: https://riverforest-wp.info/donate/
|
4 |
Tags: files, ftp, import, media, sync, uploads
|
5 |
Requires at least: 3.6.0
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 9.94
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
32 |
|
33 |
= Special Thanks! Translator =
|
34 |
* Deutsch [pixelverbieger](https://www.pixelverbieger.de/)
|
35 |
+
* Deutsch(Formal) [transl8or](https://profiles.wordpress.org/transl8or/)
|
36 |
* Español [apasionados](https://apasionados.es/)
|
37 |
* Français [Li-An](https://www.echodesplugins.li-an.fr/)
|
|
|
38 |
* Italian [ironicmoka](https://profiles.wordpress.org/photoironic/)
|
39 |
+
* Russian [khomenkov](https://awesomeprintstudio.com/)
|
40 |
|
41 |
== Installation ==
|
42 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 9.94 =
|
130 |
+
Changed donate link.
|
131 |
+
|
132 |
= 9.93 =
|
133 |
Fixed problem of category for Add On.
|
134 |
|
req/MediaFromFtpAdmin.php
CHANGED
@@ -270,8 +270,8 @@ class MediaFromFtpAdmin {
|
|
270 |
$sidebar .= '<p><a href="https://wordpress.org/support/plugin/media-from-ftp" target="_blank">'.__('Support Forums').'</a></p>';
|
271 |
$sidebar .= '<p><a href="https://wordpress.org/support/view/plugin-reviews/media-from-ftp" target="_blank">'.__('Reviews', 'media-from-ftp').'</a></p>';
|
272 |
$sidebar .= '<p><a href="https://translate.wordpress.org/projects/wp-plugins/media-from-ftp" target="_blank">'.sprintf(__('Translations for %s'), 'Media from FTP').'</a></p>';
|
273 |
-
$sidebar .= '<p><a style="text-decoration: none;" href="https://www.facebook.com/katsushikawamori/" target="_blank"><span class="dashicons dashicons-facebook"></span></a> <a style="text-decoration: none;" href="https://twitter.com/dodesyo312" target="_blank"><span class="dashicons dashicons-twitter"></span></a></p>';
|
274 |
-
$sidebar .= '<p><a href="https://
|
275 |
|
276 |
$tabs = $this->get_help_message($screen_id);
|
277 |
foreach($tabs as $tab) {
|
@@ -469,9 +469,6 @@ class MediaFromFtpAdmin {
|
|
469 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
470 |
}
|
471 |
|
472 |
-
$plugin_datas = get_file_data( MEDIAFROMFTP_PLUGIN_BASE_DIR.'/mediafromftp.php', array('version' => 'Version') );
|
473 |
-
$plugin_version = __('Version:').' '.$plugin_datas['version'];
|
474 |
-
|
475 |
?>
|
476 |
|
477 |
<div class="wrap">
|
@@ -493,24 +490,69 @@ class MediaFromFtpAdmin {
|
|
493 |
<div style="clear: both;"></div>
|
494 |
|
495 |
<h3><?php _e('Register to media library from files that have been uploaded by FTP.', 'media-from-ftp'); ?></h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
<span style="font-weight: bold;">
|
497 |
<div>
|
498 |
<?php echo $plugin_version; ?> |
|
499 |
-
<a style="text-decoration: none;" href="<?php _e('
|
500 |
</div>
|
501 |
<div>
|
502 |
-
<a style="text-decoration: none;" href="
|
503 |
-
<a style="text-decoration: none;" href="https://translate.wordpress.org/projects/wp-plugins/media-from-ftp" target="_blank"><?php echo sprintf(__('Translations for %s'), 'Media from FTP'); ?></a> | <a style="text-decoration: none;" href="https://www.facebook.com/katsushikawamori/" target="_blank"><span class="dashicons dashicons-facebook"></span></a> | <a style="text-decoration: none;" href="https://twitter.com/dodesyo312" target="_blank"><span class="dashicons dashicons-twitter"></span></a>
|
504 |
</div>
|
505 |
</span>
|
506 |
|
507 |
<div style="width: 250px; height: 180px; margin: 5px; padding: 5px; border: #CCC 2px solid;">
|
508 |
-
<h3><?php _e('Please make a donation if you like my work or would like to further the development of this plugin.',
|
509 |
<div style="text-align: right; margin: 5px; padding: 5px;"><span style="padding: 3px; color: #ffffff; background-color: #008000">Plugin Author</span> <span style="font-weight: bold;">Katsushi Kawamori</span></div>
|
510 |
-
<
|
511 |
</div>
|
512 |
|
513 |
-
</div>
|
514 |
<?php
|
515 |
|
516 |
}
|
270 |
$sidebar .= '<p><a href="https://wordpress.org/support/plugin/media-from-ftp" target="_blank">'.__('Support Forums').'</a></p>';
|
271 |
$sidebar .= '<p><a href="https://wordpress.org/support/view/plugin-reviews/media-from-ftp" target="_blank">'.__('Reviews', 'media-from-ftp').'</a></p>';
|
272 |
$sidebar .= '<p><a href="https://translate.wordpress.org/projects/wp-plugins/media-from-ftp" target="_blank">'.sprintf(__('Translations for %s'), 'Media from FTP').'</a></p>';
|
273 |
+
$sidebar .= '<p><a style="text-decoration: none;" href="https://www.facebook.com/katsushikawamori/" target="_blank"><span class="dashicons dashicons-facebook"></span></a> <a style="text-decoration: none;" href="https://twitter.com/dodesyo312" target="_blank"><span class="dashicons dashicons-twitter"></span></a> <a style="text-decoration: none;" href="https://www.youtube.com/channel/UC5zTLeyROkvZm86OgNRcb_w" target="_blank"><span class="dashicons dashicons-video-alt3"></span></a></p>';
|
274 |
+
$sidebar .= '<p><a href="'.__('https://riverforest-wp.info/donate/', 'media-from-ftp').'" target="_blank">'.__('Donate to this plugin »').'</a></p>';
|
275 |
|
276 |
$tabs = $this->get_help_message($screen_id);
|
277 |
foreach($tabs as $tab) {
|
469 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
470 |
}
|
471 |
|
|
|
|
|
|
|
472 |
?>
|
473 |
|
474 |
<div class="wrap">
|
490 |
<div style="clear: both;"></div>
|
491 |
|
492 |
<h3><?php _e('Register to media library from files that have been uploaded by FTP.', 'media-from-ftp'); ?></h3>
|
493 |
+
|
494 |
+
<?php $this->credit(); ?>
|
495 |
+
|
496 |
+
</div>
|
497 |
+
<?php
|
498 |
+
|
499 |
+
}
|
500 |
+
|
501 |
+
/* ==================================================
|
502 |
+
* Credit
|
503 |
+
*/
|
504 |
+
function credit() {
|
505 |
+
|
506 |
+
$plugin_name = NULL;
|
507 |
+
$plugin_ver_num = NULL;
|
508 |
+
$plugin_path = plugin_dir_path( __DIR__ );
|
509 |
+
$plugin_dir = untrailingslashit($plugin_path);
|
510 |
+
$slugs = explode('/', $plugin_dir);
|
511 |
+
$slug = end($slugs);
|
512 |
+
$files = scandir($plugin_dir);
|
513 |
+
foreach ($files as $file) {
|
514 |
+
if($file == '.' || $file == '..' || is_dir($plugin_path.$file)){
|
515 |
+
continue;
|
516 |
+
} else {
|
517 |
+
$exts = explode('.', $file);
|
518 |
+
$ext = strtolower(end($exts));
|
519 |
+
if ( $ext === 'php' ) {
|
520 |
+
$plugin_datas = get_file_data( $plugin_path.$file, array('name'=>'Plugin Name', 'version' => 'Version') );
|
521 |
+
if ( array_key_exists( "name", $plugin_datas ) && !empty($plugin_datas['name']) && array_key_exists( "version", $plugin_datas ) && !empty($plugin_datas['version']) ) {
|
522 |
+
$plugin_name = $plugin_datas['name'];
|
523 |
+
$plugin_ver_num = $plugin_datas['version'];
|
524 |
+
break;
|
525 |
+
}
|
526 |
+
}
|
527 |
+
}
|
528 |
+
}
|
529 |
+
$plugin_version = __('Version:').' '.$plugin_ver_num;
|
530 |
+
$faq = __('https://wordpress.org/plugins/'.$slug.'/faq', $slug);
|
531 |
+
$support = 'https://wordpress.org/support/plugin/'.$slug;
|
532 |
+
$review = 'https://wordpress.org/support/view/plugin-reviews/'.$slug;
|
533 |
+
$translate = 'https://translate.wordpress.org/projects/wp-plugins/'.$slug;
|
534 |
+
$facebook = 'https://www.facebook.com/katsushikawamori/';
|
535 |
+
$twitter = 'https://twitter.com/dodesyo312';
|
536 |
+
$youtube = 'https://www.youtube.com/channel/UC5zTLeyROkvZm86OgNRcb_w';
|
537 |
+
$donate = __('https://riverforest-wp.info/donate/', $slug);
|
538 |
+
|
539 |
+
?>
|
540 |
<span style="font-weight: bold;">
|
541 |
<div>
|
542 |
<?php echo $plugin_version; ?> |
|
543 |
+
<a style="text-decoration: none;" href="<?php echo $faq; ?>" target="_blank"><?php _e('FAQ'); ?></a> | <a style="text-decoration: none;" href="<?php echo $support; ?>" target="_blank"><?php _e('Support Forums'); ?></a> | <a style="text-decoration: none;" href="<?php echo $review; ?>" target="_blank"><?php _e('Reviews', 'media-from-ftp'); ?></a>
|
544 |
</div>
|
545 |
<div>
|
546 |
+
<a style="text-decoration: none;" href="<?php echo $translate; ?>" target="_blank"><?php echo sprintf(__('Translations for %s'), $plugin_name); ?></a> | <a style="text-decoration: none;" href="<?php echo $facebook; ?>" target="_blank"><span class="dashicons dashicons-facebook"></span></a> | <a style="text-decoration: none;" href="<?php echo $twitter; ?>" target="_blank"><span class="dashicons dashicons-twitter"></span></a> | <a style="text-decoration: none;" href="<?php echo $youtube; ?>" target="_blank"><span class="dashicons dashicons-video-alt3"></span></a>
|
|
|
547 |
</div>
|
548 |
</span>
|
549 |
|
550 |
<div style="width: 250px; height: 180px; margin: 5px; padding: 5px; border: #CCC 2px solid;">
|
551 |
+
<h3><?php _e('Please make a donation if you like my work or would like to further the development of this plugin.', $slug); ?></h3>
|
552 |
<div style="text-align: right; margin: 5px; padding: 5px;"><span style="padding: 3px; color: #ffffff; background-color: #008000">Plugin Author</span> <span style="font-weight: bold;">Katsushi Kawamori</span></div>
|
553 |
+
<button type="button" style="margin: 5px; padding: 5px;" onclick="window.open('<?php echo $donate; ?>')"><?php _e('Donate to this plugin »'); ?></button>
|
554 |
</div>
|
555 |
|
|
|
556 |
<?php
|
557 |
|
558 |
}
|