Changeset 2550078
- Timestamp:
- 06/17/2021 09:30:19 PM (5 years ago)
- Location:
- nativery
- Files:
-
- 4 added
- 9 edited
-
assets/banner-1544x500.png (added)
-
assets/banner-772x250.png (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
trunk/Nativery.php (modified) (8 diffs)
-
trunk/lang/en_US.mo (modified) (previous)
-
trunk/lang/en_US.po (modified) (6 diffs)
-
trunk/lang/es_ES.mo (modified) (previous)
-
trunk/lang/es_ES.po (modified) (6 diffs)
-
trunk/lang/it_IT.mo (modified) (previous)
-
trunk/lang/it_IT.po (modified) (8 diffs)
-
trunk/nativery_settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nativery/trunk/Nativery.php
r2228774 r2550078 4 4 Plugin URI: http://www.nativery.com 5 5 Description: A plugin to add widgets created with nativery 6 Version: 0.1. 56 Version: 0.1.6 7 7 Author: Nativery Developer 8 8 License: GPL2 9 9 */ 10 10 11 /* Copyright 2018 Nativery Srl (email : developer@nativery.com)11 /* Copyright 2018-2021 Nativery Srl (email : developer@nativery.com) 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 29 29 define( 'NATIVERY_PUGIN_NAME', 'NATIVERY Plugin'); 30 30 define( 'NATIVERY_PLUGIN_DIRECTORY', 'nativery'); 31 define( 'NATIVERY_CURRENT_VERSION', '0.1. 5' );31 define( 'NATIVERY_CURRENT_VERSION', '0.1.6' ); 32 32 define( 'NATIVERY_REQUEST_URL', 'http://nativery.com/service.php'); 33 33 define( 'NATIVERY_DEBUG', false); … … 86 86 87 87 add_filter("comment_form_after", array( $this, 'nativery_addAfterComment')); 88 add_filter("comment_form_before", array( $this, 'nativery_addBeforeComment')); 88 89 89 90 add_option('nativery_css', ''); … … 176 177 ) { 177 178 $add = " 178 <amp-ad width=\"400\" height=\"300\" 179 <amp-ad width=\"400\" height=\"600\" 180 heights=\"(min-width:1907px) 39%, (min-width:1200px) 46%, (min-width:780px) 64%, (min-width:480px) 98%, (min-width:460px) 167%, 196%\" 179 181 layout=\"responsive\" 180 182 type=\"nativery\" … … 234 236 } 235 237 236 public static function nativery_add AfterComment() {237 238 $add_ after= '';238 public static function nativery_addBeforeComment() { 239 240 $add_before = ''; 239 241 240 242 //if((is_single()or is_page())and(!is_front_page())){ … … 255 257 $add = Nativery::nativery_createCodeNat($vw['cod']); 256 258 259 if($vw['pos']==4){ 260 $add_before .= $add; 261 } 262 } 263 } 264 } 265 } 266 267 echo $add_before; 268 269 } 270 271 public static function nativery_addAfterComment() { 272 273 $add_after = ''; 274 275 //if((is_single()or is_page())and(!is_front_page())){ 276 if(is_single() or is_page() ){ 277 278 $opt_natwidget = get_option('nativery_widgets'); 279 if (!empty( $opt_natwidget ) ){ 280 foreach ($opt_natwidget as $kw => $vw){ 281 282 if( isset( $vw['act'] ) && 1 == $vw['act'] && ( 283 (is_single() && isset($vw['vis']['art'])) 284 || (is_page() && isset($vw['vis']['pag'])) 285 || (is_archive() && isset($vw['vis']['arc'])) 286 )){ 287 288 289 290 $add = Nativery::nativery_createCodeNat($vw['cod']); 291 257 292 if($vw['pos']==3){ 258 293 $add_after .= $add; … … 266 301 267 302 } 268 269 270 271 303 272 304 public static function nativery_widgets_init() { … … 319 351 (function() { 320 352 var nat = document.createElement('script'); nat.type = 'text/javascript'; nat.async = true; 321 nat.src = '// sd.nativery.com/widget/js/nat.js';353 nat.src = '//cdn.nativery.com/widget/js/nat.js'; 322 354 var nats = document.getElementsByTagName('script')[0]; nats.parentNode.insertBefore(nat, nats); 323 355 })(); -
nativery/trunk/lang/en_US.po
r2011867 r2550078 3 3 "Project-Id-Version: nativery\n" 4 4 "POT-Creation-Date: 2018-12-05 10:54+0100\n" 5 "PO-Revision-Date: 20 18-12-05 11:37+0100\n"5 "PO-Revision-Date: 2021-06-17 23:14+0200\n" 6 6 "Last-Translator: developer <developer@nativery.com>\n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1.8.7.1\n"12 "X-Generator: Poedit 3.0\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" … … 20 20 msgstr "" 21 21 22 #: Nativery.php:149 Nativery.php:15023 msgid " Settings"22 #: nativery_settings.php:14 23 msgid "List of widgets" 24 24 msgstr "" 25 26 #: nativery_settings.php:1427 msgid "Elenco widget"28 msgstr "List of widgets"29 25 30 26 #: nativery_settings.php:15 nativery_settings.php:111 … … 33 29 34 30 #: nativery_settings.php:18 35 msgid "N uovowidget"36 msgstr " New widget"31 msgid "New widget" 32 msgstr "" 37 33 38 34 #: nativery_settings.php:33 nativery_settings.php:125 39 msgid " Codice widget"40 msgstr " Widget code"35 msgid "Widget code" 36 msgstr "" 41 37 42 38 #: nativery_settings.php:38 43 msgid " inserisci il codice che trovi nel pannello di amministrazione di nativery"44 msgstr " enter the code found in the nativery administration panel"39 msgid "enter the code found in the nativery administration panel" 40 msgstr "" 45 41 46 42 #: nativery_settings.php:41 47 msgid "Posi zione"48 msgstr " Position"43 msgid "Position" 44 msgstr "" 49 45 50 46 #: nativery_settings.php:44 51 msgid " Dopo il contenuto"52 msgstr " After content"47 msgid "After content" 48 msgstr "" 53 49 54 50 #: nativery_settings.php:45 55 msgid "Prima del contenuto" 56 msgstr "Before content" 51 msgid "Before content" 52 msgstr "" 53 54 #: nativery_settings.php:46 55 msgid "After comments" 56 msgstr "" 57 58 #: nativery_settings.php:47 59 msgid "Before comments" 60 msgstr "" 57 61 58 62 #: nativery_settings.php:51 59 msgid "Visibilit a'"60 msgstr " Visibility"63 msgid "Visibility" 64 msgstr "" 61 65 62 66 #: nativery_settings.php:57 … … 68 72 msgstr "" 69 73 70 #: nativery_settings.php:7671 msgid "Attivo"72 msgstr "Active"73 74 74 #: nativery_settings.php:84 75 75 msgid "Delete" … … 77 77 78 78 #: nativery_settings.php:103 79 msgid " Impostazioni"80 msgstr " Settings"79 msgid "Settings" 80 msgstr "" 81 81 82 82 #: nativery_settings.php:107 83 msgid "Css da aggiungere"84 msgstr " Css to add"83 msgid "Css to add" 84 msgstr "" 85 85 86 86 #: nativery_settings.php:132 87 87 msgid "delete" 88 88 msgstr "" 89 90 #~ msgid "Active"91 #~ msgstr "Attivo" -
nativery/trunk/lang/es_ES.po
r2011867 r2550078 3 3 "Project-Id-Version: nativery\n" 4 4 "POT-Creation-Date: 2018-12-05 10:54+0100\n" 5 "PO-Revision-Date: 20 18-12-05 11:37+0100\n"5 "PO-Revision-Date: 2021-06-17 23:14+0200\n" 6 6 "Last-Translator: developer <developer@nativery.com>\n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1.8.7.1\n"12 "X-Generator: Poedit 3.0\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" … … 18 18 #: Nativery.php:140 Nativery.php:141 19 19 msgid "Nativery" 20 msgstr " "20 msgstr "Nativery" 21 21 22 22 #: Nativery.php:151 Nativery.php:152 nativery_settings.php:103 … … 30 30 #: nativery_settings.php:15 nativery_settings.php:111 31 31 msgid "Save Changes" 32 msgstr " "32 msgstr "Guardar cambios" 33 33 34 34 #: nativery_settings.php:18 … … 42 42 #: nativery_settings.php:38 43 43 msgid "enter the code found in the nativery administration panel" 44 msgstr "" 45 "Introduzca el código que encuentre en el panel de administración de " 46 "nativery" 44 msgstr "introduzca el código que encuentre en el panel de administración de nativery" 47 45 48 46 #: nativery_settings.php:41 49 47 msgid "Position" 50 msgstr " posición"48 msgstr "Posición" 51 49 52 50 #: nativery_settings.php:44 53 51 msgid "After content" 54 msgstr " después del contenido"52 msgstr "Después del contenido" 55 53 56 54 #: nativery_settings.php:45 57 55 msgid "Before content" 58 msgstr "antes del contenido" 56 msgstr "Antes del contenido" 57 58 #: nativery_settings.php:46 59 msgid "After comments" 60 msgstr "Después de los comentarios" 61 62 #: nativery_settings.php:47 63 msgid "Before comments" 64 msgstr "Antes de los comentarios" 59 65 60 66 #: nativery_settings.php:51 61 67 msgid "Visibility" 62 msgstr " visibilidad"68 msgstr "Visibilidad" 63 69 64 70 #: nativery_settings.php:57 65 71 msgid "Pages" 66 msgstr " "72 msgstr "Paginas" 67 73 68 74 #: nativery_settings.php:62 69 75 msgid "Articles" 70 msgstr " "76 msgstr "Artículos" 71 77 72 78 #: nativery_settings.php:76 … … 76 82 #: nativery_settings.php:84 77 83 msgid "Delete" 78 msgstr " "84 msgstr "Eliminar" 79 85 80 86 #: nativery_settings.php:107 81 87 msgid "Css to add" 82 msgstr "css personalizado" 83 84 #: nativery_settings.php:125 85 msgid "Codice widget" 86 msgstr "Widget code" 88 msgstr "Css personalizado" 87 89 88 90 #: nativery_settings.php:132 89 91 msgid "delete" 90 msgstr "" 91 92 #~ msgid "Elenco widget" 93 #~ msgstr "List of widgets" 94 95 #~ msgid "" 96 #~ "inserisci il codice che trovi nel pannello di amministrazione di " 97 #~ "nativery" 98 #~ msgstr "enter the code found in the nativery administration panel" 99 100 #~ msgid "Dopo il contenuto" 101 #~ msgstr "After content" 102 103 #~ msgid "Attivo" 104 #~ msgstr "Active" 105 106 #~ msgid "Impostazioni" 107 #~ msgstr "Settings" 108 109 #~ msgid "Css da aggiungere" 110 #~ msgstr "Css to add" 92 msgstr "eliminar" -
nativery/trunk/lang/it_IT.po
r2011867 r2550078 3 3 "Project-Id-Version: nativery\n" 4 4 "POT-Creation-Date: 2018-12-05 10:54+0100\n" 5 "PO-Revision-Date: 20 18-12-05 11:37+0100\n"5 "PO-Revision-Date: 2021-06-17 23:14+0200\n" 6 6 "Last-Translator: developer <developer@nativery.com>\n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 1.8.7.1\n"12 "X-Generator: Poedit 3.0\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" … … 18 18 #: Nativery.php:140 Nativery.php:141 19 19 msgid "Nativery" 20 msgstr " "20 msgstr "Nativery" 21 21 22 22 #: Nativery.php:151 Nativery.php:152 nativery_settings.php:103 23 #, fuzzy24 23 msgid "Settings" 25 24 msgstr "Impostazioni" … … 30 29 31 30 #: nativery_settings.php:15 nativery_settings.php:111 32 #, fuzzy33 31 msgid "Save Changes" 34 32 msgstr "Salva Modifiche" … … 58 56 msgstr "Prima del contenuto" 59 57 58 #: nativery_settings.php:46 59 msgid "After comments" 60 msgstr "Dopo i commenti" 61 62 #: nativery_settings.php:47 63 msgid "Before comments" 64 msgstr "Prima dei commenti" 65 60 66 #: nativery_settings.php:51 61 67 msgid "Visibility" … … 63 69 64 70 #: nativery_settings.php:57 65 #, fuzzy66 71 msgid "Pages" 67 72 msgstr "Pagine" … … 76 81 77 82 #: nativery_settings.php:84 78 #, fuzzy79 83 msgid "Delete" 80 84 msgstr "Cancella" … … 84 88 msgstr "Css da aggiungere" 85 89 86 #: nativery_settings.php:12587 msgid "Codice widget"88 msgstr "Widget code"89 90 90 #: nativery_settings.php:132 91 #, fuzzy92 91 msgid "delete" 93 msgstr "Cancella" 94 95 #~ msgid "Elenco widget" 96 #~ msgstr "List of widgets" 97 98 #~ msgid "inserisci il codice che trovi nel pannello di amministrazione di nativery" 99 #~ msgstr "enter the code found in the nativery administration panel" 100 101 #~ msgid "Dopo il contenuto" 102 #~ msgstr "After content" 103 104 #~ msgid "Attivo" 105 #~ msgstr "Active" 106 107 #~ msgid "Impostazioni" 108 #~ msgstr "Settings" 109 110 #~ msgid "Css da aggiungere" 111 #~ msgstr "Css to add" 92 msgstr "cancella" -
nativery/trunk/nativery_settings.php
r2228774 r2550078 44 44 <option value="1" <?php if($vw['pos']==1){echo 'selected="selected"';}?>><?php _e( 'After content', 'nativery' );?></option> 45 45 <option value="2" <?php if($vw['pos']==2){echo 'selected="selected"';}?>><?php _e( 'Before content', 'nativery' );?></option> 46 <option value="2" <?php if($vw['pos']==3){echo 'selected="selected"';}?>><?php _e( 'After comments', 'nativery' );?></option> 46 <option value="3" <?php if($vw['pos']==3){echo 'selected="selected"';}?>><?php _e( 'After comments', 'nativery' );?></option> 47 <option value="4" <?php if($vw['pos']==4){echo 'selected="selected"';}?>><?php _e( 'Before comments', 'nativery' );?></option> 47 48 <?php /*<option value="3" <?php if($vw['pos']==3){echo 'selected="selected"';}?>>Come widget</option>*/ ?> 48 49 </select> -
nativery/trunk/readme.txt
r2228774 r2550078 1 1 === Nativery Plugin === 2 2 Contributors: www.nativery.com 3 Tags: related content, nativery, widget, advertiser, publisher, content ads, related posts3 Tags: related content, nativery, widget, advertiser, advertising, native ad, publisher, content ads, related posts 4 4 Requires at least: 4.6 5 Tested up to: 5. 2.46 stable tag: 0.1. 55 Tested up to: 5.7.2 6 stable tag: 0.1.6 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 51 51 == Changelog == 52 = 0.1.6 (17.06.2021) = 53 * Added BeforeComments position 54 52 55 = 0.1.5 (22.11.2019) = 53 * Add official AMP tag56 * Added official AMP tag 54 57 55 58 = 0.1.4 (22.11.2019) =
Note: See TracChangeset
for help on using the changeset viewer.