Version Notes
Public Release
Meet your customers' friends in 5 minutes
Download this release
Release Info
Developer | Magento Core Team |
Extension | Eyemagine_Cloudsponge |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- app/code/local/Eyemagine/Cloudsponge/etc/config.xml +2 -2
- app/design/adminhtml/default/default/template/cloudsponge/system/config/fieldset/hint.phtml +2 -2
- app/design/frontend/base/default/template/cloudsponge/popup.phtml +2 -6
- app/design/frontend/base/default/template/cloudsponge/send.phtml +1 -1
- app/design/frontend/base/default/template/cloudsponge/send_bak.phtml +170 -0
- package.xml +5 -5
- skin/frontend/base/default/images/cloudsponge/loading_big.gif +0 -0
- skin/frontend/base/default/js/cloudsponge.js +16 -32
app/code/local/Eyemagine/Cloudsponge/etc/config.xml
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
<config>
|
14 |
<modules>
|
15 |
<Eyemagine_Cloudsponge>
|
16 |
-
<version>
|
17 |
</Eyemagine_Cloudsponge>
|
18 |
</modules>
|
19 |
<frontend>
|
@@ -89,4 +89,4 @@
|
|
89 |
</cloudsponge>
|
90 |
</helpers>
|
91 |
</global>
|
92 |
-
</config>
|
13 |
<config>
|
14 |
<modules>
|
15 |
<Eyemagine_Cloudsponge>
|
16 |
+
<version>0.1.0</version>
|
17 |
</Eyemagine_Cloudsponge>
|
18 |
</modules>
|
19 |
<frontend>
|
89 |
</cloudsponge>
|
90 |
</helpers>
|
91 |
</global>
|
92 |
+
</config>
|
app/design/adminhtml/default/default/template/cloudsponge/system/config/fieldset/hint.phtml
CHANGED
@@ -16,6 +16,6 @@
|
|
16 |
<div class="cloudsponge-notice">
|
17 |
<h4><?php echo Mage::helper('cloudsponge')->__('Cloudsponge enables your customers to easily import their address books to spread the word about your product')?></h4>
|
18 |
<p><?php echo Mage::helper('cloudsponge')->__('Get your own domain key and password by signing up for a 30-day FREE trial')?></p>
|
19 |
-
<p><a href="<?php echo $this->escapeHtml('https://www.cloudsponge.com/product?utm_source=eyemagine&utm_medium=partner&utm_campaign=integrator') ?>"
|
20 |
-
<p><a href="<?php echo $this->escapeHtml($this->getUrl('adminhtml/system_config/edit', array('section' => 'sendfriend'))) ?>"
|
21 |
</div>
|
16 |
<div class="cloudsponge-notice">
|
17 |
<h4><?php echo Mage::helper('cloudsponge')->__('Cloudsponge enables your customers to easily import their address books to spread the word about your product')?></h4>
|
18 |
<p><?php echo Mage::helper('cloudsponge')->__('Get your own domain key and password by signing up for a 30-day FREE trial')?></p>
|
19 |
+
<p><a href="<?php echo $this->escapeHtml('https://www.cloudsponge.com/product?utm_source=eyemagine&utm_medium=partner&utm_campaign=integrator') ?>"><?php echo Mage::helper('cloudsponge')->__('View CloudSponge solutions')?></a></p>
|
20 |
+
<p><a href="<?php echo $this->escapeHtml($this->getUrl('adminhtml/system_config/edit', array('section' => 'sendfriend'))) ?>"><?php echo Mage::helper('cloudsponge')->__('Increase maximum Email To Friend recipients')?></a></p>
|
21 |
</div>
|
app/design/frontend/base/default/template/cloudsponge/popup.phtml
CHANGED
@@ -23,18 +23,14 @@ if (!empty($appletTag)) {
|
|
23 |
}
|
24 |
?>
|
25 |
|
26 |
-
<div align="center">
|
27 |
-
<img src="<?php echo $this->getSkinUrl('images/cloudsponge/loading_big.gif'); ?>" alt="Loading..">
|
28 |
-
<br />
|
29 |
-
<?php echo $this->__('Loading...'); ?>
|
30 |
-
</div>
|
31 |
-
|
32 |
<script type="text/javascript">
|
33 |
//<![CDATA[
|
34 |
// redirect the popup to the appropriate url
|
35 |
<?php if (isset($consentUrl)): ?>
|
36 |
this.location = '<?php echo $consentUrl ?>';
|
37 |
<?php endif; ?>
|
|
|
|
|
38 |
//]]>
|
39 |
</script>
|
40 |
|
23 |
}
|
24 |
?>
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<script type="text/javascript">
|
27 |
//<![CDATA[
|
28 |
// redirect the popup to the appropriate url
|
29 |
<?php if (isset($consentUrl)): ?>
|
30 |
this.location = '<?php echo $consentUrl ?>';
|
31 |
<?php endif; ?>
|
32 |
+
|
33 |
+
//setInterval('getErrorMessage()', 1000);
|
34 |
//]]>
|
35 |
</script>
|
36 |
|
app/design/frontend/base/default/template/cloudsponge/send.phtml
CHANGED
@@ -191,7 +191,7 @@
|
|
191 |
</div>
|
192 |
<?php endif; ?>
|
193 |
|
194 |
-
<div class="fieldset"
|
195 |
<h2 class="legend"><?php echo $this->__('Recipient:') ?></h2>
|
196 |
<ul class="form-list" id="recipients_options">
|
197 |
<li class="fields">
|
191 |
</div>
|
192 |
<?php endif; ?>
|
193 |
|
194 |
+
<div class="fieldset">
|
195 |
<h2 class="legend"><?php echo $this->__('Recipient:') ?></h2>
|
196 |
<ul class="form-list" id="recipients_options">
|
197 |
<li class="fields">
|
app/design/frontend/base/default/template/cloudsponge/send_bak.phtml
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* EYEMAGINE
|
4 |
+
*
|
5 |
+
* @category design
|
6 |
+
* @package base_default
|
7 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
8 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
9 |
+
*/
|
10 |
+
/* @var $this Mage_Sendfriend_Block_Send */
|
11 |
+
/**
|
12 |
+
* Send to friend form
|
13 |
+
*
|
14 |
+
* @see Mage_Sendfriend_Block_Send
|
15 |
+
*/
|
16 |
+
|
17 |
+
Mage::register('cloudsponge_product_id', $this->getRequest()->getParam('id'));
|
18 |
+
echo Mage::registry('cloudsponge_import_id');
|
19 |
+
?>
|
20 |
+
<script type="text/javascript">
|
21 |
+
//<![CDATA[
|
22 |
+
i=0;
|
23 |
+
var recipCount = 1;
|
24 |
+
var maxRecip = <?php echo $this->getMaxRecipients() ?>;
|
25 |
+
function remove_recipient(i){
|
26 |
+
$('recipients_name'+i).up(2).remove();
|
27 |
+
recipCount--;
|
28 |
+
if(recipCount<maxRecip && maxRecip != 0) {
|
29 |
+
$('add_recipient_button').show();
|
30 |
+
$('max_recipient_message').hide();
|
31 |
+
}
|
32 |
+
return false;
|
33 |
+
}
|
34 |
+
|
35 |
+
function add_recipient(){
|
36 |
+
ul = $('recipients_options');
|
37 |
+
var li_mail = Element.extend(document.createElement("LI"));
|
38 |
+
li_mail.addClassName('fields additional-row');
|
39 |
+
li_mail.innerHTML = '<p><a href="delete_email" title="<?php echo $this->__('Remove Email') ?>" onclick="remove_recipient('+i+'); return false" class="btn-remove"><?php echo $this->__('Remove Email') ?>"<\/a><\/p>'
|
40 |
+
li_mail.innerHTML += '<div class="field"><label for="recipients_name'+i+'" class="required"><em>*<\/em><?php echo $this->__('Name:') ?><\/label><div class="input-box"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" /><\/div>';
|
41 |
+
li_mail.innerHTML += '<div class="field"><label for="recipients_email'+i+'" class="required"><em>*<\/em><?php echo $this->__('Email Address:') ?><\/label><div class="input-box"><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" /><\/div><\/div>';
|
42 |
+
i++;
|
43 |
+
recipCount++;
|
44 |
+
if(recipCount>=maxRecip && maxRecip != 0) {
|
45 |
+
$('add_recipient_button').hide();
|
46 |
+
$('max_recipient_message').show();
|
47 |
+
}
|
48 |
+
|
49 |
+
ul.appendChild(li_mail);
|
50 |
+
}
|
51 |
+
//]]>
|
52 |
+
</script>
|
53 |
+
|
54 |
+
<div class="send-friend">
|
55 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
56 |
+
<div class="page-title">
|
57 |
+
<h1><?php echo $this->__('Email to a Friend') ?></h1>
|
58 |
+
</div>
|
59 |
+
<form action="<?php echo $this->getSendUrl() ?>" method="post" id="product_sendtofriend_form">
|
60 |
+
<div class="fieldset">
|
61 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
62 |
+
<h2 class="legend"><?php echo $this->__('Sender:') ?></h2>
|
63 |
+
<ul class="form-list" id="sender_options">
|
64 |
+
<li class="fields">
|
65 |
+
<div class="field">
|
66 |
+
<label for="sender_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
|
67 |
+
<div class="input-box">
|
68 |
+
<input name="sender[name]" value="<?php echo $this->htmlEscape($this->getUserName()) ?>" title="<?php echo $this->__('Name') ?>" id="sender_name" type="text" class="input-text required-entry" />
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<div class="field">
|
72 |
+
<label for="sender_email" class="required"><em>*</em><?php echo $this->__('Email:') ?></label>
|
73 |
+
<div class="input-box">
|
74 |
+
<input name="sender[email]" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" />
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</li>
|
78 |
+
<li class="wide">
|
79 |
+
<label for="sender_message" class="required"><em>*</em><?php echo $this->__('Message:') ?></label>
|
80 |
+
<div class="input-box">
|
81 |
+
<textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3"><?php echo $this->htmlEscape($this->getMessage())?></textarea>
|
82 |
+
</div>
|
83 |
+
</li>
|
84 |
+
</ul>
|
85 |
+
</div>
|
86 |
+
|
87 |
+
<div class="fieldset">
|
88 |
+
<h2 class="legend"><?php echo $this->__('Import:') ?></h2>
|
89 |
+
<ul class="form-list" id="import_options">
|
90 |
+
<li class="fields">
|
91 |
+
<div class="wide">
|
92 |
+
<ul class="import_sources">
|
93 |
+
<li>
|
94 |
+
<a href="#" onclick="importYahoo();return false;"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/yahoo.png')?>" alt="<?php echo $this->__('Yahoo!'); ?>" /></a>
|
95 |
+
<a href="#" onclick="importYahoo();return false;"><?php echo $this->__('Yahoo!'); ?></a>
|
96 |
+
</li>
|
97 |
+
<li>
|
98 |
+
<a href="#" onclick="importMSN();return false;" id="cloudsponge_msn" class="cloudsponge_msn"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/msn.png')?>" alt="<?php echo $this->__('MSN'); ?>" /></a>
|
99 |
+
<span>
|
100 |
+
<a href="#" onclick="importMSN();return false;"><?php echo $this->__('Windows Live') ?></a>
|
101 |
+
<a href="#" onclick="importMSN();return false;"><?php echo $this->__('Hotmail') ?></a>
|
102 |
+
<a href="#" onclick="importMSN();return false;"><?php echo $this->__('MSN') ?></a>
|
103 |
+
</span>
|
104 |
+
</li>
|
105 |
+
<li>
|
106 |
+
<a href="#" onclick="importGmail();return false;" id="cloudsponge_gmail" class="cloudsponge_gmail"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/google.png')?>" alt="<?php echo $this->__('Gmail'); ?>" /></a>
|
107 |
+
<span><a href="#"><?php echo $this->__('Gmail'); ?></a></span>
|
108 |
+
</li>
|
109 |
+
<li>
|
110 |
+
<a href="#" onclick="importAOL();return false;" id="cloudsponge_aol" class="cloudsponge_aol"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/aol.png')?>" alt="<?php echo $this->__('AOL'); ?>" /></a>
|
111 |
+
<span><a href="#"><?php echo $this->__('AOL'); ?></a></span>
|
112 |
+
</li>
|
113 |
+
<li>
|
114 |
+
<a href="#" onclick="importPlaxo();return false;" id="cloudsponge_plaxo" class="cloudsponge_plaxo"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/plaxo.jpeg')?>" alt="<?php echo $this->__('Plaxo'); ?>" /></a>
|
115 |
+
<span><a href="#"><?php echo $this->__('Plaxo'); ?></a></span>
|
116 |
+
</li>
|
117 |
+
<li>
|
118 |
+
<a href="#" onclick="importApple();return false;" id="cloudsponge_apple" class="cloudsponge_apple"><img src="<?php echo $this->getSkinUrl('images/cloudsponge/apple.png')?>" alt="<?php echo $this->__('Mac OS X Address Book'); ?>" /></a>
|
119 |
+
<span><a href="#"><?php echo $this->__('Mac OS X Address Book'); ?></a></span>
|
120 |
+
</li>
|
121 |
+
</ul>
|
122 |
+
</div>
|
123 |
+
</li>
|
124 |
+
</ul>
|
125 |
+
</div>
|
126 |
+
<div class="fieldset">
|
127 |
+
<h2 class="legend"><?php echo $this->__('Recipient:') ?> <div id="import_loader" style="display: none"><img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>"></div></h2>
|
128 |
+
<ul class="form-list" id="recipients_options">
|
129 |
+
<li class="fields">
|
130 |
+
<div class="field">
|
131 |
+
<label for="recipients_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
|
132 |
+
<div class="input-box">
|
133 |
+
<input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" />
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
<div class="field">
|
137 |
+
<label for="recipients_email" class="required"><em>*</em><?php echo $this->__('Email Address:') ?></label>
|
138 |
+
<div class="input-box">
|
139 |
+
<input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" />
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</li>
|
143 |
+
</ul>
|
144 |
+
</div>
|
145 |
+
<div class="buttons-set">
|
146 |
+
<p class="back-link"><a href="#" onclick="history.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
147 |
+
<button type="submit" class="button<?php if (!$this->canSend()):?> disabled<?php endif ?>"<?php if (!$this->canSend()):?> disabled="disabled"<?php endif ?>><span><span><?php echo $this->__('Send Email') ?></span></span></button>
|
148 |
+
<div id="max_recipient_message" style="display:none;">
|
149 |
+
<?php if ($this->getMaxRecipients()): ?>
|
150 |
+
<p class="limit"><?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?></p>
|
151 |
+
<?php endif; ?>
|
152 |
+
</div>
|
153 |
+
<?php if (1 < $this->getMaxRecipients()): ?>
|
154 |
+
<p id="add_recipient_button">
|
155 |
+
<button type="button" onclick="add_recipient();" class="button"><span><span><?php echo $this->__('Add Recipient') ?></span></span></button>
|
156 |
+
</p>
|
157 |
+
<?php endif; ?>
|
158 |
+
</div>
|
159 |
+
</form>
|
160 |
+
<script type="text/javascript">
|
161 |
+
//<![CDATA[
|
162 |
+
var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
|
163 |
+
productSendtofriendForm.submit = function() {
|
164 |
+
if(this.validator.validate()) {
|
165 |
+
this.form.submit();
|
166 |
+
}
|
167 |
+
}.bind(productSendtofriendForm);
|
168 |
+
//]]>
|
169 |
+
</script>
|
170 |
+
</div>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eyemagine_Cloudsponge</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -12,13 +12,13 @@
|
|
12 |
With CloudSponge, your users can share your products with friends, coworkers, and family members quickly and efficiently. Manually typing address book contents into a web form is definitely a thing of the past now that CloudSponge allows quick and easy address book import. The true beauty of this integration is that CloudSponge let's your customers import from multiple address book sources, online and locally.
|
13 |
|
14 |
Install CloudSponge today to enhance your Magento store's viral-ness.</description>
|
15 |
-
<notes>Public
|
16 |
|
17 |
Meet your customers' friends in 5 minutes</notes>
|
18 |
<authors><author><name>EYEMAGINE</name><user>auto-converted</user><email>magento@eyemaginetech.com</email></author></authors>
|
19 |
-
<date>2011-12-
|
20 |
-
<time>
|
21 |
-
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="cloudsponge.png" hash="47c4cbdad77f340482d802fd9d8680f9"/></dir><file name="cloudsponge.css" hash="79c180061bb939ddc9854123ba873d4e"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="cloudsponge.css" hash="46f8cfea2e8035801d86ed4391044d29"/></dir><dir name="images"><dir name="cloudsponge"><file name="aol.png" hash="0e3e34ebf79279737c0276b48ec76d99"/><file name="apple.png" hash="8927def4c9e62088f4cc8e2c6f08d50e"/><file name="bkg_block-title.gif" hash="f8c1f130ad69464fe7aff2f589b2ec75"/><file name="google.png" hash="4eca22513f0aaede4925c2dfe34f7d6c"/><file name="i_address.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="
|
22 |
<compatible/>
|
23 |
<dependencies/>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eyemagine_Cloudsponge</name>
|
4 |
+
<version>2.0.2</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>
|
12 |
With CloudSponge, your users can share your products with friends, coworkers, and family members quickly and efficiently. Manually typing address book contents into a web form is definitely a thing of the past now that CloudSponge allows quick and easy address book import. The true beauty of this integration is that CloudSponge let's your customers import from multiple address book sources, online and locally.
|
13 |
|
14 |
Install CloudSponge today to enhance your Magento store's viral-ness.</description>
|
15 |
+
<notes>Public Release
|
16 |
|
17 |
Meet your customers' friends in 5 minutes</notes>
|
18 |
<authors><author><name>EYEMAGINE</name><user>auto-converted</user><email>magento@eyemaginetech.com</email></author></authors>
|
19 |
+
<date>2011-12-20</date>
|
20 |
+
<time>19:05:15</time>
|
21 |
+
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="cloudsponge.png" hash="47c4cbdad77f340482d802fd9d8680f9"/></dir><file name="cloudsponge.css" hash="79c180061bb939ddc9854123ba873d4e"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="cloudsponge.css" hash="46f8cfea2e8035801d86ed4391044d29"/></dir><dir name="images"><dir name="cloudsponge"><file name="aol.png" hash="0e3e34ebf79279737c0276b48ec76d99"/><file name="apple.png" hash="8927def4c9e62088f4cc8e2c6f08d50e"/><file name="bkg_block-title.gif" hash="f8c1f130ad69464fe7aff2f589b2ec75"/><file name="google.png" hash="4eca22513f0aaede4925c2dfe34f7d6c"/><file name="i_address.gif" hash="52d778dddbf48b8d04226bee9370a7ef"/><file name="msn.png" hash="8f117246b27d3f739f8645849690a1ab"/><file name="plaxo.jpeg" hash="58ce87edfba74e1b598f11c2352496f2"/><file name="searchfield.png" hash="4f5a8499fcaa78aa570b910a8e5367d3"/><file name="yahoo.png" hash="90a3dad399cf3d8366cef56fd9f1d34b"/></dir></dir><dir name="js"><file name="cloudsponge.js" hash="b77049b7073d4ec26e84de99e44db9e5"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cloudsponge.xml" hash="9e0bfec0e2aa8d072c77b5894ec45d28"/></dir><dir name="template"><dir name="cloudsponge"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="ba2d7df0bd457d9771a6dcefe00bb2e0"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cloudsponge.xml" hash="f00b79541b484c7e9bb1a047097f717e"/></dir><dir name="template"><dir name="cloudsponge"><file name="cloudsponge.phtml" hash="05d2ebffe5089ff2f87b23bbdd50def5"/><file name="popup.phtml" hash="1d196915281211a300909c4425d5ea5b"/><file name="send.phtml" hash="399a7ee9999299762f3ed47a2ddab776"/><file name="send_bak.phtml" hash="bbeff9df64f88f91accf0059508aced1"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="cloudsponge"><file name="auth.php" hash="428d4fa3f306eb1cbdcc98a8ec37d821"/><file name="csconstants.php" hash="44f729993893169222a097941d2c72b1"/><file name="csimport.php" hash="b070554d98792a863bd9fbbe11de2bac"/><file name="cstest.php" hash="87e3e22cf4fe34c152091f9c0f79381d"/><file name="popup.php" hash="60cf3647dc75381f804607902012eb66"/><file name="prototype.js" hash="b5684120e496c310977713be34be4868"/><file name="README.txt" hash="f04b70aa6ffac767d606d5632cb39214"/><file name="step_1_start.php" hash="b3a33d4e6b4df7f2fb7aeaaa8b70c86f"/><file name="step_2_events.php" hash="799210ebdc745b22ff25c03640b60ec9"/><file name="step_3_contacts.php" hash="8fe40b6b6799cd755ad34897e4c9c219"/></dir></target><target name="magelocal"><dir name="Eyemagine"><dir name="Cloudsponge"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="d919bb912a412c0e9e8435ea5719acdb"/></dir></dir></dir></dir><file name="Popup.php" hash="ca4b3c768280ef356ec285d550c00ba2"/><file name="Send.php" hash="1876ae4564e6cea636479a216f7b7568"/></dir><dir name="controllers"><file name="IndexController.php" hash="c5234de849af538a70c7a505c5a30444"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fd1283ac35a5a0fdac6b4ba830e7edcd"/><file name="config.xml" hash="66d52779e37668e2bfc0e6fae7e1ae41"/><file name="system.xml" hash="89230125d971f5354395f634edee6e2a"/></dir><dir name="Helper"><file name="Data.php" hash="6cd1d402555574d1ff4df1bdb135502d"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Cloudsponge"><file name="Collection.php" hash="22a6d663b55551f5e70bae506f42acdb"/></dir><file name="Cloudsponge.php" hash="149ce4adc8eb58af0ef165b7239b74d1"/></dir><file name="Cloudsponge.php" hash="340a80d69ff8b5f44cc0b2ceefdae6c1"/></dir><dir name="sql"><dir name="cloudsponge_setup"><file name="mysql4-install-0.1.0.php" hash="6ec1384d43f2f0bbbc2c17bd982d8e68"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eyemagine_Cloudsponge.xml" hash="fee7b0c26af41a8a72de828302686f43"/></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies/>
|
24 |
</package>
|
skin/frontend/base/default/images/cloudsponge/loading_big.gif
DELETED
Binary file
|
skin/frontend/base/default/js/cloudsponge.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
var importContactsFlag = false;
|
2 |
var inputService;
|
3 |
-
var popupWinRef; //
|
4 |
var stopImportTimeCount;
|
5 |
|
6 |
function setEmailAddressCheck() {
|
@@ -41,6 +41,7 @@ function decreaseEmailCounter() {
|
|
41 |
function updateEmailCount() {
|
42 |
countDiv = $('counter_content');
|
43 |
countDiv.innerHTML = counter + " email addresses left";
|
|
|
44 |
}
|
45 |
|
46 |
function disableConfirm(){
|
@@ -87,7 +88,7 @@ function confirmRecipients() {
|
|
87 |
|
88 |
// if no email selected, do nothing
|
89 |
if (selectedEmails == 0) {
|
90 |
-
// alert("No email selected, Please check at least one email
|
91 |
return;
|
92 |
}
|
93 |
|
@@ -161,8 +162,6 @@ function confirmRecipients() {
|
|
161 |
|
162 |
// do not hide once confirm the email list
|
163 |
///hideAddressRecords();
|
164 |
-
|
165 |
-
$('recipients').scrollTo();
|
166 |
}
|
167 |
|
168 |
function filterAddressRecords (evt) {
|
@@ -201,35 +200,30 @@ function importAOL (evt) {
|
|
201 |
};
|
202 |
|
203 |
function importApple (evt) {
|
204 |
-
|
205 |
-
var apple_iframe = $('apple-iframe');
|
206 |
-
|
207 |
if (!apple_iframe) {
|
208 |
ifrm = document.createElement("IFRAME");
|
209 |
ifrm.setAttribute("id", "apple-iframe");
|
210 |
ifrm.setAttribute("src", "/cloudsponge/index/popup/service/addressbook");
|
211 |
-
ifrm.setAttribute("style", "position: absolute; top:
|
212 |
-
ifrm.style.width =
|
213 |
-
ifrm.style.height =
|
214 |
document.body.appendChild(ifrm);
|
215 |
-
} else {
|
216 |
-
apple_iframe.setStyle('display:block');
|
217 |
}
|
218 |
-
|
219 |
-
|
220 |
-
|
|
|
|
|
221 |
apple_iframe.width = "500px";
|
222 |
apple_iframe.height = "500px";
|
223 |
apple_iframe.src = '/cloudsponge/index/popup/service/addressbook';
|
224 |
|
225 |
-
|
226 |
-
*/
|
227 |
-
|
228 |
var popUpUrl = '/cloudsponge/index/popup/service/addressbook';
|
229 |
this.popUp = window.open(popUpUrl, 'import', 'width=500,height=300,resizable=yes,scrollbars=yes');
|
230 |
popupWinRef = this.popUp;
|
231 |
window.focus();
|
232 |
-
|
233 |
$('import_loader').setStyle('display:inline');
|
234 |
startImport();
|
235 |
Event.stop(evt);
|
@@ -366,9 +360,7 @@ function startImport() {
|
|
366 |
clearTimeout(stopImportTimeCount);
|
367 |
}
|
368 |
|
369 |
-
if ($('cloudsponge_message'))
|
370 |
-
$('cloudsponge_message').setStyle('display:none');
|
371 |
-
}
|
372 |
getJSONData();
|
373 |
getErrorMessage();
|
374 |
// set timeout handler
|
@@ -376,21 +368,18 @@ function startImport() {
|
|
376 |
}
|
377 |
|
378 |
function stopImport() {
|
379 |
-
|
380 |
importContactsFlag = false;
|
381 |
-
|
382 |
-
// stop the timer
|
383 |
if (undefined != stopImportTimeCount) {
|
384 |
clearTimeout(stopImportTimeCount);
|
385 |
}
|
386 |
-
|
387 |
$('import_loader').hide();
|
388 |
|
389 |
if ($('apple-iframe')) {
|
390 |
$('apple-iframe').setStyle('display:none');
|
391 |
}
|
392 |
|
393 |
-
// check if the popup window still
|
394 |
if (undefined != popupWinRef) {
|
395 |
popupWinRef.close();
|
396 |
}
|
@@ -585,11 +574,6 @@ Event.observe(window, 'load', function() {
|
|
585 |
Event.observe(element, 'click', importApple);
|
586 |
});
|
587 |
|
588 |
-
// hide the Apple importer link if the client OS is not OS/X
|
589 |
-
if (navigator.userAgent.indexOf(' Mac ') == -1) {
|
590 |
-
$('cloudsponge_apple').setStyle('display:none');
|
591 |
-
}
|
592 |
-
|
593 |
$$('.userpassword_submit').each(function(element){
|
594 |
Event.observe(element, 'click', importUserPassword);
|
595 |
});
|
1 |
var importContactsFlag = false;
|
2 |
var inputService;
|
3 |
+
var popupWinRef; //get popup window reference
|
4 |
var stopImportTimeCount;
|
5 |
|
6 |
function setEmailAddressCheck() {
|
41 |
function updateEmailCount() {
|
42 |
countDiv = $('counter_content');
|
43 |
countDiv.innerHTML = counter + " email addresses left";
|
44 |
+
// $('cloudsponge_emailcounter').invoke('show');
|
45 |
}
|
46 |
|
47 |
function disableConfirm(){
|
88 |
|
89 |
// if no email selected, do nothing
|
90 |
if (selectedEmails == 0) {
|
91 |
+
// alert("No email selected, Please check at least one email Recipient");
|
92 |
return;
|
93 |
}
|
94 |
|
162 |
|
163 |
// do not hide once confirm the email list
|
164 |
///hideAddressRecords();
|
|
|
|
|
165 |
}
|
166 |
|
167 |
function filterAddressRecords (evt) {
|
200 |
};
|
201 |
|
202 |
function importApple (evt) {
|
203 |
+
/* var apple_iframe = $('apple-iframe');
|
|
|
|
|
204 |
if (!apple_iframe) {
|
205 |
ifrm = document.createElement("IFRAME");
|
206 |
ifrm.setAttribute("id", "apple-iframe");
|
207 |
ifrm.setAttribute("src", "/cloudsponge/index/popup/service/addressbook");
|
208 |
+
ifrm.setAttribute("style", "position: absolute; top:100px; left:300px;");
|
209 |
+
ifrm.style.width = 800+"px";
|
210 |
+
ifrm.style.height = 600+"px";
|
211 |
document.body.appendChild(ifrm);
|
|
|
|
|
212 |
}
|
213 |
+
else {
|
214 |
+
apple_iframe.setStyle('display:block');
|
215 |
+
}*/
|
216 |
+
|
217 |
+
/*var apple_iframe = Element.extend(document.createElement("IFRAME"));
|
218 |
apple_iframe.width = "500px";
|
219 |
apple_iframe.height = "500px";
|
220 |
apple_iframe.src = '/cloudsponge/index/popup/service/addressbook';
|
221 |
|
222 |
+
document.body.appendChild(apple_iframe); */
|
|
|
|
|
223 |
var popUpUrl = '/cloudsponge/index/popup/service/addressbook';
|
224 |
this.popUp = window.open(popUpUrl, 'import', 'width=500,height=300,resizable=yes,scrollbars=yes');
|
225 |
popupWinRef = this.popUp;
|
226 |
window.focus();
|
|
|
227 |
$('import_loader').setStyle('display:inline');
|
228 |
startImport();
|
229 |
Event.stop(evt);
|
360 |
clearTimeout(stopImportTimeCount);
|
361 |
}
|
362 |
|
363 |
+
if ($('cloudsponge_message')) $('cloudsponge_message').setStyle('display:none');
|
|
|
|
|
364 |
getJSONData();
|
365 |
getErrorMessage();
|
366 |
// set timeout handler
|
368 |
}
|
369 |
|
370 |
function stopImport() {
|
|
|
371 |
importContactsFlag = false;
|
372 |
+
// stop the timer,
|
|
|
373 |
if (undefined != stopImportTimeCount) {
|
374 |
clearTimeout(stopImportTimeCount);
|
375 |
}
|
|
|
376 |
$('import_loader').hide();
|
377 |
|
378 |
if ($('apple-iframe')) {
|
379 |
$('apple-iframe').setStyle('display:none');
|
380 |
}
|
381 |
|
382 |
+
// check if the popup window is still exist; close popup window
|
383 |
if (undefined != popupWinRef) {
|
384 |
popupWinRef.close();
|
385 |
}
|
574 |
Event.observe(element, 'click', importApple);
|
575 |
});
|
576 |
|
|
|
|
|
|
|
|
|
|
|
577 |
$$('.userpassword_submit').each(function(element){
|
578 |
Event.observe(element, 'click', importUserPassword);
|
579 |
});
|