CoolsocailBookmark - Version 1.0

Version Notes

Always Keep Back up

Download this release

Release Info

Developer Magento Core Team
Extension CoolsocailBookmark
Version 1.0
Comparing to
See all releases


Version 1.0

Files changed (58) hide show
  1. app/code/community/Coolsocial/Socialist/Block/Social.php +99 -0
  2. app/code/community/Coolsocial/Socialist/Helper/Data.php +7 -0
  3. app/code/community/Coolsocial/Socialist/etc/config.xml +20 -0
  4. app/code/community/Coolsocial/Socialist/etc/widget.xml +151 -0
  5. app/etc/modules/Coolsocial_Socialist.xml +12 -0
  6. package.xml +20 -0
  7. skin/frontend/default/default/coolsocial/db/slider.db.txt +5 -0
  8. skin/frontend/default/default/coolsocial/demo.css +108 -0
  9. skin/frontend/default/default/coolsocial/img/Thumbs.db +0 -0
  10. skin/frontend/default/default/coolsocial/img/bg.png +0 -0
  11. skin/frontend/default/default/coolsocial/img/bg_dark.png +0 -0
  12. skin/frontend/default/default/coolsocial/img/content/1.png +0 -0
  13. skin/frontend/default/default/coolsocial/img/content/2.png +0 -0
  14. skin/frontend/default/default/coolsocial/img/content/3.png +0 -0
  15. skin/frontend/default/default/coolsocial/img/content/4.png +0 -0
  16. skin/frontend/default/default/coolsocial/img/content/5.png +0 -0
  17. skin/frontend/default/default/coolsocial/img/delicious_aqu_64.png +0 -0
  18. skin/frontend/default/default/coolsocial/img/digg_reflection.png +0 -0
  19. skin/frontend/default/default/coolsocial/img/dzone_reflection.png +0 -0
  20. skin/frontend/default/default/coolsocial/img/facebook_reflection.png +0 -0
  21. skin/frontend/default/default/coolsocial/img/google_log_64.png +0 -0
  22. skin/frontend/default/default/coolsocial/img/product_bg.png +0 -0
  23. skin/frontend/default/default/coolsocial/img/reddit_reflection.png +0 -0
  24. skin/frontend/default/default/coolsocial/img/twit_reflection.png +0 -0
  25. skin/frontend/default/default/coolsocial/mopSlider/logo.png +0 -0
  26. skin/frontend/default/default/coolsocial/mopSlider/monoBack.gif +0 -0
  27. skin/frontend/default/default/coolsocial/mopSlider/mopSlider-2.4.js +443 -0
  28. skin/frontend/default/default/coolsocial/mopSlider/paperBack.gif +0 -0
  29. skin/frontend/default/default/coolsocial/mopSlider/paperBack.jpg +0 -0
  30. skin/frontend/default/default/coolsocial/mopSlider/sliderBack.png +0 -0
  31. skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeft.png +0 -0
  32. skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeftLeft.png +0 -0
  33. skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeftLeftW.png +0 -0
  34. skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeftW.png +0 -0
  35. skin/frontend/default/default/coolsocial/mopSlider/sliderBackRight.png +0 -0
  36. skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRight.png +0 -0
  37. skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRightW.png +0 -0
  38. skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRightW_f.png +0 -0
  39. skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRight_f.png +0 -0
  40. skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightW.png +0 -0
  41. skin/frontend/default/default/coolsocial/mopSlider/sliderBackW.png +0 -0
  42. skin/frontend/default/default/coolsocial/mopSlider/sliderBtn.png +0 -0
  43. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeft.png +0 -0
  44. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeftW.png +0 -0
  45. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeftW_f.png +0 -0
  46. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeft_f.png +0 -0
  47. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRight.png +0 -0
  48. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRightW.png +0 -0
  49. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRightW_f.png +0 -0
  50. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRight_f.png +0 -0
  51. skin/frontend/default/default/coolsocial/mopSlider/sliderBtnW.png +0 -0
  52. skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_leftBottom.png +0 -0
  53. skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_leftTop.png +0 -0
  54. skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_rightBottom.png +0 -0
  55. skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_rightTop.png +0 -0
  56. skin/frontend/default/default/coolsocial/pngFix/blank.gif +0 -0
  57. skin/frontend/default/default/coolsocial/pngFix/jquery.pngFix.js +113 -0
  58. skin/frontend/default/default/coolsocial/script.js +76 -0
app/code/community/Coolsocial/Socialist/Block/Social.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Coolsocial_Socialist_Block_Social extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface {
3
+ /**
4
+ * A model to serialize attributes
5
+ * @var Varien_Object
6
+ */
7
+ protected $_serializer = null;
8
+
9
+ /**
10
+ * Initialization
11
+ */
12
+
13
+ protected function _construct() {
14
+ $this->_serializer = new Varien_Object();
15
+ parent::_construct();
16
+ }
17
+
18
+ /**
19
+ * Produce links list rendered as html
20
+ *
21
+ * @return string
22
+ */
23
+ protected function _toHtml() {
24
+ ?>
25
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
26
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('coolsocial/demo.css'); ?>" />
27
+
28
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('coolsocial/script.js'); ?>"></script>
29
+
30
+
31
+ <?php
32
+
33
+ echo '<div id="share">
34
+
35
+ <div id="stage">';
36
+
37
+
38
+ $val = $this->getData('digg');
39
+
40
+ if ($val == "yes")
41
+
42
+ echo '<div class="btn digg"><div class="bcontent"><a class="DiggThisButton" target="_blank"></a><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div></div>';
43
+
44
+
45
+ $val= $this->getData('tweet');
46
+
47
+ if ($val == "yes")
48
+
49
+ echo '<div class="btn tweetmeme"><div class="bcontent"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div>';
50
+
51
+
52
+ $val= $this->getData('dzone');
53
+
54
+ if ($val == "yes")
55
+
56
+ echo '<div class="btn dzone"><div class="bcontent"><script language="javascript" src="http://widgets.dzone.com/links/widgets/zoneit.js"></script></div></div>';
57
+
58
+
59
+
60
+ $val= $this->getData('reddit');
61
+ if ($val == "yes")
62
+
63
+ echo '<div class="btn reddit"><div class="bcontent"><script type="text/javascript" src="http://www.reddit.com/button.js?t=2"></script></div></div>';
64
+
65
+
66
+ $val= $this->getData('facebook');
67
+
68
+ if ($val == "yes")
69
+
70
+ echo '<div class="btn facebook"><div class="bcontent"><a target="_blank" name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
71
+
72
+ </script></div></div>';
73
+
74
+
75
+ $val= $this->getData('delicious');
76
+ if ($val == "yes")
77
+
78
+ echo '<div class="btn delicious"><div class="bcontent"><a target="_blank" name="" type="" href="http://del.icio.us/post"><img src="'.$this->getSkinUrl('coolsocial/img/delicious_aqu_64.png').'"></img></a></div></div>';
79
+
80
+
81
+ $val= $this->getData('googlebook');
82
+
83
+ if ($val == "yes")
84
+
85
+ echo '<div class="btn googlebookmarks"><div class="bcontent"><a target="_blank" name="" type="" href="http://www.google.com/bookmarks/mark?op=edit&amp"><img src="'.$this->getSkinUrl('coolsocial/img/google_log_64.png').'"
86
+
87
+ </img></a></div></div>';
88
+
89
+
90
+
91
+ echo ' </div>
92
+
93
+ </div>';
94
+
95
+
96
+ return parent::_toHtml();
97
+ }
98
+ }
99
+ ?>
app/code/community/Coolsocial/Socialist/Helper/Data.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Sample Widget Helper
4
+ */
5
+ class Coolsocial_Socialist_Helper_Data extends Mage_Core_Helper_Abstract
6
+ {
7
+ }
app/code/community/Coolsocial/Socialist/etc/config.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Coolsocial_Socialist>
5
+ <version>0.0.2</version>
6
+ </Coolsocial_Socialist>
7
+ </modules>
8
+ <global>
9
+ <helpers>
10
+ <socialist>
11
+ <class>Coolsocial_Socialist_Helper</class>
12
+ </socialist>
13
+ </helpers>
14
+ <blocks>
15
+ <socialist>
16
+ <class>Coolsocial_Socialist_Block</class>
17
+ </socialist>
18
+ </blocks>
19
+ </global>
20
+ </config>
app/code/community/Coolsocial/Socialist/etc/widget.xml ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <widgets>
3
+ <socialist_social type="socialist/social" translate="name description" module="socialist">
4
+ <name>Cool Social</name>
5
+ <description type="desc">Combines all social bookmarks together</description>
6
+
7
+
8
+
9
+ <parameters>
10
+ <facebook translate="label">
11
+ <label>Facebook</label>
12
+ <visible>1</visible>
13
+ <required>1</required>
14
+ <type>select</type>
15
+ <values>
16
+ <yes translate="label">
17
+ <value>yes</value>
18
+ <label>Yes</label>
19
+ </yes>
20
+ <no translate="label">
21
+ <value>no</value>
22
+ <label>No</label>
23
+ </no>
24
+
25
+ </values>
26
+ <description type="desc">Select Yes/No</description>
27
+ </facebook>
28
+
29
+ <tweet translate="label">
30
+ <label>Tweet</label>
31
+ <visible>1</visible>
32
+ <required>1</required>
33
+ <type>select</type>
34
+ <values>
35
+ <yes translate="label">
36
+ <value>yes</value>
37
+ <label>Yes</label>
38
+ </yes>
39
+ <no translate="label">
40
+ <value>no</value>
41
+ <label>No</label>
42
+ </no>
43
+
44
+ </values>
45
+ <description type="desc">Select Yes/No</description>
46
+ </tweet>
47
+ <digg translate="label">
48
+ <label>Digg</label>
49
+ <visible>1</visible>
50
+ <required>1</required>
51
+ <type>select</type>
52
+ <values>
53
+ <yes translate="label">
54
+ <value>yes</value>
55
+ <label>Yes</label>
56
+ </yes>
57
+ <no translate="label">
58
+ <value>no</value>
59
+ <label>No</label>
60
+ </no>
61
+
62
+ </values>
63
+ <description type="desc">Select Yes/No</description>
64
+ </digg>
65
+ <dzone translate="label">
66
+ <label>Dzone</label>
67
+ <visible>1</visible>
68
+ <required>1</required>
69
+ <type>select</type>
70
+ <values>
71
+ <yes translate="label">
72
+ <value>yes</value>
73
+ <label>Yes</label>
74
+ </yes>
75
+ <no translate="label">
76
+ <value>no</value>
77
+ <label>No</label>
78
+ </no>
79
+
80
+ </values>
81
+ <description type="desc">Select Yes/No</description>
82
+ </dzone>
83
+ <reddit translate="label">
84
+ <label>Reddit</label>
85
+ <visible>1</visible>
86
+ <required>1</required>
87
+ <type>select</type>
88
+ <values>
89
+ <yes translate="label">
90
+ <value>yes</value>
91
+ <label>Yes</label>
92
+ </yes>
93
+ <no translate="label">
94
+ <value>no</value>
95
+ <label>No</label>
96
+ </no>
97
+
98
+ </values>
99
+ <description type="desc">Select Yes/No</description>
100
+ </reddit>
101
+
102
+
103
+
104
+ <delicious translate="label">
105
+ <label>Delicious</label>
106
+ <visible>1</visible>
107
+ <required>1</required>
108
+ <type>select</type>
109
+ <values>
110
+ <yes translate="label">
111
+ <value>yes</value>
112
+ <label>Yes</label>
113
+ </yes>
114
+ <no translate="label">
115
+ <value>no</value>
116
+ <label>No</label>
117
+ </no>
118
+
119
+ </values>
120
+ <description type="desc">Select Yes/No</description>
121
+ </delicious>
122
+
123
+ <googlebook translate="label">
124
+ <label>Google Bookmark</label>
125
+ <visible>1</visible>
126
+ <required>1</required>
127
+ <type>select</type>
128
+ <values>
129
+ <yes translate="label">
130
+ <value>yes</value>
131
+ <label>Yes</label>
132
+ </yes>
133
+ <no translate="label">
134
+ <value>no</value>
135
+ <label>No</label>
136
+ </no>
137
+
138
+ </values>
139
+ <description type="desc">Select Yes/No</description>
140
+ </googlebook>
141
+
142
+
143
+
144
+
145
+
146
+
147
+ </parameters>
148
+
149
+
150
+ </socialist_social>
151
+ </widgets>
app/etc/modules/Coolsocial_Socialist.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Coolsocial_Socialist>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ <depends>
8
+ <Mage_Cms />
9
+ </depends>
10
+ </Coolsocial_Socialist>
11
+ </modules>
12
+ </config>
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>CoolsocailBookmark</name>
4
+ <version>1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Get social Bookmarks on your magento site in a cool way.You can combine most popular social sites .</summary>
10
+ <description>Get most popular social sites Bookmark in a single widget. This widget will provide social Bookmarks of all popular sites in a cool trendy way.
11
+
12
+ To use this you have to just install the widget. And palce it in you CMS page.</description>
13
+ <notes>Always Keep Back up</notes>
14
+ <authors><author><name>kapil</name><user>auto-converted</user><email>kk2008pantnagar@gmail.com</email></author></authors>
15
+ <date>2010-12-03</date>
16
+ <time>11:15:04</time>
17
+ <contents><target name="magecommunity"><dir name="Coolsocial"><dir name="Socialist"><dir name="Block"><file name="Social.php" hash="bf4ceca1d70e7e423d31a9121d22d401"/></dir><dir name="etc"><file name="config.xml" hash="defc8600d464816b45e8549d8d6c0808"/><file name="widget.xml" hash="e6f9fc9c48cd05c43522536b41aa38f8"/></dir><dir name="Helper"><file name="Data.php" hash="9cf17042f3bf8dda96d55cc3971bdf6d"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="coolsocial"><dir name="db"><file name="slider.db.txt" hash="5ae079da6f82d4f14874a7a8cc066a53"/></dir><dir name="img"><dir name="content"><file name="1.png" hash="593de97bc6b35553dc7ac56b84565c7a"/><file name="2.png" hash="d0a234667bb1f296a061b42b20e98c87"/><file name="3.png" hash="dcaf852fe4d3a5d2b6672c52e0346127"/><file name="4.png" hash="cd4c6e8cc18a58e5e7d4a8a4bf7ad7dd"/><file name="5.png" hash="4b4f0d5ee254c8b85f5221a5746af054"/></dir><file name="bg.png" hash="ab14db5e98842c77993e02b24d6df85c"/><file name="bg_dark.png" hash="7b2a5f91384c5506d0301407a23886b7"/><file name="delicious_aqu_64.png" hash="f444fb0e1d197e117fa22999a13f7632"/><file name="digg_reflection.png" hash="2d63df5ce95582a7d1329fd4180c763c"/><file name="dzone_reflection.png" hash="b4444983090e944315774b538b0e89e7"/><file name="facebook_reflection.png" hash="16cbd397d048af0233b8462326ab8cfa"/><file name="google_log_64.png" hash="7de96b1e0d79d65fcfb338560f7ec877"/><file name="product_bg.png" hash="03eba209981fa189dd74cf13ca8076ac"/><file name="reddit_reflection.png" hash="13c9968e4aab4b85891067c879d07b9a"/><file name="Thumbs.db" hash="06f9f3b74f3e340f5ae65d8b16143552"/><file name="twit_reflection.png" hash="cd341f22ec7a23acfa5f29c3dcb4eb21"/></dir><dir name="mopSlider"><file name="logo.png" hash="32e36acaf9db2701f45071865312f296"/><file name="monoBack.gif" hash="e2b307a546021ba3ad60a643138a81d6"/><file name="mopSlider-2.4.js" hash="e8b6ed5b252205db2001ec23b325d589"/><file name="paperBack.gif" hash="ccea3ba0fa8b0573ca184e684944472b"/><file name="paperBack.jpg" hash="c7fc174d3febd06f94224741b8bee641"/><file name="sliderBack.png" hash="94975be258b7eb54187be1a42cc26d45"/><file name="sliderBackLeft.png" hash="5437ae9d84052d3ecec981eba1f21ce3"/><file name="sliderBackLeftLeft.png" hash="fb47be03e56323b7e37ee3462cf737d8"/><file name="sliderBackLeftLeftW.png" hash="1cbd1d2be5ec6fcc92e27ec404c2c73a"/><file name="sliderBackLeftW.png" hash="13a9d085973993fb7630dd339b0628af"/><file name="sliderBackRight.png" hash="4dcb5d823b828e1baa56a76107ef3d88"/><file name="sliderBackRightRight.png" hash="3255f0dc97e1153dc25f99a876da3c46"/><file name="sliderBackRightRightW.png" hash="3d3a86f2e5e34ab556c605e32c27e447"/><file name="sliderBackRightRightW_f.png" hash="cee2301871d372580491ae8184440f33"/><file name="sliderBackRightRight_f.png" hash="bc7a19ff713b2333cae923cab799a03f"/><file name="sliderBackRightW.png" hash="8010a4b73de14c717953c1753ebe0570"/><file name="sliderBackW.png" hash="cb402275562f8e92fd7f01e0f9de7bf9"/><file name="sliderBtn.png" hash="edca4077cfb86a1f26f88d915cb00b1d"/><file name="sliderBtnLeft.png" hash="1093dc30d956db98b09219ef0351ba45"/><file name="sliderBtnLeftW.png" hash="9f1f73ba01353ca46cb2d410d7c90864"/><file name="sliderBtnLeftW_f.png" hash="19cb085e46f3ddef12d093b76ee19081"/><file name="sliderBtnLeft_f.png" hash="d9724727ffb75de44544eccf4d87922b"/><file name="sliderBtnRight.png" hash="8958e20835265a084176526b85c21cb8"/><file name="sliderBtnRightW.png" hash="e51ff8cc303f6001c32ee85e330523fe"/><file name="sliderBtnRightW_f.png" hash="777873b6a65b0228bd126dd9a4590e4f"/><file name="sliderBtnRight_f.png" hash="e4f2ad444219019f069f4597376373e4"/><file name="sliderBtnW.png" hash="6db7ccfb6687f9c4f1a1d8a77e421c3a"/><file name="sliderCorner_leftBottom.png" hash="de61a254ab7b82ee055b493aaef6312b"/><file name="sliderCorner_leftTop.png" hash="d56736e6bd04a61b148ebefe03490e37"/><file name="sliderCorner_rightBottom.png" hash="bb4edc731175d3b6a3b3800fb775c5cf"/><file name="sliderCorner_rightTop.png" hash="86a124668cfbdab6a1f2bcad1fb7480d"/></dir><dir name="pngFix"><file name="blank.gif" hash="fc94fb0c3ed8a8f909dbc7630a0987ff"/><file name="jquery.pngFix.js" hash="ff54031293bb89eee19321b62609bc21"/></dir><file name="demo.css" hash="8169f6856114f3d60aee6c57c96dceee"/><file name="script.js" hash="2b051949e4d0a77213173117e5189253"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Coolsocial_Socialist.xml" hash="6b57204c0c969fd537e4216f19a0e20f"/></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies/>
20
+ </package>
skin/frontend/default/default/coolsocial/db/slider.db.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ Dell Vostro A860 | A great laptop for the business person. | 500 | img/content/1.png | http://dell.com/
2
+ Sony Vaio VGN-FW31J | A real on the road cinema. | 640 | img/content/2.png | http://sony.com/
3
+ Lenovo 3000 N200 | Budget means quality. | 421 | img/content/3.png | http://lenovo.com/
4
+ Acer Aspire 5738G | A notebook for the true gamers. | 553 | img/content/4.png | http://acer.com/
5
+ MacBook Air | A special college edition notebook. | 710 | img/content/5.png | http://apple.com/
skin/frontend/default/default/coolsocial/demo.css ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* The code for the share box starts here: */
2
+
3
+ #share{
4
+ /* The share box container */
5
+ width:250px;
6
+ height:220px;
7
+ overflow:hidden;
8
+
9
+ -moz-border-radius:12px;
10
+ -webkit-border-radius:12px;
11
+ border-radius:12px;
12
+ }
13
+
14
+ #share-label{
15
+ /* The image on the right */
16
+ background:url(img/share.png) no-repeat 50% 50%;
17
+ float:left;
18
+ height:220px;
19
+ width:200px;
20
+ }
21
+
22
+ #stage{
23
+ /* This is where the animation takes place */
24
+ position:relative;
25
+ width:250px;
26
+ height:220px;
27
+ background:white;
28
+ float:left;
29
+
30
+ border-bottom-left-radius:12px;
31
+ border-top-left-radius:12px;
32
+
33
+ -moz-border-radius-bottomleft:12px;
34
+ -moz-border-radius-topleft:12px;
35
+
36
+ -webkit-border-bottom-left-radius:12px;
37
+ -webkit-border-top-left-radius:12px;
38
+ }
39
+
40
+ .btn{
41
+ /* This class is assigned to every share button */
42
+ background-color:white;
43
+ height:90px;
44
+ left:0;
45
+ top:0;
46
+ width:60px;
47
+ position:relative;
48
+ margin:20px 0 0 10px;
49
+ float:left;
50
+ }
51
+
52
+ .bcontent{
53
+ /* Positioned inside the .btn container */
54
+ position:absolute;
55
+ top:auto;
56
+ bottom:20px;
57
+ left:0;
58
+ }
59
+
60
+ /* Individual rules for every share button */
61
+
62
+ .digg{ background:url(img/digg_reflection.png) no-repeat -4px bottom;}
63
+ .reddit{ background:url(img/reddit_reflection.png) no-repeat -4px bottom;}
64
+ .facebook{ background:url(img/facebook_reflection.png) no-repeat bottom center;}
65
+ .tweetmeme{ background:url(img/twit_reflection.png) no-repeat -5px bottom;}
66
+ .dzone{ background:url(img/dzone_reflection.png) no-repeat -7px bottom;}
67
+ .delicious { background:url(img/delicious_aqu_64.png) no-repeat -7px bottom;}
68
+ .googlebookmarks { background:url(img/google_log_64.png) no-repeat -7px bottom;}
69
+
70
+ .thanksto{
71
+ position:absolute;
72
+ bottom:2px;
73
+ right:110px;
74
+ font-size:10px;
75
+ }
76
+
77
+ .thanksto a,.thanksto a:visited{
78
+ color:#BBB;
79
+ }
80
+
81
+ /* Customizing the facebook share button */
82
+
83
+ span.fb_share_no_count {
84
+ display:block;
85
+ }
86
+
87
+ span.fb_share_count_top.fb_share_no_count {
88
+ line-height:54px;
89
+ }
90
+
91
+ span.fb_share_count_nub_top.fb_share_no_count{
92
+ display:none;
93
+ }
94
+
95
+ span.fb_share_no_count span.fb_share_count_inner {
96
+ background:#3B5998 url(http://static.fbshare.me/f_only.png) no-repeat scroll 20px 5px;
97
+ display:block;
98
+ }
99
+
100
+ /* The styles below are only necessary for the demo page */
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
skin/frontend/default/default/coolsocial/img/Thumbs.db ADDED
Binary file
skin/frontend/default/default/coolsocial/img/bg.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/bg_dark.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/content/1.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/content/2.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/content/3.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/content/4.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/content/5.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/delicious_aqu_64.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/digg_reflection.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/dzone_reflection.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/facebook_reflection.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/google_log_64.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/product_bg.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/reddit_reflection.png ADDED
Binary file
skin/frontend/default/default/coolsocial/img/twit_reflection.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/logo.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/monoBack.gif ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/mopSlider-2.4.js ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * mopSlider 2.4
3
+ * By Hiroki Miura (http://www.mopstudio.jp)
4
+ * Copyright (c) 2009 mopStudio
5
+ * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
+ * July 18, 2009
7
+ */
8
+
9
+ jQuery.fn.extend({
10
+ mopSlider:function(setting){
11
+ var ua=navigator.userAgent,browser,os,ie67=false;
12
+ var px="px"
13
+ var btnPosi,boxPosi,btnPast,boxPast,whitchDrag="";
14
+ var btnMoveNum,btnMoveTo,boxMoveNum,boxMoveTo;
15
+ var timeCheck1,timeCheck2,DragCheck1,DragCheck2,finalTime1,finalTime2;
16
+ var mopSliderName;
17
+ var nextMov=[];
18
+ var scrollMax,scrollNum,caseW,itemNum,sliderNum,checkNum,movNum;
19
+ var mopSliderMotion;
20
+ var boxW,itemMgnAll;
21
+ var finalCount=0;
22
+ var indication=setting.indi
23
+ var mopSliderW=setting.w;
24
+ var mopSliderH=setting.h;
25
+ var sldW=setting.sldW;
26
+ var btnW=setting.btnW;
27
+ var itemMgn=setting.itemMgn;
28
+ var shuffle=setting.shuffle;
29
+ var mopSliderNo=setting.no;
30
+ var mopSliderType=setting.type;
31
+ /*path to image*/
32
+ var btnLeft=new Image();
33
+ var btnLeftF=new Image();
34
+ var btnRight=new Image();
35
+ var btnRightF=new Image();
36
+ var btnCenter=new Image();
37
+ var btnChange=new Image();
38
+ var btnChangeF=new Image();
39
+ var backImg=new Image();
40
+ var sldcLeftImg=new Image();
41
+ var sldcRightImg=new Image();
42
+ var sldBackLeft=new Image();
43
+ var sldBackCenter=new Image();
44
+ var sldBackRight=new Image();
45
+ if(mopSliderType=="paper"){
46
+ btnLeft.src="../mopSlider/sliderBtnLeftW.png";
47
+ btnLeftF.src="../mopSlider/sliderBtnLeftW_f.png";
48
+ btnRight.src="../mopSlider/sliderBtnRightW.png";
49
+ btnRightF.src="../mopSlider/sliderBtnRightW_f.png";
50
+ btnCenter.src="../mopSlider/sliderBtnW.png";
51
+ btnChange.src="../mopSlider/sliderBackRightRightW.png";
52
+ btnChangeF.src="../mopSlider/sliderBackRightRightW_f.png";
53
+ backImg.src="../mopSlider/paperBack.gif";
54
+ sldcLeftImg.src="../mopSlider/sliderBackLeftLeftW.png";
55
+ sldcRightImg.src="../mopSlider/sliderBackRightRightW.png";
56
+ sldBackLeft.src="../mopSlider/sliderBackLeftW.png";
57
+ sldBackCenter.src="../mopSlider/sliderBackW.png";
58
+ sldBackRight.src="../mopSlider/sliderBackRightW.png";
59
+ }else if(mopSliderType=="black"){
60
+ btnLeft.src="../mopSlider/sliderBtnLeft.png";
61
+ btnLeftF.src="../mopSlider/sliderBtnLeft_f.png";
62
+ btnRight.src="../mopSlider/sliderBtnRight.png";
63
+ btnRightF.src="../mopSlider/sliderBtnRight_f.png";
64
+ btnCenter.src="../mopSlider/sliderBtn.png";
65
+ btnChange.src="../mopSlider/sliderBackRightRight.png";
66
+ btnChangeF.src="../mopSlider/sliderBackRightRight_f.png";
67
+ backImg.src="../mopSlider/monoBack.gif";
68
+ sldcLeftImg.src="../mopSlider/sliderBackLeftLeft.png";
69
+ sldcRightImg.src="../mopSlider/sliderBackRightRight.png";
70
+ sldBackLeft.src="../mopSlider/sliderBackLeft.png";
71
+ sldBackCenter.src="../mopSlider/sliderBack.png";
72
+ sldBackRight.src="../mopSlider/sliderBackRight.png";
73
+ }
74
+
75
+ /* Modifed for tutorialzine */
76
+ else if(mopSliderType=="tutorialzine"){
77
+ btnLeft.src="../mopSlider/sliderBtnLeftW.png";
78
+ btnLeftF.src="../mopSlider/sliderBtnLeftW_f.png";
79
+ btnRight.src="../mopSlider/sliderBtnRightW.png";
80
+ btnRightF.src="../mopSlider/sliderBtnRightW_f.png";
81
+ btnCenter.src="../mopSlider/sliderBtnW.png";
82
+ btnChange.src="../mopSlider/sliderBackRightRightW.png";
83
+ btnChangeF.src="../mopSlider/sliderBackRightRightW_f.png";
84
+ /* backImg.src="mopSlider/paperBack.gif";*/
85
+ sldcLeftImg.src="../mopSlider/sliderBackLeftLeftW.png";
86
+ sldcRightImg.src="../mopSlider/sliderBackRightRightW.png";
87
+ sldBackLeft.src="../mopSlider/sliderBackLeftW.png";
88
+ sldBackCenter.src="../mopSlider/sliderBackW.png";
89
+ sldBackRight.src="../mopSlider/sliderBackRightW.png";
90
+
91
+ }
92
+
93
+ if(setting.itemMgn==null){itemMgn=20};
94
+ if(setting.shuffle==null){shuffle=1};
95
+
96
+ if((mopSliderNo==null)||(mopSliderNo=="01")){
97
+ mopSliderName="#mopSlider01";
98
+ mopSliderNo="01";
99
+ }else{
100
+ mopSliderName="#mopSlider"+setting.no;
101
+ }
102
+ var noSharp=mopSliderName.split("#")[1];
103
+ $(mopSliderName).hide();
104
+ /*shuffle*/
105
+ var arr=jQuery.makeArray($(this).children());
106
+ Array.prototype.shuffle = function() {
107
+ var i = this.length;
108
+ while(i){
109
+ var j = Math.floor(Math.random()*i);
110
+ var t = this[--i];
111
+ this[i] = this[j];
112
+ this[j] = t;
113
+ };
114
+ return this;
115
+ };
116
+ if(shuffle==1){
117
+ arr.shuffle();
118
+ $(arr).appendTo(this);
119
+ };
120
+ if(ua.indexOf("Mac",0)>=0){
121
+ os="mac";
122
+ }else if(ua.indexOf("Win",0)>=0){
123
+ os="win";
124
+ };
125
+ if(ua.indexOf("MSIE 6")>-1){
126
+ browser="ie6";
127
+ };
128
+ if(ua.indexOf("MSIE 7")>-1){
129
+ browser="ie7";
130
+ };
131
+ if((browser=="ie6")||(browser=="ie7")){
132
+ ie67=true;
133
+ };
134
+ $(this).css({position:"absolute",overflow: "hidden",left: "0px",display: "block"});
135
+ /*items number*/
136
+ itemNum=$(this).children().length;
137
+ var allW=0;
138
+ var num=0;
139
+ for (i=1; i<(itemNum+1); i++){
140
+ var itemW=eval($(this).children().eq(num).css("width").split("px")[0]);
141
+ nextMov.push(itemW);
142
+ var itemH=eval($(this).children().eq(num).css("height").split("px")[0]);
143
+ var mgn=(mopSliderH-itemH)/2;
144
+ $(this).children().eq(num).css({marginTop:mgn+px});
145
+ num+=1;
146
+ allW+=itemW;
147
+ };
148
+ /*width of all content & margin*/
149
+ itemMgnAll=itemMgn*itemNum;
150
+ boxW=allW+itemMgnAll+itemMgn;
151
+ /*put mopSlider*/
152
+ $(this).wrap('<div id="mopSlider"><div id="'+noSharp+'"><div class="holder"></div></div></div>');
153
+ $(this).parent().after(
154
+ '<div class="sliderCase">'+
155
+ '<div class="sliderCaseLeft"></div>'+
156
+ '<div class="sliderCaseRight"></div>'+
157
+ '<div class="slider">'+
158
+ '<div class="sldLeft"></div>'+
159
+ '<div class="sldCenter"></div>'+
160
+ '<div class="sldRight"></div>'+
161
+ '<div class="sliderBtn">'+
162
+ '<div class="sldBtnLeft"></div>'+
163
+ '<div class="sldBtnCenter"><div class="indi"></div></div>'+
164
+ '<div class="sldBtnRight"></div>'+
165
+ '</div>'+
166
+ '</div>'+
167
+ '</div>'+
168
+ '<div class="leftTop"><div class="leftTopIn"></div></div>'+
169
+ '<div class="rightTop"><div class="rightTopIn"></div></div>'+
170
+ '<div class="leftBottom"><div class="leftBottomIn"></div></div>'+
171
+ '<div class="rightBottom"><div class="rightBottomIn"></div></div>'+
172
+ '<div class="logo"><div class="logoIn"></div></div>'
173
+ );
174
+ /*set css*/
175
+ $(mopSliderName+" .sliderCase").css({height:"22px",position:"relative",top:"0px"});
176
+ $(mopSliderName+" .sliderCaseLeft").css({height:"22px",width:"25px",position:"absolute",top:"0px",left:"0px",backgroundImage:"url("+sldcLeftImg.src+")",backgroundRepeat:"no-repeat"});
177
+ $(mopSliderName+" .sliderCaseRight").css({height:"22px",width:"25px",position:"absolute",top:"0px",right:"0px",backgroundImage:"url("+sldcRightImg.src+")",cursor:"",backgroundRepeat:"no-repeat"});
178
+ $(mopSliderName+" .slider").css({height:"22px",position:"relative",top:"0px",left:"25px"});
179
+ $(mopSliderName+" .sldLeft").css({left:"0px",position:"absolute",height:"22px",width:"20px",backgroundImage:"url("+sldBackLeft.src+")",backgroundRepeat:"no-repeat"});
180
+ $(mopSliderName+" .sldCenter").css({left:"20px",width:sldW-40+px,position:"absolute",height:"22px",backgroundImage:"url("+sldBackCenter.src+")",backgroundRepeat:"repeat-x"});
181
+ $(mopSliderName+" .sldRight").css({right:"0px",position:"absolute",height:"22px",width:"20px",backgroundImage:"url("+sldBackRight.src+")",backgroundRepeat:"no-repeat"});
182
+ $(mopSliderName+" .sliderBtn").css({position:"absolute",height:"22px",left:"0px",cursor:"default"});
183
+ $(mopSliderName+" .sldBtnLeft").css({left:"0px",position:"absolute",height:"22px",width:"20px",backgroundImage:"url("+btnLeft.src+")",backgroundRepeat:"no-repeat"});
184
+ $(mopSliderName+" .sldBtnCenter").css({left:"20px",width:btnW-40+px,position:"absolute",height:"22px",backgroundImage:"url("+btnCenter.src+")",backgroundRepeat:"repeat-x"});
185
+ $(mopSliderName+" .sldBtnRight").css({right:"0px",position:"absolute",height:"22px",width:"20px",backgroundImage:"url("+btnRight.src+")",backgroundRepeat:"no-repeat"});
186
+ $(mopSliderName+" .indi").css({paddingTop:"5px",fontSize: "10px",textAlign:"center",fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:"0.05em",color:"#2b313e"});
187
+ $(mopSliderName).css({width:mopSliderW+px,height:mopSliderH+28+px});
188
+ $(mopSliderName).css({position:"relative",overflow:"hidden",margin:"0 auto 0 auto",backgroundImage:"url("+backImg.src+")"});
189
+
190
+
191
+ if(mopSliderType=="black"){
192
+ $(mopSliderName).css({backgroundColor:"#484848",backgroundRepeat:"repeat-x",backgroundPosition:"bottom"});
193
+ }
194
+
195
+
196
+ if(mopSliderType!="tutorialzine")
197
+ {
198
+ $(mopSliderName+" .leftTop").css({height:"10px",width:"10px",position:"absolute",top:"0px",left:"0px"});
199
+ $(mopSliderName+" .leftTopIn").css({height:"10px",width:"10px",backgroundImage:"url(mopSlider/sliderCorner_leftTop.png)",backgroundRepeat:"no-repeat"});
200
+ $(mopSliderName+" .rightTop").css({height:"10px",width:"10px",position:"absolute",top:"0px",right:"0px"});
201
+ $(mopSliderName+" .rightTopIn").css({height:"10px",width:"10px",backgroundImage:"url(mopSlider/sliderCorner_rightTop.png)",backgroundRepeat:"no-repeat"});
202
+ $(mopSliderName+" .leftBottom").css({height:"10px",width:"10px",position:"absolute",bottom:"0px",left:"0px"});
203
+ $(mopSliderName+" .leftBottomIn").css({height:"10px",width:"10px",backgroundImage:"url(mopSlider/sliderCorner_leftBottom.png)",backgroundRepeat:"no-repeat",backgroundPosition:"bottom"});
204
+ $(mopSliderName+" .rightBottom").css({height:"10px",width:"10px",position:"absolute",bottom:"0px",right:"0px"});
205
+ $(mopSliderName+" .rightBottomIn").css({height:"10px",width:"10px",backgroundImage:"url(mopSlider/sliderCorner_rightBottom.png)",backgroundRepeat:"no-repeat",backgroundPosition:"bottom"});
206
+
207
+ /*logo*/
208
+ $(mopSliderName+" .logo").css({height:"50px",width:"80px",position:"absolute",top:"0px",left:"0px"});
209
+ $(mopSliderName+" .logoIn").css({height:"50px",width:"80px",backgroundImage:"url(mopSlider/logo.png)",backgroundRepeat:"no-repeat"});
210
+ }
211
+
212
+ if(os=="mac"){$(mopSliderName+" .indi").css({letterSpacing:"0.1em"})};/*foe mac*/
213
+ scrollMax=boxW-mopSliderW;
214
+ scrollNum=scrollMax*0.01;/*0 to100 (box)*/
215
+ sliderNum=(sldW-btnW)*0.01;/*0 to100 (slider)*/
216
+ var holderWidth=(mopSliderW+scrollMax*2);
217
+ $(mopSliderName+" .holder").css({width:holderWidth+"px",height:mopSliderH+px,position:"relative",left:-(scrollMax)+px,cursor:'move'});
218
+ $(mopSliderName+" .holder").children().css({width:boxW+px,left:scrollMax+px});
219
+ $(mopSliderName+" .holder").children().children().css({marginLeft:itemMgn+"px",float:"left",position:"relative"});
220
+ $(mopSliderName+" .sliderCase").css({width:sldW+50+px});
221
+ var sldCaseW=eval($(mopSliderName+" .sliderCase").css("width").split("px")[0]);
222
+ var sliderLeftMgn=(mopSliderW-sldCaseW)/2;
223
+ $(mopSliderName+" .sliderCase").css({left:sliderLeftMgn+px});
224
+ $(mopSliderName+" .slider").css({width:sldW+px});
225
+ $(mopSliderName+" .sliderBtn").css({width:btnW+px});
226
+ /*pngFix*/
227
+ $(this).pngFix();
228
+ $("#mopSlider .sliderCase,#mopSlider .leftTop,#mopSlider .rightTop").pngFix();
229
+ $("#mopSlider .leftBottom,#mopSlider .rightBottom,#mopSlider .logo").pngFix();
230
+ $(mopSliderName+" .indi").html(indication);
231
+ $(mopSliderName).show();
232
+ /*draggable*/
233
+ $(mopSliderName+" .sliderBtn").draggable({
234
+ axis:"x",
235
+ containment:"parent",
236
+ start:function(){
237
+ whitchDrag="btn";
238
+ btnMoveNum=0;
239
+ if(mopSliderNo=="01"){
240
+ DragCheck1=setInterval("mopSliderFunc.DragCheckItv('"+mopSliderNo+"','"+mopSliderName+"','"+whitchDrag+"','"+scrollNum+"','"+boxW+"','"+mopSliderW+"','"+sldW+"','"+btnW+"')",20);
241
+ timeCheck1=setInterval("mopSliderFunc.timeCheckItv('"+mopSliderName+"','"+whitchDrag+"')",50);/*finalMove speed*/
242
+ }
243
+ else if(mopSliderNo=="02"){
244
+ timeCheck2=setInterval("mopSliderFunc.timeCheckItv('"+mopSliderName+"','"+whitchDrag+"')",50);/*finalMove speed*/
245
+ DragCheck2=setInterval("mopSliderFunc.DragCheckItv('"+mopSliderNo+"','"+mopSliderName+"','"+whitchDrag+"','"+scrollNum+"','"+boxW+"','"+mopSliderW+"','"+sldW+"','"+btnW+"')",20);
246
+ }
247
+ },
248
+ drag:function(){},
249
+ stop:function(){
250
+ clearInterval(DragCheck1);
251
+ clearInterval(DragCheck2);
252
+ mopSliderFunc.finalMove(mopSliderName,whitchDrag,sldW,btnW,scrollNum,boxW,mopSliderW);
253
+ }
254
+ });
255
+ $(mopSliderName+" .holder").children().draggable({
256
+ axis:"x",
257
+ containment:"parent",
258
+ start:function(){
259
+ whitchDrag="holder";
260
+ boxMoveNum=0;
261
+ if(mopSliderNo=="01"){
262
+ timeCheck1=setInterval("mopSliderFunc.timeCheckItv()",50);
263
+ DragCheck1=setInterval("mopSliderFunc.DragCheckItv('"+mopSliderNo+"','"+mopSliderName+"','"+whitchDrag+"','"+scrollNum+"','"+boxW+"','"+mopSliderW+"','"+sldW+"','"+btnW+"')",20);
264
+ }
265
+ else if(mopSliderNo=="02"){
266
+ timeCheck2=setInterval("mopSliderFunc.timeCheckItv()",50);
267
+ DragCheck2=setInterval("mopSliderFunc.DragCheckItv('"+mopSliderNo+"','"+mopSliderName+"','"+whitchDrag+"','"+scrollNum+"','"+boxW+"','"+mopSliderW+"','"+sldW+"','"+btnW+"')",20);
268
+ }
269
+
270
+ },
271
+ drag:function(){},
272
+ stop:function(){
273
+ clearInterval(DragCheck1);
274
+ clearInterval(DragCheck2);
275
+ mopSliderFunc.finalMove(mopSliderName,whitchDrag,sldW,btnW,scrollNum,boxW,mopSliderW);
276
+ }
277
+ });
278
+ $("#mopSlider .sliderBtn").mousedown(
279
+ function(){
280
+ clearInterval(timeCheck1);
281
+ clearInterval(timeCheck2);
282
+ clearInterval(finalTime1);
283
+ clearInterval(finalTime2);
284
+ }
285
+ );
286
+ $("#mopSlider .holder").children().mousedown(
287
+ function(){
288
+ clearInterval(timeCheck1);
289
+ clearInterval(timeCheck2);
290
+ clearInterval(finalTime1);
291
+ clearInterval(finalTime2);
292
+ }
293
+ );
294
+ $(mopSliderName+" .sliderCaseRight").mouseover(
295
+ function(){
296
+ btnPosi=eval($(mopSliderName+" .sliderBtn").css("left").split("px")[0]);
297
+ if(btnPosi!=0){
298
+ $(mopSliderName+" .sliderCaseRight").css({cursor:"pointer"});
299
+ if(browser!="ie6"){
300
+ $(mopSliderName+" .sliderCaseRight").css({backgroundImage:"url("+btnChangeF.src+")"});
301
+ }
302
+ }else{
303
+ $(mopSliderName+" .sliderCaseRight").css({cursor:""});
304
+ }
305
+ }
306
+ );
307
+ $(mopSliderName+" .sliderCaseRight").mouseout(
308
+ function(){
309
+ if(browser!="ie6"){
310
+ $(mopSliderName+" .sliderCaseRight").css({backgroundImage:"url("+btnChange.src+")"});
311
+ }
312
+ }
313
+ );
314
+ $(mopSliderName+" .sliderCaseRight").click(
315
+ function(){
316
+ btnPosi=eval($(mopSliderName+" .sliderBtn").css("left").split("px")[0]);
317
+ if(btnPosi!=0){
318
+ if(browser!="ie6"){
319
+ $(mopSliderName+" .sldBtnLeft").css({backgroundImage:"url("+btnLeftF.src+")"});
320
+ $(mopSliderName+" .sldBtnRight").css({backgroundImage:"url("+btnRightF.src+")"});
321
+ }
322
+ }
323
+ $(mopSliderName+" .sliderBtn").animate({left:"0px"},{duration:"1000",easing:"linear",complete:function (){complate()}});
324
+ $(mopSliderName+" .holder").children().animate({left:scrollMax+px},{duration:"1000",easing:"linear",complete:function (){complate()}});
325
+ }
326
+ );
327
+ var complate=function(){
328
+ if(browser!="ie6"){
329
+ $(mopSliderName+" .sldBtnLeft").css({backgroundImage:"url("+btnLeft.src+")"});
330
+ $(mopSliderName+" .sldBtnRight").css({backgroundImage:"url("+btnRight.src+")"});
331
+ $(mopSliderName+" .sliderCaseRight").css({backgroundImage:"url("+btnChange.src+")"});
332
+ }
333
+ }
334
+ mopSliderFunc={
335
+ DragCheckItv:function(mopSliderNo,mopSliderName,whitchDrag,scrollNum,boxW,mopSliderW,sldW,btnW){
336
+ scrollMax=boxW-mopSliderW;
337
+ sliderNum=(sldW-btnW)*0.01;
338
+ var btnPosiPx=$(mopSliderName+" .sliderBtn").css("left");
339
+ var boxPosiPx=$(mopSliderName+" .holder").children().css("left");
340
+ btnPosi=eval(btnPosiPx.split("px")[0]);
341
+ boxPosi=eval(boxPosiPx.split("px")[0]);
342
+ var sliderNum100=btnPosi/sliderNum;
343
+ var boxPosi0=-(boxPosi-scrollMax);
344
+ var boxNum=-(boxPosi0/scrollNum);
345
+ if(whitchDrag=="btn"){
346
+ $(mopSliderName+" .holder").children().css({left:-(sliderNum100*scrollNum)+scrollMax+px});
347
+ }else if(whitchDrag=="holder"){
348
+ $(mopSliderName+" .sliderBtn").css({left:-(boxNum*sliderNum)+px});
349
+ };
350
+ },
351
+ timeCheckItv:function(mopSliderName,whitchDrag){
352
+ btnPast=btnPosi;
353
+ boxPast=boxPosi;
354
+ },
355
+ finalMove:function(mopSliderName,whitchDrag,sldW,btnW,scrollNum,boxW,mopSliderW){
356
+ finalCount=0;
357
+ if((btnPosi!=undefined)&&(btnPast!=undefined)){
358
+ btnMoveNumStart=btnPosi-btnPast;
359
+ boxMoveNumStart=boxPosi-boxPast;
360
+ if(mopSliderName=="#mopSlider01"){
361
+ finalTime1=setInterval("mopSliderFunc.finalTimeItv('"+mopSliderName+"','"+whitchDrag+"','"+btnMoveNumStart+"','"+boxMoveNumStart+"','"+sldW+"','"+btnW+"','"+scrollNum+"','"+boxW+"','"+mopSliderW+"')",50);/*last slip move*/
362
+ }
363
+ if(mopSliderName=="#mopSlider02"){
364
+ finalTime2=setInterval("mopSliderFunc.finalTimeItv('"+mopSliderName+"','"+whitchDrag+"','"+btnMoveNumStart+"','"+boxMoveNumStart+"','"+sldW+"','"+btnW+"','"+scrollNum+"','"+boxW+"','"+mopSliderW+"')",50);/*last slip move*/
365
+ }
366
+ }
367
+ },
368
+ finalTimeItv:function(mopSliderName,whitchDrag,btnMoveNumStart,boxMoveNumStart,sldW,btnW,scrollNum,boxW,mopSliderW){
369
+ finalCount+=1;
370
+ if(finalCount==1){
371
+ btnMoveNum=btnMoveNumStart;
372
+ boxMoveNum=boxMoveNumStart;
373
+ mopSliderNameTemp=mopSliderName;
374
+ }
375
+ btnPosi=eval($(mopSliderNameTemp+" .sliderBtn").css("left").split("px")[0]);
376
+ boxPosi=eval($(mopSliderNameTemp+" .holder").children().css("left").split("px")[0]);
377
+ if(whitchDrag=="btn"){
378
+ if((btnMoveNum<0.1)&&(btnMoveNum>-0.1)){
379
+ btnMoveNum=0;
380
+ }else{
381
+ if(browser=="ie6"){
382
+ btnMoveNum=btnMoveNum/1.75;
383
+ }else{
384
+ btnMoveNum=btnMoveNum/1.5;
385
+ }
386
+ }
387
+ btnMoveTo=btnMoveNum+btnPosi;
388
+ if(btnMoveTo>(sldW-btnW)){
389
+ btnMoveTo=sldW-btnW;
390
+ }else if(btnMoveTo<0){
391
+ btnMoveTo=0;
392
+ };
393
+ $(mopSliderNameTemp+" .sliderBtn").css({left:btnMoveTo+px});
394
+ /*set btnPast*/
395
+ btnPast=btnMoveTo;
396
+
397
+ if(btnMoveNum==0){
398
+ clearInterval(finalTime1);
399
+ clearInterval(finalTime2);
400
+ }
401
+ mopSliderFunc.checkFinal(mopSliderName,whitchDrag,sldW,btnW,scrollNum,boxW,mopSliderW);
402
+ }
403
+ else if(whitchDrag=="holder"){
404
+ if((boxMoveNum<1)&&(boxMoveNum>-1)){
405
+ boxMoveNum=0;
406
+ }else{
407
+ if(browser=="ie6"){
408
+ boxMoveNum=boxMoveNum/1.75;
409
+ }else{
410
+ boxMoveNum=boxMoveNum/1.5;
411
+ }
412
+ }
413
+ boxMoveTo=boxMoveNum+boxPosi;
414
+ if(boxMoveTo>scrollMax){
415
+ boxMoveTo=scrollMax;
416
+ }else if(boxMoveTo<0){
417
+ boxMoveTo=0;
418
+ };
419
+ $(mopSliderNameTemp+" .holder").children().css({left:boxMoveTo+px});
420
+ /*set boxPast*/
421
+ boxPast=boxMoveTo;
422
+ if(boxMoveNum==0){
423
+ clearInterval(finalTime1);
424
+ clearInterval(finalTime2);
425
+ }
426
+ mopSliderFunc.checkFinal(mopSliderName,whitchDrag,sldW,btnW,scrollNum,boxW,mopSliderW);
427
+ }
428
+ },
429
+ checkFinal:function(mopSliderName,whitchDrag,sldW,btnW,scrollNum,boxW,mopSliderW){
430
+ btnPosi=eval($(mopSliderName+" .sliderBtn").css("left").split("px")[0]);
431
+ boxPosi=eval($(mopSliderName+" .holder").children().css("left").split("px")[0]);
432
+ var sliderNum100=btnPosi/sliderNum;
433
+ var boxPosi0=-(boxPosi-scrollMax);
434
+ var boxNum=-(boxPosi0/scrollNum);
435
+ if(whitchDrag=="btn"){
436
+ $(mopSliderName+" .holder").children().css({left:-(sliderNum100*scrollNum)+scrollMax+px});
437
+ }else if(whitchDrag=="holder"){
438
+ $(mopSliderName+" .sliderBtn").css({left:-(boxNum*sliderNum)+px});
439
+ };
440
+ }/*end mopSliderFunc*/
441
+ }
442
+ }
443
+ });
skin/frontend/default/default/coolsocial/mopSlider/paperBack.gif ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/paperBack.jpg ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBack.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeft.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeftLeft.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeftLeftW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackLeftW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackRight.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRight.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRightW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRightW_f.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightRight_f.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackRightW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBackW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtn.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeft.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeftW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeftW_f.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnLeft_f.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRight.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRightW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRightW_f.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnRight_f.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderBtnW.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_leftBottom.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_leftTop.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_rightBottom.png ADDED
Binary file
skin/frontend/default/default/coolsocial/mopSlider/sliderCorner_rightTop.png ADDED
Binary file
skin/frontend/default/default/coolsocial/pngFix/blank.gif ADDED
Binary file
skin/frontend/default/default/coolsocial/pngFix/jquery.pngFix.js ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * --------------------------------------------------------------------
3
+ * jQuery-Plugin "pngFix"
4
+ * Version: 1.2, 09.03.2009
5
+ * by Andreas Eberhard, andreas.eberhard@gmail.com
6
+ * http://jquery.andreaseberhard.de/
7
+ *
8
+ * Copyright (c) 2007 Andreas Eberhard
9
+ * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
10
+ *
11
+ * Changelog:
12
+ * 09.03.2009 Version 1.2
13
+ * - Update for jQuery 1.3.x, removed @ from selectors
14
+ * 11.09.2007 Version 1.1
15
+ * - removed noConflict
16
+ * - added png-support for input type=image
17
+ * - 01.08.2007 CSS background-image support extension added by Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com
18
+ * 31.05.2007 initial Version 1.0
19
+ * --------------------------------------------------------------------
20
+ * @example $(function(){$(document).pngFix();});
21
+ * @desc Fixes all PNG's in the document on document.ready
22
+ *
23
+ * jQuery(function(){jQuery(document).pngFix();});
24
+ * @desc Fixes all PNG's in the document on document.ready when using noConflict
25
+ *
26
+ * @example $(function(){$('div.examples').pngFix();});
27
+ * @desc Fixes all PNG's within div with class examples
28
+ *
29
+ * @example $(function(){$('div.examples').pngFix( { blankgif:'ext.gif' } );});
30
+ * @desc Fixes all PNG's within div with class examples, provides blank gif for input with png
31
+ * --------------------------------------------------------------------
32
+ */
33
+
34
+ (function($) {
35
+
36
+ jQuery.fn.pngFix = function(settings) {
37
+
38
+ // Settings
39
+ settings = jQuery.extend({
40
+ blankgif: 'pngFix/blank.gif'
41
+ }, settings);
42
+
43
+ var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
44
+ var ie6 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);
45
+
46
+ if (jQuery.browser.msie && (ie55 || ie6)) {
47
+
48
+ //fix images with png-source
49
+ jQuery(this).find("img[src$=.png]").each(function() {
50
+
51
+ jQuery(this).attr('width',jQuery(this).width());
52
+ jQuery(this).attr('height',jQuery(this).height());
53
+
54
+ var prevStyle = '';
55
+ var strNewHTML = '';
56
+ var imgId = (jQuery(this).attr('id')) ? 'id="' + jQuery(this).attr('id') + '" ' : '';
57
+ var imgClass = (jQuery(this).attr('class')) ? 'class="' + jQuery(this).attr('class') + '" ' : '';
58
+ var imgTitle = (jQuery(this).attr('title')) ? 'title="' + jQuery(this).attr('title') + '" ' : '';
59
+ var imgAlt = (jQuery(this).attr('alt')) ? 'alt="' + jQuery(this).attr('alt') + '" ' : '';
60
+ var imgAlign = (jQuery(this).attr('align')) ? 'float:' + jQuery(this).attr('align') + ';' : '';
61
+ var imgHand = (jQuery(this).parent().attr('href')) ? 'cursor:hand;' : '';
62
+ if (this.style.border) {
63
+ prevStyle += 'border:'+this.style.border+';';
64
+ this.style.border = '';
65
+ }
66
+ if (this.style.padding) {
67
+ prevStyle += 'padding:'+this.style.padding+';';
68
+ this.style.padding = '';
69
+ }
70
+ if (this.style.margin) {
71
+ prevStyle += 'margin:'+this.style.margin+';';
72
+ this.style.margin = '';
73
+ }
74
+ var imgStyle = (this.style.cssText);
75
+
76
+ strNewHTML += '<span '+imgId+imgClass+imgTitle+imgAlt;
77
+ strNewHTML += 'style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+imgAlign+imgHand;
78
+ strNewHTML += 'width:' + jQuery(this).width() + 'px;' + 'height:' + jQuery(this).height() + 'px;';
79
+ strNewHTML += 'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader' + '(src=\'' + jQuery(this).attr('src') + '\', sizingMethod=\'scale\');';
80
+ strNewHTML += imgStyle+'"></span>';
81
+ if (prevStyle != ''){
82
+ strNewHTML = '<span style="position:relative;display:inline-block;'+prevStyle+imgHand+'width:' + jQuery(this).width() + 'px;' + 'height:' + jQuery(this).height() + 'px;'+'">' + strNewHTML + '</span>';
83
+ }
84
+
85
+ jQuery(this).hide();
86
+ jQuery(this).after(strNewHTML);
87
+
88
+ });
89
+
90
+ // fix css background pngs
91
+ jQuery(this).find("*").each(function(){
92
+ var bgIMG = jQuery(this).css('background-image');
93
+ if(bgIMG.indexOf(".png")!=-1){
94
+ var iebg = bgIMG.split('url("')[1].split('")')[0];
95
+ jQuery(this).css('background-image', 'none');
96
+ jQuery(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + iebg + "',sizingMethod='scale')";
97
+ }
98
+ });
99
+
100
+ //fix input with png-source
101
+ jQuery(this).find("input[src$=.png]").each(function() {
102
+ var bgIMG = jQuery(this).attr('src');
103
+ jQuery(this).get(0).runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader' + '(src=\'' + bgIMG + '\', sizingMethod=\'scale\');';
104
+ jQuery(this).attr('src', settings.blankgif)
105
+ });
106
+
107
+ }
108
+
109
+ return jQuery;
110
+
111
+ };
112
+
113
+ })(jQuery);
skin/frontend/default/default/coolsocial/script.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var $j = jQuery.noConflict();
2
+ $j(document).ready(function(){
3
+ /* This code is run on page load */
4
+
5
+ var deg=0;
6
+ var dif=-3;
7
+
8
+ /* Assigning the buttons to a variable for speed: */
9
+ var arr = $j('.btn');
10
+
11
+ /* Storing the length of the array in a viriable: */
12
+ var len = arr.length;
13
+
14
+ /* Finding the centers of the animation container: */
15
+ var centerX = $j('#stage').width()/2 - 40;
16
+ var centerY = $j('#stage').height()/2 - 60;
17
+
18
+ /* Applying relative positioning to the buttons: */
19
+ arr.css('position','absolute');
20
+
21
+ /* The function inside the interva is run 25 times a second */
22
+ setInterval(function(){
23
+
24
+ /* This forms an area with no activity in the middle of the stage */
25
+ if(Math.abs(dif)<0.5) return false;
26
+
27
+ /* Increment the degrees: */
28
+ deg+=dif;
29
+
30
+ /* Loop through all the buttons: */
31
+ $j.each(arr,function(i){
32
+
33
+ /* Calculate the sine and cosine */
34
+
35
+ var eSin = Math.sin(((360/len)*i+deg)*Math.PI/180);
36
+ var eCos = Math.cos(((360/len)*i+deg)*Math.PI/180);
37
+
38
+ /* Setting the css properties */
39
+ $j(this).css({
40
+ top:centerY+25*eSin,
41
+ left:centerX+90*eCos,
42
+ opacity:0.8+eSin*0.2,
43
+ zIndex:Math.round(80+eSin*20)
44
+ });
45
+
46
+ })
47
+
48
+ },40);
49
+
50
+ /* Detecting the movements on the mouse and speeding up or reversing the rotation accordingly: */
51
+
52
+ var over=false;
53
+ $j("#stage").mousemove(function(e){
54
+
55
+ if(!this.leftOffset)
56
+ {
57
+ /* This if section is only run the first time the function is executed. */
58
+ this.leftOffset = $j(this).offset().left;
59
+ this.width = $j(this).width();
60
+ }
61
+
62
+ /* If the mouse is over a button, set dif to 0, which stops the animation */
63
+ if(over) dif=0;
64
+ else
65
+ dif = -5+(10*((e.pageX-this.leftOffset)/this.width));
66
+
67
+ /* In the other case calculate the speed according to the X position of the mouse */
68
+ });
69
+
70
+
71
+ /* Detecting whether the mouse is positioned above a share button: */
72
+ $j(".bcontent").hover(
73
+ function(){over=true;dif=0;},
74
+ function(){over=false;}
75
+ );
76
+ });