Dynamic Featured Image - Version 3.6.8

Version Description

  • Fix slow query issue (#74, Thanks @tobros91)
  • Add German translations (#69, Thanks @swiffer)
  • Correct Swedish translations (#72, Thanks @S8nsick66)
  • Add sponsors
Download this release

Release Info

Developer ankitpokhrel
Plugin Icon wp plugin Dynamic Featured Image
Version 3.6.8
Comparing to
See all releases

Code changes from version 3.6.2 to 3.6.8

dynamic-featured-image.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Dynamic Featured Image
4
  * Plugin URI: http://wordpress.org/plugins/dynamic-featured-image/
5
  * Description: Dynamically adds multiple featured image or post thumbnail functionality to your posts, pages and custom post types.
6
- * Version: 3.6.5
7
  * Author: Ankit Pokhrel
8
  * Author URI: https://ankitpokhrel.com
9
  * License: GPL2 or later
@@ -14,7 +14,7 @@
14
  *
15
  * @package dynamic-featured-image
16
  *
17
- * Copyright (C) 2013 Ankit Pokhrel <info@ankitpokhrel.com, https://ankitpokhrel.com>
18
  *
19
  * This program is free software; you can redistribute it and/or modify
20
  * it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
41
  * Dynamic Featured Image plugin main class.
42
  *
43
  * @author Ankit Pokhrel <info@ankitpokhrel.com>
44
- * @version 3.0.1
45
  */
46
  class Dynamic_Featured_Image {
47
  /**
@@ -49,7 +49,7 @@ class Dynamic_Featured_Image {
49
  *
50
  * @since 3.0.0
51
  */
52
- const VERSION = '3.6.5';
53
 
54
  /**
55
  * Text domain.
@@ -135,6 +135,9 @@ class Dynamic_Featured_Image {
135
  add_filter( 'attachment_fields_to_edit', array( $this, 'media_attachment_custom_fields' ), 10, 2 );
136
  add_filter( 'attachment_fields_to_save', array( $this, 'media_attachment_custom_fields_save' ), 10, 2 );
137
 
 
 
 
138
  // get the site protocol.
139
  $protocol = $this->get_protocol();
140
 
@@ -694,7 +697,7 @@ class Dynamic_Featured_Image {
694
  // check if the image is edited image.
695
  // and try to get the attachment id.
696
  $image_url = str_replace( $this->upload_url . '/', '', $image_url );
697
- $row = $this->execute_query( $this->db->prepare( 'SELECT post_id FROM ' . $this->db->postmeta . ' WHERE meta_value = %s', $image_url ) );
698
 
699
  if ( ! is_null( $row ) ) {
700
  $attachment_id = $row;
@@ -1045,6 +1048,9 @@ class Dynamic_Featured_Image {
1045
  }
1046
  }
1047
 
 
 
 
1048
  /**
1049
  * Instantiate the main class.
1050
  *
3
  * Plugin Name: Dynamic Featured Image
4
  * Plugin URI: http://wordpress.org/plugins/dynamic-featured-image/
5
  * Description: Dynamically adds multiple featured image or post thumbnail functionality to your posts, pages and custom post types.
6
+ * Version: 3.6.8
7
  * Author: Ankit Pokhrel
8
  * Author URI: https://ankitpokhrel.com
9
  * License: GPL2 or later
14
  *
15
  * @package dynamic-featured-image
16
  *
17
+ * Copyright (C) 2013-2019 Ankit Pokhrel <info@ankitpokhrel.com, https://ankitpokhrel.com>
18
  *
19
  * This program is free software; you can redistribute it and/or modify
20
  * it under the terms of the GNU General Public License as published by
41
  * Dynamic Featured Image plugin main class.
42
  *
43
  * @author Ankit Pokhrel <info@ankitpokhrel.com>
44
+ * @version 3.6.8
45
  */
46
  class Dynamic_Featured_Image {
47
  /**
49
  *
50
  * @since 3.0.0
51
  */
52
+ const VERSION = '3.6.8';
53
 
54
  /**
55
  * Text domain.
135
  add_filter( 'attachment_fields_to_edit', array( $this, 'media_attachment_custom_fields' ), 10, 2 );
136
  add_filter( 'attachment_fields_to_save', array( $this, 'media_attachment_custom_fields_save' ), 10, 2 );
137
 
138
+ // plugin sponsors.
139
+ new PluginSponsor();
140
+
141
  // get the site protocol.
142
  $protocol = $this->get_protocol();
143
 
697
  // check if the image is edited image.
698
  // and try to get the attachment id.
699
  $image_url = str_replace( $this->upload_url . '/', '', $image_url );
700
+ $row = $this->execute_query( $this->db->prepare( 'SELECT post_id FROM ' . $this->db->postmeta . ' WHERE meta_key = %s AND meta_value = %s', '_wp_attached_file', $image_url ) );
701
 
702
  if ( ! is_null( $row ) ) {
703
  $attachment_id = $row;
1048
  }
1049
  }
1050
 
1051
+ // Sponsors who support this plugin.
1052
+ include 'sponsors.php';
1053
+
1054
  /**
1055
  * Instantiate the main class.
1056
  *
languages/dynamic-featured-image-bs_BA.mo CHANGED
Binary file
languages/dynamic-featured-image-bs_BA.po CHANGED
@@ -2,19 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-16 21:32+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Bosnian\n"
15
 
16
- msgid "Featured Image "
17
- msgstr "Glavna slika "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dinamična Glavna Slika – Izbor Media"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:03+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: bs\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "Glavna slika"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dinamična Glavna Slika – Izbor Media"
languages/dynamic-featured-image-de_DE.mo ADDED
Binary file
languages/dynamic-featured-image-de_DE.po ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: dynamic-featured-image\n"
4
+ "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 19:58+0100\n"
6
+ "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "X-Generator: Poedit 2.0.6\n"
11
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
12
+ "X-Poedit-Basepath: .\n"
13
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "Language: de_DE\n"
16
+
17
+ msgid "Featured Image"
18
+ msgstr "Beitragsbild"
19
+
20
+ msgid "Dynamic Featured Image - Media Selector"
21
+ msgstr "Dynamic Featured Image - Beitragsbild"
22
+
23
+ msgid "Set Featured Image"
24
+ msgstr "Beitragsbild festlegen"
25
+
26
+ msgid "Add New"
27
+ msgstr "Beitragsbild hinzufügen"
28
+
29
+ msgid "Remove"
30
+ msgstr "Beitragsbild entfernen"
31
+
32
+ msgid ""
33
+ "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
34
+ "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before "
35
+ "update."
36
+ msgstr ""
37
+ "ACHTUNG! Bitte die <a href=\"https://github.com/ankitpokhrel/Dynamic-"
38
+ "Featured-Image/wiki\" target=\"_blank\">DOKUMENTATION</a> vor einem Update "
39
+ "vollständig lesen."
40
+
41
+ msgid "Link to Image"
42
+ msgstr "Link zum Beitragsbild"
43
+
44
+ msgid "0"
45
+ msgstr "0"
46
+
47
+ msgid "1"
48
+ msgstr "1"
49
+
50
+ msgid "2"
51
+ msgstr "2"
52
+
53
+ msgid "3"
54
+ msgstr "3"
55
+
56
+ msgid "4"
57
+ msgstr "4"
58
+
59
+ msgid "5"
60
+ msgstr "5"
61
+
62
+ msgid "6"
63
+ msgstr "6"
64
+
65
+ msgid "7"
66
+ msgstr "7"
67
+
68
+ msgid "8"
69
+ msgstr "8"
70
+
71
+ msgid "9"
72
+ msgstr "9"
languages/dynamic-featured-image-he_IL.mo CHANGED
Binary file
languages/dynamic-featured-image-he_IL.po CHANGED
@@ -2,19 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-16 21:32+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Hebrew\n"
15
 
16
- msgid "Featured Image "
17
- msgstr "תמונה ראשית "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "תמונה ראשית דינאמית - בחירת מדיה"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:04+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: he\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "תמונה ראשית"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "תמונה ראשית דינאמית - בחירת מדיה"
languages/dynamic-featured-image-hr_HR.mo CHANGED
Binary file
languages/dynamic-featured-image-hr_HR.po CHANGED
@@ -2,19 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-16 21:32+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Croatian\n"
15
 
16
- msgid "Featured Image "
17
- msgstr "Glavna slika "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dinamična Glavna Slika – Izbor Media"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:04+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: hr\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "Glavna slika"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dinamična Glavna Slika – Izbor Media"
languages/dynamic-featured-image-it_IT.mo CHANGED
Binary file
languages/dynamic-featured-image-it_IT.po CHANGED
@@ -2,19 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-16 21:31+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Italian\n"
15
 
16
- msgid "Featured Image "
17
- msgstr "Immagine in Primo Piano "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dynamic Featured Image - Selettore Multimediale"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:04+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: it\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "Immagine in Primo Piano"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dynamic Featured Image - Selettore Multimediale"
languages/dynamic-featured-image-ne_NP.mo CHANGED
Binary file
languages/dynamic-featured-image-ne_NP.po CHANGED
@@ -2,19 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-15 21:03+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Nepali\n"
15
 
16
- msgid "Featured Image "
17
- msgstr "फीचर्ड इमेज "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "डाइनामिक फीचर्ड इमेज - मिडिया सेलेक्टर"
@@ -30,12 +30,10 @@ msgstr "हटाउनुहोस्"
30
 
31
  msgid ""
32
  "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
33
- "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before "
34
- "update."
35
  msgstr ""
36
- "साबधान! कृपया अपडेट गर्नु अगाडि <a href=\"https://github.com/ankitpokhrel/"
37
- "Dynamic-Featured-Image/wiki\" target=\"_blank\">डकुमेन्टेसन</a> राम्रोसँग पढ्नु होला "
38
- "|"
39
 
40
  msgid "Link to Image"
41
  msgstr "तस्बिरको लिंक"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:04+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: ne\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "फीचर्ड इमेज"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "डाइनामिक फीचर्ड इमेज - मिडिया सेलेक्टर"
30
 
31
  msgid ""
32
  "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
33
+ "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before update."
 
34
  msgstr ""
35
+ "साबधान! कृपया अपडेट गर्नु अगाडि <a href=\"https://github.com/ankitpokhrel/Dynamic-"
36
+ "Featured-Image/wiki\" target=\"_blank\">डकुमेन्टेसन</a> राम्रोसँग पढ्नु होला |"
 
37
 
38
  msgid "Link to Image"
39
  msgstr "तस्बिरको लिंक"
languages/dynamic-featured-image-pt_BR.mo CHANGED
Binary file
languages/dynamic-featured-image-pt_BR.po CHANGED
@@ -1,50 +1,36 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Dynamic Featured Image\n"
4
  "POT-Creation-Date: 2015-02-28 09:09-0300\n"
5
- "PO-Revision-Date: 2015-02-28 09:10-0300\n"
6
- "Last-Translator: \n"
7
- "Language-Team: Indexis <bruno@idx.is>\n"
8
- "Language: pt\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.4\n"
 
13
  "X-Poedit-Basepath: .\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-SearchPath-0: /users/bruno/Code/wp/wp-content/plugins/Dynamic-"
17
- "Featured-Image\n"
18
 
19
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:129
20
  msgid "Dynamic Featured Image - Media Selector"
21
  msgstr "Dynamic Featured Image - Seletor de Mídia"
22
 
23
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:130
24
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:332
25
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:363
26
  msgid "Set Featured Image"
27
  msgstr "Definir Imagem Destacada"
28
 
29
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:158
30
  msgid "Featured Image"
31
  msgstr "Imagem Destacada"
32
 
33
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:335
34
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:366
35
  msgid "Add New"
36
  msgstr "Adicionar"
37
 
38
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:336
39
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:367
40
  msgid "Remove"
41
  msgstr "Remover"
42
 
43
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:409
44
  msgid "Link to Image"
45
  msgstr "Link para Imagem"
46
 
47
- #: /users/bruno/Code/wp/wp-content/plugins/Dynamic-Featured-Image/dynamic-featured-image.php:488
48
  msgid ""
49
  "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
50
  "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before "
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2015-02-28 09:09-0300\n"
5
+ "PO-Revision-Date: 2018-02-26 21:05+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
+ "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: pt\n"
 
 
 
15
 
 
16
  msgid "Dynamic Featured Image - Media Selector"
17
  msgstr "Dynamic Featured Image - Seletor de Mídia"
18
 
 
 
 
19
  msgid "Set Featured Image"
20
  msgstr "Definir Imagem Destacada"
21
 
 
22
  msgid "Featured Image"
23
  msgstr "Imagem Destacada"
24
 
 
 
25
  msgid "Add New"
26
  msgstr "Adicionar"
27
 
 
 
28
  msgid "Remove"
29
  msgstr "Remover"
30
 
 
31
  msgid "Link to Image"
32
  msgstr "Link para Imagem"
33
 
 
34
  msgid ""
35
  "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
36
  "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before "
languages/dynamic-featured-image-sr_RS.mo CHANGED
Binary file
languages/dynamic-featured-image-sr_RS.po CHANGED
@@ -2,19 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-16 21:31+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Serbian\n"
15
 
16
- msgid "Featured Image "
17
- msgstr "Glavna slika "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dinamična Glavna Slika – Izbor Media"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:07+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
  "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: sr\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "Glavna slika"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "Dinamična Glavna Slika – Izbor Media"
languages/dynamic-featured-image-sv_SE.mo CHANGED
Binary file
languages/dynamic-featured-image-sv_SE.po CHANGED
@@ -2,40 +2,42 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
- "PO-Revision-Date: 2015-02-16 21:31+0530\n"
6
- "Last-Translator: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
7
- "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "Language: Swedish\n"
 
 
15
 
16
- msgid "Featured Image "
17
- msgstr "framtida bild "
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
- msgstr "Dynamiska framtids bild - Välj bild"
21
 
22
  msgid "Set Featured Image"
23
- msgstr "välj framtida bild"
24
 
25
  msgid "Add New"
26
- msgstr "lägg till ny bild"
27
 
28
  msgid "Remove"
29
- msgstr "ta bort bild"
30
 
31
  msgid ""
32
  "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
33
  "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before "
34
  "update."
35
  msgstr ""
36
- "VIKTIGT! Vänlig läs <a href=\"https://github.com/ankitpokhrel/Dynamic-"
37
  "Featured-Image/wiki\" target=\"_blank\">DOKUMENTATIONEN</a> innan "
38
- "uppdatering!"
39
 
40
  msgid "0"
41
  msgstr "0"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2014-07-19 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-03-14 22:48+0000\n"
6
+ "Last-Translator: Dennis Germundal <dennis@dennisign.se>\n"
7
+ "Language-Team: Swedish\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Loco https://localise.biz/\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
+ "Language: sv_SE\n"
15
+ "Report-Msgid-Bugs-To: \n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;"
17
 
18
+ msgid "Featured Image"
19
+ msgstr "Utvald Bild"
20
 
21
  msgid "Dynamic Featured Image - Media Selector"
22
+ msgstr "Dynamic Featured Image - Välj bild"
23
 
24
  msgid "Set Featured Image"
25
+ msgstr "Ange utvald bild"
26
 
27
  msgid "Add New"
28
+ msgstr "Lägg till"
29
 
30
  msgid "Remove"
31
+ msgstr "Ta bort"
32
 
33
  msgid ""
34
  "ATTENTION! Please read the <a href=\"https://github.com/ankitpokhrel/Dynamic-"
35
  "Featured-Image/wiki\" target=\"_blank\">DOCUMENTATION</a> properly before "
36
  "update."
37
  msgstr ""
38
+ "VIKTIGT! Vänligen läs <a href=\"https://github.com/ankitpokhrel/Dynamic-"
39
  "Featured-Image/wiki\" target=\"_blank\">DOKUMENTATIONEN</a> innan "
40
+ "uppdatering."
41
 
42
  msgid "0"
43
  msgstr "0"
languages/dynamic-featured-image-th_TH.mo CHANGED
Binary file
languages/dynamic-featured-image-th_TH.po CHANGED
@@ -2,20 +2,19 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2017-10-21 16:43+0545\n"
5
- "PO-Revision-Date: 2017-10-21 14:35+0700\n"
6
- "Language-Team: Noppadol Mututanon <noppadol.mututanon@gmail.com>\n"
 
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.0.4\n"
11
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
12
  "X-Poedit-Basepath: .\n"
13
- "Last-Translator: \n"
14
- "Plural-Forms: nplurals=1; plural=0;\n"
15
  "Language: th\n"
16
 
17
- msgid "Featured Image "
18
- msgstr "รูปภาพเด่น "
19
 
20
  msgid "Dynamic Featured Image - Media Selector"
21
  msgstr "รูปภาพเด่นแบบไดนามิก - ตัวเลือกรุปภาพ"
2
  msgstr ""
3
  "Project-Id-Version: dynamic-featured-image\n"
4
  "POT-Creation-Date: 2017-10-21 16:43+0545\n"
5
+ "PO-Revision-Date: 2018-02-26 21:07+0100\n"
6
+ "Last-Translator: Matthias Wirtz <hello@p4tchwork.de>\n"
7
+ "Language-Team: Ankit Pokhrel <ankitpokhrel@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.6\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
 
 
14
  "Language: th\n"
15
 
16
+ msgid "Featured Image"
17
+ msgstr "รูปภาพเด่น"
18
 
19
  msgid "Dynamic Featured Image - Media Selector"
20
  msgstr "รูปภาพเด่นแบบไดนามิก - ตัวเลือกรุปภาพ"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ankitpokhrel, cfoellmann
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J9FVY3ESPPD58
4
  Tags: dynamic featured image, featured image, post thumbnail, dynamic post thumbnail, multiple featured image, multiple post thumbnail
5
  Requires at least: 3.8
6
- Tested up to: 4.9.2
7
- Stable tag: 3.6.5
8
  Requires PHP: 5.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -117,6 +117,12 @@ Please feel free to report any bug found at https://github.com/ankitpokhrel/Dyna
117
  3. Add new featured image box.
118
 
119
  == Changelog ==
 
 
 
 
 
 
120
  = 3.6.5 =
121
  * Add Thai translations (#63, Thanks @isudnop)
122
  * Fix warning when counting empty string in PHP 7.2 (#66, Thanks @zsmartin)
@@ -228,6 +234,9 @@ Please feel free to report any bug found at https://github.com/ankitpokhrel/Dyna
228
  * Fixed some minor issues.
229
 
230
  == Upgrade Notice ==
 
 
 
231
  = 3.6.5 =
232
  * Some enhancements, feature and bug fixes.
233
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J9FVY3ESPPD58
4
  Tags: dynamic featured image, featured image, post thumbnail, dynamic post thumbnail, multiple featured image, multiple post thumbnail
5
  Requires at least: 3.8
6
+ Tested up to: 5.0
7
+ Stable tag: 3.6.8
8
  Requires PHP: 5.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
117
  3. Add new featured image box.
118
 
119
  == Changelog ==
120
+ = 3.6.8 =
121
+ * Fix slow query issue (#74, Thanks @tobros91)
122
+ * Add German translations (#69, Thanks @swiffer)
123
+ * Correct Swedish translations (#72, Thanks @S8nsick66)
124
+ * Add sponsors
125
+
126
  = 3.6.5 =
127
  * Add Thai translations (#63, Thanks @isudnop)
128
  * Fix warning when counting empty string in PHP 7.2 (#66, Thanks @zsmartin)
234
  * Fixed some minor issues.
235
 
236
  == Upgrade Notice ==
237
+ = 3.6.8 =
238
+ * Some feature and bug fixes.
239
+
240
  = 3.6.5 =
241
  * Some enhancements, feature and bug fixes.
242
 
sponsors.php ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Avoid direct calls to this file.
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ header( 'Status: 403 Forbidden' );
6
+ header( 'HTTP/1.1 403 Forbidden' );
7
+ exit();
8
+ }
9
+
10
+ /**
11
+ * Plugin sponsors.
12
+ *
13
+ * @version 3.6.8
14
+ */
15
+ class PluginSponsor {
16
+ /* Recommend plugins.
17
+ *
18
+ * @since 3.6.8
19
+ */
20
+ protected static $sponsors = array(
21
+ 'mailoptin' => 'mailoptin/mailoptin.php',
22
+ );
23
+
24
+ /**
25
+ * PluginSponsor constructor.
26
+ *
27
+ * @since 3.6.8
28
+ */
29
+ public function __construct() {
30
+ // admin notices.
31
+ add_action( 'admin_notices', array( $this, 'admin_notice' ) );
32
+ add_action( 'network_admin_notices', array( $this, 'admin_notice' ) );
33
+
34
+ add_action( 'admin_init', array( $this, 'dismiss_admin_notice' ) );
35
+ }
36
+
37
+ /**
38
+ * Dismiss admin notice.
39
+ *
40
+ * @since 3.6.8
41
+ * @access public
42
+ *
43
+ * @return void
44
+ */
45
+ public function dismiss_admin_notice() {
46
+ if ( ! isset( $_GET['mo-adaction'] ) || $_GET['mo-adaction'] != 'mo_dismiss_adnotice' ) {
47
+ return;
48
+ }
49
+
50
+ $url = admin_url();
51
+ update_option( 'mo_dismiss_adnotice', 'true' );
52
+
53
+ wp_redirect( $url );
54
+ exit;
55
+ }
56
+
57
+ /**
58
+ * Add admin notices.
59
+ *
60
+ * @since 3.6.8
61
+ * @access public
62
+ *
63
+ * @return void
64
+ */
65
+ public function admin_notice() {
66
+ if ( get_option( 'mo_dismiss_adnotice', 'false' ) == 'true' ) {
67
+ return;
68
+ }
69
+
70
+ if ( $this->is_plugin_installed( 'mailoptin' ) && $this->is_plugin_active( 'mailoptin' ) ) {
71
+ return;
72
+ }
73
+
74
+ $dismiss_url = esc_url_raw(
75
+ add_query_arg(
76
+ array(
77
+ 'mo-adaction' => 'mo_dismiss_adnotice',
78
+ ),
79
+ admin_url()
80
+ )
81
+ );
82
+
83
+ $this->notice_css();
84
+
85
+ $install_url = wp_nonce_url(
86
+ admin_url( 'update.php?action=install-plugin&plugin=mailoptin' ),
87
+ 'install-plugin_mailoptin'
88
+ );
89
+
90
+ $activate_url = wp_nonce_url( admin_url( 'plugins.php?action=activate&plugin=mailoptin%2Fmailoptin.php' ),
91
+ 'activate-plugin_mailoptin/mailoptin.php' );
92
+ ?>
93
+ <div class="mo-admin-notice notice notice-success">
94
+ <div class="mo-notice-first-half">
95
+ <p>
96
+ <?php
97
+ printf(
98
+ __( 'Free optin form plugin that will %1$sincrease your email list subscribers%2$s and keep them engaged with %1$sautomated and schedule newsletters%2$s.' ),
99
+ '<span class="mo-stylize"><strong>', '</strong></span>' );
100
+ ?>
101
+ </p>
102
+ <p style="text-decoration: underline;font-size: 12px;">Recommended by Dynamic Featured Image plugin</p>
103
+ </div>
104
+ <div class="mo-notice-other-half">
105
+ <?php if ( ! $this->is_plugin_installed( 'mailoptin' ) ) : ?>
106
+ <a class="button button-primary button-hero" id="mo-install-mailoptin-plugin"
107
+ href="<?php echo $install_url; ?>">
108
+ <?php _e( 'Install MailOptin Now for Free!' ); ?>
109
+ </a>
110
+ <?php endif; ?>
111
+ <?php if ( $this->is_plugin_installed( 'mailoptin' ) && ! $this->is_plugin_active( 'mailoptin' ) ) : ?>
112
+ <a class="button button-primary button-hero" id="mo-activate-mailoptin-plugin"
113
+ href="<?php echo $activate_url; ?>">
114
+ <?php _e( 'Activate MailOptin Now!' ); ?>
115
+ </a>
116
+ <?php endif; ?>
117
+ <div class="mo-notice-learn-more">
118
+ <a target="_blank" href="https://mailoptin.io">Learn more</a>
119
+ </div>
120
+ </div>
121
+ <a href="<?php echo $dismiss_url; ?>">
122
+ <button type="button" class="notice-dismiss">
123
+ <span class="screen-reader-text"><?php _e( 'Dismiss this notice' ); ?>.</span>
124
+ </button>
125
+ </a>
126
+ </div>
127
+ <?php
128
+ }
129
+
130
+ /**
131
+ * Check if plugin is installed.
132
+ *
133
+ * @param $key
134
+ *
135
+ * @return bool
136
+ */
137
+ protected function is_plugin_installed( $key ) {
138
+ $installed_plugins = get_plugins();
139
+
140
+ return isset( $installed_plugins[ self::$sponsors[ $key ] ] );
141
+ }
142
+
143
+ /**
144
+ * Check if plugin is active.
145
+ *
146
+ * @param $key
147
+ *
148
+ * @return bool
149
+ */
150
+ protected function is_plugin_active( $key ) {
151
+ return is_plugin_active( self::$sponsors[ $key ] );
152
+ }
153
+
154
+ /**
155
+ * Styles for notice.
156
+ *
157
+ * @return void
158
+ */
159
+ protected function notice_css() {
160
+ ?>
161
+ <style type="text/css">
162
+ .mo-admin-notice {
163
+ background: #fff;
164
+ color: #000;
165
+ border-left-color: #46b450;
166
+ position: relative;
167
+ }
168
+
169
+ .mo-admin-notice .notice-dismiss:before {
170
+ color: #72777c;
171
+ }
172
+
173
+ .mo-admin-notice .mo-stylize {
174
+ line-height: 2;
175
+ }
176
+
177
+ .mo-admin-notice .button-primary {
178
+ background: #006799;
179
+ text-shadow: none;
180
+ border: 0;
181
+ box-shadow: none;
182
+ }
183
+
184
+ .mo-notice-first-half {
185
+ width: 66%;
186
+ display: inline-block;
187
+ margin: 10px 0;
188
+ }
189
+
190
+ .mo-notice-other-half {
191
+ width: 33%;
192
+ display: inline-block;
193
+ padding: 20px 0;
194
+ position: absolute;
195
+ text-align: center;
196
+ }
197
+
198
+ .mo-notice-first-half p {
199
+ font-size: 14px;
200
+ }
201
+
202
+ .mo-notice-learn-more a {
203
+ margin: 10px;
204
+ }
205
+
206
+ .mo-notice-learn-more {
207
+ margin-top: 10px;
208
+ }
209
+ </style>
210
+ <?php
211
+ }
212
+ }