Changeset 1681129
- Timestamp:
- 06/19/2017 12:44:16 PM (9 years ago)
- Location:
- plista/trunk
- Files:
-
- 8 edited
-
lang/plista-de_DE.mo (modified) (previous)
-
lang/plista-de_DE.po (modified) (1 diff)
-
lang/plista-en_GB.mo (modified) (previous)
-
lang/plista-en_GB.po (modified) (1 diff)
-
lang/plista.pot (modified) (1 diff)
-
plista_integration.php (modified) (6 diffs)
-
plista_integration_admin.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plista/trunk/lang/plista-de_DE.po
r1331972 r1681129 57 57 msgstr "z.B." 58 58 59 msgid "Reinit" 60 msgstr "Widgets auf einer Seite werden neu geladen, wenn eine neue plista Platzierung eingefügt wird (z.B bei \"Infinite Scroll Websites\")." 61 59 62 #: ../plista_integration_admin.php:285 60 63 msgid "Publickey" -
plista/trunk/lang/plista-en_GB.po
r1136037 r1681129 67 67 msgstr "e.g." 68 68 69 msgid "Reinit" 70 msgstr "This option makes widgets reload, whenever another plista script tag is inserted (needed for \"Infinite Scroll Websites\")." 71 69 72 #: ../plista_integration_admin.php:183 70 73 msgid "Publickey" -
plista/trunk/lang/plista.pot
r1331972 r1681129 61 61 msgstr "" 62 62 63 msgid "Reinit" 64 msgstr "" 65 63 66 #: ../plista_integration_admin.php:285 64 67 msgid "Publickey" -
plista/trunk/plista_integration.php
r1608738 r1681129 4 4 Plugin URI: http://www.plista.com 5 5 Description: Plugin for displaying plista RecommendationAds 6 Version: 1.5. 86 Version: 1.5.9 7 7 Author: wordpress@plista.com 8 8 Author URI: http://www.plista.com … … 11 11 class plista { 12 12 13 const VERSION = '1.5. 8';13 const VERSION = '1.5.9'; 14 14 15 15 /** … … 89 89 public static function plista_admin_actions() { 90 90 if( current_user_can('level_10')) { 91 wp_enqueue_script( 'plista-admin', plugins_url('/js/plista-admin.js', __FILE__), array(), '1.5. 8' );92 wp_enqueue_style( 'plista-admin', plugins_url('/css/plista-admin.css', __FILE__), array(), '1.5. 8' );91 wp_enqueue_script( 'plista-admin', plugins_url('/js/plista-admin.js', __FILE__), array(), '1.5.9' ); 92 wp_enqueue_style( 'plista-admin', plugins_url('/css/plista-admin.css', __FILE__), array(), '1.5.9' ); 93 93 add_options_page('plista', 'plista', 1, 'plista', array(__CLASS__, 'plista_admin')); 94 94 } … … 245 245 $publickey = get_option( 'plista_publickey' ); 246 246 $origin = get_option( 'plista_origin' ); 247 $reinit = get_option( 'plista_reinit' ); 247 248 248 249 $setblacklist = get_option( 'plista_setblacklist' ); … … 297 298 298 299 if (!self::plista_ismobile()) { 299 $plistapush = ' ,item:' . ($plista_data ? json_encode($plista_data) : '{}');300 if ( $plistapush == ',item:') {300 $plistapush = '"item": ' . ($plista_data ? json_encode($plista_data) : '{}'); 301 if (trim($plistapush) == '"item":') { 301 302 $plistapush = ''; 303 } 304 if ($plistapush) { 305 $plistapush = ',' . "\n\t" . $plistapush; 302 306 } 303 307 } … … 310 314 311 315 if ($origin) { 312 $origin = ' -' . $origin;313 } 314 315 $plistascript = '<script type="text/javascript">316 if (!window.PLISTA || !PLISTA.publickey) {317 window.PLISTA = { 318 publickey: "'.$publickey.'" 319 '.$plistapush.'320 }; 321 } 322 (function(){var n="script",d=document,s=d.createElement(n),s0=d.getElementsByTagName(n)[0]; 323 s.async="async";s.type="text/javascript";s.src=(d.location.protocol==="https:"?"https:":"http:")+"//static' . $origin . '.plista.com/async.js"; 324 s0.parentNode.insertBefore(s,s0)}());325 </script>'; 326 316 $origin = ',' . "\n\t" . '"origin": "' . strtolower($origin) .'"'; 317 } 318 if ($reinit) { 319 $reinit = 'else{w[n].reset();w[n].item=c.item;w[n].init();}'; 320 } 321 322 323 $plistascript = ' 324 <script type="text/javascript"> 325 (function(c){var g,s=\'script\',w=window,n=c.name||\'PLISTA\';if(!w[n]){w[n]=c;g=w.document.getElementsByTagName(s)[0];s=w.document.createElement(s);s.async=true;s.type=\'text/javascript\';s.src=(w.location.protocol===\'https:\'?\'https:\':\'http:\')+\'//static\'+(c.origin?\'-\'+c.origin:\'\')+\'.plista.com/async\'+(c.name?\'/\'+c.name:\'\')+\'.js\';g.parentNode.insertBefore(s,g);}' . $reinit . ' 326 }({ 327 "publickey": "'.$publickey.'"' . $plistapush . $origin . ' 328 })); 329 </script> 330 '; 327 331 $plistacomment = '<!-- plista wp Version '.self::plista_version().' -->'; 328 332 -
plista/trunk/plista_integration_admin.php
r1600786 r1681129 109 109 update_option('plista_origin', $origin); 110 110 111 $reinit = isset($_POST['plista_reinit']) ? $_POST['plista_reinit'] : ''; 112 update_option('plista_reinit', $reinit); 113 if (get_option('plista_reinit')) { 114 $reinit = 'checked="checked"'; 115 update_option('plista_reinit', $reinit); 116 } else { 117 $reinit = ''; 118 } 119 111 120 $autoinsert = isset($_POST['plista_autoinsert']) ? $_POST['plista_autoinsert'] : ''; 112 121 update_option('plista_autoinsert', $autoinsert); … … 229 238 $publickey = get_option('plista_publickey'); 230 239 $origin = get_option('plista_origin'); 240 $reinit = get_option('plista_reinit'); 231 241 $autoinsert = get_option('plista_autoinsert'); 232 242 $shorttag = get_option('plista_shorttag'); … … 296 306 <input type="text" name="plista_origin" value="<?php echo $origin; ?>" size="2"> 297 307 <span><?php _e('e.g.', 'plista'); ?> cn</span> 308 </p> 309 <p> 310 <label class="textlabel" for="plista_reinit"><?php _e('Single page website', 'plista'); ?> <span class="optional">*<?php _e('optional', 'plista') ?></span></label> 311 <input type="checkbox" id="plista_reinit" name="plista_reinit" value="1" <?php echo $reinit; ?>> 312 <span><?php _e('Reinit', 'plista'); ?></span> 298 313 </p> 299 314 </div> -
plista/trunk/readme.txt
r1608738 r1681129 6 6 Requires at least: 3.0.0 7 7 Tested up to: 4.7.1 8 Stable tag: 1.5. 88 Stable tag: 1.5.9 9 9 10 10 The plista Widget adds plista RecommendationAds to your Wordpress blog posts. … … 65 65 == Upgrade Notice == 66 66 67 Please upgrade to Version 1.5. 867 Please upgrade to Version 1.5.9 68 68 69 69 == Screenshots == … … 157 157 1.5.8 @ 06-03-2017 158 158 * Add input for plista origin in the plugin settings 159 160 1.5.9 @ 19-06-2017 161 * Add single page website option
Note: See TracChangeset
for help on using the changeset viewer.