Version Notes
The extension is stable. You can sign up for an account immediately after you register. Do let us know if you have any feedback or comments either through our website http://getadvocado.com, or via our email: dax@getadvocado.com
Download this release
Release Info
Developer | SY Quek |
Extension | Advocado |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
app/design/adminhtml/default/default/template/gozolabs/advocado/login.phtml
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/** Login template for Advocado
|
3 |
+
*
|
4 |
+
* @author syquek
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* @var $this GozoLabs_Advocado_Block_Adminhtml_Login
|
8 |
+
* @see GozoLabs_Advocado_Block_Adminhtml_Login
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php
|
12 |
+
echo $this->analyticsScript();
|
13 |
+
?>
|
14 |
+
|
15 |
+
<form id="advoc-vars">
|
16 |
+
<input type="hidden" id="advoc-signup-url" value="<?php echo $this->getSignupUrl(); ?>" />
|
17 |
+
<input type="hidden" id="advoc-magento-auth-url" value="<?php echo $this->advocMagentoLoginUrl(); ?>" />
|
18 |
+
<input type="hidden" id="advoc-dashboard-login-url" value="<?php echo $this->advocadoDashboardLoginUrl(); ?>" />
|
19 |
+
<input type="hidden" id="advoc-magento-register-url" value="<?php echo $this->advocMagentoRegisterURl(); ?>" />
|
20 |
+
</form>
|
21 |
+
<div id="advoc-register-container" style="" class="page-state <?php if ($this->isStoreConnected()) { echo 'hide'; } ?>">
|
22 |
+
<div class="status-container">
|
23 |
+
<div class="welcome-msg">
|
24 |
+
<div class="connect-status clearfix">
|
25 |
+
<span>Your store is <strong>not connected</strong> to the Advocado service. <br />You will need to create a new account or login to your existing account to connect it.</span><br /><br />
|
26 |
+
<ul class="no-bullet small-text flat"><li>» <a href="http://getadvocado.com" target="_blank">Find out more about Advocado</a></li><li>» <a href="mailto:dax@getadvocado.com" target="_blank">Need help?</a> (Mail us at dax@getadvocado.com)</li></ul>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
<div class="advoc-errors hide"></div>
|
31 |
+
<div class="center-form">
|
32 |
+
<div class="advocado-logo"></div>
|
33 |
+
<div class="offset-top">Enter your email address and password to your new account with Advocado.</div>
|
34 |
+
<form method="post" action="<?php echo '#';//$this->processLoginUrl(); ?>" id="advoc-registration-form">
|
35 |
+
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
|
36 |
+
<label for="advoc-username">Email</label>
|
37 |
+
<input id="advoc-username" name="username" type="text" value="<?php echo $this->getAdminEmail(); ?>" />
|
38 |
+
<label for="advoc-password">Password</label>
|
39 |
+
<input id="advoc-password" type="password" name="password" />
|
40 |
+
<div class="hide">
|
41 |
+
<label for="advoc-website-store-group">Website/Store</label>
|
42 |
+
<select id="advoc-website-store-group" name="advoc-website-store-group" class="advoc-website-store-group hide">
|
43 |
+
<?php
|
44 |
+
$wsg = $this->websiteStoreGroups();
|
45 |
+
foreach ($this->websiteStoreGroups() as $wg) {
|
46 |
+
$optionVal = implode( '_', array( $wg['websiteId'], $wg['storeGroupId'] ));
|
47 |
+
$optionPrint = implode( '/', array( $wg['websiteName'], $wg['storeGroupName'] ));
|
48 |
+
echo '<option value="'.$optionVal.'">'.$optionPrint.'</option>';
|
49 |
+
}
|
50 |
+
?>
|
51 |
+
</select>
|
52 |
+
</div>
|
53 |
+
<input type="hidden" id="advoc-site-name" name="site_name" value="<?php echo $this->getSiteName(); ?>" />
|
54 |
+
<input type="hidden" id="advoc-site-url" name="site_url" value="<?php echo $this->getSiteUrl(); ?>" />
|
55 |
+
<input type="hidden" id="advoc-currency-code" name="default_currency_code" value="<?php echo $this->getCurrencyCode(); ?>" />
|
56 |
+
<input type="hidden" id="advoc-site-platform" name="platform" value="Magento" />
|
57 |
+
<input type="submit" value="Create An Account" />
|
58 |
+
<ul id="advoc-login-options">
|
59 |
+
<li>Already have an account? <a href="#" onclick="javascript:window.advocado.loginState();return false;">Log in here.</a></li>
|
60 |
+
</ul>
|
61 |
+
</form>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<div id="advoc-login-container" class="page-state <?php if (!$this->isStoreConnected()) { echo 'hide'; } ?>">
|
65 |
+
<div class="status-container">
|
66 |
+
<div class="welcome-msg">
|
67 |
+
<div class="connect-status">
|
68 |
+
<?php
|
69 |
+
// store should already be connected (i.e. credentials stored in the database)
|
70 |
+
//echo '<span>Your store is <strong>connected</strong> to the Advocado service.</span><br /><span>Log in below to access your Advocado account.</span>';
|
71 |
+
?>
|
72 |
+
<span>Your store is <strong>connected</strong> to the Advocado service.</span><br /><span>Log in to your Advocado account below to manage your campaigns. <br /></span>
|
73 |
+
<ul class="no-bullet small-text flat offset-top">
|
74 |
+
<li>» <a href="http://getadvocado.com" target="_blank">Find out more about Advocado</a></li>
|
75 |
+
<li>» <a target="_blank" href="<?php echo $this->advocadoDashboardUrl(); ?>">Pop out the dashboard</a></li>
|
76 |
+
<li>» <a target="_blank" href="mailto:dax@getadvocado.com">Need help?</a> Mail us at dax@getadvocado.com</li>
|
77 |
+
</ul>
|
78 |
+
</div>
|
79 |
+
<p class="status-message">
|
80 |
+
</p>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<div class="advoc-errors hide"></div>
|
84 |
+
<div class="center-form">
|
85 |
+
<div class="advocado-logo"></div>
|
86 |
+
<form method="post" action="<?php echo '#';//$this->processLoginUrl(); ?>" id="advoc-login-form">
|
87 |
+
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
|
88 |
+
<label for="advoc-username">Username</label>
|
89 |
+
<input id="advoc-username" name="username" type="text" />
|
90 |
+
<label for="advoc-password">Password</label>
|
91 |
+
<input id="advoc-password" name="password" type="password" />
|
92 |
+
<div class="hide">
|
93 |
+
<label for="advoc-website-store-group">Website/Store</label>
|
94 |
+
<select id="advoc-website-store-group" class="advoc-website-store-group" name="advoc-website-store-group">
|
95 |
+
<?php
|
96 |
+
$wsg = $this->websiteStoreGroups();
|
97 |
+
foreach ($this->websiteStoreGroups() as $wg) {
|
98 |
+
$optionVal = implode( '_', array( $wg['websiteId'], $wg['storeGroupId'] ));
|
99 |
+
$optionPrint = implode( '/', array( $wg['websiteName'], $wg['storeGroupName'] ));
|
100 |
+
echo '<option value="'.$optionVal.'">'.$optionPrint.'</option>';
|
101 |
+
}
|
102 |
+
?>
|
103 |
+
</select>
|
104 |
+
</div>
|
105 |
+
<input type="submit" value="Login" />
|
106 |
+
<ul id="advoc-login-options">
|
107 |
+
<li><a target="_blank" href="<?php echo $this->advocadoPasswordResetUrl(); ?>">Forgot your password?</a></li>
|
108 |
+
</ul>
|
109 |
+
</form>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
|
113 |
+
<div id="advoc-dashboard-container-login">
|
114 |
+
</div>
|
115 |
+
<div id="advoc-dashboard-container-dash" style="display:none">
|
116 |
+
</div>
|
117 |
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
118 |
+
<!-- <script src="//advocado-frontend-dev.s3.amazonaws.com/js/lib/easyXDM.debug.js"></script> -->
|
119 |
+
<script src="//cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js"></script>
|
120 |
+
|
121 |
+
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Advocado</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MITL</license>
|
7 |
<channel>community</channel>
|
@@ -27,8 +27,8 @@
|
|
27 |
<notes>The extension is stable. You can sign up for an account immediately after you register. Do let us know if you have any feedback or comments either through our website http://getadvocado.com, or via our email: dax@getadvocado.com</notes>
|
28 |
<authors><author><name>SY Quek</name><user>syquek</user><email>quek@getadvocado.com</email></author></authors>
|
29 |
<date>2013-07-04</date>
|
30 |
-
<time>
|
31 |
-
<contents><target name="magecommunity"><dir name="GozoLabs"><dir name="Advocado"><dir name="Block"><dir name="Adminhtml"><file name="Login.php" hash="248b44bad5faaa29949350b1b66f270c"/></dir><file name="Site.php" hash="3b62c41138ac5a90e1f9432a10e6d19e"/></dir><dir name="Helper"><file name="Admin.php" hash="bcda9a0a4e383c14b8c6f7372167a14d"/><file name="Backend.php" hash="c962424ed0fead92c4e6c46a6d342af0"/><file name="Data.php" hash="d22c841dbbf286abe72b6bab27a05ede"/></dir><dir name="Model"><file name="Credentials.php" hash="f7d6c7c82369b4e71fa1ef605c7d5736"/><file name="Observer.php" hash="61a39f02e706ab3f89ab9ae6a09e3d8e"/><dir name="Resource"><dir name="Credentials"><file name="Collection.php" hash="d7061008f932a933bff5a934133f4f58"/></dir><file name="Credentials.php" hash="db06bec94d7eaf9e9511ef87296f791a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdvocadoController.php" hash="b47e8a4eb15cb6fe497a04afa9e146e3"/></dir><file name="CartController.php" hash="e42cb1757de7760862d905b64c1a21f0"/><file name="IndexController.php" hash="105efc19158e33b8dae67e23682d08d5"/><file name="V1Controller.php" hash="2772f96a47b27412bc9cb8d96c2bbb04"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7c94738fe2d40efca729d81311afa529"/><file name="config.xml" hash="7192b1520527e09a1308043291770202"/></dir><dir name="sql"><dir name="gozolabs_advocado_setup"><file name="install-0.1.0.php" hash="db8f967eb2a9af200305bde91abe423a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="gozolabs_advocado.xml" hash="8a3eee7e9e393ba02fea4d67a0ddcda1"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="gozolabs_advocado.xml" hash="6fafe8ed3e99b66655af63d29894831a"/></dir><dir name="template"><dir name="gozolabs"><dir name="advocado"><file name="site.phtml" hash="a239ca877dd55c3c45943c428352df35"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GozoLabs_Advocado.xml" hash="5309e7603426b687ad46a42ab565c692"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="gozolabs_advocado.css" hash="4177c19b32d7aed880d1ce695dfc0ad7"/><file name="animate.min.css" hash="bbe717113fde11700cb83ec3d79d9de0"/></dir><dir name="js"><dir name="gozolabs_advocado"><file name="gozolabs_advocado.js" hash="65327c4aa702cd15bf6e78dcd60e8fdf"/><file name="jquery.min.js" hash="e1288116312e4728f98923c79b034b67"/></dir></dir></dir></dir></dir></target></contents>
|
32 |
<compatible/>
|
33 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7.0.2</max></package></required></dependencies>
|
34 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Advocado</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MITL</license>
|
7 |
<channel>community</channel>
|
27 |
<notes>The extension is stable. You can sign up for an account immediately after you register. Do let us know if you have any feedback or comments either through our website http://getadvocado.com, or via our email: dax@getadvocado.com</notes>
|
28 |
<authors><author><name>SY Quek</name><user>syquek</user><email>quek@getadvocado.com</email></author></authors>
|
29 |
<date>2013-07-04</date>
|
30 |
+
<time>08:57:23</time>
|
31 |
+
<contents><target name="magecommunity"><dir name="GozoLabs"><dir name="Advocado"><dir name="Block"><dir name="Adminhtml"><file name="Login.php" hash="248b44bad5faaa29949350b1b66f270c"/></dir><file name="Site.php" hash="3b62c41138ac5a90e1f9432a10e6d19e"/></dir><dir name="Helper"><file name="Admin.php" hash="bcda9a0a4e383c14b8c6f7372167a14d"/><file name="Backend.php" hash="c962424ed0fead92c4e6c46a6d342af0"/><file name="Data.php" hash="d22c841dbbf286abe72b6bab27a05ede"/></dir><dir name="Model"><file name="Credentials.php" hash="f7d6c7c82369b4e71fa1ef605c7d5736"/><file name="Observer.php" hash="61a39f02e706ab3f89ab9ae6a09e3d8e"/><dir name="Resource"><dir name="Credentials"><file name="Collection.php" hash="d7061008f932a933bff5a934133f4f58"/></dir><file name="Credentials.php" hash="db06bec94d7eaf9e9511ef87296f791a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdvocadoController.php" hash="b47e8a4eb15cb6fe497a04afa9e146e3"/></dir><file name="CartController.php" hash="e42cb1757de7760862d905b64c1a21f0"/><file name="IndexController.php" hash="105efc19158e33b8dae67e23682d08d5"/><file name="V1Controller.php" hash="2772f96a47b27412bc9cb8d96c2bbb04"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7c94738fe2d40efca729d81311afa529"/><file name="config.xml" hash="7192b1520527e09a1308043291770202"/></dir><dir name="sql"><dir name="gozolabs_advocado_setup"><file name="install-0.1.0.php" hash="db8f967eb2a9af200305bde91abe423a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="gozolabs_advocado.xml" hash="8a3eee7e9e393ba02fea4d67a0ddcda1"/></dir><dir name="template"><dir name="gozolabs"><dir name="advocado"><file name="login.phtml" hash="8ade68e2f79c41c5b95d585a325cf883"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="gozolabs_advocado.xml" hash="6fafe8ed3e99b66655af63d29894831a"/></dir><dir name="template"><dir name="gozolabs"><dir name="advocado"><file name="site.phtml" hash="a239ca877dd55c3c45943c428352df35"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GozoLabs_Advocado.xml" hash="5309e7603426b687ad46a42ab565c692"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="gozolabs_advocado.css" hash="4177c19b32d7aed880d1ce695dfc0ad7"/><file name="animate.min.css" hash="bbe717113fde11700cb83ec3d79d9de0"/></dir><dir name="js"><dir name="gozolabs_advocado"><file name="gozolabs_advocado.js" hash="65327c4aa702cd15bf6e78dcd60e8fdf"/><file name="jquery.min.js" hash="e1288116312e4728f98923c79b034b67"/></dir></dir></dir></dir></dir></target></contents>
|
32 |
<compatible/>
|
33 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7.0.2</max></package></required></dependencies>
|
34 |
</package>
|