Easy Plugin for AdSense - Version 6.21

Version Description

Updating a few translations. Minor changes to the admin page.

=

Download this release

Release Info

Developer manojtd
Plugin Icon 128x128 Easy Plugin for AdSense
Version 6.21
Comparing to
See all releases

Code changes from version 6.20 to 6.21

admin.php CHANGED
@@ -47,7 +47,7 @@ if (empty($this->options['kill_invites']))
47
  renderInvite($myPlugins[$plgName], $plgName) ;
48
  ?>
49
  <table class="form-table">
50
- <tr><th scope="row"><?php _e('Instructions', 'easy-adsenser') ; ?></th></tr>
51
  </table>
52
 
53
  <table class="form-table" style="width:100%">
@@ -80,7 +80,7 @@ printf(__('A few easy steps to setup %s', 'easy-adsenser'),'<em>Easy AdSense</em
80
  <br />
81
 
82
  <table class="form-table">
83
- <tr><th scope="row"><?php printf(__('Options (for the %s theme)', 'easy-adsenser'), get_option('stylesheet')); ?> </th></tr>
84
  </table>
85
 
86
  <table style="width:100%">
@@ -342,7 +342,7 @@ Colors:&nbsp; Normal:#<input style="width:55px;text-align:center;" id="ezBorderN
342
 
343
  <table class="form-table">
344
  <tr style="vertical-align:top">
345
- <td style="width:50%;height:250px;vertical-align:middle">
346
 
347
  <?php echo '<b>Support Options<br /> ' ; ?></b><br />
348
 
@@ -469,7 +469,7 @@ if (!$this->options['kill_invites']) {
469
  <?php @include (dirname (__FILE__).'/tail-text.php'); ?>
470
 
471
  <table class="form-table" >
472
- <tr><th scope="row"><?php _e('Credits', 'easy-adsenser'); ?></th></tr>
473
  <tr><td>
474
  <ul style="padding-left:10px;list-style-type:circle; list-style-position:inside;" >
475
  <li>
47
  renderInvite($myPlugins[$plgName], $plgName) ;
48
  ?>
49
  <table class="form-table">
50
+ <tr><th scope="row"><b><?php _e('Instructions', 'easy-adsenser') ; ?></b></th></tr>
51
  </table>
52
 
53
  <table class="form-table" style="width:100%">
80
  <br />
81
 
82
  <table class="form-table">
83
+ <tr><th scope="row"><b><?php printf(__('Options (for the %s theme)', 'easy-adsenser'), get_option('stylesheet')); ?></b></th></tr>
84
  </table>
85
 
86
  <table style="width:100%">
342
 
343
  <table class="form-table">
344
  <tr style="vertical-align:top">
345
+ <td style="width:50%;height:250px;vertical-align:middle;color:#d00;">
346
 
347
  <?php echo '<b>Support Options<br /> ' ; ?></b><br />
348
 
469
  <?php @include (dirname (__FILE__).'/tail-text.php'); ?>
470
 
471
  <table class="form-table" >
472
+ <tr><th scope="row"><b><?php _e('Credits', 'easy-adsenser'); ?></b></th></tr>
473
  <tr><td>
474
  <ul style="padding-left:10px;list-style-type:circle; list-style-position:inside;" >
475
  <li>
easy-adsense-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easy AdSense
4
  Plugin URI: http://www.thulasidas.com/adsense
5
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
6
- Version: 6.20
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
3
  Plugin Name: Easy AdSense
4
  Plugin URI: http://www.thulasidas.com/adsense
5
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
6
+ Version: 6.21
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
lang/ar_MA/easy-adsenser.mo CHANGED
Binary file
lang/ar_MA/easy-adsenser.po CHANGED
@@ -1,16 +1,16 @@
1
  # This file was generated by Easy Translator for Easy AdSense -- a WordPress plugin translator
2
- # Your Name: Sanad Fawaz Fraihat
3
- # Your Email: administrator@3-kefk.com
4
- # Your Website: عكيفك الإخباري
5
- # Your URL: http://www.news.3-kefk.com
6
  # Your Locale: ar
7
  # Your Language: ar
8
  #, fuzzy
9
  msgid ""
10
  msgstr ""
11
  "Project-Id-Version: Easy AdSenser\n"
12
- "PO-Revision-Date: 2013-01-01 18:19:13\n"
13
- "Last-Translator: Sanad Fawaz Fraihat <administrator@3-kefk.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -354,8 +354,8 @@ msgstr "بإمكانك الآن تعطيل الإضافة"
354
  msgid "Go to Plugins"
355
  msgstr "الذهاب الى الإضافة"
356
 
357
- msgid "Error locating the admin page!nEnsure admin.php exists, or reinstall the plugin."
358
- msgstr "خطأ! تحديد صفحة المدير, تأكد من وجود admin.php أو اعد تتبيث الإضافة"
359
 
360
  msgid "Settings"
361
  msgstr "إعدادات"
@@ -388,23 +388,26 @@ msgid "Click the link to hide this box. After clicking this link, please remembe
388
  msgstr "إضغط على هذا الرابط لإخفاء الصندوق، بعد الضغط، الرجاء تذكر الضغط على حفظ الإعدادات لإفاء هذا الصندوق نهائياً."
389
 
390
  msgid "Ask a support question (in English or French only) via ezSupport @ $0.95"
391
- msgstr ""
392
 
393
  msgid "If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions."
394
- msgstr ""
395
 
396
  msgid "Or, if you still need help, you can raise a support ticket."
397
- msgstr ""
398
 
399
  msgid "[Request Paid Support]"
400
- msgstr ""
401
 
402
- msgid "Implemented using our ezSupport Ticket System."
403
- msgstr ""
 
 
 
404
 
405
  msgid "Check out my other plugin and PHP efforts:"
406
- msgstr ""
407
 
408
  msgid "My Books -- on Physics, Philosophy, making Money etc:"
409
- msgstr ""
410
 
1
  # This file was generated by Easy Translator for Easy AdSense -- a WordPress plugin translator
2
+ # Your Name: Abidalrahman AL-Qaisy
3
+ # Your Email: admin@iraq-locker.com
4
+ # Your Website: عراق لوكر
5
+ # Your URL: http://www.iraq-locker.com
6
  # Your Locale: ar
7
  # Your Language: ar
8
  #, fuzzy
9
  msgid ""
10
  msgstr ""
11
  "Project-Id-Version: Easy AdSenser\n"
12
+ "PO-Revision-Date: 2013-05-07 16:16:52\n"
13
+ "Last-Translator: Abidalrahman AL-Qaisy <admin@iraq-locker.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
354
  msgid "Go to Plugins"
355
  msgstr "الذهاب الى الإضافة"
356
 
357
+ msgid "Error locating the admin page!\nEnsure admin.php exists, or reinstall the plugin."
358
+ msgstr "خطأ! في صفحة المدير , تأكد من وجود admin.php أو اعد تتبيث الإضافة"
359
 
360
  msgid "Settings"
361
  msgstr "إعدادات"
388
  msgstr "إضغط على هذا الرابط لإخفاء الصندوق، بعد الضغط، الرجاء تذكر الضغط على حفظ الإعدادات لإفاء هذا الصندوق نهائياً."
389
 
390
  msgid "Ask a support question (in English or French only) via ezSupport @ $0.95"
391
+ msgstr "اطلب الدعم, الاسئلة باللغة ( الانكليزية او الفرنسية فقط ) بواسطه ezSupport 0.95$"
392
 
393
  msgid "If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions."
394
+ msgstr "اذا كنت تحتاج المساعدة s%, رجاءا اقرأ الاسئلة و الاجوبة (FAQ) على الرابط link$ سنحاول الاجابة على جميع اسئلتك"
395
 
396
  msgid "Or, if you still need help, you can raise a support ticket."
397
+ msgstr "او , اذا ما زلت تحتاج الى المساعدة , تستطيع القيام بطلب تذكرة للدعم"
398
 
399
  msgid "[Request Paid Support]"
400
+ msgstr "[اطلب الدعم المدفوع مسبقا]"
401
 
402
+ msgid "Using our ezSupport Ticket System."
403
+ msgstr "استخدم تذكرة نظامنا eSupport"
404
+
405
+ msgid "You are using %s (V%s)"
406
+ msgstr "(نحن نستخدم (s% V%s"
407
 
408
  msgid "Check out my other plugin and PHP efforts:"
409
+ msgstr "تحقق من جهودي المساعد وPHP الأخرى:"
410
 
411
  msgid "My Books -- on Physics, Philosophy, making Money etc:"
412
+ msgstr "كتبي -- على فيزائي , فلسفة , صناعة النقود , الخ:"
413
 
lang/es_ES/easy-adsenser.mo CHANGED
Binary file
lang/es_ES/easy-adsenser.po CHANGED
@@ -1,16 +1,16 @@
1
  # This file was generated by Easy Translator for Easy AdSense -- a WordPress plugin translator
2
- # Your Name: Cristian M. D. Blanco
3
- # Your Email: info@educacionconvalores.com
4
- # Your Website: Educación con Valores
5
- # Your URL: http://educacionconvalores.com
6
  # Your Locale: es_ES
7
  # Your Language: es-ES
8
  #, fuzzy
9
  msgid ""
10
  msgstr ""
11
  "Project-Id-Version: Easy AdSenser\n"
12
- "PO-Revision-Date: 2013-01-30 22:08:30\n"
13
- "Last-Translator: Cristian M. D. Blanco <info@educacionconvalores.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -52,7 +52,7 @@ msgid "[See <a href=\"widgets.php\"> Appearance (or Design) &rarr; Widgets</a>]"
52
  msgstr "[Mira <a href=\"widgets.php\">Aspecto &rarr; Widgets</a>]"
53
 
54
  msgid "Lead-in AdSense Text"
55
- msgstr "texto AdSense de explicación previa anuncio"
56
 
57
  msgid "(Appears near the beginning of the post)"
58
  msgstr "(Aparece cerca del inicio de la entrada)"
@@ -355,7 +355,7 @@ msgid "Go to Plugins"
355
  msgstr "Ir a Plugins"
356
 
357
  msgid "Error locating the admin page!\nEnsure admin.php exists, or reinstall the plugin."
358
- msgstr "&iexcl;Error al intentar encontrar la p&aacute;gina de administraci&oacute;n! rnAseg&uacute;rate que exista admin.php o reinstala el plugin."
359
 
360
  msgid "Settings"
361
  msgstr "Configuración"
@@ -399,8 +399,11 @@ msgstr "O, si todavía necesita ayuda, puede levantar un ticket de soporte."
399
  msgid "[Request Paid Support]"
400
  msgstr "[Solicitud de soporte de pago]"
401
 
402
- msgid "Implemented using our ezSupport Ticket System."
403
- msgstr "Implementado con nuestro sistema de tickets ezSupport."
 
 
 
404
 
405
  msgid "Check out my other plugin and PHP efforts:"
406
  msgstr "Eche un vistazo a mis otros esfuerzos de plugins y PHP:"
1
  # This file was generated by Easy Translator for Easy AdSense -- a WordPress plugin translator
2
+ # Your Name: Jose Ramirez
3
+ # Your Email: josearamz@gmail.com
4
+ # Your Website: NC Surf
5
+ # Your URL: http://ncsurf.es
6
  # Your Locale: es_ES
7
  # Your Language: es-ES
8
  #, fuzzy
9
  msgid ""
10
  msgstr ""
11
  "Project-Id-Version: Easy AdSenser\n"
12
+ "PO-Revision-Date: 2013-04-04 13:36:22\n"
13
+ "Last-Translator: Jose Ramirez <josearamz@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
52
  msgstr "[Mira <a href=\"widgets.php\">Aspecto &rarr; Widgets</a>]"
53
 
54
  msgid "Lead-in AdSense Text"
55
+ msgstr "AdSense del inicio"
56
 
57
  msgid "(Appears near the beginning of the post)"
58
  msgstr "(Aparece cerca del inicio de la entrada)"
355
  msgstr "Ir a Plugins"
356
 
357
  msgid "Error locating the admin page!\nEnsure admin.php exists, or reinstall the plugin."
358
+ msgstr "&iexcl;Error al intentar encontrar el la p&aacute;gina de administraci&oacute;n!\nAseg&uacute;rate que exista admin.php o reinstala el plugin."
359
 
360
  msgid "Settings"
361
  msgstr "Configuración"
399
  msgid "[Request Paid Support]"
400
  msgstr "[Solicitud de soporte de pago]"
401
 
402
+ msgid "Using our ezSupport Ticket System."
403
+ msgstr ""
404
+
405
+ msgid "You are using %s (V%s)"
406
+ msgstr ""
407
 
408
  msgid "Check out my other plugin and PHP efforts:"
409
  msgstr "Eche un vistazo a mis otros esfuerzos de plugins y PHP:"
lang/pt_BR/easy-adsenser.mo CHANGED
Binary file
lang/pt_BR/easy-adsenser.po CHANGED
@@ -1,16 +1,16 @@
1
  # This file was generated by Easy Translator for Easy AdSense -- a WordPress plugin translator
2
- # Your Name: Yeltsin Lima
3
- # Your Email: ylima91@gmail.com
4
- # Your Website: Dicas Freelancer
5
- # Your URL: http://dicasfreelancer.com.br
6
  # Your Locale: pt_BR
7
  # Your Language: pt-BR
8
  #, fuzzy
9
  msgid ""
10
  msgstr ""
11
  "Project-Id-Version: Easy AdSenser\n"
12
- "PO-Revision-Date: 2012-09-29 22:13:10\n"
13
- "Last-Translator: Yeltsin Lima <ylima91@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -348,11 +348,11 @@ msgstr "Ok, todas as suas configurações foram eliminadas!"
348
  msgid "Database has been cleaned. All your options for this plugin (for all themes) have been removed."
349
  msgstr "Banco de dados foi limpo. Todas as suas opções deste plugin (para todos os temas) foram removidos."
350
 
351
- msgid "This plugin has been deactivated."
352
- msgstr "Este plugin foi desativdo"
353
 
354
- msgid "Refresh"
355
- msgstr "Atualiza"
356
 
357
  msgid "Error locating the admin page!\nEnsure admin.php exists, or reinstall the plugin."
358
  msgstr "Erro ao localizar a página de administração!\nVerifique se o admin.php existe, ou reinstale o plugin."
@@ -387,20 +387,23 @@ msgstr "Continuar na versão Lite"
387
  msgid "Click the link to hide this box. After clicking this link, please remember to save your options to hide this box for good."
388
  msgstr "Clique neste link para esconder o box. Após clicar neste link, lembre-se de salvar as configurações para esconder este box."
389
 
 
 
 
390
  msgid "If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions."
391
  msgstr "Se você precisar de ajuda com %s, por favor leia a seção do FAQ na página $link. Ela poderá resolver suas dúvidas."
392
 
393
  msgid "Or, if you still need help, you can raise a support ticket."
394
  msgstr "Ou, se você ainda precisar de ajuda, você poderá abrir um ticketde suporte."
395
 
396
- msgid "Ask a support question (in English or French only) via ezSupport @ $0.95"
397
- msgstr "Faça uma pergunta (em Inglês ou Francês apenas) via ezSupport por @ $0.95"
398
-
399
  msgid "[Request Paid Support]"
400
  msgstr "[Solicitar Suporte Pago]"
401
 
402
- msgid "The paid support is implemented using our ezSupport Ticket System."
403
- msgstr "O suporte pago foi implementado via nossos sistema ezSupport Ticket System."
 
 
 
404
 
405
  msgid "Check out my other plugin and PHP efforts:"
406
  msgstr "Checar meus outros plugins e desenvolvimentos em PHP:"
1
  # This file was generated by Easy Translator for Easy AdSense -- a WordPress plugin translator
2
+ # Your Name: 3w Soluções / Blog
3
+ # Your Email: atendimento@3wsolucoes.com
4
+ # Your Website: blog.3wsolucoes.com
5
+ # Your URL: http://blog.3wsolucoes.com
6
  # Your Locale: pt_BR
7
  # Your Language: pt-BR
8
  #, fuzzy
9
  msgid ""
10
  msgstr ""
11
  "Project-Id-Version: Easy AdSenser\n"
12
+ "PO-Revision-Date: 2013-04-07 14:30:04\n"
13
+ "Last-Translator: 3w Soluções / Blog <atendimento@3wsolucoes.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
348
  msgid "Database has been cleaned. All your options for this plugin (for all themes) have been removed."
349
  msgstr "Banco de dados foi limpo. Todas as suas opções deste plugin (para todos os temas) foram removidos."
350
 
351
+ msgid "This plugin can be deactivated now. "
352
+ msgstr ""
353
 
354
+ msgid "Go to Plugins"
355
+ msgstr ""
356
 
357
  msgid "Error locating the admin page!\nEnsure admin.php exists, or reinstall the plugin."
358
  msgstr "Erro ao localizar a página de administração!\nVerifique se o admin.php existe, ou reinstale o plugin."
387
  msgid "Click the link to hide this box. After clicking this link, please remember to save your options to hide this box for good."
388
  msgstr "Clique neste link para esconder o box. Após clicar neste link, lembre-se de salvar as configurações para esconder este box."
389
 
390
+ msgid "Ask a support question (in English or French only) via ezSupport @ $0.95"
391
+ msgstr "Faça uma pergunta (em Inglês ou Francês apenas) via ezSupport por @ $0.95"
392
+
393
  msgid "If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions."
394
  msgstr "Se você precisar de ajuda com %s, por favor leia a seção do FAQ na página $link. Ela poderá resolver suas dúvidas."
395
 
396
  msgid "Or, if you still need help, you can raise a support ticket."
397
  msgstr "Ou, se você ainda precisar de ajuda, você poderá abrir um ticketde suporte."
398
 
 
 
 
399
  msgid "[Request Paid Support]"
400
  msgstr "[Solicitar Suporte Pago]"
401
 
402
+ msgid "Using our ezSupport Ticket System."
403
+ msgstr ""
404
+
405
+ msgid "You are using %s (V%s)"
406
+ msgstr ""
407
 
408
  msgid "Check out my other plugin and PHP efforts:"
409
  msgstr "Checar meus outros plugins e desenvolvimentos em PHP:"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://buy.thulasidas.com/easy-adsense
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
- Stable tag: 6.20
8
 
9
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
10
 
@@ -32,13 +32,13 @@ Easy AdSense is the freely distributed version of a premium plugin. The [Pro ver
32
 
33
  = New in this Release =
34
 
35
- Correcting W3C markup validation errors on the admin page.
36
 
37
  == Upgrade Notice ==
38
 
39
- = 6.20 =
40
 
41
- Correcting W3C markup validation errors on the admin page.
42
 
43
  == Screenshots ==
44
 
@@ -126,6 +126,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
126
 
127
  == Change Log ==
128
 
 
129
  * V6.20: Correcting W3C markup validation errors on the admin page. [Apr 27, 2013]
130
  * V6.10: Fixing a cross-site request forgery vulnerability. (Credit: Charlie Eriksen via Secunia SVCRP.) [Apr 27, 2013]
131
  * V6.06: More translation updates, better session handling. [Mar 29, 2013]
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
+ Stable tag: 6.21
8
 
9
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
10
 
32
 
33
  = New in this Release =
34
 
35
+ Updating a few translations. Minor changes to the admin page.
36
 
37
  == Upgrade Notice ==
38
 
39
+ = 6.21 =
40
 
41
+ Updating a few translations. Minor changes to the admin page.
42
 
43
  == Screenshots ==
44
 
126
 
127
  == Change Log ==
128
 
129
+ * V6.21: Updating a few translations. Minor changes to the admin page. [Jun 10, 2013]
130
  * V6.20: Correcting W3C markup validation errors on the admin page. [Apr 27, 2013]
131
  * V6.10: Fixing a cross-site request forgery vulnerability. (Credit: Charlie Eriksen via Secunia SVCRP.) [Apr 27, 2013]
132
  * V6.06: More translation updates, better session handling. [Mar 29, 2013]
support.php CHANGED
@@ -40,6 +40,76 @@ function renderSupport($name, $plg) {
40
  $_SESSION['ezSupport'] = $info[0]['Info'] ;
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  renderSupport($plgName, $myPlugins[$plgName]) ;
44
 
45
  ?>
40
  $_SESSION['ezSupport'] = $info[0]['Info'] ;
41
  }
42
 
43
+ function renderTranslator($plgName){
44
+ $locale = get_locale();
45
+ if (strncmp($locale, "en", 2) == 0) {
46
+ return;
47
+ }
48
+ if ($plgName == 'adsense-now' ||
49
+ $plgName == 'easy-adsense' ||
50
+ $plgName == 'easy-translator') {
51
+ return;
52
+ }
53
+ echo '<div style="background-color:#ddd;padding:5px;border: solid 1px;margin:5px;">' ;
54
+ echo "<script type='text/javascript'>
55
+ <!--
56
+ function hideTranslator(id, btn, translator) {
57
+ var e = document.getElementById(id);
58
+ var eBtn = document.getElementById(btn);
59
+ e.style.display = 'none';
60
+ eBtn.innerHTML = 'Show ' + translator;
61
+ }
62
+ function showTranslator(id, btn, translator) {
63
+ var e = document.getElementById(id);
64
+ var eBtn = document.getElementById(btn);
65
+ e.style.display = 'block';
66
+ eBtn.innerHTML = 'Hide ' + translator;
67
+ }
68
+ function toggleVisibility(id, btn, translator) {
69
+ var e = document.getElementById(id);
70
+ if (translator == 'Google') hideTranslator('MicrosoftTranslatorWidget', 'btnMS', 'Microsoft');
71
+ if (translator == 'Microsoft') hideTranslator('GoogleTranslatorWidget', 'btnGG', 'Google');
72
+ if(e.style.display == 'block') {
73
+ hideTranslator(id, btn, translator);
74
+ }
75
+ else {
76
+ showTranslator(id, btn, translator);
77
+ }
78
+ }
79
+ //-->
80
+ </script>";
81
+ $ms = true;
82
+ $google = true;
83
+ if ($ms) {
84
+ $msBtn = " <button id='btnMS' onclick=\"toggleVisibility('MicrosoftTranslatorWidget', 'btnMS', 'Microsoft');\">Show Microsoft</button>";
85
+ $msLink = "<a target=_blank href='http://www.bing.com/translator'>Microsoft<sup>&reg;</sup></a> ";
86
+ $msJS = "<div id='MicrosoftTranslatorWidget' style='margin-left:auto;margin-right:auto;display:none; width: 200px; min-height: 83px; border-color: #404040; background-color: #A0A0A0;'><noscript><a href='http://www.microsofttranslator.com/bv.aspx?a=http%3a%2f%2fwww.thulasidas.com%2fplugins%2f$plgName'>Translate this page</a><br />Powered by <a href='http://www.bing.com/translator'>Microsoft® Translator</a></noscript></div> <script type='text/javascript'> /* <![CDATA[ */ setTimeout(function() { var s = document.createElement('script'); s.type = 'text/javascript'; s.charset = 'UTF-8'; s.src = ((location && location.href && location.href.indexOf('https') == 0) ? 'https://ssl.microsofttranslator.com' : 'http://www.microsofttranslator.com' ) + '/ajax/v2/widget.aspx?mode=manual&from=en&layout=ts'; var p = document.getElementsByTagName('head')[0] || document.documentElement; p.insertBefore(s, p.firstChild); }, 0); /* ]]> */ </script>";
87
+ }
88
+ else {
89
+ $msBtn = $msJs = $msLink = '';
90
+ }
91
+ if ($google) {
92
+ $ggBtn = " <button id='btnGG' onclick=\"toggleVisibility('GoogleTranslatorWidget', 'btnGG', 'Google');\">Show Google</button>";
93
+ $ggLink = "<a target=_blank href='https://translate.google.com/'>Google<sup>&reg;</sup></a>";
94
+ $ggJS = "<div id='GoogleTranslatorWidget' style='text-align:center;display:none;'><div id='google_translate_element'></div><script type='text/javascript'>
95
+ function googleTranslateElementInit() {
96
+ new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
97
+ }
98
+ </script><script type='text/javascript' src='//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'></script></div>";
99
+ }
100
+ else {
101
+ $ggBtn = $ggJS = $ggLink = '';
102
+ }
103
+ if ($google && $ms) {
104
+ $or = "or";
105
+ }
106
+ echo "See this page in your language (<code>$locale</code>) using machine translation. $ggLink $or $msLink Translator.";
107
+ echo $ggBtn . $msBtn . $ggJS . $msJS;
108
+ echo '</div>';
109
+ }
110
+
111
+ renderTranslator($plgName);
112
+
113
  renderSupport($plgName, $myPlugins[$plgName]) ;
114
 
115
  ?>
tail-text.php CHANGED
@@ -51,7 +51,7 @@ function renderPlg($name, $plg) {
51
  $desc = $plg['desc'] ;
52
  $title = $plg['title'] ;
53
  $url = 'http://www.thulasidas.com/plugins/' . $name ;
54
- $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b> ' ;
55
  $text = $link . $desc ;
56
  $price = $plg['price'] ;
57
  $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
@@ -74,7 +74,7 @@ function renderBook($name, $plg) {
74
  $desc = $plg['desc'] ;
75
  $title = $plg['title'] ;
76
  $url = $plg['url'] ;
77
- $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b> ' ;
78
  $text = $link . $desc ;
79
  $price = $plg['price'] ;
80
  $moreInfo = "&nbsp;&nbsp; <a href='$url' title='More info about $value at Unreal Blog'>More Info</a> " ;
@@ -105,8 +105,10 @@ function popupwindow(url, title, w, h){ var left =(screen.width/2)-(w/2); var
105
  <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
106
 
107
  <?php
108
- $keys = array_rand($myPlugins, 3);
109
- foreach ($keys as $name) if ($name != $plgName) renderPlg($name, $myPlugins[$name]) ;
 
 
110
  ?>
111
 
112
  </ul>
51
  $desc = $plg['desc'] ;
52
  $title = $plg['title'] ;
53
  $url = 'http://www.thulasidas.com/plugins/' . $name ;
54
+ $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a></b>&nbsp; ' ;
55
  $text = $link . $desc ;
56
  $price = $plg['price'] ;
57
  $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
74
  $desc = $plg['desc'] ;
75
  $title = $plg['title'] ;
76
  $url = $plg['url'] ;
77
+ $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a></b>&nbsp; ' ;
78
  $text = $link . $desc ;
79
  $price = $plg['price'] ;
80
  $moreInfo = "&nbsp;&nbsp; <a href='$url' title='More info about $value at Unreal Blog'>More Info</a> " ;
105
  <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
106
 
107
  <?php
108
+ $myPluginsU = array_unique($myPlugins, SORT_REGULAR);
109
+ unset($myPluginsU[$plgName]);
110
+ $keys = array_rand($myPluginsU, 3);
111
+ foreach ($keys as $name) if ($name != $plgName) renderPlg($name, $myPluginsU[$name]) ;
112
  ?>
113
 
114
  </ul>