wwjw_links - Version 2.1.2

Version Notes

fixed some bugs

Download this release

Release Info

Developer wwjw
Extension wwjw_links
Version 2.1.2
Comparing to
See all releases


Code changes from version 2.1.1 to 2.1.2

app/code/local/Wwjw/Links/Block/.DS_Store ADDED
Binary file
app/code/local/Wwjw/Links/Block/Adminhtml/System/Config/Fieldset/Hint.php DELETED
@@ -1,98 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Paypal
23
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
-
28
- /**
29
- * Renderer for PayPal banner in System Configuration
30
- *
31
- * @author Magento Core Team <core@magentocommerce.com>
32
- */
33
- class Wwjw_Links_Block_Adminhtml_System_Config_Fieldset_Hint
34
- extends Mage_Adminhtml_Block_Abstract
35
- implements Varien_Data_Form_Element_Renderer_Interface
36
- {
37
- protected $_template = 'links/hint.phtml';
38
-
39
- /**
40
- * Render fieldset html
41
- *
42
- * @param Varien_Data_Form_Element_Abstract $element
43
- * @return string
44
- */
45
- public function render(Varien_Data_Form_Element_Abstract $element)
46
- {
47
- $elementOriginalData = $element->getOriginalData();
48
- if (isset($elementOriginalData['help_link'])) {
49
- $this->setHelpLink($elementOriginalData['help_link']);
50
- }
51
- $js = '
52
- paypalToggleSolution = function(id, url) {
53
- var doScroll = false;
54
- Fieldset.toggleCollapse(id, url);
55
- if ($(this).hasClassName("open")) {
56
- $$(".with-button button.button").each(function(anotherButton) {
57
- if (anotherButton != this && $(anotherButton).hasClassName("open")) {
58
- $(anotherButton).click();
59
- doScroll = true;
60
- }
61
- }.bind(this));
62
- }
63
- if (doScroll) {
64
- var pos = Element.cumulativeOffset($(this));
65
- window.scrollTo(pos[0], pos[1] - 45);
66
- }
67
- }
68
-
69
- togglePaypalSolutionConfigureButton = function(button, enable) {
70
- var $button = $(button);
71
- $button.disabled = !enable;
72
- if ($button.hasClassName("disabled") && enable) {
73
- $button.removeClassName("disabled");
74
- } else if (!$button.hasClassName("disabled") && !enable) {
75
- $button.addClassName("disabled");
76
- }
77
- }
78
-
79
- // check store-view disabling Express Checkout
80
- document.observe("dom:loaded", function() {
81
- var ecButton = $$(".pp-method-express button.button")[0];
82
- var ecEnabler = $$(".paypal-ec-enabler")[0];
83
- if (typeof ecButton == "undefined" || typeof ecEnabler != "undefined") {
84
- return;
85
- }
86
- var $ecButton = $(ecButton);
87
- $$(".with-button button.button").each(function(configureButton) {
88
- if (configureButton != ecButton && !configureButton.disabled
89
- && !$(configureButton).hasClassName("paypal-ec-separate")
90
- ) {
91
- togglePaypalSolutionConfigureButton(ecButton, false);
92
- }
93
- });
94
- });
95
- ';
96
- return $this->toHtml() . $this->helper('adminhtml/js')->getScript($js);
97
- }
98
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Wwjw/Links/etc/.DS_Store ADDED
Binary file
app/code/local/Wwjw/Links/etc/adminhtml.xml DELETED
@@ -1,22 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <wwjwlinks translate="title" module="links">
12
- <title>Wwjw Settings</title>
13
- </wwjwlinks>
14
- </children>
15
- </config>
16
- </children>
17
- </system>
18
- </children>
19
- </admin>
20
- </resources>
21
- </acl>
22
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Wwjw/Links/etc/config.xml CHANGED
@@ -34,6 +34,29 @@
34
  </links>
35
  </routers>
36
  </admin>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  <global>
38
  <blocks>
39
  <links>
34
  </links>
35
  </routers>
36
  </admin>
37
+
38
+ <adminhtml>
39
+ <acl>
40
+ <resources>
41
+ <admin>
42
+ <children>
43
+ <system>
44
+ <children>
45
+ <config>
46
+ <children>
47
+ <wwjwlinks translate="title" module="links">
48
+ <title>Wwjw Settings</title>
49
+ </wwjwlinks>
50
+ </children>
51
+ </config>
52
+ </children>
53
+ </system>
54
+ </children>
55
+ </admin>
56
+ </resources>
57
+ </acl>
58
+ </adminhtml>
59
+
60
  <global>
61
  <blocks>
62
  <links>
app/code/local/Wwjw/Links/etc/system.xml CHANGED
@@ -15,16 +15,9 @@
15
  <show_in_website>1</show_in_website>
16
  <show_in_store>1</show_in_store>
17
  <groups>
18
- <paypal_notice translate="label" module="paypal">
19
- <frontend_model>links/adminhtml_system_config_fieldset_hint</frontend_model>
20
- <help_link>https://www.paypal-marketing.com/emarketing/partner/na/merchantlineup/home.page#mainTab=checkoutlineup&amp;subTab=newlineup</help_link>
21
- <sort_order>0</sort_order>
22
- <show_in_default>1</show_in_default>
23
- <show_in_website>1</show_in_website>
24
- <show_in_store>1</show_in_store>
25
- </paypal_notice>
26
  <wwjwsettings translate="label">
27
  <label>Wwjw link Exchange</label>
 
28
  <frontend_type>text</frontend_type>
29
  <sort_order>50</sort_order>
30
  <show_in_default>1</show_in_default>
15
  <show_in_website>1</show_in_website>
16
  <show_in_store>1</show_in_store>
17
  <groups>
 
 
 
 
 
 
 
 
18
  <wwjwsettings translate="label">
19
  <label>Wwjw link Exchange</label>
20
+ <comment><![CDATA[<a href="http://www.wwjw.com/submit.php" target="_blank">Submit Link</a> , <a href="http://api.wwjw.com" target="_blank">Apply Api</a>]]></comment>
21
  <frontend_type>text</frontend_type>
22
  <sort_order>50</sort_order>
23
  <show_in_default>1</show_in_default>
app/design/adminhtml/default/default/template/links/hint.phtml DELETED
@@ -1,35 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package default_default
23
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php
28
- /**
29
- * @see Mage_Paypal_Block_System_Config_Fieldset_Hint
30
- */
31
- ?>
32
-
33
- <div class="paypal-payment-notice">
34
- <?php echo Mage::helper('links')->__('<a href="%s" target="_blank">Submit Link</a>, <a href="%s" target="_blank">Apply Api</a>',"http://www.wwjw.com/submit.php","http://api.wwjw.com");?>
35
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/links/links.phtml CHANGED
@@ -142,7 +142,7 @@ margin-left: 5px;
142
  </style>
143
  <div class="lay">
144
  <p class="height4" />
145
- <div id="path">Postion:<a href="<?php echo $this->getUrl('wwjw_links/index/index');?>">Link Exchange</a>
146
  <p class="height4" />
147
  <div id="lays_1" class="bor_1">
148
  <ul>
142
  </style>
143
  <div class="lay">
144
  <p class="height4" />
145
+ <div id="path">Postion:<a href="<?php echo $this->getUrl('wwjw_links/index/index');?>">Link Home</a>
146
  <p class="height4" />
147
  <div id="lays_1" class="bor_1">
148
  <ul>
app/design/frontend/default/default/template/links/post.phtml CHANGED
@@ -190,7 +190,7 @@ DIV.quotes SPAN.disabled {
190
  </style>
191
  <div class="lay">
192
  <p class="height3" />
193
- <div id="path">Position:<a href="<?php echo $this->getUrl('wwjw_links/index/index');?>">Link Exchange</a>
194
  <p class="height3" />
195
  <div id="lays_1">
196
  <div class="left_1">
@@ -210,7 +210,7 @@ DIV.quotes SPAN.disabled {
210
  <span style="padding-left:10px;">
211
  Sort:
212
  <a href="<?php echo $this->getUrl('wwjw_links/index/post');?>?id=<?php echo $id;?>&TITLE=<?php echo $title;?>&sort=P"><?php if ($sort == 'P') echo
213
- '<strong>PR</strong>'; else echo 'PR';?></a> |
214
  <a href="<?php echo $this->getUrl('wwjw_links/index/post');?>?id=<?php echo $id;?>&TITLE=<?php echo $title;?>&sort=H"><?php if ($sort == 'H') echo
215
  '<strong>Hits</strong>'; else echo 'Hits';?></a> |
216
  <a href="<?php echo $this->getUrl('wwjw_links/index/post');?>?id=<?php echo $id;?>&TITLE=<?php echo $title;?>&sort=L"><?php if ($sort == 'L') echo
@@ -225,7 +225,7 @@ DIV.quotes SPAN.disabled {
225
  <?php echo $value['DESCRIPTION']?></br>
226
  <div id="div1" class="list_11 yh">
227
  <div><a href="<?php if ($type == 1) echo 'http://www.wwjw.com'; else echo 'http://d.wwjw.com';?>/detail.php?id=<?php echo $value['ID']?>" target="_blank">More...</a>
228
- Score:<?php echo $value['score']?>/5.00 PageRank: <?php if ($value['PAGERANK']) echo 0; else echo $value['PAGERANK']?> Hits:<?php echo $value['HITS'];?>
229
  </div>
230
  </div>
231
  </li>
190
  </style>
191
  <div class="lay">
192
  <p class="height3" />
193
+ <div id="path">Position:<a href="<?php echo $this->getUrl('wwjw_links/index/index');?>">Link Home</a>
194
  <p class="height3" />
195
  <div id="lays_1">
196
  <div class="left_1">
210
  <span style="padding-left:10px;">
211
  Sort:
212
  <a href="<?php echo $this->getUrl('wwjw_links/index/post');?>?id=<?php echo $id;?>&TITLE=<?php echo $title;?>&sort=P"><?php if ($sort == 'P') echo
213
+ '<strong>PageRank</strong>'; else echo 'PageRank';?></a> |
214
  <a href="<?php echo $this->getUrl('wwjw_links/index/post');?>?id=<?php echo $id;?>&TITLE=<?php echo $title;?>&sort=H"><?php if ($sort == 'H') echo
215
  '<strong>Hits</strong>'; else echo 'Hits';?></a> |
216
  <a href="<?php echo $this->getUrl('wwjw_links/index/post');?>?id=<?php echo $id;?>&TITLE=<?php echo $title;?>&sort=L"><?php if ($sort == 'L') echo
225
  <?php echo $value['DESCRIPTION']?></br>
226
  <div id="div1" class="list_11 yh">
227
  <div><a href="<?php if ($type == 1) echo 'http://www.wwjw.com'; else echo 'http://d.wwjw.com';?>/detail.php?id=<?php echo $value['ID']?>" target="_blank">More...</a>
228
+ Score:<?php echo $value['score']?>/5.00 <?php if ($value['PAGERANK']) echo 0; else echo $value['PAGERANK']?> Hits:<?php echo $value['HITS'];?>
229
  </div>
230
  </div>
231
  </li>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>wwjw_links</name>
4
- <version>2.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0">OSL v3.0</license>
7
  <channel>community</channel>
@@ -33,9 +33,9 @@ It can also bring plenty of visitors for you.&#xD;
33
  10.Customize your directory using Cascading Style Sheets (css)</description>
34
  <notes>fixed some bugs</notes>
35
  <authors><author><name>wwjw</name><user>wwjw</user><email>admin@wwjw.com</email></author></authors>
36
- <date>2013-03-03</date>
37
- <time>15:24:14</time>
38
- <contents><target name="magelocal"><dir name="Wwjw"><dir name="Links"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="d0f5a4c7e981c4dded925440f7840b6e"/></dir></dir></dir></dir><file name="Links.php" hash="6d54064c18b2f22f2e8c7243e65562d2"/></dir><dir name="Helper"><file name="Data.php" hash="18f2abce0adeae151bea45173c16891e"/></dir><dir name="controllers"><file name="IndexController.php" hash="a474de7e88d4b9b8129fbc940e083ec9"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cba06a768950dbb864904027a99be3e7"/><file name="config.xml" hash="f9a5c90fc0b6d76a6ee74539ee99c793"/><file name="system.xml" hash="46cf64828522e35590298f98149cbdc4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wwjw_Links.xml" hash="16294301134768bf39cf39d6210be6d2"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="links.xml" hash="12fd07806392355bd470d73cb054c263"/></dir><dir name="template"><dir name="links"><file name="links.phtml" hash="1aed4b5872d6c0daed89e97036faf357"/><file name="post.phtml" hash="127297087346ee1662fce8fd0a14cbcd"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="links"><file name="hint.phtml" hash="d9e0167f678a47c3627425acd1a2e716"/></dir></dir></dir></dir></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
41
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>wwjw_links</name>
4
+ <version>2.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0">OSL v3.0</license>
7
  <channel>community</channel>
33
  10.Customize your directory using Cascading Style Sheets (css)</description>
34
  <notes>fixed some bugs</notes>
35
  <authors><author><name>wwjw</name><user>wwjw</user><email>admin@wwjw.com</email></author></authors>
36
+ <date>2013-03-05</date>
37
+ <time>15:32:05</time>
38
+ <contents><target name="magelocal"><dir name="Wwjw"><dir name="Links"><dir name="Block"><file name="Links.php" hash="6d54064c18b2f22f2e8c7243e65562d2"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="18f2abce0adeae151bea45173c16891e"/></dir><dir name="controllers"><file name="IndexController.php" hash="a474de7e88d4b9b8129fbc940e083ec9"/></dir><dir name="etc"><file name="config.xml" hash="ed6f7610a9564daca908bc0ef007037f"/><file name="system.xml" hash="5f94ccdce9c476b84fd69534d994b1d3"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wwjw_Links.xml" hash="16294301134768bf39cf39d6210be6d2"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="links.xml" hash="12fd07806392355bd470d73cb054c263"/></dir><dir name="template"><dir name="links"><file name="links.phtml" hash="80877326e8d2e5aae5f19e6d9e05e696"/><file name="post.phtml" hash="1be3f72a59b62dc411ca34fdceb5a60c"/></dir></dir></dir></dir></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
41
  </package>