Version Notes
0.1.42 stable
Download this release
Release Info
Developer | Magento Core Team |
Extension | Commerce_Sciences |
Version | 0.1.42 |
Comparing to | |
See all releases |
Code changes from version 1.0.36 to 0.1.42
- app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/About.php +47 -89
- app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/Campaignid.php +4 -4
- app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/Group/About.php +26 -26
- app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/Isactive.php +79 -79
- app/code/local/Commercesciences/Base/Helper/Data.php +15 -11
- app/code/local/Commercesciences/Base/Model/Adminhtml/System/Config/Source/Fontstyle.php +0 -32
- app/code/local/Commercesciences/Base/Model/Config.php +9 -9
- app/code/local/Commercesciences/Base/Model/Mysql4/Config.php +10 -10
- app/code/local/Commercesciences/Base/Model/Observer.php +5 -0
- app/code/local/Commercesciences/Base/Model/Resource/Setup.php +6 -6
- app/code/local/Commercesciences/Base/controllers/ApiController.php +0 -38
- app/code/local/Commercesciences/Base/etc/config.xml +1 -1
- app/code/local/Commercesciences/Base/etc/system.xml +1 -1
- app/code/local/Commercesciences/Base/sql/commercesciences_base_setup/mysql4-install-0.0.1.php +16 -21
- app/code/local/Commercesciences/Base/sql/commercesciences_base_setup/mysql4-upgrade-0.0.1-1.0.6.php +17 -0
- app/design/adminhtml/default/default/layout/commercesciences.xml +7 -7
- package.xml +7 -7
- skin/adminhtml/default/default/commercesciences/css/skin.css +293 -327
app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/About.php
CHANGED
@@ -1,90 +1,48 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_About extends Mage_Adminhtml_Block_System_Config_Form_Field
|
4 |
-
{
|
5 |
-
protected $_csHelper = null;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* retrieve the module helper
|
9 |
-
* @return Commercesciences_Base_Helper_Data
|
10 |
-
*/
|
11 |
-
protected function getCsHelper(){
|
12 |
-
if(!$this->_csHelper){
|
13 |
-
$this->_csHelper = Mage::helper("commercesciences_base");
|
14 |
-
}
|
15 |
-
return $this->_csHelper;
|
16 |
-
}
|
17 |
-
|
18 |
-
/**
|
19 |
-
* renders and returns the full HTML of the lower part (about) on the configurations panel
|
20 |
-
* here we can decide just not to show anything
|
21 |
-
*
|
22 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
23 |
-
* @return string
|
24 |
-
*/
|
25 |
-
public function render(Varien_Data_Form_Element_Abstract $element){
|
26 |
-
$html = '<div class="
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
<div class="cs_row cs_highlight-details" id="getIntuitive">
|
49 |
-
<div class="cs_span2 cs_feature-icon"></div>
|
50 |
-
<div class="cs_span10 cs_highlight-details-desc">
|
51 |
-
<h3><strong>Get Intuitive.</strong> Enable quick access to key site\'s assets, anywhere.</h3>
|
52 |
-
<p>Avoid shoppers abandonment due to complex navigation. Improve site usability by gathering all key assets in one intuitive place which is always-on. Adding a <strong>Personal Bar</strong>™ will ease navigation with <i>Search & Checkout</i>, emphasize customer care with <i>Chat & Feedback</i>, boost social with <i>Facebook Like & Google’s +1</i>. It\'s based on your existing site capabilities (e.g. search) as well as offers many new experiences.</p>
|
53 |
-
</div>
|
54 |
-
</div>
|
55 |
-
|
56 |
-
<div class="cs_row highlight-details" id="standOut">
|
57 |
-
<div class="cs_span10 cs_highlight-details-desc">
|
58 |
-
<h3><strong>Stand Out.</strong> Add a stunning edge to your online store in minutes.</h3>
|
59 |
-
<p>Improve your brand recognition through a compelling shopping experience. Creating your own <strong>Personal Bar</strong>™ is easy. You don\'t need to be a web designer or developer. Just choose or create a <strong>Personal Bar</strong>™ theme you love and customize it to your needs through our easy-to-use Config Panel. Upload your own logo and add a lovable Personal Shopper to enhance your store’s design.</p>
|
60 |
-
</div>
|
61 |
-
<div class="cs_span2 cs_feature-icon cs_stand-out"></div>
|
62 |
-
</div>
|
63 |
-
|
64 |
-
<div class="cs_row cs_highlight-details" id="growSales">
|
65 |
-
<div class="cs_span2 cs_feature-icon cs_grow-sales"></div>
|
66 |
-
<div class="cs_span10 cs_highlight-details-desc">
|
67 |
-
<h3><strong>Grow Sales.</strong> Increase your traffic and Facebook fanbase.</h3>
|
68 |
-
<p>In today\'s era of Social SEO, gaining social visibility is critical to your store\'s success. Recent studies show that up to 30% of traffic comes from social networks such as Facebook, Google +1 and Pinterest. The <strong>Personal Bar</strong>™ is designed to enable shoppers to easily share with their Facebook friends, join your fanbase, and click on +1 improving your Google ranking. And the best part - it encourages shoppers to further engage by rewarding them with a compelling coupon.</p>
|
69 |
-
</div>
|
70 |
-
</div>
|
71 |
-
|
72 |
-
|
73 |
-
</div>
|
74 |
-
</div>
|
75 |
-
|
76 |
-
<div class="cs_ending-block">
|
77 |
-
<div class="link-ph">
|
78 |
-
<p>Have Questions? <a class="start-now" href="http://commercesciences.com/contact">contact us</a></p>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
|
82 |
-
</div>
|
83 |
-
</div>
|
84 |
-
</div>';
|
85 |
-
|
86 |
-
|
87 |
-
return $html;
|
88 |
-
}
|
89 |
-
|
90 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_About extends Mage_Adminhtml_Block_System_Config_Form_Field
|
4 |
+
{
|
5 |
+
protected $_csHelper = null;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* retrieve the module helper
|
9 |
+
* @return Commercesciences_Base_Helper_Data
|
10 |
+
*/
|
11 |
+
protected function getCsHelper(){
|
12 |
+
if(!$this->_csHelper){
|
13 |
+
$this->_csHelper = Mage::helper("commercesciences_base");
|
14 |
+
}
|
15 |
+
return $this->_csHelper;
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* renders and returns the full HTML of the lower part (about) on the configurations panel
|
20 |
+
* here we can decide just not to show anything
|
21 |
+
*
|
22 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
23 |
+
* @return string
|
24 |
+
*/
|
25 |
+
public function render(Varien_Data_Form_Element_Abstract $element){
|
26 |
+
$html = ' <div class="cs_wrap">
|
27 |
+
<div id="main" style="">
|
28 |
+
|
29 |
+
<div class="cs_key-text-block">
|
30 |
+
<div class="cs_container">
|
31 |
+
<div class="cs_row">
|
32 |
+
<h3>The Personal Bar<span class="cs_sans-serif cs_tm">™</span> Is a free E-Commerce add-on, floating at the bottom of your site\'s pages,</h3>
|
33 |
+
<h3>designed to ease navigation, increase engagement and revenue</h3>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
|
38 |
+
<div class="cs_bar-guide-block">
|
39 |
+
<div class="cs_bar-guide-img"></div>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>';
|
43 |
+
|
44 |
+
|
45 |
+
return $html;
|
46 |
+
}
|
47 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/Campaignid.php
CHANGED
@@ -24,7 +24,7 @@ class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Campaignid exte
|
|
24 |
* @return string
|
25 |
*/
|
26 |
public function render(Varien_Data_Form_Element_Abstract $element){
|
27 |
-
$html = '<script type="text/javascript">
|
28 |
document.observe("dom:loaded", function() {
|
29 |
|
30 |
$$(".scalable.save").each(function(element){
|
@@ -66,10 +66,10 @@ class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Campaignid exte
|
|
66 |
$html .= '<div class="cswrapper form-list">';
|
67 |
$html .= '<div class="csexp1">'.$this->__("You're almost there! Please enter your email below to activate your account (Note: this email would be used to provide you updates and reports).").'</div>';
|
68 |
$html .= '<div class="csexp2"><div class="csexp2_left">Email Address</div><div class="csexp2_right">'.$inputBox.'</div></div>';
|
69 |
-
$html .= '<div class="csexp3"><div class="csexp3_left"
|
70 |
$html .= '<p class="note"><span style="color:#ff0000;">Before clicking "Create My Account" - Please make sure you have logged-out and logged back in from your Magento admin, <br>and that you have clicked "Flush Magento Cache" (under System > Cache Management)</span></p>';
|
71 |
$html .= '</div></div>';
|
72 |
-
$html .= '</div>';
|
73 |
|
74 |
return $html;
|
75 |
}
|
@@ -79,7 +79,7 @@ class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Campaignid exte
|
|
79 |
$html .= '<div class="cswrapper form-list">';
|
80 |
$html .= '<div class="csexp11">';
|
81 |
$html .= '<div class="csexp11_1">'.$this->__("Congratulations! Your new Personal Bar account is now ready.").'</div>';
|
82 |
-
$html .= '<div class="csexp11_2">'.$this->__("To configure the Personal Bar Experiences, Style and more, please click on Go to my Config Panel below.").'</div>';
|
83 |
$html .= '<div class="csexp11_3">'.$this->__("Your personal Bar will remain hidden from your store visitors until you Publish it.").'</div>';
|
84 |
$html .= '</div>';
|
85 |
$html .= '<div class="csexp11_5">'.$this->__("Personal Bar Settings").'</div>';
|
24 |
* @return string
|
25 |
*/
|
26 |
public function render(Varien_Data_Form_Element_Abstract $element){
|
27 |
+
$html = '<tr><td><script type="text/javascript">
|
28 |
document.observe("dom:loaded", function() {
|
29 |
|
30 |
$$(".scalable.save").each(function(element){
|
66 |
$html .= '<div class="cswrapper form-list">';
|
67 |
$html .= '<div class="csexp1">'.$this->__("You're almost there! Please enter your email below to activate your account (Note: this email would be used to provide you updates and reports).").'</div>';
|
68 |
$html .= '<div class="csexp2"><div class="csexp2_left">Email Address</div><div class="csexp2_right">'.$inputBox.'</div></div>';
|
69 |
+
$html .= '<div class="csexp3"><div class="csexp3_left"></div><div class="csexp2_right"><p class="note"><span>The personal bar will be hidden from your shoppers until you click "Go Live" from your Config Panel or your Magento dashboard.</span></p>'.$saveButton->toHtml();
|
70 |
$html .= '<p class="note"><span style="color:#ff0000;">Before clicking "Create My Account" - Please make sure you have logged-out and logged back in from your Magento admin, <br>and that you have clicked "Flush Magento Cache" (under System > Cache Management)</span></p>';
|
71 |
$html .= '</div></div>';
|
72 |
+
$html .= '</div></td></tr>';
|
73 |
|
74 |
return $html;
|
75 |
}
|
79 |
$html .= '<div class="cswrapper form-list">';
|
80 |
$html .= '<div class="csexp11">';
|
81 |
$html .= '<div class="csexp11_1">'.$this->__("Congratulations! Your new Personal Bar account is now ready.").'</div>';
|
82 |
+
$html .= '<div class="csexp11_2">'.$this->__("To configure the Personal Bar Experiences, Style and more, please click on \"Go to my Config Panel\" below.").'</div>';
|
83 |
$html .= '<div class="csexp11_3">'.$this->__("Your personal Bar will remain hidden from your store visitors until you Publish it.").'</div>';
|
84 |
$html .= '</div>';
|
85 |
$html .= '<div class="csexp11_5">'.$this->__("Personal Bar Settings").'</div>';
|
app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/Group/About.php
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Group_About extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
4 |
-
{
|
5 |
-
protected $_csHelper = null;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* retrieve the module helper
|
9 |
-
* @return Commercesciences_Base_Helper_Data
|
10 |
-
*/
|
11 |
-
protected function getCsHelper(){
|
12 |
-
if(!$this->_csHelper){
|
13 |
-
$this->_csHelper = Mage::helper("commercesciences_base");
|
14 |
-
}
|
15 |
-
return $this->_csHelper;
|
16 |
-
}
|
17 |
-
|
18 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
19 |
-
{
|
20 |
-
$step = $this->getCsHelper()->getStep();
|
21 |
-
if($step != Commercesciences_Base_Helper_Data::STEP_ZERO){
|
22 |
-
return '';
|
23 |
-
}
|
24 |
-
|
25 |
-
return parent::render($element);
|
26 |
-
}
|
27 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Group_About extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
4 |
+
{
|
5 |
+
protected $_csHelper = null;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* retrieve the module helper
|
9 |
+
* @return Commercesciences_Base_Helper_Data
|
10 |
+
*/
|
11 |
+
protected function getCsHelper(){
|
12 |
+
if(!$this->_csHelper){
|
13 |
+
$this->_csHelper = Mage::helper("commercesciences_base");
|
14 |
+
}
|
15 |
+
return $this->_csHelper;
|
16 |
+
}
|
17 |
+
|
18 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
19 |
+
{
|
20 |
+
$step = $this->getCsHelper()->getStep();
|
21 |
+
if($step != Commercesciences_Base_Helper_Data::STEP_ZERO){
|
22 |
+
return '';
|
23 |
+
}
|
24 |
+
|
25 |
+
return parent::render($element);
|
26 |
+
}
|
27 |
}
|
app/code/local/Commercesciences/Base/Block/Adminhtml/Config/Form/Renderer/Isactive.php
CHANGED
@@ -1,79 +1,79 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Isactive extends Mage_Adminhtml_Block_System_Config_Form_Field
|
4 |
-
{
|
5 |
-
protected $_csHelper = null;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* retrieve the module helper
|
9 |
-
* @return Commercesciences_Base_Helper_Data
|
10 |
-
*/
|
11 |
-
protected function getCsHelper(){
|
12 |
-
if(!$this->_csHelper){
|
13 |
-
$this->_csHelper = Mage::helper("commercesciences_base");
|
14 |
-
}
|
15 |
-
return $this->_csHelper;
|
16 |
-
}
|
17 |
-
|
18 |
-
|
19 |
-
/**
|
20 |
-
* renders and returns the full HTML of the lower part (is_active) on the configurations panel
|
21 |
-
* here we can decide just not to show anything
|
22 |
-
*
|
23 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
24 |
-
* @return string
|
25 |
-
*/
|
26 |
-
public function render(Varien_Data_Form_Element_Abstract $element){
|
27 |
-
try{
|
28 |
-
|
29 |
-
$step = $this->getCsHelper()->getStep();
|
30 |
-
if($step == Commercesciences_Base_Helper_Data::STEP_ZERO || $step == Commercesciences_Base_Helper_Data::STEP_ONE){
|
31 |
-
return '';
|
32 |
-
}
|
33 |
-
|
34 |
-
$activeState = $this->getCsHelper()->getActiveState();
|
35 |
-
if($activeState['error'] != false){
|
36 |
-
throw new Exception($activeState['error']);
|
37 |
-
}
|
38 |
-
$visible = -1;
|
39 |
-
if($activeState['data']=='Hidden'){
|
40 |
-
$visible = 0;
|
41 |
-
}elseif($activeState['data']=='Visible'){
|
42 |
-
$visible = 1;
|
43 |
-
}else{
|
44 |
-
throw new Exception($this->__("Error ocurred. Your updates weren't saved. Please contact ComemrceScience for support (error id: 005)"));
|
45 |
-
}
|
46 |
-
|
47 |
-
$element->setValue($visible);
|
48 |
-
$selectBox = $element->getElementHtml();
|
49 |
-
|
50 |
-
$configEditBlock = Mage::getBlockSingleton("adminhtml/system_config_edit");
|
51 |
-
/* @var Mage_Adminhtml_Block_Widget_Button $saveButton */
|
52 |
-
$saveButton = $configEditBlock->getLayout()->createBlock('adminhtml/widget_button')
|
53 |
-
->setData(array(
|
54 |
-
'label' => Mage::helper('adminhtml')->__('Save Config'),
|
55 |
-
'onclick' => 'configForm.submit()',
|
56 |
-
'class' => 'save',
|
57 |
-
));
|
58 |
-
|
59 |
-
if($step == Commercesciences_Base_Helper_Data::STEP_ONE){
|
60 |
-
$html = '<div class="cswrapper form-list">';
|
61 |
-
$html .= '<div class="csexp12"><div class="csexp12_left">Enabled?</div><div class="csexp12_right">'.$selectBox.$saveButton->toHtml().'</div></div>';
|
62 |
-
$html .= '</div>';
|
63 |
-
|
64 |
-
return $html;
|
65 |
-
}
|
66 |
-
if($step == Commercesciences_Base_Helper_Data::STEP_TWO){
|
67 |
-
$html = '<div class="cswrapper form-list">';
|
68 |
-
$html .= '<div class="csexp24"><div class="csexp24_left">Is Live on my store?</div><div class="csexp24_right">'.$selectBox.$saveButton->toHtml().'</div></div>';
|
69 |
-
$html .= '<div class="csexp25"><div class="csexp25_left">'.$this->__("Have questions? contact our").'</div> <a class="csexp25_left2" href="mailto: support@commercesciences.com">'.$this->__("support team").'</a></div>';
|
70 |
-
$html .= '</div>';
|
71 |
-
|
72 |
-
return $html;
|
73 |
-
}
|
74 |
-
}catch(Exception $e){
|
75 |
-
return '';
|
76 |
-
}
|
77 |
-
|
78 |
-
}
|
79 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Commercesciences_Base_Block_Adminhtml_Config_Form_Renderer_Isactive extends Mage_Adminhtml_Block_System_Config_Form_Field
|
4 |
+
{
|
5 |
+
protected $_csHelper = null;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* retrieve the module helper
|
9 |
+
* @return Commercesciences_Base_Helper_Data
|
10 |
+
*/
|
11 |
+
protected function getCsHelper(){
|
12 |
+
if(!$this->_csHelper){
|
13 |
+
$this->_csHelper = Mage::helper("commercesciences_base");
|
14 |
+
}
|
15 |
+
return $this->_csHelper;
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
/**
|
20 |
+
* renders and returns the full HTML of the lower part (is_active) on the configurations panel
|
21 |
+
* here we can decide just not to show anything
|
22 |
+
*
|
23 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
24 |
+
* @return string
|
25 |
+
*/
|
26 |
+
public function render(Varien_Data_Form_Element_Abstract $element){
|
27 |
+
try{
|
28 |
+
|
29 |
+
$step = $this->getCsHelper()->getStep();
|
30 |
+
if($step == Commercesciences_Base_Helper_Data::STEP_ZERO || $step == Commercesciences_Base_Helper_Data::STEP_ONE){
|
31 |
+
return '';
|
32 |
+
}
|
33 |
+
|
34 |
+
$activeState = $this->getCsHelper()->getActiveState();
|
35 |
+
if($activeState['error'] != false){
|
36 |
+
throw new Exception($activeState['error']);
|
37 |
+
}
|
38 |
+
$visible = -1;
|
39 |
+
if($activeState['data']=='Hidden'){
|
40 |
+
$visible = 0;
|
41 |
+
}elseif($activeState['data']=='Visible'){
|
42 |
+
$visible = 1;
|
43 |
+
}else{
|
44 |
+
throw new Exception($this->__("Error ocurred. Your updates weren't saved. Please contact ComemrceScience for support (error id: 005)"));
|
45 |
+
}
|
46 |
+
|
47 |
+
$element->setValue($visible);
|
48 |
+
$selectBox = $element->getElementHtml();
|
49 |
+
|
50 |
+
$configEditBlock = Mage::getBlockSingleton("adminhtml/system_config_edit");
|
51 |
+
/* @var Mage_Adminhtml_Block_Widget_Button $saveButton */
|
52 |
+
$saveButton = $configEditBlock->getLayout()->createBlock('adminhtml/widget_button')
|
53 |
+
->setData(array(
|
54 |
+
'label' => Mage::helper('adminhtml')->__('Save Config'),
|
55 |
+
'onclick' => 'configForm.submit()',
|
56 |
+
'class' => 'save',
|
57 |
+
));
|
58 |
+
|
59 |
+
if($step == Commercesciences_Base_Helper_Data::STEP_ONE){
|
60 |
+
$html = '<div class="cswrapper form-list">';
|
61 |
+
$html .= '<div class="csexp12"><div class="csexp12_left">Enabled?</div><div class="csexp12_right">'.$selectBox.$saveButton->toHtml().'</div></div>';
|
62 |
+
$html .= '</div></td></tr>';
|
63 |
+
|
64 |
+
return $html;
|
65 |
+
}
|
66 |
+
if($step == Commercesciences_Base_Helper_Data::STEP_TWO){
|
67 |
+
$html = '<div class="cswrapper form-list">';
|
68 |
+
$html .= '<div class="csexp24"><div class="csexp24_left">Is Live on my store?</div><div class="csexp24_right">'.$selectBox.$saveButton->toHtml().'</div></div>';
|
69 |
+
$html .= '<div class="csexp25"><div class="csexp25_left">'.$this->__("Have questions? contact our").'</div> <a class="csexp25_left2" href="mailto: support@commercesciences.com">'.$this->__("support team").'</a></div>';
|
70 |
+
$html .= '</div></td></tr>';
|
71 |
+
|
72 |
+
return $html;
|
73 |
+
}
|
74 |
+
}catch(Exception $e){
|
75 |
+
return '';
|
76 |
+
}
|
77 |
+
|
78 |
+
}
|
79 |
+
}
|
app/code/local/Commercesciences/Base/Helper/Data.php
CHANGED
@@ -116,13 +116,12 @@ class Commercesciences_Base_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
116 |
}
|
117 |
if($parsedResponseArr['good'] == false){
|
118 |
if(isset($parsedResponseArr['fieldErrors']) && $parsedResponseArr['fieldErrors']){
|
119 |
-
$fieldErrorsArr = $parsedResponseArr['fieldErrors'];
|
120 |
$errorMsg = '';
|
121 |
foreach($fieldErrorsArr as $field => $fError){
|
122 |
-
$errorMsg .=
|
|
|
123 |
}
|
124 |
-
//remove the last comma
|
125 |
-
$errorMsg = substr($errorMsg, 0, strlen($errorMsg)-1);
|
126 |
return array('error' => $errorMsg);
|
127 |
}elseif(isset($parsedResponseArr['globalError']) && $parsedResponseArr['globalError']){
|
128 |
return array('error' => $this->__($parsedResponseArr['globalError']));
|
@@ -150,17 +149,20 @@ class Commercesciences_Base_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
150 |
if(!$csConfig){
|
151 |
$csConfig = Mage::getModel("commercesciences_base/config");
|
152 |
}
|
153 |
-
$csConfig->
|
154 |
-
->setSecurityToken($parsedResponse['securityToken'])
|
155 |
->setUserId($parsedResponse['userID'])
|
156 |
->setTag($parsedResponse['tag'])
|
157 |
->save();
|
158 |
}
|
159 |
|
160 |
|
|
|
|
|
|
|
|
|
161 |
|
|
|
162 |
|
163 |
-
return array('error' => false);
|
164 |
}catch(Exception $e){
|
165 |
//timeout or other unhandled exception was thrown
|
166 |
return array('error' => $this->__($e->getMessage()));
|
@@ -204,10 +206,11 @@ class Commercesciences_Base_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
204 |
}
|
205 |
if($parsedResponseArr['good'] == false){
|
206 |
if(isset($parsedResponseArr['fieldErrors']) && $parsedResponseArr['fieldErrors']){
|
207 |
-
$fieldErrorsArr = $parsedResponseArr['fieldErrors'];
|
208 |
$errorMsg = '';
|
209 |
foreach($fieldErrorsArr as $field => $fError){
|
210 |
-
$errorMsg .=
|
|
|
211 |
}
|
212 |
//remove the last comma
|
213 |
$errorMsg = substr($errorMsg, 0, strlen($errorMsg)-1);
|
@@ -293,10 +296,11 @@ class Commercesciences_Base_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
293 |
}
|
294 |
if($parsedResponseArr['good'] == false){
|
295 |
if(isset($parsedResponseArr['fieldErrors']) && $parsedResponseArr['fieldErrors']){
|
296 |
-
$fieldErrorsArr = $parsedResponseArr['fieldErrors'];
|
297 |
$errorMsg = '';
|
298 |
foreach($fieldErrorsArr as $field => $fError){
|
299 |
-
$errorMsg .=
|
|
|
300 |
}
|
301 |
$errorMsg = substr($errorMsg, 0, strlen($errorMsg)-1);
|
302 |
return array('error' => $errorMsg);
|
116 |
}
|
117 |
if($parsedResponseArr['good'] == false){
|
118 |
if(isset($parsedResponseArr['fieldErrors']) && $parsedResponseArr['fieldErrors']){
|
119 |
+
$fieldErrorsArr = $this->stdObject2Array($parsedResponseArr['fieldErrors']);
|
120 |
$errorMsg = '';
|
121 |
foreach($fieldErrorsArr as $field => $fError){
|
122 |
+
$errorMsg .= "<br />";
|
123 |
+
$errorMsg .= $this->__($field).": ".$this->__($fError);
|
124 |
}
|
|
|
|
|
125 |
return array('error' => $errorMsg);
|
126 |
}elseif(isset($parsedResponseArr['globalError']) && $parsedResponseArr['globalError']){
|
127 |
return array('error' => $this->__($parsedResponseArr['globalError']));
|
149 |
if(!$csConfig){
|
150 |
$csConfig = Mage::getModel("commercesciences_base/config");
|
151 |
}
|
152 |
+
$csConfig->setSecurityToken($parsedResponse['securityToken'])
|
|
|
153 |
->setUserId($parsedResponse['userID'])
|
154 |
->setTag($parsedResponse['tag'])
|
155 |
->save();
|
156 |
}
|
157 |
|
158 |
|
159 |
+
$message = '';
|
160 |
+
if(isset($parsedResponse['message']) && $parsedResponse['message']){
|
161 |
+
$message = $parsedResponse['message'];
|
162 |
+
}
|
163 |
|
164 |
+
return array('error' => false, 'message' => $message);
|
165 |
|
|
|
166 |
}catch(Exception $e){
|
167 |
//timeout or other unhandled exception was thrown
|
168 |
return array('error' => $this->__($e->getMessage()));
|
206 |
}
|
207 |
if($parsedResponseArr['good'] == false){
|
208 |
if(isset($parsedResponseArr['fieldErrors']) && $parsedResponseArr['fieldErrors']){
|
209 |
+
$fieldErrorsArr = $this->stdObject2Array($parsedResponseArr['fieldErrors']);
|
210 |
$errorMsg = '';
|
211 |
foreach($fieldErrorsArr as $field => $fError){
|
212 |
+
$errorMsg .= "<br />";
|
213 |
+
$errorMsg .= $this->__($field).": ".$this->__($fError);
|
214 |
}
|
215 |
//remove the last comma
|
216 |
$errorMsg = substr($errorMsg, 0, strlen($errorMsg)-1);
|
296 |
}
|
297 |
if($parsedResponseArr['good'] == false){
|
298 |
if(isset($parsedResponseArr['fieldErrors']) && $parsedResponseArr['fieldErrors']){
|
299 |
+
$fieldErrorsArr = $this->stdObject2Array($parsedResponseArr['fieldErrors']);
|
300 |
$errorMsg = '';
|
301 |
foreach($fieldErrorsArr as $field => $fError){
|
302 |
+
$errorMsg .= "<br />";
|
303 |
+
$errorMsg .= $this->__($field).": ".$this->__($fError);
|
304 |
}
|
305 |
$errorMsg = substr($errorMsg, 0, strlen($errorMsg)-1);
|
306 |
return array('error' => $errorMsg);
|
app/code/local/Commercesciences/Base/Model/Adminhtml/System/Config/Source/Fontstyle.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
class Commercesciences_Base_Model_Adminhtml_System_Config_Source_Fontstyle{
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Options getter
|
8 |
-
*
|
9 |
-
* @return array
|
10 |
-
*/
|
11 |
-
public function toOptionArray()
|
12 |
-
{
|
13 |
-
$helper = Mage::helper("commercesciences_base");
|
14 |
-
$options = array(
|
15 |
-
array('value' => 0, 'label'=>$helper->__('normal')),
|
16 |
-
array('value' => 1, 'label'=>$helper->__('italic')),
|
17 |
-
array('value' => 2, 'label'=>$helper->__('oblique')),
|
18 |
-
);
|
19 |
-
|
20 |
-
return $options;
|
21 |
-
}
|
22 |
-
|
23 |
-
public function toAssocArray(){
|
24 |
-
$helper = Mage::helper("commercesciences_base");
|
25 |
-
$assocArr = array(
|
26 |
-
'0' => $helper->__('normal'),
|
27 |
-
'1' => $helper->__('italic'),
|
28 |
-
'2' => $helper->__('oblique')
|
29 |
-
);
|
30 |
-
return $assocArr;
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Commercesciences/Base/Model/Config.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
<?php
|
2 |
-
class Commercesciences_Base_Model_Config extends Mage_Core_Model_Abstract
|
3 |
-
{
|
4 |
-
public function _construct ()
|
5 |
-
{
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init('commercesciences_base/config');
|
8 |
-
}
|
9 |
-
|
10 |
}
|
1 |
+
<?php
|
2 |
+
class Commercesciences_Base_Model_Config extends Mage_Core_Model_Abstract
|
3 |
+
{
|
4 |
+
public function _construct ()
|
5 |
+
{
|
6 |
+
parent::_construct();
|
7 |
+
$this->_init('commercesciences_base/config');
|
8 |
+
}
|
9 |
+
|
10 |
}
|
app/code/local/Commercesciences/Base/Model/Mysql4/Config.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
<?php
|
2 |
-
class Commercesciences_Base_Model_Mysql4_Config extends Mage_Core_Model_Mysql4_Abstract
|
3 |
-
{
|
4 |
-
/**
|
5 |
-
* parent construct
|
6 |
-
*/
|
7 |
-
public function _construct ()
|
8 |
-
{
|
9 |
-
$this->_init('commercesciences_base/config', 'entity_id');
|
10 |
-
}
|
11 |
}
|
1 |
+
<?php
|
2 |
+
class Commercesciences_Base_Model_Mysql4_Config extends Mage_Core_Model_Mysql4_Abstract
|
3 |
+
{
|
4 |
+
/**
|
5 |
+
* parent construct
|
6 |
+
*/
|
7 |
+
public function _construct ()
|
8 |
+
{
|
9 |
+
$this->_init('commercesciences_base/config', 'entity_id');
|
10 |
+
}
|
11 |
}
|
app/code/local/Commercesciences/Base/Model/Observer.php
CHANGED
@@ -110,6 +110,11 @@ class Commercesciences_Base_Model_Observer
|
|
110 |
return;
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
|
|
113 |
//customer registered - clear the cache
|
114 |
Mage::app()->cleanCache();
|
115 |
}
|
110 |
return;
|
111 |
}
|
112 |
|
113 |
+
if($result['message']){
|
114 |
+
//Mage::log("ffff-".$result['message'], null, "debug6.log", true);
|
115 |
+
Mage::getSingleton('adminhtml/session')->addNotice($result['message']);
|
116 |
+
}
|
117 |
+
|
118 |
//customer registered - clear the cache
|
119 |
Mage::app()->cleanCache();
|
120 |
}
|
app/code/local/Commercesciences/Base/Model/Resource/Setup.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
<?php
|
2 |
-
class Commercesciences_Base_Model_Resource_Setup
|
3 |
-
extends Mage_Core_Model_Resource_Setup
|
4 |
-
{
|
5 |
-
|
6 |
-
}
|
1 |
+
<?php
|
2 |
+
class Commercesciences_Base_Model_Resource_Setup
|
3 |
+
extends Mage_Core_Model_Resource_Setup
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/local/Commercesciences/Base/controllers/ApiController.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
class Commercesciences_Base_ApiController extends Mage_Core_Controller_Front_Action
|
5 |
-
{
|
6 |
-
public function setisconfiguredAction()
|
7 |
-
{
|
8 |
-
$request = $this->getRequest();
|
9 |
-
if ($request->isPost()) {
|
10 |
-
$userId = $request->getParam('userId');
|
11 |
-
$securityToken = $request->getParam('securityToken');
|
12 |
-
|
13 |
-
$csConfig = Mage::getModel("commercesciences_base/config")->load('1');
|
14 |
-
if($csConfig
|
15 |
-
&& $csConfig->getUserId()==$userId
|
16 |
-
&& $csConfig->getSecurityToken()==$securityToken){
|
17 |
-
$csConfig->setStep(Commercesciences_Base_Helper_Data::STEP_TWO);
|
18 |
-
$csConfig->save();
|
19 |
-
$responseArray = array(
|
20 |
-
'good' => 'true'
|
21 |
-
);
|
22 |
-
}else{
|
23 |
-
$responseArray = array(
|
24 |
-
'good' => 'false',
|
25 |
-
'error' => 'The customer doesnt have such user_id/security_token in his database'
|
26 |
-
);
|
27 |
-
}
|
28 |
-
}else{
|
29 |
-
$responseArray = array(
|
30 |
-
'good' => 'false',
|
31 |
-
'error' => 'The request should be of type POST'
|
32 |
-
);
|
33 |
-
}
|
34 |
-
|
35 |
-
$this->getResponse()->setHeader('Content-Type', 'application/json', true)->setBody(json_encode($responseArray));
|
36 |
-
return;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Commercesciences/Base/etc/config.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<config>
|
2 |
<modules>
|
3 |
<Commercesciences_Base>
|
4 |
-
<version>
|
5 |
</Commercesciences_Base>
|
6 |
</modules>
|
7 |
<frontend>
|
1 |
<config>
|
2 |
<modules>
|
3 |
<Commercesciences_Base>
|
4 |
+
<version>1.0.6</version>
|
5 |
</Commercesciences_Base>
|
6 |
</modules>
|
7 |
<frontend>
|
app/code/local/Commercesciences/Base/etc/system.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
19 |
<required_param>
|
20 |
-
<label>Personal Bar
|
21 |
<frontend_type>text</frontend_type>
|
22 |
<sort_order>10</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
19 |
<required_param>
|
20 |
+
<label>Personal Bar</label>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
<sort_order>10</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
app/code/local/Commercesciences/Base/sql/commercesciences_base_setup/mysql4-install-0.0.1.php
CHANGED
@@ -1,22 +1,17 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$installer = $this;
|
4 |
-
$installer->startSetup();
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
`entity_id`
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
`tag` varchar(2048) default NULL,
|
18 |
-
PRIMARY KEY (`entity_id`)
|
19 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
20 |
-
");
|
21 |
-
|
22 |
$installer->endSetup();
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
$installer->startSetup();
|
5 |
+
|
6 |
+
$installer->run("
|
7 |
+
DROP TABLE IF EXISTS `{$installer->getTable('commercesciences_base/config')}`;
|
8 |
+
CREATE TABLE `{$installer->getTable('commercesciences_base/config')}` (
|
9 |
+
`entity_id` int(1) unsigned NOT NULL default 1,
|
10 |
+
`user_id` varchar(20) default NULL,
|
11 |
+
`security_token` varchar(1024) default NULL,
|
12 |
+
`tag` varchar(2048) default NULL,
|
13 |
+
PRIMARY KEY (`entity_id`)
|
14 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
15 |
+
");
|
16 |
+
|
|
|
|
|
|
|
|
|
|
|
17 |
$installer->endSetup();
|
app/code/local/Commercesciences/Base/sql/commercesciences_base_setup/mysql4-upgrade-0.0.1-1.0.6.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
$installer->startSetup();
|
5 |
+
|
6 |
+
$installer->run("
|
7 |
+
DROP TABLE IF EXISTS `{$installer->getTable('commercesciences_base/config')}`;
|
8 |
+
CREATE TABLE `{$installer->getTable('commercesciences_base/config')}` (
|
9 |
+
`entity_id` int(1) unsigned NOT NULL default 1,
|
10 |
+
`user_id` varchar(20) default NULL,
|
11 |
+
`security_token` varchar(1024) default NULL,
|
12 |
+
`tag` varchar(2048) default NULL,
|
13 |
+
PRIMARY KEY (`entity_id`)
|
14 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
15 |
+
");
|
16 |
+
|
17 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/commercesciences.xml
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout version="0.1.0">
|
3 |
-
<default>
|
4 |
-
<reference name="head">
|
5 |
-
<action method="addCss"><name>commercesciences/css/skin.css</name></action>
|
6 |
-
</reference>
|
7 |
-
</default>
|
8 |
</layout>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss"><name>commercesciences/css/skin.css</name></action>
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
</layout>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Commerce_Sciences</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>CSciences</name><user>auto-converted</user><email>avivr@commercesciences.com</email></author></authors>
|
13 |
-
<date>2012-10-
|
14 |
-
<time>21:
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Commerce_Sciences</name>
|
4 |
+
<version>0.1.42</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>linux</summary>
|
10 |
+
<description>linux</description>
|
11 |
+
<notes>0.1.42 stable</notes>
|
12 |
<authors><author><name>CSciences</name><user>auto-converted</user><email>avivr@commercesciences.com</email></author></authors>
|
13 |
+
<date>2012-10-31</date>
|
14 |
+
<time>21:07:55</time>
|
15 |
+
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="commercesciences"><dir name="css"><file name="skin.css" hash="bb1a2bc32fe77f55b752abb9c88f59dc"/></dir><dir name="images"><file name="CS-Logo-innerpage.png" hash="450dc4a05822cba236a3400bfa1535f7"/><file name="icons-boxed.png" hash="703749e7a6dd991cffc3767244f14887"/><file name="intro-img.png" hash="20f4193fef90371b49379e6df1e8d523"/><file name="setup-takes-2-minutes.png" hash="9b69dde5ccc771e6910adb3a153cf591"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="commercesciences.xml" hash="c325d0e9413a110714caa6cb35e16325"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Commercesciences"><dir name="Base"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Renderer"><dir name="Group"><file name="About.php" hash="343a7e98bf25639a662a9fc7e2b08846"/></dir><file name="About.php" hash="d7d9f3aa8a46422bd850c704a6772bcf"/><file name="Campaignid.php" hash="4062b9f1475ccf58a8f051a3f6d77b30"/><file name="Isactive.php" hash="2d4f1870f7c87b3a64ac42ef49cfb676"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="9354c6d80e935edcfa1fea8e998411be"/><file name="system.xml" hash="7bd5559f2911cf82fc30a7c4a1cd8ca4"/></dir><dir name="Helper"><file name="Data.php" hash="219434a1266a281a2368f4a181e2f565"/></dir><dir name="Model"><dir name="Mysql4"><file name="Config.php" hash="f8c78972cc87a194b79edca73ee885b3"/></dir><dir name="Resource"><file name="Setup.php" hash="6873d79b42626ae82983dde2c4799a33"/></dir><file name="Config.php" hash="be696fc29f961e7955ee670467b961f0"/><file name="Observer.php" hash="151cd8d802d14ae78c27b0c58588a5ff"/></dir><dir name="sql"><dir name="commercesciences_base_setup"><file name="mysql4-install-0.0.1.php" hash="96b046f6bd02334bde61d1e955afd1e6"/><file name="mysql4-upgrade-0.0.1-1.0.6.php" hash="96b046f6bd02334bde61d1e955afd1e6"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Commercesciences_Base.xml" hash="3223d3e6acdeac74abe8b6f10d899522"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
skin/adminhtml/default/default/commercesciences/css/skin.css
CHANGED
@@ -1,328 +1,294 @@
|
|
1 |
-
.content-header h3 span.stadmin-csconfig_menu {
|
2 |
-
background-image:url("../images/CS-Logo-innerpage.png");
|
3 |
-
background-position: 0 0;
|
4 |
-
background-repeat:no-repeat;
|
5 |
-
color:#4799AE;
|
6 |
-
padding-left:51px;
|
7 |
-
padding-right:0;
|
8 |
-
}
|
9 |
-
.tabs.config-tabs span.stadmin-csconfig_menu,
|
10 |
-
.tabs a:hover.active span.stadmin-csconfig_menu,
|
11 |
-
.tabs.config-tabs span.stadmin-csconfig_menu a.stadmin-csconfig_menu:hover {
|
12 |
-
padding: 0;
|
13 |
-
background-image:url("../images/CS-Logo-innerpage.png");
|
14 |
-
background-position:0 2px;
|
15 |
-
background-repeat:no-repeat;
|
16 |
-
color:#4799AE;
|
17 |
-
padding-left:51px;
|
18 |
-
padding-right:0;
|
19 |
-
}
|
20 |
-
.cswrapper{
|
21 |
-
padding: 0 10px;
|
22 |
-
font-weight: bold;
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
}
|
31 |
-
.
|
32 |
-
|
33 |
-
}
|
34 |
-
.
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
}
|
58 |
-
.
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
}
|
72 |
-
.
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
margin:
|
80 |
-
}
|
81 |
-
.
|
82 |
-
width:
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
margin:
|
89 |
-
}
|
90 |
-
.
|
91 |
-
width:
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
-
|
116 |
-
|
117 |
-
|
118 |
-
.cs_styles a:
|
119 |
-
outline:
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
}
|
149 |
-
.cs_row {
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
}
|
166 |
-
.
|
167 |
-
width:
|
168 |
-
}
|
169 |
-
.
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
}
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
.
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
}
|
194 |
-
.
|
195 |
-
|
196 |
-
}
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
font-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
.
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
}
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
.
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
}
|
249 |
-
.
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
}
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
background
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
color: #0d2427;
|
295 |
-
text-shadow: 0 1px 0 white;
|
296 |
-
}
|
297 |
-
.cs_details-block .cs_highlight-details {
|
298 |
-
margin-top: 10px;
|
299 |
-
margin-bottom: 15px;
|
300 |
-
}
|
301 |
-
.cs_details-block .cs_highlight-details-desc p {
|
302 |
-
margin: 2px 0 0px;
|
303 |
-
display: block;
|
304 |
-
margin-bottom: 10px;
|
305 |
-
font-size: 15px;
|
306 |
-
line-height: 19px;
|
307 |
-
font-family: Helvetica, Arial, sans-serif;
|
308 |
-
color: #4D5657;
|
309 |
-
font-weight: normal;
|
310 |
-
}
|
311 |
-
|
312 |
-
.cs_bar-guide-block {
|
313 |
-
margin: 50px auto 30px;
|
314 |
-
}
|
315 |
-
|
316 |
-
.cs_bar-guide-img {
|
317 |
-
margin: 0 auto 0;
|
318 |
-
background: transparent url(../images/intro-img.png) no-repeat center center;
|
319 |
-
width: 696px;
|
320 |
-
height: 205px;
|
321 |
-
}
|
322 |
-
|
323 |
-
@font-face {
|
324 |
-
font-family: 'Pontano Sans';
|
325 |
-
font-style: normal;
|
326 |
-
font-weight: 400;
|
327 |
-
src: local('Pontano Sans'), local('PontanoSans-Regular'), url(http://themes.googleusercontent.com/static/fonts/pontanosans/v1/gTHiwyxi6S7iiHpqAoiE3HhCUOGz7vYGh680lGh-uXM.woff) format('woff');
|
328 |
}
|
1 |
+
.content-header h3 span.stadmin-csconfig_menu {
|
2 |
+
background-image:url("../images/CS-Logo-innerpage.png");
|
3 |
+
background-position: 0 0;
|
4 |
+
background-repeat:no-repeat;
|
5 |
+
color:#4799AE;
|
6 |
+
padding-left:51px;
|
7 |
+
padding-right:0;
|
8 |
+
}
|
9 |
+
.tabs.config-tabs span.stadmin-csconfig_menu,
|
10 |
+
.tabs a:hover.active span.stadmin-csconfig_menu,
|
11 |
+
.tabs.config-tabs span.stadmin-csconfig_menu a.stadmin-csconfig_menu:hover {
|
12 |
+
padding: 0;
|
13 |
+
background-image:url("../images/CS-Logo-innerpage.png");
|
14 |
+
background-position:0 2px;
|
15 |
+
background-repeat:no-repeat;
|
16 |
+
color:#4799AE;
|
17 |
+
padding-left:51px;
|
18 |
+
padding-right:0;
|
19 |
+
}
|
20 |
+
.cswrapper{
|
21 |
+
padding: 0 10px;
|
22 |
+
font-weight: bold;
|
23 |
+
|
24 |
+
}
|
25 |
+
|
26 |
+
|
27 |
+
.csexp2, .csexp3, .csexp4{
|
28 |
+
width: 500px;
|
29 |
+
margin: 20px 0 0;
|
30 |
+
}
|
31 |
+
.csexp2{
|
32 |
+
height: 20px;
|
33 |
+
}
|
34 |
+
.csexp3{
|
35 |
+
height: 75px;
|
36 |
+
margin-top: 3px;
|
37 |
+
}
|
38 |
+
.csexp4{
|
39 |
+
|
40 |
+
}
|
41 |
+
.csexp2_left, .csexp3_left, .csexp12_left, .csexp24_left{
|
42 |
+
float: left;
|
43 |
+
width: 200px;
|
44 |
+
}
|
45 |
+
.csexp2_right, .csexp3_right, .csexp12_right, .csexp24_right{
|
46 |
+
float: right;
|
47 |
+
width: 300px;
|
48 |
+
}
|
49 |
+
.csexp2_right input{
|
50 |
+
width: 300px;
|
51 |
+
}
|
52 |
+
.csexpt_right_select{
|
53 |
+
width: 307px;
|
54 |
+
}
|
55 |
+
.csexp2_right button.save{
|
56 |
+
margin-top: 10px;
|
57 |
+
}
|
58 |
+
.csexp11{
|
59 |
+
border: 1px solid #BFBFBF;
|
60 |
+
background-color: #FFFFFF;
|
61 |
+
padding: 10px;
|
62 |
+
}
|
63 |
+
.csexp11_2,.csexp11_3,.csexp11_4,.csexp11_6{
|
64 |
+
font-weight: normal;
|
65 |
+
}
|
66 |
+
.csexp11_5{
|
67 |
+
margin: 10px 0px 0px 10px;
|
68 |
+
}
|
69 |
+
.csexp11_6,.csexp11_7{
|
70 |
+
margin: 2px 0px 0px 10px;
|
71 |
+
}
|
72 |
+
.csexp12{
|
73 |
+
width: 500px;
|
74 |
+
margin: 40px 0 0 10px;
|
75 |
+
}
|
76 |
+
.csexp24{
|
77 |
+
width: 500px;
|
78 |
+
height: 55px;
|
79 |
+
margin: 40px 0 0 0px;
|
80 |
+
}
|
81 |
+
.csexp12_right select, .csexp24_right select{
|
82 |
+
width: 250px;
|
83 |
+
}
|
84 |
+
.csexp12_right button, .csexp24_right button{
|
85 |
+
margin-top: 15px;
|
86 |
+
}
|
87 |
+
.csexp23{
|
88 |
+
margin-top: 10px;
|
89 |
+
}
|
90 |
+
.csexp25{
|
91 |
+
width: 500px;
|
92 |
+
margin-top: 50px;
|
93 |
+
}
|
94 |
+
.csexp25_left,.csexp25_left2{
|
95 |
+
float: left;
|
96 |
+
}
|
97 |
+
.csexp25_left2{
|
98 |
+
margin-left: 5px;
|
99 |
+
color: #000000;
|
100 |
+
font-weight: normal;
|
101 |
+
}
|
102 |
+
|
103 |
+
|
104 |
+
.cs_styles {
|
105 |
+
font-size: 100%;
|
106 |
+
-webkit-text-size-adjust: 100%;
|
107 |
+
-ms-text-size-adjust: 100%;
|
108 |
+
}
|
109 |
+
.cs_styles a:focus {
|
110 |
+
outline: thin dotted #333;
|
111 |
+
outline: 5px auto -webkit-focus-ring-color;
|
112 |
+
outline-offset: -2px;
|
113 |
+
outline: thin dotted #333;
|
114 |
+
outline: 5px auto -webkit-focus-ring-color;
|
115 |
+
outline-offset: -2px;
|
116 |
+
}
|
117 |
+
.cs_styles a:hover,
|
118 |
+
.cs_styles a:active {
|
119 |
+
outline: 0;
|
120 |
+
}
|
121 |
+
|
122 |
+
.cs_styles {
|
123 |
+
margin: 0;
|
124 |
+
height: 100%;
|
125 |
+
position: relative;
|
126 |
+
font-family: 'Pontano Sans', "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
127 |
+
font-size: 14px;
|
128 |
+
line-height: 22px;
|
129 |
+
color: #000000;
|
130 |
+
background-color: #222222;
|
131 |
+
}
|
132 |
+
.cs_styles a {
|
133 |
+
color: #0088cc;
|
134 |
+
text-decoration: none;
|
135 |
+
}
|
136 |
+
.cs_styles a:hover {
|
137 |
+
color: #0064cd;
|
138 |
+
text-decoration: underline;
|
139 |
+
}
|
140 |
+
[class*="cs_span"] {
|
141 |
+
float: left;
|
142 |
+
margin-left: 20px;
|
143 |
+
}
|
144 |
+
.cs_row {
|
145 |
+
margin-left: -20px;
|
146 |
+
*zoom: 1;
|
147 |
+
*zoom: 1;
|
148 |
+
}
|
149 |
+
.cs_row h3 {
|
150 |
+
font-weight: normal;
|
151 |
+
}
|
152 |
+
.cs_row:before,
|
153 |
+
.cs_row:after {
|
154 |
+
display: table;
|
155 |
+
content: "";
|
156 |
+
}
|
157 |
+
.cs_row:after {
|
158 |
+
clear: both;
|
159 |
+
}
|
160 |
+
.cs_container {
|
161 |
+
width: 940px;
|
162 |
+
}
|
163 |
+
.cs_span10 {
|
164 |
+
width: 780px;
|
165 |
+
}
|
166 |
+
.cs_span2 {
|
167 |
+
width: 140px;
|
168 |
+
}
|
169 |
+
.cs_container {
|
170 |
+
margin-right: auto;
|
171 |
+
margin-left: auto;
|
172 |
+
*zoom: 1;
|
173 |
+
*zoom: 1;
|
174 |
+
}
|
175 |
+
|
176 |
+
.cs_styles p {
|
177 |
+
margin: 0 0 11px;
|
178 |
+
font-family: 'Pontano Sans', "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
179 |
+
font-size: 14px;
|
180 |
+
line-height: 22px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.cs_styles h3 {
|
184 |
+
margin: 0;
|
185 |
+
font-family: inherit;
|
186 |
+
font-weight: normal;
|
187 |
+
color: inherit;
|
188 |
+
text-rendering: optimizelegibility;
|
189 |
+
}
|
190 |
+
.cs_styles h3 {
|
191 |
+
font-size: 18px;
|
192 |
+
line-height: 33px;
|
193 |
+
}
|
194 |
+
.cs_styles strong {
|
195 |
+
font-weight: 600;
|
196 |
+
}
|
197 |
+
|
198 |
+
.cs_styles {
|
199 |
+
padding-top: 60px;
|
200 |
+
background: #fdfcfb ;
|
201 |
+
}
|
202 |
+
.cs_sans-serif {
|
203 |
+
font-family: Arial, Helvetica, 'sans-serif';
|
204 |
+
}
|
205 |
+
.cs_sans-serif.cs_tm {
|
206 |
+
font-size: 75%;
|
207 |
+
}
|
208 |
+
|
209 |
+
.cs_key-text-block {
|
210 |
+
text-align: center;
|
211 |
+
}
|
212 |
+
.cs_ending-block {
|
213 |
+
text-align: center;
|
214 |
+
}
|
215 |
+
.cs_ending-block p {
|
216 |
+
font-weight: bold;
|
217 |
+
font-size: 17px;
|
218 |
+
}
|
219 |
+
.cs_key-text-block h3 {
|
220 |
+
font-size: 23px;
|
221 |
+
letter-spacing: -1px;
|
222 |
+
line-height: 24px;
|
223 |
+
position: relative;
|
224 |
+
display: inline-block;
|
225 |
+
text-align: center;
|
226 |
+
}
|
227 |
+
.cs_key-text-block .cs_container {
|
228 |
+
position: relative;
|
229 |
+
}
|
230 |
+
|
231 |
+
.cs_setup-takes-2-min {
|
232 |
+
background-image: url(../images/setup-takes-2-minutes.png);
|
233 |
+
width: 96px;
|
234 |
+
height:57px;
|
235 |
+
position: absolute;
|
236 |
+
top: 44px;
|
237 |
+
left: 0;
|
238 |
+
}
|
239 |
+
|
240 |
+
.cs_details-block {
|
241 |
+
padding: 20px 0 10px;
|
242 |
+
}
|
243 |
+
.cs_details-block .cs_feature-icon {
|
244 |
+
background-image: url(../images/icons-boxed.png);
|
245 |
+
background-repeat: no-repeat;
|
246 |
+
width: 140px;
|
247 |
+
height: 136px;
|
248 |
+
}
|
249 |
+
.cs_details-block .cs_feature-icon.cs_get-intuitive {
|
250 |
+
background-position: 0 0;
|
251 |
+
}
|
252 |
+
.cs_details-block .cs_feature-icon.cs_stand-out {
|
253 |
+
background-position: -145px 0;
|
254 |
+
}
|
255 |
+
.cs_details-block .cs_feature-icon.cs_grow-sales {
|
256 |
+
background-position: -290px 0;
|
257 |
+
}
|
258 |
+
.cs_details-block h3 {
|
259 |
+
font-size: 22px;
|
260 |
+
color: #0d2427;
|
261 |
+
text-shadow: 0 1px 0 white;
|
262 |
+
}
|
263 |
+
.cs_details-block .cs_highlight-details {
|
264 |
+
margin-top: 10px;
|
265 |
+
margin-bottom: 15px;
|
266 |
+
}
|
267 |
+
.cs_details-block .cs_highlight-details-desc p {
|
268 |
+
margin: 2px 0 0px;
|
269 |
+
display: block;
|
270 |
+
margin-bottom: 10px;
|
271 |
+
font-size: 15px;
|
272 |
+
line-height: 19px;
|
273 |
+
font-family: Helvetica, Arial, sans-serif;
|
274 |
+
color: #4D5657;
|
275 |
+
font-weight: normal;
|
276 |
+
}
|
277 |
+
|
278 |
+
.cs_bar-guide-block {
|
279 |
+
margin: 50px auto 30px;
|
280 |
+
}
|
281 |
+
|
282 |
+
.cs_bar-guide-img {
|
283 |
+
margin: 0 auto 0;
|
284 |
+
background: transparent url(../images/intro-img.png) no-repeat center center;
|
285 |
+
width: 696px;
|
286 |
+
height: 205px;
|
287 |
+
}
|
288 |
+
|
289 |
+
@font-face {
|
290 |
+
font-family: 'Pontano Sans';
|
291 |
+
font-style: normal;
|
292 |
+
font-weight: 400;
|
293 |
+
src: local('Pontano Sans'), local('PontanoSans-Regular'), url(http://themes.googleusercontent.com/static/fonts/pontanosans/v1/gTHiwyxi6S7iiHpqAoiE3HhCUOGz7vYGh680lGh-uXM.woff) format('woff');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
}
|