eflyermaker - Version 1.0.1

Version Notes

Tested for Magento 1.9
First version available to public

Download this release

Release Info

Developer eflyermaker
Extension eflyermaker
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (56) hide show
  1. app/code/community/Eflyermaker/.DS_Store +0 -0
  2. app/code/community/Eflyermaker/Eflyermakerformbuilder/.DS_Store +0 -0
  3. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/157b221243060224a94747dc1e242c36 +0 -0
  4. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/251f25927c85143364843adb5f2120da +0 -0
  5. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/31de818860be83a3b6aea312f8559bda +0 -0
  6. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/aeaa7f855181ace765d223c7bdba659e +0 -0
  7. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/e020f6a720df6b8b931b68a286a816d4 +0 -0
  8. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/f8c52a604ebb7d97c7233ea770932a8d +0 -0
  9. app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/index +0 -0
  10. app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/.DS_Store +0 -0
  11. app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/Adminhtml/.DS_Store +0 -0
  12. app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/Adminhtml/Eflyermakerformbuilder.php +16 -5
  13. app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/Adminhtml/Form.php +1 -7
  14. app/code/community/Eflyermaker/Eflyermakerformbuilder/Helper/Data.php +8 -0
  15. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/.DS_Store +0 -0
  16. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Eflyermakerformbuilder.php +0 -15
  17. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Form.php +2 -14
  18. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Mysql4/.DS_Store +0 -0
  19. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Popup.php +0 -13
  20. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Resource/.DS_Store +0 -0
  21. app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Template/Filter.php +15 -62
  22. app/code/community/Eflyermaker/Eflyermakerformbuilder/controllers/.DS_Store +0 -0
  23. app/code/community/Eflyermaker/Eflyermakerformbuilder/controllers/Adminhtml/EflyermakerformbuilderController.php +37 -195
  24. app/code/community/Eflyermaker/Eflyermakerformbuilder/data/.DS_Store +0 -0
  25. app/code/community/Eflyermaker/Eflyermakerformbuilder/etc/config.xml +34 -21
  26. app/code/community/Eflyermaker/Eflyermakerformbuilder/sql/.DS_Store +0 -0
  27. app/code/community/Eflyermaker/Eflyermakerformbuilder/sql/Eflyermaker_eflyermakerformbuilder_setup/.DS_Store +0 -0
  28. app/code/community/Eflyermaker/Eflyermakerformbuilder/sql/Eflyermaker_eflyermakerformbuilder_setup/mysql4-install-1.0.0.php +1 -22
  29. app/design/adminhtml/default/default/layout/eflyermakerformbuilder.xml +2 -36
  30. app/design/adminhtml/default/default/template/eflyermakerformbuilder/.DS_Store +0 -0
  31. app/design/adminhtml/default/default/template/eflyermakerformbuilder/eflyermakerformbuilder.phtml +49 -49
  32. app/design/adminhtml/default/default/template/eflyermakerformbuilder/form.phtml +110 -102
  33. app/design/adminhtml/default/default/template/eflyermakerformbuilder/forms_list.phtml +8 -8
  34. app/design/adminhtml/default/default/template/eflyermakerformbuilder/get_started.phtml +85 -0
  35. app/design/adminhtml/default/default/template/eflyermakerformbuilder/popup.phtml +53 -88
  36. app/design/frontend/base/default/layout/eflyermakerformbuilder/eflyermakerformbuilder.xml +25 -0
  37. app/locale/en_US/eflyermakerformbuilder.csv +0 -4
  38. app/locale/fr_CA/eflyermakerformbuilder.csv +114 -0
  39. app/locale/fr_FR /eflyermakerformbuilder.csv +0 -1
  40. app/locale/fr_FR/eflyermakerformbuilder.csv +114 -0
  41. package.xml +10 -8
  42. skin/adminhtml/default/default/eflyermakerformbuilder/.DS_Store +0 -0
  43. skin/adminhtml/default/default/eflyermakerformbuilder/css/.DS_Store +0 -0
  44. skin/adminhtml/default/default/eflyermakerformbuilder/images/eFlyerMaker_logo.png +0 -0
  45. skin/adminhtml/default/default/eflyermakerformbuilder/images/help1.jpg +0 -0
  46. skin/adminhtml/default/default/eflyermakerformbuilder/images/help2.jpg +0 -0
  47. skin/adminhtml/default/default/eflyermakerformbuilder/images/help3.jpg +0 -0
  48. skin/adminhtml/default/default/eflyermakerformbuilder/images/help3.png +0 -0
  49. skin/adminhtml/default/default/eflyermakerformbuilder/images/help3_.jpg +0 -0
  50. skin/adminhtml/default/default/eflyermakerformbuilder/jquery-ui-1.11.4.custom/.DS_Store +0 -0
  51. skin/adminhtml/default/default/eflyermakerformbuilder/jquery-ui-1.11.4/.DS_Store +0 -0
  52. skin/adminhtml/default/default/eflyermakerformbuilder/js/.DS_Store +0 -0
  53. skin/adminhtml/default/default/eflyermakerformbuilder/js/efmfb_admin.js +61 -162
  54. skin/adminhtml/default/default/eflyermakerformbuilder/js/efmfb_popup_options.js +7 -50
  55. skin/adminhtml/default/default/eflyermakerformbuilder/js/efmfb_popup_setup.js +1 -125
  56. skin/frontend/base/default/eflyermakerformbuilder/efmfb_public.js +17 -100
app/code/community/Eflyermaker/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.DS_Store CHANGED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/157b221243060224a94747dc1e242c36 DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/251f25927c85143364843adb5f2120da DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/31de818860be83a3b6aea312f8559bda DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/aeaa7f855181ace765d223c7bdba659e DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/e020f6a720df6b8b931b68a286a816d4 DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/f8c52a604ebb7d97c7233ea770932a8d DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/.phpintel/index DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/Adminhtml/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/Adminhtml/Eflyermakerformbuilder.php CHANGED
@@ -1,12 +1,23 @@
1
  <?php
2
-
 
 
 
 
 
 
3
  class Eflyermaker_Eflyermakerformbuilder_Block_Adminhtml_Eflyermakerformbuilder extends Mage_Adminhtml_Block_Template
4
  {
5
  public __construct()
6
  {
7
- // $this->_controller = 'adminhtml_eflyermakerformbuilder';
8
- // $this->_blockGroup = 'eflyermakerFormBuilder';
9
- // $this->_addButtonLabel = Mag::helper('eflyermakerFormBuilder')->__('Add Form');
10
  parent::__construct();
11
- }
 
 
 
 
 
 
 
 
12
  }
1
  <?php
2
+ /**
3
+ * Eflyermaker Block
4
+ *
5
+ * @category Eflyermaker
6
+ * @package Eflyermaker_Eflyermakerformbuilder
7
+ * @author Eflyermaker Team
8
+ */
9
  class Eflyermaker_Eflyermakerformbuilder_Block_Adminhtml_Eflyermakerformbuilder extends Mage_Adminhtml_Block_Template
10
  {
11
  public __construct()
12
  {
 
 
 
13
  parent::__construct();
14
+ }
15
+
16
+
17
+ public static function getVersion()
18
+ {
19
+ $i = self::getVersionInfo();
20
+ return trim("{$i['major']}.{$i['minor']}.{$i['revision']}" . ($i['patch'] != '' ? ".{$i['patch']}" : "")
21
+ . "-{$i['stability']}{$i['number']}", '.-');
22
+ }
23
  }
app/code/community/Eflyermaker/Eflyermakerformbuilder/Block/Adminhtml/Form.php CHANGED
@@ -4,11 +4,5 @@ Eflyermaker/EflyermakerFormBuilder/Block/
4
  */
5
  class Eflyermaker_Eflyermakerformbuilder_Block_Adminhtml_Eflyermakerformbuilder extends Mage_Adminhtml_Block_Template
6
  {
7
- // public __construct()
8
- // {
9
- // $this->_controller = 'adminhtml_eflyermakerformbuilder';
10
- // $this->_blockGroup = 'eflyermakerFormBuilder';
11
- // $this->_addButtonLabel = Mag::helper('eflyermakerFormBuilder')->__('Add Form');
12
- // parent::__construct();
13
- // }
14
  }
4
  */
5
  class Eflyermaker_Eflyermakerformbuilder_Block_Adminhtml_Eflyermakerformbuilder extends Mage_Adminhtml_Block_Template
6
  {
7
+
 
 
 
 
 
 
8
  }
app/code/community/Eflyermaker/Eflyermakerformbuilder/Helper/Data.php CHANGED
@@ -1,4 +1,12 @@
1
  <?php
2
  class Eflyermaker_Eflyermakerformbuilder_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
 
 
 
 
 
 
 
 
4
  }
1
  <?php
2
  class Eflyermaker_Eflyermakerformbuilder_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
4
+
5
+
6
+ public function getExtensionVersion()
7
+ {
8
+ return (string) Mage::getConfig()->getNode('modules/Eflyermaker_Eflyermakerformbuilder/version');
9
+ }
10
+
11
+
12
  }
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Eflyermakerformbuilder.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
-
3
- // class Eflyermaker_Eflyermakerformbuilder_Model_Form extends Mage_Core_Model_Abstract
4
- // {
5
-
6
- // public function _construct()
7
- // {
8
- // parent::_construct();
9
- // $this->_init('eflyermakerformbuilder/form');
10
- // }
11
-
12
-
13
-
14
-
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Form.php CHANGED
@@ -12,17 +12,12 @@ class Eflyermaker_Eflyermakerformbuilder_Model_Form extends Mage_Core_Model_Abst
12
  }
13
 
14
 
15
- // public function saveForm( $data )
16
- // {
17
-
18
- // }
19
 
20
  public function getFormById( $form_id )
21
  {
22
  $formModel = $this->load( $form_id );
23
 
24
- // echo $formModel->getData('efmfb_form_name');
25
-
26
  return array(
27
  "efmfb_id" => $formModel->getData('efmfb_id'),
28
  "efmfb_form_key" => $formModel->getData('efmfb_form_key'),
@@ -33,20 +28,18 @@ class Eflyermaker_Eflyermakerformbuilder_Model_Form extends Mage_Core_Model_Abst
33
  "efmfb_custom_styles" => $formModel->getData('efmfb_custom_styles')
34
  );
35
 
36
- // retrun $formData;
37
  }
38
 
39
 
40
  public function getformByName( $form_name )
41
  {
42
  return $this->getCollection()->addFieldToFilter('efmfb_form_name', $form_name);
43
- // Mage::getModel('eflyermakerformbuilder/form')->getCollection()->addFieldToFilter('efmfb_form_name', $efmfb_form_name);
44
  }
45
 
46
 
47
  public function getNbFormsWithName( $form_name )
48
  {
49
- $collection = $this->getformByName( $form_name );//$this->getCollection()->addFieldToFilter('efmfb_form_name', $form_name);
50
  return $collection->count();
51
  }
52
 
@@ -61,7 +54,6 @@ class Eflyermaker_Eflyermakerformbuilder_Model_Form extends Mage_Core_Model_Abst
61
 
62
  while( $this->getNbFormsWithName( $name ) > 0)
63
  {
64
- // echo $i.'<br>';
65
  $name .= '_copy';
66
  ++$i;
67
  }
@@ -69,10 +61,6 @@ class Eflyermaker_Eflyermakerformbuilder_Model_Form extends Mage_Core_Model_Abst
69
 
70
  }
71
 
72
-
73
-
74
-
75
-
76
 
77
  }
78
 
12
  }
13
 
14
 
15
+
 
 
 
16
 
17
  public function getFormById( $form_id )
18
  {
19
  $formModel = $this->load( $form_id );
20
 
 
 
21
  return array(
22
  "efmfb_id" => $formModel->getData('efmfb_id'),
23
  "efmfb_form_key" => $formModel->getData('efmfb_form_key'),
28
  "efmfb_custom_styles" => $formModel->getData('efmfb_custom_styles')
29
  );
30
 
 
31
  }
32
 
33
 
34
  public function getformByName( $form_name )
35
  {
36
  return $this->getCollection()->addFieldToFilter('efmfb_form_name', $form_name);
 
37
  }
38
 
39
 
40
  public function getNbFormsWithName( $form_name )
41
  {
42
+ $collection = $this->getformByName( $form_name );
43
  return $collection->count();
44
  }
45
 
54
 
55
  while( $this->getNbFormsWithName( $name ) > 0)
56
  {
 
57
  $name .= '_copy';
58
  ++$i;
59
  }
61
 
62
  }
63
 
 
 
 
 
64
 
65
  }
66
 
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Mysql4/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Popup.php CHANGED
@@ -12,19 +12,6 @@ class Eflyermaker_Eflyermakerformbuilder_Model_Popup extends Mage_Core_Model_Abs
12
  }
13
 
14
 
15
- // public function saveForm( $data )
16
- // {
17
-
18
- // }
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
 
29
 
30
  }
12
  }
13
 
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
 
17
  }
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Resource/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/Model/Template/Filter.php CHANGED
@@ -5,7 +5,6 @@
5
  * @category Eflyermaker
6
  * @package Eflyermaker_Eflyermakerformbuilder
7
  * @author Eflyermaker Team
8
- * @todo Nothing to do :)
9
  */
10
 
11
  class Eflyermaker_Eflyermakerformbuilder_Model_Template_Filter extends Mage_Widget_Model_Template_Filter{
@@ -33,11 +32,19 @@
33
  $form .='<div id="eFlyerMaker_msg" class="efmfb-alert"></div>';
34
  $form .= '<form id="sub_form" method="post" action="" efmfb-formsource="tinymce" class="'.$classes.'" style="'.$styles.'">';
35
  $form .= '<input type="hidden" name="simple" value="simple" style="display:none !important;">';
36
- $form .= html_entity_decode( $form_results->getData("efmfb_form_structure") );
37
  $form .= '</form>';
38
- $form .= '</div>';
39
-
40
-
 
 
 
 
 
 
 
 
41
 
42
 
43
  if($is_popup == "1")
@@ -87,37 +94,12 @@
87
 
88
  $efmfb_popup_Form_html = '';
89
  $efmfb_popup_Form_html .= '<div id="efmfb_popup_form_data" style="display:none;">';
90
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_classes" id="efmfb_popup_classes" value="'.$popup_classes.'"/>';
91
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_width" id="efmfb_popup_width" value="'.$popup_width.'"/>';
92
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_height" id="efmfb_popup_height" value="'.$popup_height.'"/>';
93
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_bg_img" id="efmfb_popup_bg_img" value="'.$popup_bg_img.'"/>';
94
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_overlay_color" id="efmfb_popup_overlay_color" value="'.$efmfb_popup_overlay_color.'"/>';
95
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_border_color" id="efmfb_popup_border_color" value="'.$popup_border_color.'"/>';
96
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_border_radius" id="efmfb_popup_border_radius" value="'.$popup_border_radius.'"/>';
97
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_close_color" id="efmfb_popup_close_color" value="'.$efmfb_popup_close_icon_color.'"/>';
98
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_bg_color" id="efmfb_popup_bg_color" value="'.$popup_bg_color.'"/>';
99
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_title_text" id="efmfb_popup_title_text" value="'.$popup_title_text.'"/>';
100
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_title_color" id="efmfb_popup_title_color" value="'.$efmfb_popup_title_color.'"/>';
101
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_title_img" id="efmfb_popup_title_img" value="'.$popup_title_img.'"/>';
102
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_title_img_pos" id="efmfb_popup_title_img_pos" value="'.$efmfb_popup_title_img_pos.'"/>';
103
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_title_styles" id="efmfb_popup_title_styles" value="'.$popup_title_styles.'"/>';
104
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_body_bg_color" id="efmfb_popup_body_bg_color" value="'.$popup_body_bg_color.'"/>';
105
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_body_bg_opacity" id="efmfb_popup_body_bg_opacity" value="'.$popup_body_bg_opacity.'"/>';
106
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_body_styles" id="efmfb_popup_body_styles" value="'.$popup_body_styles.'"/>';
107
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_animatecss_show" id="efmfb_popup_animatecss_show" value="'.$efmfb_popup_animatecss_show.'"/>';
108
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_animatecss_hide" id="efmfb_popup_animatecss_hide" value="'.$efmfb_popup_animatecss_hide.'"/>';
109
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_delay" id="efmfb_popup_delay" value="'.$efmfb_popup_delay.'"/>';
110
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_box_shadow" id="efmfb_popup_box_shadow" value="'.$popup_box_shadow.'"/>';
111
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_footer_text" id="efmfb_popup_footer_text" value="'.$popup_footer_text.'"/>';
112
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_header_text" id="efmfb_popup_header_text" value="'.$popup_header_text .'"/>';
113
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_overlay_opacity" id="efmfb_popup_overlay_opacity" value="'.$efmfb_popup_overlay_opacity.'"/>';
114
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_rotate_in_success" id="efmfb_popup_rotate_in_success" value="'.$efmfb_popup_rotate_in_success.'"/>';
115
- // $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_title_has_body_bgcolor" id="efmfb_popup_title_has_body_bgcolor" value="'.$popup_title_has_body_bgcolor.'"/>';
116
- // $efmfb_popup_Form_html .= '<div id="efmfb_poup_header_text">'.$popup_header_text.'</div>';
117
- // $efmfb_popup_Form_html .= '<div id="efmfb_poup_form_content">';
118
- // $efmfb_popup_Form_html .= $form;
119
- // $efmfb_popup_Form_html .= '</div>';
120
- // $efmfb_popup_Form_html .= '<div id="efmfb_poup_footer_text">'.$popup_footer_text.'</div>';
121
  $efmfb_popup_Form_html .= '</div>';
122
 
123
 
@@ -130,45 +112,16 @@
130
 
131
 
132
 
133
- // $efmfb_popup_classes = 'class="'. $efmfb_popup_classes .'"';
134
-
135
-
136
- // $efmfb_popup_style = 'style="';
137
- // $efmfb_popup_style .= 'width:'.$popup_width.'px; ';
138
- // $efmfb_popup_style .= 'height:'.$popup_height.'px; ';
139
- // $efmfb_popup_style .= 'box-shadow:'.$popup_box_shadow.'; ';
140
- // if( $popup_bg_color ) $efmfb_popup_style .= 'background-color:'.$popup_bg_color.';';
141
- // if( $popup_bg_img ) $efmfb_popup_style .= 'background-img:url('.$popup_bg_img.');';
142
- // if( $popup_border_color ) $efmfb_popup_style .= 'border:1px solid '.$popup_border_color.';';
143
- // if( $popup_border_radius ) $efmfb_popup_style .= 'border-radius:'.$popup_border_radius.'px;';
144
- // $efmfb_popup_style .= 'max-height:100%; background-color:#F0F0F0; overflow:auto; padding:30px;';
145
- // $efmfb_popup_style .= '"';
146
-
147
-
148
- // $efmfb_popup_title_style = 'style="';
149
- // $efmfb_popup_title_style .= $popup_title_styles;
150
- // $efmfb_popup_title_style .= 'color: '.$popup_title_color.';';
151
- // if($popup_title_has_body_bgcolor == 1) $efmfb_popup_title_style .= 'background-color: '.$popup_bg_color.';';
152
- // $efmfb_popup_title_style .= '"';
153
-
154
- // $efmfb_popup_body_style = 'style="';
155
- // $efmfb_popup_body_style .= $popup_body_styles.' ';
156
- // $efmfb_popup_body_style .= 'background-color:'.$popup_body_bg_color."; ";
157
- // $efmfb_popup_body_style .= 'opacity:'.$popup_body_bg_opacity."; ";
158
- // $efmfb_popup_body_style .= '"';
159
-
160
-
161
-
162
  $efmfb_popup_style = 'style="';
163
  $efmfb_popup_style .= 'width:'.$efmfb_popup_width.'px; max-width:100%;';
164
- // $efmfb_popup_style .= 'height:'.$efmfb_popup_height.'px; ';
165
  $efmfb_popup_style .= 'box-shadow:'.$efmfb_popup_box_shadow.'; ';
166
  if( $efmfb_popup_bg_color ) $efmfb_popup_style .= 'background-color:'.$efmfb_popup_bg_color.';';
167
  if( $efmfb_popup_bg_img ) $efmfb_popup_style .= 'background-image:url('.$efmfb_popup_bg_img.') ; background-repeat:no-repeat; background-position:center;';
168
  if( $efmfb_popup_border_color ) $efmfb_popup_style .= 'border:1px solid '.$efmfb_popup_border_color.';';
169
  if( $efmfb_popup_border_radius ) $efmfb_popup_style .= 'border-radius:'.$efmfb_popup_border_radius.'px;';
170
  $efmfb_popup_style .= 'max-height:100%; padding:0px; overflow-x:hidden; overflow-y:auto;';
171
- // $efmfb_popup_style .= ' overflow:auto; ';
172
  $efmfb_popup_style .= '"';
173
 
174
 
@@ -191,7 +144,7 @@ if($efmfb_popup_body_bg_rgba) $efmfb_popup_body_bg_rgba = 'background-color:'.$e
191
 
192
  $efmfb_popup_body_style = 'style="';
193
  $efmfb_popup_body_style .= $efmfb_popup_body_styles.' ';
194
- // $efmfb_popup_body_style .= ' padding:10px; ';
195
  $efmfb_popup_body_style .= ' "';
196
 
197
 
5
  * @category Eflyermaker
6
  * @package Eflyermaker_Eflyermakerformbuilder
7
  * @author Eflyermaker Team
 
8
  */
9
 
10
  class Eflyermaker_Eflyermakerformbuilder_Model_Template_Filter extends Mage_Widget_Model_Template_Filter{
32
  $form .='<div id="eFlyerMaker_msg" class="efmfb-alert"></div>';
33
  $form .= '<form id="sub_form" method="post" action="" efmfb-formsource="tinymce" class="'.$classes.'" style="'.$styles.'">';
34
  $form .= '<input type="hidden" name="simple" value="simple" style="display:none !important;">';
35
+ $form .= html_entity_decode( $form_results->getData("efmfb_form_structure") );
36
  $form .= '</form>';
37
+
38
+ if( strpos($form, 'name="form_lang" value="fr"') === false )
39
+ {
40
+ $form .= '<center><span style="font-size:11px; font-weight:normal;">Signup form powered by <a href="http://www.eflyermaker.com" title="Best email marketing software" target="_blank">eFlyerMaker.com</a>, powerful and easy-to-use email marketing software.</span></center>';
41
+ }
42
+ else
43
+ {
44
+ $form .= '<center><span style="font-size:11px; font-weight:normal;">Formulaire d\'inscription fourni par <a href="http://www.eflyermaker.com/accueil.html" title="Meilleur logiciel de marketing par courriel" target="_blank">eFlyerMaker.com</a>, email marketing performant et intuitif.</span></center>';
45
+ }
46
+
47
+ $form .= '</div>';
48
 
49
 
50
  if($is_popup == "1")
94
 
95
  $efmfb_popup_Form_html = '';
96
  $efmfb_popup_Form_html .= '<div id="efmfb_popup_form_data" style="display:none;">';
 
 
 
 
97
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_overlay_color" id="efmfb_popup_overlay_color" value="'.$efmfb_popup_overlay_color.'"/>';
 
 
 
 
 
 
 
 
 
 
 
 
98
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_animatecss_show" id="efmfb_popup_animatecss_show" value="'.$efmfb_popup_animatecss_show.'"/>';
99
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_animatecss_hide" id="efmfb_popup_animatecss_hide" value="'.$efmfb_popup_animatecss_hide.'"/>';
100
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_delay" id="efmfb_popup_delay" value="'.$efmfb_popup_delay.'"/>';
 
 
 
101
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_overlay_opacity" id="efmfb_popup_overlay_opacity" value="'.$efmfb_popup_overlay_opacity.'"/>';
102
  $efmfb_popup_Form_html .= '<input type="hidden" style="display:none !important;" name="efmfb_popup_rotate_in_success" id="efmfb_popup_rotate_in_success" value="'.$efmfb_popup_rotate_in_success.'"/>';
 
 
 
 
 
 
103
  $efmfb_popup_Form_html .= '</div>';
104
 
105
 
112
 
113
 
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  $efmfb_popup_style = 'style="';
116
  $efmfb_popup_style .= 'width:'.$efmfb_popup_width.'px; max-width:100%;';
117
+
118
  $efmfb_popup_style .= 'box-shadow:'.$efmfb_popup_box_shadow.'; ';
119
  if( $efmfb_popup_bg_color ) $efmfb_popup_style .= 'background-color:'.$efmfb_popup_bg_color.';';
120
  if( $efmfb_popup_bg_img ) $efmfb_popup_style .= 'background-image:url('.$efmfb_popup_bg_img.') ; background-repeat:no-repeat; background-position:center;';
121
  if( $efmfb_popup_border_color ) $efmfb_popup_style .= 'border:1px solid '.$efmfb_popup_border_color.';';
122
  if( $efmfb_popup_border_radius ) $efmfb_popup_style .= 'border-radius:'.$efmfb_popup_border_radius.'px;';
123
  $efmfb_popup_style .= 'max-height:100%; padding:0px; overflow-x:hidden; overflow-y:auto;';
124
+
125
  $efmfb_popup_style .= '"';
126
 
127
 
144
 
145
  $efmfb_popup_body_style = 'style="';
146
  $efmfb_popup_body_style .= $efmfb_popup_body_styles.' ';
147
+
148
  $efmfb_popup_body_style .= ' "';
149
 
150
 
app/code/community/Eflyermaker/Eflyermakerformbuilder/controllers/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/controllers/Adminhtml/EflyermakerformbuilderController.php CHANGED
@@ -1,80 +1,43 @@
1
  <?php
 
 
 
 
 
 
 
2
  class Eflyermaker_Eflyermakerformbuilder_Adminhtml_EflyermakerformbuilderController extends Mage_Adminhtml_Controller_Action
3
  {
4
-
5
-
6
- /*
7
- Mage::getSingleton(‘core/session’)->addNotice(‘Notice message’);
8
- Mage::getSingleton(‘core/session’)->addSuccess(‘Success message’);
9
- Mage::getSingleton(‘core/session’)->addError(‘Error message’);
10
- Mage::getSingleton(‘adminhtml/session’)->addWarning(‘Warning message’);
11
- */
12
-
13
- /*
14
-
15
- In a block instance
16
- <?php echo $this->__('Text goes here'); ?>
17
-
18
- Anywhere else
19
- <?php echo Mage::helper('core')->__('Text goes here'); ?>
20
-
21
- =======
22
-
23
- In a block instance
24
- <?php echo $this->escapeHtml('HTML goes here'); ?>
25
-
26
- Anywhere else
27
- Using Mage/Core/Helper/Abstract.php
28
- escapeHtml($data, $allowedTags = null)
29
-
30
- <?php echo Mage::helper('core')->escapeHtml('HTML goes here'); ?>
31
-
32
- */
33
-
34
 
35
 
36
-
37
-
38
-
39
-
40
- /*
41
- // inject block
42
- $this->loadLayout();
43
-
44
- $block = $this->getLayout()->createBlock(
45
- 'Mage_Core_Block_Template',
46
- 'my_block_name_here',
47
- array('template' => 'activecodeline/developer.phtml')
48
- );
49
-
50
- $this->getLayout()->getBlock('content')->append($block);
51
-
52
- //Release layout stream... lol... sounds fancy
53
- $this->renderLayout();
54
- */
55
-
56
-
57
  public function indexAction()
58
  {
59
  $this->loadLayout();
60
- // $this->_title($this->__("create form"));
61
  $this->renderLayout();
62
  }
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  public function createFormAction()
65
  {
66
- // Mage::getBaseDir('skin');
67
  $this->loadLayout();
68
  $this->_title($this->__("Create form"));
69
  $this->_setActiveMenu("eflyermakerformbuilder/items");
70
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
71
  $head = Mage::app()->getLayout()->getBlock('head');
72
- // $head->addItem('skin_css', "css/efmfb_admin.css");
73
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/form.phtml'));
74
-
75
- $this->renderLayout();
76
-
77
-
78
  }
79
 
80
 
@@ -83,52 +46,11 @@ public function ajaxGetFormByIdAction()
83
 
84
  $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
85
  $formData = Mage::getModel('eflyermakerformbuilder/form')->getFormById($efmfb_form_id);
86
-
87
- // $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
88
- echo Mage::helper('core')->jsonEncode($formData);
89
- return;
90
-
91
-
92
- // $this->_redirectReferer();
93
  }
94
 
95
 
96
-
97
- // AJAX !!!
98
- // public function getFormByIdAction( )
99
- // {
100
- // $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
101
-
102
- // // echo "efmfb_form_id : ".$efmfb_form_id;
103
- // $formModel = Mage::getModel('eflyermakerformbuilder/form')->load( $efmfb_form_id );
104
- // //
105
-
106
-
107
- // $formData = array(
108
- // "efmfb_id" => $formModel->getData('efmfb_id'),
109
- // "efmfb_form_key" => $formModel->getData('efmfb_form_key'),
110
- // "efmfb_form_name" => $formModel->getData('efmfb_form_name'),
111
- // "efmfb_form_description" => $formModel->getData('efmfb_form_description'),
112
- // "efmfb_form_structure" => $formModel->getData('efmfb_form_structure'),
113
- // "efmfb_custom_classes" => $formModel->getData('efmfb_custom_classes'),
114
- // "efmfb_custom_styles" => $formModel->getData('efmfb_custom_styles'),
115
- // );
116
- // // var_dump($formData);
117
- // // echo json_encode($formData);
118
-
119
- // // $this->getResponse()->setHeader('Content-type', 'application/json');
120
- // // $this->getResponse()->setBody($formData);
121
-
122
-
123
- // $formData = Mage::helper('core')->jsonEncode($formData);
124
- // $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true);
125
- // $this->getResponse()->setBody($formData);
126
- // // $this->loadLayout(false);
127
- // // $this->renderLayout();
128
- // return $formData;
129
-
130
- // }
131
-
132
  /*
133
  *
134
  * SAVE FORM
@@ -146,24 +68,16 @@ public function saveFormAction()
146
  $efmfb_id = trim($this->getRequest()->getParam('efmfb_form_old_id'));
147
  $efmfb_form_isEdit = trim($this->getRequest()->getParam('efmfb_form_isEdit'));
148
 
149
-
150
-
151
  $success = 0;
152
 
153
 
154
 
155
-
156
-
157
-
158
-
159
-
160
-
161
- if( !$efmfb_form_name )
162
- {
163
- Mage::getSingleton('core/session')->addError('Form name is required');
164
- }
165
- else
166
- {
167
 
168
 
169
 
@@ -320,23 +234,7 @@ $this->renderLayout();
320
  try
321
  {
322
  $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
323
-
324
- $formData = Mage::getModel('eflyermakerformbuilder/form')->getFormById($efmfb_form_id);
325
- // $formModel = Mage::getModel('eflyermakerformbuilder/form')->load( $efmfb_form_id );
326
-
327
- // // echo $formModel->getData('efmfb_form_name');
328
-
329
- // $formData = array(
330
- // "efmfb_id" => $formModel->getData('efmfb_id'),
331
- // "efmfb_form_key" => $formModel->getData('efmfb_form_key'),
332
- // "efmfb_form_name" => $formModel->getData('efmfb_form_name'),
333
- // "efmfb_form_description" => $formModel->getData('efmfb_form_description'),
334
- // "efmfb_form_structure" => $formModel->getData('efmfb_form_structure'),
335
- // "efmfb_custom_classes" => $formModel->getData('efmfb_custom_classes'),
336
- // "efmfb_custom_styles" => $formModel->getData('efmfb_custom_styles'),
337
- // );
338
-
339
-
340
  }
341
  catch (Exception $e)
342
  {
@@ -344,16 +242,11 @@ catch (Exception $e)
344
  }
345
 
346
 
347
-
348
- // var_dump($formData);
349
-
350
  $this->loadLayout();
351
  $this->_title($this->__("Edit form"));
352
  $this->_setActiveMenu("eflyermakerformbuilder/items");
353
- // $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
354
  $head = Mage::app()->getLayout()->getBlock('head');
355
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/form.phtml'));
356
- // var_dump($formData);
357
  Mage::register('formData', $formData);
358
  $this->renderLayout();
359
 
@@ -366,17 +259,13 @@ catch (Exception $e)
366
  *****************/
367
 
368
  public function getFormsListAction()
369
- {
370
-
371
-
372
-
373
 
374
  $forms_list = array();
375
 
376
  try
377
  {
378
  $collection = Mage::getModel('eflyermakerformbuilder/form')->getCollection();
379
- // Mage::getModel('eflyermakerformbuilder/form')->load('2');
380
  foreach($collection as $data)
381
  {
382
  $form_obj = array(
@@ -392,21 +281,19 @@ catch (Exception $e)
392
  'efmfb_last_modification' => $data->getData('efmfb_last_modification')
393
  );
394
  array_push($forms_list, $form_obj);
395
- }
396
-
397
-
398
 
399
  }
400
  catch(Exception $e)
401
  {
402
  Mage::getSingleton('core/session')->addError('An error has occurred');
403
  }
 
 
404
 
405
  $this->loadLayout();
406
- $this->_title($this->__("Manage form"));
407
- $this->_setActiveMenu("eflyermakerformbuilder/items");
408
- // $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
409
-
410
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setData('forms_list',$forms_list)->setTemplate('eflyermakerformbuilder/forms_list.phtml'));
411
  $this->renderLayout();
412
  }
@@ -414,10 +301,6 @@ catch (Exception $e)
414
 
415
 
416
 
417
-
418
-
419
-
420
-
421
  /**************
422
  *
423
  * DELETE FORM FROM DB
@@ -476,7 +359,6 @@ catch (Exception $e)
476
  $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
477
  $duplicate_this_form = Mage::getModel('eflyermakerformbuilder/form')->load( $efmfb_form_id );
478
  $new_form_name = Mage::getModel('eflyermakerformbuilder/form')->getDuplicatedName($duplicate_this_form['efmfb_form_name']);
479
- // echo 'new_form_name : '.$new_form_name;
480
 
481
  $data = array(
482
  "efmfb_form_key" => $duplicate_this_form['efmfb_form_key'],
@@ -515,14 +397,6 @@ catch (Exception $e)
515
 
516
 
517
 
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
  }
527
  catch (Exception $e)
528
  {
@@ -540,14 +414,7 @@ catch (Exception $e)
540
 
541
 
542
 
543
- /**
544
- * Eflyermaker Get Popup Options page
545
- *
546
- * @category Eflyermaker
547
- * @package Eflyermaker_Eflyermakerformbuilder
548
- * @author Eflyermaker Team
549
- * @todo Nothing to do :)
550
- */
551
 
552
 
553
  public function getPopupPageAction()
@@ -628,8 +495,6 @@ Mage::register('efmfb_forms_list', $efmfb_forms_list);
628
  $this->loadLayout();
629
  $this->_title($this->__("Popup options"));
630
  $this->_setActiveMenu("eflyermakerformbuilder/items");
631
- // $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
632
- // $head = Mage::app()->getLayout()->getBlock('head');
633
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/popup.phtml'));
634
  $this->renderLayout();
635
  }
@@ -649,13 +514,6 @@ $efmfb_popup_title_has_body_bgcolor = $this->getRequest()->getParam('efmfb_popup
649
  $efmfb_popup_rotate_in_success = $this->getRequest()->getParam('efmfb_popup_rotate_in_success') ? "checked" : "";
650
 
651
 
652
- // $efmfb_popup_title_has_body_bgcolor = empty($this->getRequest()->getParam('efmfb_popup_title_has_body_bgcolor')) ? "" : "checked";
653
- // $efmfb_popup_rotate_in_success = empty($this->getRequest()->getParam('efmfb_popup_rotate_in_success')) ? "" : "checked";
654
-
655
-
656
-
657
-
658
-
659
  $efmfb_popup_db_options = array(
660
  "efmfb_popup_classes" => trim($this->getRequest()->getParam('efmfb_popup_classes')),
661
  "efmfb_popup_width" => trim($this->getRequest()->getParam('efmfb_popup_width')),
@@ -681,10 +539,6 @@ $efmfb_popup_rotate_in_success = $this->getRequest()->getParam('efmfb_popup_rota
681
  "efmfb_popup_body_bg_opacity" => trim($this->getRequest()->getParam('efmfb_popup_body_bg_opacity')),
682
  "efmfb_popup_body_styles" => trim($this->getRequest()->getParam('efmfb_popup_body_styles')),
683
  "efmfb_popup_body_classes" => trim($this->getRequest()->getParam('efmfb_popup_body_classes')),
684
- // "efmfb_popup_show_effect" => $popup_data->getData('efmfb_popup_show_effect'),
685
- // "efmfb_popup_show_effect_duration" => $popup_data->getData('efmfb_popup_show_effect_duration'),
686
- // "efmfb_popup_hide_effect" => $popup_data->getData('efmfb_popup_hide_effect'),
687
- // "efmfb_popup_hide_effect_duration" => $popup_data->getData('efmfb_popup_hide_effect_duration'),
688
  "efmfb_popup_show_animation" => trim($this->getRequest()->getParam('efmfb_popup_animatecss_show')),
689
  "efmfb_popup_hide_animation" => trim($this->getRequest()->getParam('efmfb_popup_animatecss_hide')),
690
  "efmfb_popup_delay" => trim($this->getRequest()->getParam('efmfb_popup_delay')),
@@ -699,25 +553,13 @@ $efmfb_popup_rotate_in_success = $this->getRequest()->getParam('efmfb_popup_rota
699
  try
700
  {
701
  $update = $connection->update( $resource->getMainTable(), $efmfb_popup_db_options, array('efmfb_id = ?' => '1' ) );
702
- // $connection->query("update TABLE_NAME set field = 'value'");
703
- // Mage::getSingleton('core/session')->addSuccess('Your popup options was saved with success');
704
- // session_write_close();
705
  $response["success"] = 1;
706
  }
707
  catch (Exception $e)
708
  {
709
- // Mage::getSingleton('core/session')->addError('An error has occurred');
710
- // session_write_close();
711
  $response["success"] = 0;
712
  }
713
 
714
-
715
-
716
- // $this->_redirect('admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getPopupPage');
717
- // $response = array();
718
- // $response['success'] = true;
719
- // $response['message'] = 'Your error message here';
720
- // $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($response);
721
  echo Mage::helper('core')->jsonEncode($response);
722
  return;
723
 
1
  <?php
2
+ /**
3
+ * Eflyermaker Controller
4
+ *
5
+ * @category Eflyermaker
6
+ * @package Eflyermaker_Eflyermakerformbuilder
7
+ * @author Eflyermaker Team
8
+ */
9
  class Eflyermaker_Eflyermakerformbuilder_Adminhtml_EflyermakerformbuilderController extends Mage_Adminhtml_Controller_Action
10
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  public function indexAction()
14
  {
15
  $this->loadLayout();
 
16
  $this->renderLayout();
17
  }
18
 
19
+ public function getStartedAction()
20
+ {
21
+ $this->loadLayout();
22
+ $this->_title($this->__("Get started"));
23
+ $this->_setActiveMenu("eflyermakerformbuilder/items");
24
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
25
+ $head = Mage::app()->getLayout()->getBlock('head');
26
+ $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/get_started.phtml'));
27
+ $this->renderLayout();
28
+ }
29
+
30
+
31
+
32
  public function createFormAction()
33
  {
 
34
  $this->loadLayout();
35
  $this->_title($this->__("Create form"));
36
  $this->_setActiveMenu("eflyermakerformbuilder/items");
37
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
38
  $head = Mage::app()->getLayout()->getBlock('head');
 
39
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/form.phtml'));
40
+ $this->renderLayout();
 
 
 
41
  }
42
 
43
 
46
 
47
  $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
48
  $formData = Mage::getModel('eflyermakerformbuilder/form')->getFormById($efmfb_form_id);
49
+ echo Mage::helper('core')->jsonEncode($formData);
50
+ return;
 
 
 
 
 
51
  }
52
 
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  /*
55
  *
56
  * SAVE FORM
68
  $efmfb_id = trim($this->getRequest()->getParam('efmfb_form_old_id'));
69
  $efmfb_form_isEdit = trim($this->getRequest()->getParam('efmfb_form_isEdit'));
70
 
 
 
71
  $success = 0;
72
 
73
 
74
 
75
+ if( !$efmfb_form_name )
76
+ {
77
+ Mage::getSingleton('core/session')->addError('Form name is required');
78
+ }
79
+ else
80
+ {
 
 
 
 
 
 
81
 
82
 
83
 
234
  try
235
  {
236
  $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
237
+ $formData = Mage::getModel('eflyermakerformbuilder/form')->getFormById($efmfb_form_id);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  }
239
  catch (Exception $e)
240
  {
242
  }
243
 
244
 
 
 
 
245
  $this->loadLayout();
246
  $this->_title($this->__("Edit form"));
247
  $this->_setActiveMenu("eflyermakerformbuilder/items");
 
248
  $head = Mage::app()->getLayout()->getBlock('head');
249
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/form.phtml'));
 
250
  Mage::register('formData', $formData);
251
  $this->renderLayout();
252
 
259
  *****************/
260
 
261
  public function getFormsListAction()
262
+ {
 
 
 
263
 
264
  $forms_list = array();
265
 
266
  try
267
  {
268
  $collection = Mage::getModel('eflyermakerformbuilder/form')->getCollection();
 
269
  foreach($collection as $data)
270
  {
271
  $form_obj = array(
281
  'efmfb_last_modification' => $data->getData('efmfb_last_modification')
282
  );
283
  array_push($forms_list, $form_obj);
284
+ }
 
 
285
 
286
  }
287
  catch(Exception $e)
288
  {
289
  Mage::getSingleton('core/session')->addError('An error has occurred');
290
  }
291
+
292
+
293
 
294
  $this->loadLayout();
295
+ $this->_title($this->__("Manage forms"));
296
+ $this->_setActiveMenu("eflyermakerformbuilder/items");
 
 
297
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setData('forms_list',$forms_list)->setTemplate('eflyermakerformbuilder/forms_list.phtml'));
298
  $this->renderLayout();
299
  }
301
 
302
 
303
 
 
 
 
 
304
  /**************
305
  *
306
  * DELETE FORM FROM DB
359
  $efmfb_form_id = $this->getRequest()->getParam('efmfb_form_id');
360
  $duplicate_this_form = Mage::getModel('eflyermakerformbuilder/form')->load( $efmfb_form_id );
361
  $new_form_name = Mage::getModel('eflyermakerformbuilder/form')->getDuplicatedName($duplicate_this_form['efmfb_form_name']);
 
362
 
363
  $data = array(
364
  "efmfb_form_key" => $duplicate_this_form['efmfb_form_key'],
397
 
398
 
399
 
 
 
 
 
 
 
 
 
400
  }
401
  catch (Exception $e)
402
  {
414
 
415
 
416
 
417
+
 
 
 
 
 
 
 
418
 
419
 
420
  public function getPopupPageAction()
495
  $this->loadLayout();
496
  $this->_title($this->__("Popup options"));
497
  $this->_setActiveMenu("eflyermakerformbuilder/items");
 
 
498
  $this->_addContent($this->getLayout()->createBlock('adminhtml/template')->setTemplate('eflyermakerformbuilder/popup.phtml'));
499
  $this->renderLayout();
500
  }
514
  $efmfb_popup_rotate_in_success = $this->getRequest()->getParam('efmfb_popup_rotate_in_success') ? "checked" : "";
515
 
516
 
 
 
 
 
 
 
 
517
  $efmfb_popup_db_options = array(
518
  "efmfb_popup_classes" => trim($this->getRequest()->getParam('efmfb_popup_classes')),
519
  "efmfb_popup_width" => trim($this->getRequest()->getParam('efmfb_popup_width')),
539
  "efmfb_popup_body_bg_opacity" => trim($this->getRequest()->getParam('efmfb_popup_body_bg_opacity')),
540
  "efmfb_popup_body_styles" => trim($this->getRequest()->getParam('efmfb_popup_body_styles')),
541
  "efmfb_popup_body_classes" => trim($this->getRequest()->getParam('efmfb_popup_body_classes')),
 
 
 
 
542
  "efmfb_popup_show_animation" => trim($this->getRequest()->getParam('efmfb_popup_animatecss_show')),
543
  "efmfb_popup_hide_animation" => trim($this->getRequest()->getParam('efmfb_popup_animatecss_hide')),
544
  "efmfb_popup_delay" => trim($this->getRequest()->getParam('efmfb_popup_delay')),
553
  try
554
  {
555
  $update = $connection->update( $resource->getMainTable(), $efmfb_popup_db_options, array('efmfb_id = ?' => '1' ) );
 
 
 
556
  $response["success"] = 1;
557
  }
558
  catch (Exception $e)
559
  {
 
 
560
  $response["success"] = 0;
561
  }
562
 
 
 
 
 
 
 
 
563
  echo Mage::helper('core')->jsonEncode($response);
564
  return;
565
 
app/code/community/Eflyermaker/Eflyermakerformbuilder/data/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/etc/config.xml CHANGED
@@ -8,10 +8,12 @@
8
  */
9
  -->
10
 
 
 
11
  <config>
12
  <modules>
13
  <Eflyermaker_Eflyermakerformbuilder>
14
- <version>1.0.0</version>
15
  </Eflyermaker_Eflyermakerformbuilder>
16
  </modules>
17
  <!-- GLOBAL -->
@@ -54,11 +56,6 @@
54
  <!--/ RESOURCES -->
55
 
56
 
57
-
58
-
59
-
60
-
61
-
62
  <!-- MODELS -->
63
  <models>
64
  <eflyermakerformbuilder>
@@ -109,26 +106,31 @@
109
  <!--/ ADMIN -->
110
  <!-- ADMINHTML -->
111
  <adminhtml>
112
- <menu>
113
- <eflyermakerformbuilder module="eflyermakerformbuilder">
114
  <title>eFlyerMaker</title>
115
  <sort_order>71</sort_order>
116
  <children>
117
  <items module="eflyermakerformbuilder">
118
- <title>create form</title>
119
  <sort_order>0</sort_order>
120
- <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/createForm</action>
121
  </items>
122
  <items2 module="eflyermakerformbuilder">
123
- <title>manage form</title>
124
  <sort_order>1</sort_order>
125
- <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getFormsList</action>
126
  </items2>
127
  <items3 module="eflyermakerformbuilder">
128
- <title>Popup options</title>
129
  <sort_order>2</sort_order>
130
- <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getPopupPage</action>
131
  </items3>
 
 
 
 
 
132
  </children>
133
  </eflyermakerformbuilder>
134
  </menu>
@@ -139,22 +141,33 @@
139
  </all>
140
  <admin>
141
  <children>
 
 
 
 
 
142
  <items module="eflyermakerformbuilder">
143
- <title>create form</title>
144
  <sort_order>0</sort_order>
145
- <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/createForm</action>
146
  </items>
147
  <items2 module="eflyermakerformbuilder">
148
- <title>manage form</title>
149
  <sort_order>1</sort_order>
150
- <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getFormsList</action>
151
  </items2>
152
  <items3 module="eflyermakerformbuilder">
153
- <title>Popup options</title>
154
  <sort_order>2</sort_order>
155
- <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getPopupPage</action>
156
  </items3>
157
-
 
 
 
 
 
 
158
  </children>
159
  </admin>
160
  </resources>
8
  */
9
  -->
10
 
11
+
12
+
13
  <config>
14
  <modules>
15
  <Eflyermaker_Eflyermakerformbuilder>
16
+ <version>1.0.1</version>
17
  </Eflyermaker_Eflyermakerformbuilder>
18
  </modules>
19
  <!-- GLOBAL -->
56
  <!--/ RESOURCES -->
57
 
58
 
 
 
 
 
 
59
  <!-- MODELS -->
60
  <models>
61
  <eflyermakerformbuilder>
106
  <!--/ ADMIN -->
107
  <!-- ADMINHTML -->
108
  <adminhtml>
109
+ <menu name="efmfb_menu">
110
+ <eflyermakerformbuilder module="eflyermakerformbuilder" translate="efmfb_menu.label efmfb_menu.title">
111
  <title>eFlyerMaker</title>
112
  <sort_order>71</sort_order>
113
  <children>
114
  <items module="eflyermakerformbuilder">
115
+ <title>Get started</title>
116
  <sort_order>0</sort_order>
117
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getStarted</action>
118
  </items>
119
  <items2 module="eflyermakerformbuilder">
120
+ <title>Create form</title>
121
  <sort_order>1</sort_order>
122
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/createForm</action>
123
  </items2>
124
  <items3 module="eflyermakerformbuilder">
125
+ <title>Manage form</title>
126
  <sort_order>2</sort_order>
127
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getFormsList</action>
128
  </items3>
129
+ <items4 module="eflyermakerformbuilder">
130
+ <title>Popup options</title>
131
+ <sort_order>3</sort_order>
132
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getPopupPage</action>
133
+ </items4>
134
  </children>
135
  </eflyermakerformbuilder>
136
  </menu>
141
  </all>
142
  <admin>
143
  <children>
144
+
145
+ <eflyermakerformbuilder module="eflyermakerformbuilder" translate="efmfb_menu.label efmfb_menu.title">
146
+ <title>eFlyerMaker</title>
147
+ <sort_order>1000</sort_order>
148
+ <children>
149
  <items module="eflyermakerformbuilder">
150
+ <title>get started</title>
151
  <sort_order>0</sort_order>
152
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/get_started</action>
153
  </items>
154
  <items2 module="eflyermakerformbuilder">
155
+ <title>create form</title>
156
  <sort_order>1</sort_order>
157
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/createForm</action>
158
  </items2>
159
  <items3 module="eflyermakerformbuilder">
160
+ <title>manage form</title>
161
  <sort_order>2</sort_order>
162
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getFormsList</action>
163
  </items3>
164
+ <items4 module="eflyermakerformbuilder">
165
+ <title>Popup options</title>
166
+ <sort_order>3</sort_order>
167
+ <action>admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getPopupPage</action>
168
+ </items4>
169
+ </children>
170
+ </eflyermakerformbuilder>
171
  </children>
172
  </admin>
173
  </resources>
app/code/community/Eflyermaker/Eflyermakerformbuilder/sql/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/sql/Eflyermaker_eflyermakerformbuilder_setup/.DS_Store DELETED
Binary file
app/code/community/Eflyermaker/Eflyermakerformbuilder/sql/Eflyermaker_eflyermakerformbuilder_setup/mysql4-install-1.0.0.php CHANGED
@@ -1,27 +1,6 @@
1
  <?php
2
- // echo 'hi';
3
- $installer = $this;
4
-
5
-
6
- // ====================== FORMS TABLE =================
7
-
8
-
9
- /*
10
- 'COLUMN_NAME' => $name,
11
- 'COLUMN_TYPE' => $type,
12
- 'COLUMN_POSITION' => $position,
13
- 'DATA_TYPE' => $type,
14
- 'DEFAULT' => $default,
15
- 'NULLABLE' => $nullable,
16
- 'LENGTH' => $length,
17
- 'SCALE' => $scale,
18
- 'PRECISION' => $precision,
19
- 'UNSIGNED' => $unsigned,
20
- 'PRIMARY' => $primary,
21
- 'PRIMARY_POSITION' => $primaryPosition,
22
- 'IDENTITY' => $identity
23
- */
24
 
 
25
 
26
  $installer->startSetup();
27
  $table = $installer->getConnection()->newTable($installer->getTable('eflyermakerformbuilder/form'))
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ $installer = $this;
4
 
5
  $installer->startSetup();
6
  $table = $installer->getConnection()->newTable($installer->getTable('eflyermakerformbuilder/form'))
app/design/adminhtml/default/default/layout/eflyermakerformbuilder.xml CHANGED
@@ -1,17 +1,6 @@
1
  <?xml version="1.0"?>
2
  <layout version="0.1.0">
3
- <!--
4
- <eflyermakerFormBuilder_adminhtml_eflyermakerFormBuilder_createForm>
5
- <reference name="head">
6
- <action method="addCss">
7
- <stylesheet>eflyermakerformbuilder/css/efmfb_admin.css</stylesheet>
8
- </action>
9
- </reference>
10
- <reference name="content">
11
- <block type="eflyermakerFormBuilder/adminhtml_eflyermakerFormBuilder" name="eflyermakerFormBuilder" template="eflyermakerformbuilder/form.phtml"/>
12
- </reference>
13
- </eflyermakerFormBuilder_adminhtml_eflyermakerFormBuilder_createForm>
14
- -->
15
 
16
  <default>
17
  <reference name="head">
@@ -24,33 +13,10 @@
24
  <action method="addCss"><stylesheet>eflyermakerformbuilder/css/animate.css</stylesheet></action>
25
  <action method="addCss"><stylesheet>eflyermakerformbuilder/css/efmfb_admin.css</stylesheet></action>
26
 
27
-
28
- <!--
29
- <action method="addJs"><script>eflyermakerformbuilder/jquery/jquery-1.12.1.min.js</script></action>
30
- <action method="addJs"><script>eflyermakerformbuilder/efmfb_globals.js</script></action>
31
- <action method="addJs"><script>eflyermakerformbuilder/efmfb_admin.js</script></action>
32
- -->
33
-
34
  </reference>
35
 
36
-
37
- <!-- <reference name="footer">
38
- <block type="core/template" name="efmfb_ajax" as="efmfb_ajax" template="eflyermakerformbuilder/ajax.phtml" />
39
- </reference> -->
40
 
41
  </default>
42
-
43
-
44
-
45
-
46
-
47
- <!-- <adminhtml_eflyermakerFormBuilder_createFormAction>
48
- <reference name="head">
49
- <action method="addJs"><js>splurgyjs/jquery-1.7.2.min.js</js></action>
50
- </reference>
51
- </adminhtml_eflyermakerFormBuilder_createFormAction> -->
52
-
53
-
54
-
55
 
56
  </layout>
1
  <?xml version="1.0"?>
2
  <layout version="0.1.0">
3
+
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  <default>
6
  <reference name="head">
13
  <action method="addCss"><stylesheet>eflyermakerformbuilder/css/animate.css</stylesheet></action>
14
  <action method="addCss"><stylesheet>eflyermakerformbuilder/css/efmfb_admin.css</stylesheet></action>
15
 
 
 
 
 
 
 
 
16
  </reference>
17
 
 
 
 
 
18
 
19
  </default>
20
+
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  </layout>
app/design/adminhtml/default/default/template/eflyermakerformbuilder/.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/template/eflyermakerformbuilder/eflyermakerformbuilder.phtml CHANGED
@@ -1,4 +1,4 @@
1
- <img src="https://stage2.intema.ca/Framework/microsites/eflyermaker/images/logo-eflyermaker2016-slogan-color-202px.png">
2
 
3
 
4
 
@@ -15,7 +15,7 @@
15
  <div class="efmfb_containers efmfb_container_l">
16
  <div class="efmfb_wrap">
17
  <div>
18
- <h2 class="inline-block">Create Form</h2>
19
  <hr>
20
  </div>
21
  <div id="efmfb_form_container">
@@ -28,37 +28,37 @@
28
  <div class="efmfb_wrap">
29
  <!-- ---- FORM INFOS ---- -->
30
  <div>
31
- <div id="efmfb_form_info" class="efmfb-form-input-title" efmfb-target="efmfb_form_options" method="post" >Form informations</div>
32
  <div id="efmfb_form_options" class="efmfb-create-form-options ">
33
  <form id="efmfb_create_info_form" action="<?php echo admin_url( 'admin.php?page=eflyermaker-create-form&action=eflyermaker-forms-builder-save-form&nonce=wp_create_nonce( \'save_eflyermaker_form\' )' ); ?>">
34
  <input type="hidden" name="efmfb_form_isEdit" id="efmfb_form_isEdit" value="<?php if(isset($isEdit) ){ echo $isEdit; }?>" />
35
  <input type="hidden" name="efmfb_form_old_id" id="efmfb_form_old_id" value="<?php if(isset($form_data['id']) ){ echo $form_data['id']; }?>" />
36
  <div class="efmfb-form-group">
37
- <label class="efmfb-label">Name:</label><br>
38
  <input id="efmfb_form_info_name" name="efmfb_form_info_name" class="efmfb-form-control" type="text" value="<?php if(isset($form_data['form_name']) ){ echo $form_data['form_name'];} ?>" maxlength="254"/>
39
  </div>
40
  <div class="efmfb-form-group">
41
- <label class="efmfb-label">Description:</label><br>
42
  <input id="efmfb_form_info_desc" name="efmfb_form_info_desc" class="efmfb-form-control" value="<?php if(isset($form_data['form_description']) ){ echo $form_data['form_description']; } ?>" type="text" />
43
  </div>
44
  <div class="efmfb-form-group">
45
- <label class="efmfb-label">Classes:</label><br>
46
  <input id="efmfb_form_info_classes" name="efmfb_form_info_classes" class="efmfb-form-control" value="<?php if(isset($form_data['custom_classes']) ){ echo $form_data['custom_classes']; } ?>" type="text" />
47
  </div>
48
  <div class="efmfb-form-group">
49
- <label class="efmfb-label">Custom styles:</label><br>
50
  <input id="efmfb_form_info_styles" name="efmfb_form_info_styles" class="efmfb-form-control" value="<?php if(isset($form_data['custom_styles']) ){ echo $form_data['custom_styles']; } ?>" type="text" />
51
  </div>
52
  <div class="efmfb-form-group">
53
- <label class="efmfb-label">eFlyerMaker JSON code:</label><br>
54
  <textarea id="efmfb_form_info_json" name="efmfb_form_info_json" class="efmfb-form-control" style="height:150px;"></textarea>
55
  </div>
56
  <br>
57
  <div class="efmfb-form-group">
58
- <button id="efmfb_create_form_info_btn" class="efmfb-btn efmfb-btn-primary" style="min-width:49%;"><i class="fa fa-cubes"></i> Create Form</button>
59
  <button id="efmfb_save_form" class="efmfb-btn efmfb-btn-success" style="min-width:49%;">
60
  <i class="fa fa-lg fa-floppy-o efmfb-pointer" style="margin:0 5px;" ></i>
61
- Save Form</button>
62
 
63
  </div>
64
  </form>
@@ -69,56 +69,56 @@
69
  <div class="efmfb_wrap" id="efmfb_add_new_inputs_container">
70
  <!-- ---- TEXT INPUT ---- -->
71
  <div>
72
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_input_options">Text input</div>
73
  <div id="efmfb_input_options" class="efmfb-create-form-options">
74
  <form id="efmfb_create_text_input_form">
75
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
76
 
77
  <div class="efmfb-form-group">
78
  <label>
79
- <input id="efmfb_create_input_required" type="checkbox"> Required Field
80
  </label>
81
  </div>
82
  <div class="efmfb-form-group">
83
  <label>
84
- <input id="efmfb_create_input_hidden" type="checkbox"> Hidden Field
85
  </label>
86
  </div>
87
  <div class="efmfb-form-group">
88
  <label>
89
- <input id="efmfb_create_input_hide_label" type="checkbox"> Hide Label
90
  </label>
91
  </div>
92
  <div class="efmfb-form-group">
93
- <label class="efmfb-label">Name:</label><br>
94
  <input id="efmfb_create_input_name" class="efmfb-form-control" type="text" />
95
  </div>
96
  <div class="efmfb-form-group">
97
- <label class="efmfb-label">Label:</label><br>
98
  <input id="efmfb_create_input_label" class="efmfb-form-control" type="text" />
99
  </div>
100
  <div class="efmfb-form-group">
101
- <label class="efmfb-label">Default Value:</label><br>
102
  <input id="efmfb_create_input_val" class="efmfb-form-control" type="text" />
103
  </div>
104
  <div class="efmfb-form-group">
105
- <label class="efmfb-label">Placeholder:</label><br>
106
  <input id="efmfb_create_input_placeholder" class="efmfb-form-control" type="text" />
107
  </div>
108
  <div class="efmfb-form-group">
109
- <label class="efmfb-label">Description:</label><br>
110
  <input id="efmfb_create_input_desc" class="efmfb-form-control" type="text" />
111
  </div>
112
  <div class="efmfb-form-group">
113
- <label class="efmfb-label">Classes:</label><br>
114
  <input id="efmfb_create_input_classes" class="efmfb-form-control" type="text" />
115
  </div>
116
  <div class="efmfb-form-group">
117
- <label class="efmfb-label">Custom Style:</label><br>
118
  <textarea id="efmfb_create_input_styles" class="efmfb-form-control" style="height:40px;"></textarea>
119
  </div>
120
  <div class="efmfb-form-group">
121
- <label class="efmfb-label">Error msg:</label><br>
122
  <textarea id="efmfb_create_input_error_msg" class="efmfb-form-control" style="height:40px;" ></textarea>
123
  </div>
124
  <div class="efmfb-form-group">
@@ -131,47 +131,47 @@
131
  <!-- ---- LIST ---- -->
132
 
133
  <div>
134
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_list_options">List</div>
135
  <div id="efmfb_list_options" class="efmfb-create-form-options">
136
  <form id="create_list_form">
137
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
138
  <div class="efmfb-form-group">
139
  <label>
140
- <input id="create_list_required" type="checkbox"> Required Field
141
  </label>
142
  </div>
143
  <div class="efmfb-form-group">
144
  <label>
145
- <input id="create_list_hidden" type="checkbox"> Hidden Field
146
  </label>
147
  </div>
148
  <div class="efmfb-form-group">
149
  <label>
150
- <input id="create_list_hide_label" type="checkbox"> Hide Label
151
  </label>
152
  </div>
153
  <div class="efmfb-form-group">
154
- <label class="efmfb-label">Name:</label><br>
155
  <input id="create_list_name" class="efmfb-form-control" type="text" />
156
  </div>
157
  <div class="efmfb-form-group">
158
- <label class="efmfb-label">Label:</label><br>
159
  <input id="create_list_label" class="efmfb-form-control" type="text" />
160
  </div>
161
  <div class="efmfb-form-group">
162
- <label class="efmfb-label">Default Value:</label><br>
163
  <input id="create_list_val" class="efmfb-form-control" type="text" />
164
  </div>
165
  <div class="efmfb-form-group">
166
- <label class="efmfb-label">Description:</label><br>
167
  <input id="create_list_desc" class="efmfb-form-control" type="text" />
168
  </div>
169
  <div class="efmfb-form-group">
170
- <label class="efmfb-label">custom class:</label><br>
171
  <input id="create_list_classes" class="efmfb-form-control" type="text" />
172
  </div>
173
  <div id="efmfb_add_to_list_container" class="efmfb-form-group">
174
- <div class="efmfb-unselectable" unselectable="on" ><label class="efmfb-label">add to list: </label> <i id="add_to_list_group" class="fa fa-lg fa-plus-circle efmfb-pointer"></i>&nbsp;<i id="remove_from_list_group" class="fa fa-lg fa-minus-circle efmfb-pointer"></i></div>
175
  <div id="add_to_list_group1" class="add-to-list-group">
176
  <div class="efmfb-inline" style="width:48%;">
177
  <input id="create_list_text1" class="efmfb-form-control" placeholder="Text" type="text" />
@@ -182,7 +182,7 @@
182
  </div>
183
  </div>
184
  <div class="efmfb-form-group">
185
- <button id="create_list_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;">Add</button>
186
  </div>
187
  </form>
188
  </div>
@@ -190,38 +190,38 @@
190
  </div>
191
  <!-- ---- CHECKBOX ---- -->
192
  <div>
193
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_chaeckbox_options">Checkbox</div>
194
  <div id="efmfb_chaeckbox_options" class="efmfb-create-form-options">
195
  <form id="create_checkbox_form">
196
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
197
  <div class="efmfb-form-group">
198
  <label>
199
- <input id="create_checkbox_required" type="checkbox"> Required
200
  </label>
201
  </div>
202
  <div class="efmfb-form-group">
203
  <label>
204
- <input id="create_checkbox_hide_label" type="checkbox"> Hide Label
205
  </label>
206
  </div>
207
  <div class="efmfb-form-group">
208
- <label class="efmfb-label">Name:</label><br>
209
  <input id="create_checkbox_name" class="efmfb-form-control" type="text" />
210
  </div>
211
  <div class="efmfb-form-group">
212
- <label class="efmfb-label">Label:</label><br>
213
  <input id="create_checkbox_label" class="efmfb-form-control" type="text" />
214
  </div>
215
  <div class="efmfb-form-group">
216
- <label class="efmfb-label">Description:</label><br>
217
  <input id="create_checkbox_desc" class="efmfb-form-control" type="text" />
218
  </div>
219
  <div class="efmfb-form-group">
220
- <label class="efmfb-label">custom class:</label><br>
221
  <input id="create_checkbox_classes" class="efmfb-form-control" type="text" />
222
  </div>
223
  <div class="efmfb-form-group">
224
- <button id="create_checkbox_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;">Add</button>
225
  </div>
226
  </form>
227
  </div>
@@ -229,38 +229,38 @@
229
  </div>
230
  <!-- ---- RADIO ---- -->
231
  <div>
232
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_radio_options">Radio button</div>
233
  <div id="efmfb_radio_options" class="efmfb-create-form-options">
234
  <form id="create_checkbox_form">
235
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
236
  <div class="efmfb-form-group">
237
  <label>
238
- <input id="create_radio_required" type="checkbox"> Required
239
  </label>
240
  </div>
241
  <div class="efmfb-form-group">
242
  <label>
243
- <input id="create_radio_hide_label" type="checkbox"> Hide Label
244
  </label>
245
  </div>
246
  <div class="efmfb-form-group">
247
- <label class="efmfb-label">Name:</label><br>
248
  <input id="create_radio_name" class="efmfb-form-control" type="text" />
249
  </div>
250
  <div class="efmfb-form-group">
251
- <label class="efmfb-label">Label:</label><br>
252
  <input id="create_radio_label" class="efmfb-form-control" type="text" />
253
  </div>
254
  <div class="efmfb-form-group">
255
- <label class="efmfb-label">Description:</label><br>
256
  <input id="create_radio_desc" class="efmfb-form-control" type="text" />
257
  </div>
258
  <div class="efmfb-form-group">
259
- <label class="efmfb-label">custom class:</label><br>
260
  <input id="create_radio_classes" class="efmfb-form-control" type="text" />
261
  </div>
262
  <div class="efmfb-form-group">
263
- <button id="create_radio_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;">Add</button>
264
  </div>
265
  </form>
266
  </div>
1
+ <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/eFlyerMaker_logo.png">
2
 
3
 
4
 
15
  <div class="efmfb_containers efmfb_container_l">
16
  <div class="efmfb_wrap">
17
  <div>
18
+ <h2 class="inline-block"><?= $this->__('Create Form') ?></h2>
19
  <hr>
20
  </div>
21
  <div id="efmfb_form_container">
28
  <div class="efmfb_wrap">
29
  <!-- ---- FORM INFOS ---- -->
30
  <div>
31
+ <div id="efmfb_form_info" class="efmfb-form-input-title" efmfb-target="efmfb_form_options" method="post" ><?= $this->__('Form informations') ?></div>
32
  <div id="efmfb_form_options" class="efmfb-create-form-options ">
33
  <form id="efmfb_create_info_form" action="<?php echo admin_url( 'admin.php?page=eflyermaker-create-form&action=eflyermaker-forms-builder-save-form&nonce=wp_create_nonce( \'save_eflyermaker_form\' )' ); ?>">
34
  <input type="hidden" name="efmfb_form_isEdit" id="efmfb_form_isEdit" value="<?php if(isset($isEdit) ){ echo $isEdit; }?>" />
35
  <input type="hidden" name="efmfb_form_old_id" id="efmfb_form_old_id" value="<?php if(isset($form_data['id']) ){ echo $form_data['id']; }?>" />
36
  <div class="efmfb-form-group">
37
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
38
  <input id="efmfb_form_info_name" name="efmfb_form_info_name" class="efmfb-form-control" type="text" value="<?php if(isset($form_data['form_name']) ){ echo $form_data['form_name'];} ?>" maxlength="254"/>
39
  </div>
40
  <div class="efmfb-form-group">
41
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
42
  <input id="efmfb_form_info_desc" name="efmfb_form_info_desc" class="efmfb-form-control" value="<?php if(isset($form_data['form_description']) ){ echo $form_data['form_description']; } ?>" type="text" />
43
  </div>
44
  <div class="efmfb-form-group">
45
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
46
  <input id="efmfb_form_info_classes" name="efmfb_form_info_classes" class="efmfb-form-control" value="<?php if(isset($form_data['custom_classes']) ){ echo $form_data['custom_classes']; } ?>" type="text" />
47
  </div>
48
  <div class="efmfb-form-group">
49
+ <label class="efmfb-label"><?= $this->__('Custom styles:') ?></label><br>
50
  <input id="efmfb_form_info_styles" name="efmfb_form_info_styles" class="efmfb-form-control" value="<?php if(isset($form_data['custom_styles']) ){ echo $form_data['custom_styles']; } ?>" type="text" />
51
  </div>
52
  <div class="efmfb-form-group">
53
+ <label class="efmfb-label"><?= $this->__('eFlyerMaker JSON code:') ?></label><br>
54
  <textarea id="efmfb_form_info_json" name="efmfb_form_info_json" class="efmfb-form-control" style="height:150px;"></textarea>
55
  </div>
56
  <br>
57
  <div class="efmfb-form-group">
58
+ <button id="efmfb_create_form_info_btn" class="efmfb-btn efmfb-btn-primary" style="min-width:49%;"><i class="fa fa-cubes"></i> <?= $this->__('Create Form') ?></button>
59
  <button id="efmfb_save_form" class="efmfb-btn efmfb-btn-success" style="min-width:49%;">
60
  <i class="fa fa-lg fa-floppy-o efmfb-pointer" style="margin:0 5px;" ></i>
61
+ <?= $this->__('Save Form') ?></button>
62
 
63
  </div>
64
  </form>
69
  <div class="efmfb_wrap" id="efmfb_add_new_inputs_container">
70
  <!-- ---- TEXT INPUT ---- -->
71
  <div>
72
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_input_options"><?= $this->__('Text input') ?></div>
73
  <div id="efmfb_input_options" class="efmfb-create-form-options">
74
  <form id="efmfb_create_text_input_form">
75
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
76
 
77
  <div class="efmfb-form-group">
78
  <label>
79
+ <input id="efmfb_create_input_required" type="checkbox"> <?= $this->__('Required Field') ?>
80
  </label>
81
  </div>
82
  <div class="efmfb-form-group">
83
  <label>
84
+ <input id="efmfb_create_input_hidden" type="checkbox"> <?= $this->__('Hidden Field') ?>
85
  </label>
86
  </div>
87
  <div class="efmfb-form-group">
88
  <label>
89
+ <input id="efmfb_create_input_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
90
  </label>
91
  </div>
92
  <div class="efmfb-form-group">
93
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
94
  <input id="efmfb_create_input_name" class="efmfb-form-control" type="text" />
95
  </div>
96
  <div class="efmfb-form-group">
97
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
98
  <input id="efmfb_create_input_label" class="efmfb-form-control" type="text" />
99
  </div>
100
  <div class="efmfb-form-group">
101
+ <label class="efmfb-label"><?= $this->__('Default Value:') ?></label><br>
102
  <input id="efmfb_create_input_val" class="efmfb-form-control" type="text" />
103
  </div>
104
  <div class="efmfb-form-group">
105
+ <label class="efmfb-label"><?= $this->__('Placeholder:') ?></label><br>
106
  <input id="efmfb_create_input_placeholder" class="efmfb-form-control" type="text" />
107
  </div>
108
  <div class="efmfb-form-group">
109
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
110
  <input id="efmfb_create_input_desc" class="efmfb-form-control" type="text" />
111
  </div>
112
  <div class="efmfb-form-group">
113
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
114
  <input id="efmfb_create_input_classes" class="efmfb-form-control" type="text" />
115
  </div>
116
  <div class="efmfb-form-group">
117
+ <label class="efmfb-label"><?= $this->__('Custom Style:') ?></label><br>
118
  <textarea id="efmfb_create_input_styles" class="efmfb-form-control" style="height:40px;"></textarea>
119
  </div>
120
  <div class="efmfb-form-group">
121
+ <label class="efmfb-label"><?= $this->__('Error msg:') ?></label><br>
122
  <textarea id="efmfb_create_input_error_msg" class="efmfb-form-control" style="height:40px;" ></textarea>
123
  </div>
124
  <div class="efmfb-form-group">
131
  <!-- ---- LIST ---- -->
132
 
133
  <div>
134
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_list_options"><?= $this->__('List') ?></div>
135
  <div id="efmfb_list_options" class="efmfb-create-form-options">
136
  <form id="create_list_form">
137
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
138
  <div class="efmfb-form-group">
139
  <label>
140
+ <input id="create_list_required" type="checkbox"> <?= $this->__('Required Field') ?>
141
  </label>
142
  </div>
143
  <div class="efmfb-form-group">
144
  <label>
145
+ <input id="create_list_hidden" type="checkbox"> <?= $this->__('Hidden Field') ?>
146
  </label>
147
  </div>
148
  <div class="efmfb-form-group">
149
  <label>
150
+ <input id="create_list_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
151
  </label>
152
  </div>
153
  <div class="efmfb-form-group">
154
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
155
  <input id="create_list_name" class="efmfb-form-control" type="text" />
156
  </div>
157
  <div class="efmfb-form-group">
158
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
159
  <input id="create_list_label" class="efmfb-form-control" type="text" />
160
  </div>
161
  <div class="efmfb-form-group">
162
+ <label class="efmfb-label"><?= $this->__('Default Value:') ?></label><br>
163
  <input id="create_list_val" class="efmfb-form-control" type="text" />
164
  </div>
165
  <div class="efmfb-form-group">
166
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
167
  <input id="create_list_desc" class="efmfb-form-control" type="text" />
168
  </div>
169
  <div class="efmfb-form-group">
170
+ <label class="efmfb-label"><?= $this->__('Custom class:') ?></label><br>
171
  <input id="create_list_classes" class="efmfb-form-control" type="text" />
172
  </div>
173
  <div id="efmfb_add_to_list_container" class="efmfb-form-group">
174
+ <div class="efmfb-unselectable" unselectable="on" ><label class="efmfb-label"><?= $this->__('add to list') ?> </label> <i id="add_to_list_group" class="fa fa-lg fa-plus-circle efmfb-pointer"></i>&nbsp;<i id="remove_from_list_group" class="fa fa-lg fa-minus-circle efmfb-pointer"></i></div>
175
  <div id="add_to_list_group1" class="add-to-list-group">
176
  <div class="efmfb-inline" style="width:48%;">
177
  <input id="create_list_text1" class="efmfb-form-control" placeholder="Text" type="text" />
182
  </div>
183
  </div>
184
  <div class="efmfb-form-group">
185
+ <button id="create_list_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;"><?= $this->__('Add') ?></button>
186
  </div>
187
  </form>
188
  </div>
190
  </div>
191
  <!-- ---- CHECKBOX ---- -->
192
  <div>
193
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_chaeckbox_options"><?= $this->__('Checkbox') ?></div>
194
  <div id="efmfb_chaeckbox_options" class="efmfb-create-form-options">
195
  <form id="create_checkbox_form">
196
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
197
  <div class="efmfb-form-group">
198
  <label>
199
+ <input id="create_checkbox_required" type="checkbox"> <?= $this->__('Required') ?>
200
  </label>
201
  </div>
202
  <div class="efmfb-form-group">
203
  <label>
204
+ <input id="create_checkbox_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
205
  </label>
206
  </div>
207
  <div class="efmfb-form-group">
208
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
209
  <input id="create_checkbox_name" class="efmfb-form-control" type="text" />
210
  </div>
211
  <div class="efmfb-form-group">
212
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
213
  <input id="create_checkbox_label" class="efmfb-form-control" type="text" />
214
  </div>
215
  <div class="efmfb-form-group">
216
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
217
  <input id="create_checkbox_desc" class="efmfb-form-control" type="text" />
218
  </div>
219
  <div class="efmfb-form-group">
220
+ <label class="efmfb-label"><?= $this->__('Custom class:') ?></label><br>
221
  <input id="create_checkbox_classes" class="efmfb-form-control" type="text" />
222
  </div>
223
  <div class="efmfb-form-group">
224
+ <button id="create_checkbox_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;"><?= $this->__('Add') ?></button>
225
  </div>
226
  </form>
227
  </div>
229
  </div>
230
  <!-- ---- RADIO ---- -->
231
  <div>
232
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_radio_options"><?= $this->__('Radio button') ?></div>
233
  <div id="efmfb_radio_options" class="efmfb-create-form-options">
234
  <form id="create_checkbox_form">
235
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
236
  <div class="efmfb-form-group">
237
  <label>
238
+ <input id="create_radio_required" type="checkbox"> <?= $this->__('Required') ?>
239
  </label>
240
  </div>
241
  <div class="efmfb-form-group">
242
  <label>
243
+ <input id="create_radio_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
244
  </label>
245
  </div>
246
  <div class="efmfb-form-group">
247
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
248
  <input id="create_radio_name" class="efmfb-form-control" type="text" />
249
  </div>
250
  <div class="efmfb-form-group">
251
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
252
  <input id="create_radio_label" class="efmfb-form-control" type="text" />
253
  </div>
254
  <div class="efmfb-form-group">
255
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
256
  <input id="create_radio_desc" class="efmfb-form-control" type="text" />
257
  </div>
258
  <div class="efmfb-form-group">
259
+ <label class="efmfb-label"><?= $this->__('Custom class:') ?></label><br>
260
  <input id="create_radio_classes" class="efmfb-form-control" type="text" />
261
  </div>
262
  <div class="efmfb-form-group">
263
+ <button id="create_radio_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;"><?= $this->__('Add') ?></button>
264
  </div>
265
  </form>
266
  </div>
app/design/adminhtml/default/default/template/eflyermakerformbuilder/form.phtml CHANGED
@@ -8,23 +8,28 @@
8
  <script>jQuery.noConflict();</script>
9
 
10
 
 
 
 
 
 
 
 
 
 
11
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_globals.js"></script>
12
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_admin.js"></script>
13
 
14
 
15
 
16
 
 
17
  <?php
18
  $formData = Mage::registry('formData');
19
- // var_dump($formData);
20
- // echo $formData['efmfb_form_name'];
21
- // echo $this->formData->getData('efmfb_form_name');
22
-
23
 
24
- // Mage::register('formData', '');
25
  ?>
26
 
27
- <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/logo-eflyermaker-en.png">
28
 
29
  <br><br>
30
 
@@ -37,7 +42,7 @@ $formData = Mage::registry('formData');
37
  <div class="efmfb_containers efmfb_container_l">
38
  <div class="efmfb_wrap">
39
  <div>
40
- <h2 class="inline-block">Create Form</h2>
41
  <hr>
42
  <br><br>
43
  </div>
@@ -51,41 +56,42 @@ $formData = Mage::registry('formData');
51
  <div class="efmfb_wrap">
52
  <!-- ---- FORM INFOS ---- -->
53
  <div>
54
- <div id="efmfb_form_info" class="efmfb-form-input-title" efmfb-target="efmfb_form_options" method="post" >Form informations</div>
55
  <div id="efmfb_form_options" class="efmfb-create-form-options ">
56
- <form id="efmfb_create_info_form" action="<?php echo $this->getUrl('admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/saveForm') ?>">
57
  <input type="hidden" name="efmfb_form_isEdit" id="efmfb_form_isEdit" value="<?php $isEdit = isset($formData) ? '1' : '0'; echo $isEdit; ?>" />
58
  <input type="hidden" name="efmfb_form_old_id" id="efmfb_form_old_id" value="<?php if(isset($formData)) echo $formData['efmfb_id']; ?>" />
59
  <input type="hidden" name="efmfb_form_key" id="efmfb_form_key" value="<?php if(isset($formData)) echo $formData['efmfb_form_key']; ?>" />
60
  <input type="hidden" name="efmfb_form_structure" id="efmfb_form_structure" value="" />
 
61
  <div class="efmfb-form-group">
62
- <label class="efmfb-label">Name:</label><br>
63
  <input id="efmfb_form_info_name" name="efmfb_form_info_name" class="efmfb-form-control" type="text" value="<?php if(isset($formData)) echo $formData['efmfb_form_name']; ?>" maxlength="254"/>
64
  </div>
65
  <div class="efmfb-form-group">
66
- <label class="efmfb-label">Description:</label><br>
67
  <input id="efmfb_form_info_desc" name="efmfb_form_info_desc" class="efmfb-form-control" value="<?php if(isset($formData)) echo $formData['efmfb_form_description']; ?>" type="text" />
68
  </div>
69
  <div class="efmfb-form-group">
70
- <label class="efmfb-label">Classes:</label><br>
71
  <input id="efmfb_form_info_classes" name="efmfb_form_info_classes" class="efmfb-form-control" value="<?php if(isset($formData)) echo $formData['efmfb_custom_classes']; ?>" type="text" />
72
  </div>
73
  <div class="efmfb-form-group">
74
- <label class="efmfb-label">Custom styles:</label><br>
75
  <input id="efmfb_form_info_styles" name="efmfb_form_info_styles" class="efmfb-form-control" value="<?php if(isset($formData)) echo $formData['efmfb_custom_styles']; ?>" type="text" />
76
  </div>
77
  <div class="efmfb-form-group">
78
- <label class="efmfb-label">eFlyerMaker JSON code:</label><br>
79
  <textarea id="efmfb_form_info_json" name="efmfb_form_info_json" class="efmfb-form-control" style="height:150px;"></textarea>
80
  </div>
81
  <br>
82
 
83
  </form>
84
- <div class="efmfb-form-group">
85
- <button id="efmfb_create_form_info_btn" class="efmfb-btn efmfb-btn-primary" style="min-width:49%;"><i class="fa fa-cubes"></i> Create Form</button>
86
  <button id="efmfb_save_form" class="efmfb-btn efmfb-btn-success" style="min-width:49%;">
87
  <i class="fa fa-lg fa-floppy-o efmfb-pointer" style="margin:0 5px;" ></i>
88
- Save Form</button>
89
 
90
  </div>
91
 
@@ -96,56 +102,56 @@ $formData = Mage::registry('formData');
96
  <div class="efmfb_wrap" id="efmfb_add_new_inputs_container">
97
  <!-- ---- TEXT INPUT ---- -->
98
  <div>
99
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_input_options">Text input</div>
100
  <div id="efmfb_input_options" class="efmfb-create-form-options">
101
  <form id="efmfb_create_text_input_form">
102
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
103
 
104
  <div class="efmfb-form-group">
105
  <label>
106
- <input id="efmfb_create_input_required" type="checkbox"> Required Field
107
  </label>
108
  </div>
109
  <div class="efmfb-form-group">
110
  <label>
111
- <input id="efmfb_create_input_hidden" type="checkbox"> Hidden Field
112
  </label>
113
  </div>
114
  <div class="efmfb-form-group">
115
  <label>
116
- <input id="efmfb_create_input_hide_label" type="checkbox"> Hide Label
117
  </label>
118
  </div>
119
  <div class="efmfb-form-group">
120
- <label class="efmfb-label">Name:</label><br>
121
  <input id="efmfb_create_input_name" class="efmfb-form-control" type="text" />
122
  </div>
123
  <div class="efmfb-form-group">
124
- <label class="efmfb-label">Label:</label><br>
125
  <input id="efmfb_create_input_label" class="efmfb-form-control" type="text" />
126
  </div>
127
  <div class="efmfb-form-group">
128
- <label class="efmfb-label">Default Value:</label><br>
129
  <input id="efmfb_create_input_val" class="efmfb-form-control" type="text" />
130
  </div>
131
  <div class="efmfb-form-group">
132
- <label class="efmfb-label">Placeholder:</label><br>
133
  <input id="efmfb_create_input_placeholder" class="efmfb-form-control" type="text" />
134
  </div>
135
  <div class="efmfb-form-group">
136
- <label class="efmfb-label">Description:</label><br>
137
  <input id="efmfb_create_input_desc" class="efmfb-form-control" type="text" />
138
  </div>
139
  <div class="efmfb-form-group">
140
- <label class="efmfb-label">Classes:</label><br>
141
  <input id="efmfb_create_input_classes" class="efmfb-form-control" type="text" />
142
  </div>
143
  <div class="efmfb-form-group">
144
- <label class="efmfb-label">Custom Style:</label><br>
145
  <textarea id="efmfb_create_input_styles" class="efmfb-form-control" style="height:40px;"></textarea>
146
  </div>
147
  <div class="efmfb-form-group">
148
- <label class="efmfb-label">Error msg:</label><br>
149
  <textarea id="efmfb_create_input_error_msg" class="efmfb-form-control" style="height:40px;" ></textarea>
150
  </div>
151
  <div class="efmfb-form-group">
@@ -158,47 +164,47 @@ $formData = Mage::registry('formData');
158
  <!-- ---- LIST ---- -->
159
 
160
  <div>
161
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_list_options">List</div>
162
  <div id="efmfb_list_options" class="efmfb-create-form-options">
163
  <form id="create_list_form">
164
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
165
  <div class="efmfb-form-group">
166
  <label>
167
- <input id="create_list_required" type="checkbox"> Required Field
168
  </label>
169
  </div>
170
  <div class="efmfb-form-group">
171
  <label>
172
- <input id="create_list_hidden" type="checkbox"> Hidden Field
173
  </label>
174
  </div>
175
  <div class="efmfb-form-group">
176
  <label>
177
- <input id="create_list_hide_label" type="checkbox"> Hide Label
178
  </label>
179
  </div>
180
  <div class="efmfb-form-group">
181
- <label class="efmfb-label">Name:</label><br>
182
  <input id="create_list_name" class="efmfb-form-control" type="text" />
183
  </div>
184
  <div class="efmfb-form-group">
185
- <label class="efmfb-label">Label:</label><br>
186
  <input id="create_list_label" class="efmfb-form-control" type="text" />
187
  </div>
188
  <div class="efmfb-form-group">
189
- <label class="efmfb-label">Default Value:</label><br>
190
  <input id="create_list_val" class="efmfb-form-control" type="text" />
191
  </div>
192
  <div class="efmfb-form-group">
193
- <label class="efmfb-label">Description:</label><br>
194
  <input id="create_list_desc" class="efmfb-form-control" type="text" />
195
  </div>
196
  <div class="efmfb-form-group">
197
- <label class="efmfb-label">custom class:</label><br>
198
  <input id="create_list_classes" class="efmfb-form-control" type="text" />
199
  </div>
200
  <div id="efmfb_add_to_list_container" class="efmfb-form-group">
201
- <div class="efmfb-unselectable" unselectable="on" ><label class="efmfb-label">add to list: </label> <i id="add_to_list_group" class="fa fa-lg fa-plus-circle efmfb-pointer"></i>&nbsp;<i id="remove_from_list_group" class="fa fa-lg fa-minus-circle efmfb-pointer"></i></div>
202
  <div id="add_to_list_group1" class="add-to-list-group">
203
  <div class="efmfb-inline" style="width:48%;">
204
  <input id="create_list_text1" class="efmfb-form-control" placeholder="Text" type="text" />
@@ -209,7 +215,7 @@ $formData = Mage::registry('formData');
209
  </div>
210
  </div>
211
  <div class="efmfb-form-group">
212
- <button id="create_list_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;">Add</button>
213
  </div>
214
  </form>
215
  </div>
@@ -217,38 +223,38 @@ $formData = Mage::registry('formData');
217
  </div>
218
  <!-- ---- CHECKBOX ---- -->
219
  <div>
220
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_chaeckbox_options">Checkbox</div>
221
  <div id="efmfb_chaeckbox_options" class="efmfb-create-form-options">
222
  <form id="create_checkbox_form">
223
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
224
  <div class="efmfb-form-group">
225
  <label>
226
- <input id="create_checkbox_required" type="checkbox"> Required
227
  </label>
228
  </div>
229
  <div class="efmfb-form-group">
230
  <label>
231
- <input id="create_checkbox_hide_label" type="checkbox"> Hide Label
232
  </label>
233
  </div>
234
  <div class="efmfb-form-group">
235
- <label class="efmfb-label">Name:</label><br>
236
  <input id="create_checkbox_name" class="efmfb-form-control" type="text" />
237
  </div>
238
  <div class="efmfb-form-group">
239
- <label class="efmfb-label">Label:</label><br>
240
  <input id="create_checkbox_label" class="efmfb-form-control" type="text" />
241
  </div>
242
  <div class="efmfb-form-group">
243
- <label class="efmfb-label">Description:</label><br>
244
  <input id="create_checkbox_desc" class="efmfb-form-control" type="text" />
245
  </div>
246
  <div class="efmfb-form-group">
247
- <label class="efmfb-label">custom class:</label><br>
248
  <input id="create_checkbox_classes" class="efmfb-form-control" type="text" />
249
  </div>
250
  <div class="efmfb-form-group">
251
- <button id="create_checkbox_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;">Add</button>
252
  </div>
253
  </form>
254
  </div>
@@ -256,38 +262,38 @@ $formData = Mage::registry('formData');
256
  </div>
257
  <!-- ---- RADIO ---- -->
258
  <div>
259
- <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_radio_options">Radio button</div>
260
  <div id="efmfb_radio_options" class="efmfb-create-form-options">
261
  <form id="create_checkbox_form">
262
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
263
  <div class="efmfb-form-group">
264
  <label>
265
- <input id="create_radio_required" type="checkbox"> Required
266
  </label>
267
  </div>
268
  <div class="efmfb-form-group">
269
  <label>
270
- <input id="create_radio_hide_label" type="checkbox"> Hide Label
271
  </label>
272
  </div>
273
  <div class="efmfb-form-group">
274
- <label class="efmfb-label">Name:</label><br>
275
  <input id="create_radio_name" class="efmfb-form-control" type="text" />
276
  </div>
277
  <div class="efmfb-form-group">
278
- <label class="efmfb-label">Label:</label><br>
279
  <input id="create_radio_label" class="efmfb-form-control" type="text" />
280
  </div>
281
  <div class="efmfb-form-group">
282
- <label class="efmfb-label">Description:</label><br>
283
  <input id="create_radio_desc" class="efmfb-form-control" type="text" />
284
  </div>
285
  <div class="efmfb-form-group">
286
- <label class="efmfb-label">custom class:</label><br>
287
  <input id="create_radio_classes" class="efmfb-form-control" type="text" />
288
  </div>
289
  <div class="efmfb-form-group">
290
- <button id="create_radio_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;">Add</button>
291
  </div>
292
  </form>
293
  </div>
@@ -315,26 +321,26 @@ $formData = Mage::registry('formData');
315
 
316
  <div id="efmfb_edit_btn_form" class="efmfb-optin-forms">
317
  <div class="efmfb-form-group">
318
- <label class="efmfb-label">Text:</label><br>
319
  <input id="efmfb_edit_btn_text" class="efmfb-form-control" type="text" />
320
  </div>
321
  <div class="efmfb-form-group">
322
- <label class="efmfb-label">Align Button:</label><br>
323
  <div style="padding:5px 0;">
324
- <label><input type="radio" name="efmfb_edit_btn_align" value="left" efmfb-align="left" checked > Left&nbsp;</label>
325
- <label><input type="radio" name="efmfb_edit_btn_align" value="center" efmfb-align="center" > Center&nbsp;</label>
326
- <label><input type="radio" name="efmfb_edit_btn_align" value="right" efmfb-align="right" > Right</label>
327
  </div>
328
  <!-- <input id="efmfb_edit_btn_text" class="efmfb-form-control" type="text" /> -->
329
  </div>
330
 
331
 
332
  <div class="efmfb-form-group">
333
- <label class="efmfb-label">Classes:</label><br>
334
  <input id="efmfb_edit_btn_classes" class="efmfb-form-control" type="text" />
335
  </div>
336
  <div class="efmfb-form-group">
337
- <label class="efmfb-label">Custom Style:</label><br>
338
  <textarea id="efmfb_edit_btn_styles" class="efmfb-form-control" style="height:40px;"></textarea>
339
  </div>
340
  </div>
@@ -352,30 +358,30 @@ $formData = Mage::registry('formData');
352
  <div id="efmfb_edit_list_form">
353
  <div class="efmfb-form-group">
354
  <label>
355
- <input id="efmfb_edit_list_required" type="checkbox"> Required Field
356
  </label>
357
  </div>
358
  <div class="efmfb-form-group">
359
  <label>
360
- <input id="efmfb_edit_list_hide_label" type="checkbox"> Hide Label
361
  </label>
362
  </div>
363
  <div class="efmfb-form-group">
364
- <label class="efmfb-label">Name:</label><br>
365
  <input id="efmfb_edit_list_name" class="efmfb-form-control" type="text" />
366
  </div>
367
  <div class="efmfb-form-group">
368
- <label class="efmfb-label">Label:</label><br>
369
  <input id="efmfb_edit_list_label" class="efmfb-form-control" type="text" />
370
  </div>
371
  <div class="efmfb-form-group">
372
- <label class="efmfb-label">List content:</label>
373
  <div class="add-to-list-group">
374
  <div class="efmfb-inline" style="width:48%;">
375
- <label class="efmfb-label">Text</label><br>
376
  </div>
377
  <div class="efmfb-inline" style="width:48%;">
378
- <label class="efmfb-label">Value</label>
379
  </div>
380
  </div>
381
  <div id="efmfb_edit_list_vt1" class="add-to-list-group">
@@ -397,28 +403,28 @@ $formData = Mage::registry('formData');
397
  </div>
398
  </div>
399
  <div class="efmfb-form-group">
400
- <label class="efmfb-label">Default Value:</label><br>
401
  <select id="efmfb_edit_default_list_val" class="efmfb-form-control">
402
  <option value="yes"></option>
403
  <option value="no"></option>
404
  </select>
405
  </div>
406
  <div class="efmfb-form-group">
407
- <label class="efmfb-label">Description:</label><br>
408
  <input id="efmfb_edit_list_desc" class="efmfb-form-control" type="text" />
409
  </div>
410
  <div class="efmfb-form-group">
411
- <label class="efmfb-label">Classes:</label><br>
412
  <input id="efmfb_edit_list_classes" class="efmfb-form-control" type="text" />
413
  </div>
414
  <div class="efmfb-form-group">
415
- <label class="efmfb-label">Custom Style:</label><br>
416
  <textarea id="efmfb_edit_list_styles" class="efmfb-form-control" style="height:40px;"></textarea>
417
  </div>
418
  </div>
419
  <hr>
420
  <div class="efmfb-form-group">
421
- <button id="efmfb_remove_active_input_btn_list" class="efmfb-btn efmfb-btn-danger efmfb_remove_active_input_btn" style="width:100%;">Remove Field</button>
422
  </div>
423
  <div style="width:100%; height:40px;"></div>
424
 
@@ -434,45 +440,45 @@ $formData = Mage::registry('formData');
434
  <div id="efmfb_edit_text_input_form">
435
  <div class="efmfb-form-group">
436
  <label>
437
- <input id="efmfb_edit_input_required" type="checkbox"> Required Field
438
  </label>
439
  </div>
440
  <div class="efmfb-form-group">
441
  <label>
442
- <input id="efmfb_edit_input_hide_label" type="checkbox"> Hide Label
443
  </label>
444
  </div>
445
  <div class="efmfb-form-group">
446
- <label class="efmfb-label">Name:</label><br>
447
  <input id="efmfb_edit_input_name" class="efmfb-form-control" type="text" />
448
  </div>
449
  <div class="efmfb-form-group">
450
- <label class="efmfb-label">Label:</label><br>
451
  <input id="efmfb_edit_input_label" class="efmfb-form-control" type="text" />
452
  </div>
453
  <div class="efmfb-form-group">
454
- <label class="efmfb-label">Placeholder:</label><br>
455
  <input id="efmfb_edit_input_placeholder" class="efmfb-form-control" type="text" />
456
  </div>
457
  <div class="efmfb-form-group">
458
- <label class="efmfb-label">Description:</label><br>
459
  <input id="efmfb_edit_input_desc" class="efmfb-form-control" type="text" />
460
  </div>
461
  <div class="efmfb-form-group">
462
- <label class="efmfb-label">Classes:</label><br>
463
  <input id="efmfb_edit_input_classes" class="efmfb-form-control" type="text" />
464
  </div>
465
  <div class="efmfb-form-group">
466
- <label class="efmfb-label">Custom Style:</label><br>
467
  <textarea id="efmfb_edit_input_styles" class="efmfb-form-control" style="height:40px;"></textarea>
468
  </div>
469
  <div class="efmfb-form-group" style="display:none !important;">
470
- <label class="efmfb-label">Error msg:</label><br>
471
  <textarea id="efmfb_edit_input_error" class="efmfb-form-control" style="height:40px;" ></textarea>
472
  </div>
473
  <hr>
474
  <div class="efmfb-form-group">
475
- <button id="efmfb_remove_active_input_btn_text" class="efmfb-btn efmfb-btn-danger efmfb_remove_active_input_btn" style="width:100%;">Remove Field</button>
476
  </div>
477
  </div>
478
  <div style="width:100%; height:40px;"></div>
@@ -483,39 +489,29 @@ $formData = Mage::registry('formData');
483
 
484
 
485
  <div id="form_checkbox_options_panel" class="form-options-panels">
486
- <!-- <span class="input-options-header">Checkbox Options</span> -->
487
- <!-- <div style="height:20px;width:100%;"></div> -->
488
 
489
  <!-- -->
490
  <div id="efmfb_edit_checkbox_form">
491
- <!-- <div class="efmfb-form-group">
492
- <label>
493
- <input id="create_checkbox_required" type="checkbox"> Required
494
- </label>
495
- </div>
496
- <div class="efmfb-form-group">
497
- <label>
498
- <input id="create_checkbox_hide_label" type="checkbox"> Hide Label
499
- </label>
500
- </div> -->
501
  <div class="efmfb-form-group">
502
- <label class="efmfb-label">Name:</label><br>
503
  <input id="efmfb_edit_checkbox_name" class="efmfb-form-control" type="text" disabled/>
504
  </div>
505
  <div class="efmfb-form-group">
506
- <label class="efmfb-label">Label:</label><br>
507
  <textarea id="efmfb_edit_checkbox_label" class="efmfb-form-control" style="height:50px;"></textarea>
508
  </div>
509
  <div class="efmfb-form-group">
510
- <label class="efmfb-label">Classes:</label><br>
511
  <input id="efmfb_edit_checkbox_classes" class="efmfb-form-control" type="text" />
512
  </div>
513
  <div class="efmfb-form-group">
514
- <label class="efmfb-label">Custom style:</label><br>
515
  <input id="efmfb_edit_checkbox_styles" class="efmfb-form-control" type="text" />
516
  </div>
517
  <div class="efmfb-form-group" style="display:none !important;">
518
- <label class="efmfb-label">Error msg:</label><br>
519
  <textarea id="efmfb_edit_input_error" class="efmfb-form-control" style="height:50px;" ></textarea>
520
  </div>
521
  </div>
@@ -543,6 +539,18 @@ $formData = Mage::registry('formData');
543
 
544
 
545
 
 
 
 
 
 
 
 
 
 
 
 
 
546
 
547
 
548
 
8
  <script>jQuery.noConflict();</script>
9
 
10
 
11
+ <script type="text/javascript">
12
+ var Button_Options = "<?= $this->__('Button Options') ?>";
13
+ var List_Options = "<?= $this->__('List Options') ?>";
14
+ var Checkbox_Options = "<?= $this->__('Checkbox Options') ?>";
15
+ var Radio_Button_Options = "<?= $this->__('Radio Button Options') ?>";
16
+ var Input_Text_Options = "<?= $this->__('Input Text Options') ?>";
17
+
18
+ </script>
19
+
20
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_globals.js"></script>
21
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_admin.js"></script>
22
 
23
 
24
 
25
 
26
+
27
  <?php
28
  $formData = Mage::registry('formData');
 
 
 
 
29
 
 
30
  ?>
31
 
32
+ <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/eFlyerMaker_logo.png">
33
 
34
  <br><br>
35
 
42
  <div class="efmfb_containers efmfb_container_l">
43
  <div class="efmfb_wrap">
44
  <div>
45
+ <h2 class="inline-block"><?= $this->__('Create Form') ?></h2>
46
  <hr>
47
  <br><br>
48
  </div>
56
  <div class="efmfb_wrap">
57
  <!-- ---- FORM INFOS ---- -->
58
  <div>
59
+ <div id="efmfb_form_info" class="efmfb-form-input-title" efmfb-target="efmfb_form_options" method="post" ><?= $this->__('Form informations') ?></div>
60
  <div id="efmfb_form_options" class="efmfb-create-form-options ">
61
+ <form id="efmfb_create_info_form" action="<?php echo $this->getUrl('admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/saveForm') ?>" method="post">
62
  <input type="hidden" name="efmfb_form_isEdit" id="efmfb_form_isEdit" value="<?php $isEdit = isset($formData) ? '1' : '0'; echo $isEdit; ?>" />
63
  <input type="hidden" name="efmfb_form_old_id" id="efmfb_form_old_id" value="<?php if(isset($formData)) echo $formData['efmfb_id']; ?>" />
64
  <input type="hidden" name="efmfb_form_key" id="efmfb_form_key" value="<?php if(isset($formData)) echo $formData['efmfb_form_key']; ?>" />
65
  <input type="hidden" name="efmfb_form_structure" id="efmfb_form_structure" value="" />
66
+ <input type="hidden" name="form_key" value="<? echo $this->getFormKey(); ?>" />
67
  <div class="efmfb-form-group">
68
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
69
  <input id="efmfb_form_info_name" name="efmfb_form_info_name" class="efmfb-form-control" type="text" value="<?php if(isset($formData)) echo $formData['efmfb_form_name']; ?>" maxlength="254"/>
70
  </div>
71
  <div class="efmfb-form-group">
72
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
73
  <input id="efmfb_form_info_desc" name="efmfb_form_info_desc" class="efmfb-form-control" value="<?php if(isset($formData)) echo $formData['efmfb_form_description']; ?>" type="text" />
74
  </div>
75
  <div class="efmfb-form-group">
76
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
77
  <input id="efmfb_form_info_classes" name="efmfb_form_info_classes" class="efmfb-form-control" value="<?php if(isset($formData)) echo $formData['efmfb_custom_classes']; ?>" type="text" />
78
  </div>
79
  <div class="efmfb-form-group">
80
+ <label class="efmfb-label"><?= $this->__('Custom styles:') ?></label><br>
81
  <input id="efmfb_form_info_styles" name="efmfb_form_info_styles" class="efmfb-form-control" value="<?php if(isset($formData)) echo $formData['efmfb_custom_styles']; ?>" type="text" />
82
  </div>
83
  <div class="efmfb-form-group">
84
+ <label class="efmfb-label"><?= $this->__('eFlyerMaker JSON code:') ?></label><br>
85
  <textarea id="efmfb_form_info_json" name="efmfb_form_info_json" class="efmfb-form-control" style="height:150px;"></textarea>
86
  </div>
87
  <br>
88
 
89
  </form>
90
+ <div class="efmfb-form-group" style="text-align: center;">
91
+ <button id="efmfb_create_form_info_btn" class="efmfb-btn efmfb-btn-primary" style="min-width:49%;"><i class="fa fa-cubes"></i> <?= $this->__('Create Form') ?></button>
92
  <button id="efmfb_save_form" class="efmfb-btn efmfb-btn-success" style="min-width:49%;">
93
  <i class="fa fa-lg fa-floppy-o efmfb-pointer" style="margin:0 5px;" ></i>
94
+ <?= $this->__('Save Form') ?></button>
95
 
96
  </div>
97
 
102
  <div class="efmfb_wrap" id="efmfb_add_new_inputs_container">
103
  <!-- ---- TEXT INPUT ---- -->
104
  <div>
105
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_input_options"><?= $this->__('Text input') ?></div>
106
  <div id="efmfb_input_options" class="efmfb-create-form-options">
107
  <form id="efmfb_create_text_input_form">
108
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
109
 
110
  <div class="efmfb-form-group">
111
  <label>
112
+ <input id="efmfb_create_input_required" type="checkbox"> <?= $this->__('Required Field') ?>
113
  </label>
114
  </div>
115
  <div class="efmfb-form-group">
116
  <label>
117
+ <input id="efmfb_create_input_hidden" type="checkbox"> <?= $this->__('Hidden Field') ?>
118
  </label>
119
  </div>
120
  <div class="efmfb-form-group">
121
  <label>
122
+ <input id="efmfb_create_input_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
123
  </label>
124
  </div>
125
  <div class="efmfb-form-group">
126
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
127
  <input id="efmfb_create_input_name" class="efmfb-form-control" type="text" />
128
  </div>
129
  <div class="efmfb-form-group">
130
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
131
  <input id="efmfb_create_input_label" class="efmfb-form-control" type="text" />
132
  </div>
133
  <div class="efmfb-form-group">
134
+ <label class="efmfb-label"><?= $this->__('Default Value:') ?></label><br>
135
  <input id="efmfb_create_input_val" class="efmfb-form-control" type="text" />
136
  </div>
137
  <div class="efmfb-form-group">
138
+ <label class="efmfb-label"><?= $this->__('Placeholder:') ?></label><br>
139
  <input id="efmfb_create_input_placeholder" class="efmfb-form-control" type="text" />
140
  </div>
141
  <div class="efmfb-form-group">
142
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
143
  <input id="efmfb_create_input_desc" class="efmfb-form-control" type="text" />
144
  </div>
145
  <div class="efmfb-form-group">
146
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
147
  <input id="efmfb_create_input_classes" class="efmfb-form-control" type="text" />
148
  </div>
149
  <div class="efmfb-form-group">
150
+ <label class="efmfb-label"><?= $this->__('Custom Style:') ?></label><br>
151
  <textarea id="efmfb_create_input_styles" class="efmfb-form-control" style="height:40px;"></textarea>
152
  </div>
153
  <div class="efmfb-form-group">
154
+ <label class="efmfb-label"><?= $this->__('Error msg:') ?></label><br>
155
  <textarea id="efmfb_create_input_error_msg" class="efmfb-form-control" style="height:40px;" ></textarea>
156
  </div>
157
  <div class="efmfb-form-group">
164
  <!-- ---- LIST ---- -->
165
 
166
  <div>
167
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_list_options"><?= $this->__('List') ?></div>
168
  <div id="efmfb_list_options" class="efmfb-create-form-options">
169
  <form id="create_list_form">
170
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
171
  <div class="efmfb-form-group">
172
  <label>
173
+ <input id="create_list_required" type="checkbox"> <?= $this->__('Required Field') ?>
174
  </label>
175
  </div>
176
  <div class="efmfb-form-group">
177
  <label>
178
+ <input id="create_list_hidden" type="checkbox"> <?= $this->__('Hidden Field') ?>
179
  </label>
180
  </div>
181
  <div class="efmfb-form-group">
182
  <label>
183
+ <input id="create_list_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
184
  </label>
185
  </div>
186
  <div class="efmfb-form-group">
187
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
188
  <input id="create_list_name" class="efmfb-form-control" type="text" />
189
  </div>
190
  <div class="efmfb-form-group">
191
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
192
  <input id="create_list_label" class="efmfb-form-control" type="text" />
193
  </div>
194
  <div class="efmfb-form-group">
195
+ <label class="efmfb-label"><?= $this->__('Default Value:') ?></label><br>
196
  <input id="create_list_val" class="efmfb-form-control" type="text" />
197
  </div>
198
  <div class="efmfb-form-group">
199
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
200
  <input id="create_list_desc" class="efmfb-form-control" type="text" />
201
  </div>
202
  <div class="efmfb-form-group">
203
+ <label class="efmfb-label"><?= $this->__('Custom class:') ?></label><br>
204
  <input id="create_list_classes" class="efmfb-form-control" type="text" />
205
  </div>
206
  <div id="efmfb_add_to_list_container" class="efmfb-form-group">
207
+ <div class="efmfb-unselectable" unselectable="on" ><label class="efmfb-label"><?= $this->__('add to list:') ?> </label> <i id="add_to_list_group" class="fa fa-lg fa-plus-circle efmfb-pointer"></i>&nbsp;<i id="remove_from_list_group" class="fa fa-lg fa-minus-circle efmfb-pointer"></i></div>
208
  <div id="add_to_list_group1" class="add-to-list-group">
209
  <div class="efmfb-inline" style="width:48%;">
210
  <input id="create_list_text1" class="efmfb-form-control" placeholder="Text" type="text" />
215
  </div>
216
  </div>
217
  <div class="efmfb-form-group">
218
+ <button id="create_list_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;"><?= $this->__('Add') ?></button>
219
  </div>
220
  </form>
221
  </div>
223
  </div>
224
  <!-- ---- CHECKBOX ---- -->
225
  <div>
226
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_chaeckbox_options"><?= $this->__('Checkbox') ?></div>
227
  <div id="efmfb_chaeckbox_options" class="efmfb-create-form-options">
228
  <form id="create_checkbox_form">
229
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
230
  <div class="efmfb-form-group">
231
  <label>
232
+ <input id="create_checkbox_required" type="checkbox"> <?= $this->__('Required') ?>
233
  </label>
234
  </div>
235
  <div class="efmfb-form-group">
236
  <label>
237
+ <input id="create_checkbox_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
238
  </label>
239
  </div>
240
  <div class="efmfb-form-group">
241
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
242
  <input id="create_checkbox_name" class="efmfb-form-control" type="text" />
243
  </div>
244
  <div class="efmfb-form-group">
245
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
246
  <input id="create_checkbox_label" class="efmfb-form-control" type="text" />
247
  </div>
248
  <div class="efmfb-form-group">
249
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
250
  <input id="create_checkbox_desc" class="efmfb-form-control" type="text" />
251
  </div>
252
  <div class="efmfb-form-group">
253
+ <label class="efmfb-label"><?= $this->__('Custom class:') ?></label><br>
254
  <input id="create_checkbox_classes" class="efmfb-form-control" type="text" />
255
  </div>
256
  <div class="efmfb-form-group">
257
+ <button id="create_checkbox_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;"><?= $this->__('Add') ?></button>
258
  </div>
259
  </form>
260
  </div>
262
  </div>
263
  <!-- ---- RADIO ---- -->
264
  <div>
265
+ <div class="efmfb-form-input-title efmfb-form-input-title-toggle" efmfb-target="efmfb_radio_options"><?= $this->__('Radio button') ?></div>
266
  <div id="efmfb_radio_options" class="efmfb-create-form-options">
267
  <form id="create_checkbox_form">
268
  <div style="width:100%; text-align:right;"><i class="fa fa-refresh efmfb-clear-form efmfb-pointer"></i></div>
269
  <div class="efmfb-form-group">
270
  <label>
271
+ <input id="create_radio_required" type="checkbox"> <?= $this->__('Required') ?>
272
  </label>
273
  </div>
274
  <div class="efmfb-form-group">
275
  <label>
276
+ <input id="create_radio_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
277
  </label>
278
  </div>
279
  <div class="efmfb-form-group">
280
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
281
  <input id="create_radio_name" class="efmfb-form-control" type="text" />
282
  </div>
283
  <div class="efmfb-form-group">
284
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
285
  <input id="create_radio_label" class="efmfb-form-control" type="text" />
286
  </div>
287
  <div class="efmfb-form-group">
288
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
289
  <input id="create_radio_desc" class="efmfb-form-control" type="text" />
290
  </div>
291
  <div class="efmfb-form-group">
292
+ <label class="efmfb-label"><?= $this->__('Custom class:') ?></label><br>
293
  <input id="create_radio_classes" class="efmfb-form-control" type="text" />
294
  </div>
295
  <div class="efmfb-form-group">
296
+ <button id="create_radio_btn" class="efmfb-btn efmfb-btn-success " style="width:100%;"><?= $this->__('Add') ?></button>
297
  </div>
298
  </form>
299
  </div>
321
 
322
  <div id="efmfb_edit_btn_form" class="efmfb-optin-forms">
323
  <div class="efmfb-form-group">
324
+ <label class="efmfb-label"><?= $this->__('Text:') ?></label><br>
325
  <input id="efmfb_edit_btn_text" class="efmfb-form-control" type="text" />
326
  </div>
327
  <div class="efmfb-form-group">
328
+ <label class="efmfb-label"><?= $this->__('Align Button:') ?></label><br>
329
  <div style="padding:5px 0;">
330
+ <label><input type="radio" name="efmfb_edit_btn_align" value="left" efmfb-align="left" checked > <?= $this->__('Left') ?>&nbsp;</label>
331
+ <label><input type="radio" name="efmfb_edit_btn_align" value="center" efmfb-align="center" > <?= $this->__('Center') ?>&nbsp;</label>
332
+ <label><input type="radio" name="efmfb_edit_btn_align" value="right" efmfb-align="right" > <?= $this->__('Right') ?></label>
333
  </div>
334
  <!-- <input id="efmfb_edit_btn_text" class="efmfb-form-control" type="text" /> -->
335
  </div>
336
 
337
 
338
  <div class="efmfb-form-group">
339
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
340
  <input id="efmfb_edit_btn_classes" class="efmfb-form-control" type="text" />
341
  </div>
342
  <div class="efmfb-form-group">
343
+ <label class="efmfb-label"><?= $this->__('Custom Style:') ?></label><br>
344
  <textarea id="efmfb_edit_btn_styles" class="efmfb-form-control" style="height:40px;"></textarea>
345
  </div>
346
  </div>
358
  <div id="efmfb_edit_list_form">
359
  <div class="efmfb-form-group">
360
  <label>
361
+ <input id="efmfb_edit_list_required" type="checkbox"> <?= $this->__('Required Field') ?>
362
  </label>
363
  </div>
364
  <div class="efmfb-form-group">
365
  <label>
366
+ <input id="efmfb_edit_list_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
367
  </label>
368
  </div>
369
  <div class="efmfb-form-group">
370
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
371
  <input id="efmfb_edit_list_name" class="efmfb-form-control" type="text" />
372
  </div>
373
  <div class="efmfb-form-group">
374
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
375
  <input id="efmfb_edit_list_label" class="efmfb-form-control" type="text" />
376
  </div>
377
  <div class="efmfb-form-group">
378
+ <label class="efmfb-label"><?= $this->__('List content:') ?></label>
379
  <div class="add-to-list-group">
380
  <div class="efmfb-inline" style="width:48%;">
381
+ <label class="efmfb-label"><?= $this->__('Text') ?></label><br>
382
  </div>
383
  <div class="efmfb-inline" style="width:48%;">
384
+ <label class="efmfb-label"><?= $this->__('Value') ?></label>
385
  </div>
386
  </div>
387
  <div id="efmfb_edit_list_vt1" class="add-to-list-group">
403
  </div>
404
  </div>
405
  <div class="efmfb-form-group">
406
+ <label class="efmfb-label"><?= $this->__('Default Value:') ?></label><br>
407
  <select id="efmfb_edit_default_list_val" class="efmfb-form-control">
408
  <option value="yes"></option>
409
  <option value="no"></option>
410
  </select>
411
  </div>
412
  <div class="efmfb-form-group">
413
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
414
  <input id="efmfb_edit_list_desc" class="efmfb-form-control" type="text" />
415
  </div>
416
  <div class="efmfb-form-group">
417
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
418
  <input id="efmfb_edit_list_classes" class="efmfb-form-control" type="text" />
419
  </div>
420
  <div class="efmfb-form-group">
421
+ <label class="efmfb-label"><?= $this->__('Custom Style:') ?></label><br>
422
  <textarea id="efmfb_edit_list_styles" class="efmfb-form-control" style="height:40px;"></textarea>
423
  </div>
424
  </div>
425
  <hr>
426
  <div class="efmfb-form-group">
427
+ <button id="efmfb_remove_active_input_btn_list" class="efmfb-btn efmfb-btn-danger efmfb_remove_active_input_btn" style="width:100%;"><?= $this->__('Remove field') ?></button>
428
  </div>
429
  <div style="width:100%; height:40px;"></div>
430
 
440
  <div id="efmfb_edit_text_input_form">
441
  <div class="efmfb-form-group">
442
  <label>
443
+ <input id="efmfb_edit_input_required" type="checkbox"> <?= $this->__('Required Field') ?>
444
  </label>
445
  </div>
446
  <div class="efmfb-form-group">
447
  <label>
448
+ <input id="efmfb_edit_input_hide_label" type="checkbox"> <?= $this->__('Hide Label') ?>
449
  </label>
450
  </div>
451
  <div class="efmfb-form-group">
452
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
453
  <input id="efmfb_edit_input_name" class="efmfb-form-control" type="text" />
454
  </div>
455
  <div class="efmfb-form-group">
456
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
457
  <input id="efmfb_edit_input_label" class="efmfb-form-control" type="text" />
458
  </div>
459
  <div class="efmfb-form-group">
460
+ <label class="efmfb-label"><?= $this->__('Placeholder:') ?></label><br>
461
  <input id="efmfb_edit_input_placeholder" class="efmfb-form-control" type="text" />
462
  </div>
463
  <div class="efmfb-form-group">
464
+ <label class="efmfb-label"><?= $this->__('Description:') ?></label><br>
465
  <input id="efmfb_edit_input_desc" class="efmfb-form-control" type="text" />
466
  </div>
467
  <div class="efmfb-form-group">
468
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
469
  <input id="efmfb_edit_input_classes" class="efmfb-form-control" type="text" />
470
  </div>
471
  <div class="efmfb-form-group">
472
+ <label class="efmfb-label"><?= $this->__('Custom Style:') ?></label><br>
473
  <textarea id="efmfb_edit_input_styles" class="efmfb-form-control" style="height:40px;"></textarea>
474
  </div>
475
  <div class="efmfb-form-group" style="display:none !important;">
476
+ <label class="efmfb-label"><?= $this->__('Error msg:') ?></label><br>
477
  <textarea id="efmfb_edit_input_error" class="efmfb-form-control" style="height:40px;" ></textarea>
478
  </div>
479
  <hr>
480
  <div class="efmfb-form-group">
481
+ <button id="efmfb_remove_active_input_btn_text" class="efmfb-btn efmfb-btn-danger efmfb_remove_active_input_btn" style="width:100%;"><?= $this->__('Remove field') ?></button>
482
  </div>
483
  </div>
484
  <div style="width:100%; height:40px;"></div>
489
 
490
 
491
  <div id="form_checkbox_options_panel" class="form-options-panels">
492
+
 
493
 
494
  <!-- -->
495
  <div id="efmfb_edit_checkbox_form">
496
+
 
 
 
 
 
 
 
 
 
497
  <div class="efmfb-form-group">
498
+ <label class="efmfb-label"><?= $this->__('Name:') ?></label><br>
499
  <input id="efmfb_edit_checkbox_name" class="efmfb-form-control" type="text" disabled/>
500
  </div>
501
  <div class="efmfb-form-group">
502
+ <label class="efmfb-label"><?= $this->__('Label:') ?></label><br>
503
  <textarea id="efmfb_edit_checkbox_label" class="efmfb-form-control" style="height:50px;"></textarea>
504
  </div>
505
  <div class="efmfb-form-group">
506
+ <label class="efmfb-label"><?= $this->__('Classes:') ?></label><br>
507
  <input id="efmfb_edit_checkbox_classes" class="efmfb-form-control" type="text" />
508
  </div>
509
  <div class="efmfb-form-group">
510
+ <label class="efmfb-label"><?= $this->__('Custom Style:') ?></label><br>
511
  <input id="efmfb_edit_checkbox_styles" class="efmfb-form-control" type="text" />
512
  </div>
513
  <div class="efmfb-form-group" style="display:none !important;">
514
+ <label class="efmfb-label"><?= $this->__('Error msg:') ?></label><br>
515
  <textarea id="efmfb_edit_input_error" class="efmfb-form-control" style="height:50px;" ></textarea>
516
  </div>
517
  </div>
539
 
540
 
541
 
542
+ <script type="text/javascript">
543
+
544
+ var local = '<?php echo Mage::app()->getLocale()->getLocaleCode(); ?>';
545
+ console.log('local : '+local);
546
+ //
547
+ if(local == 'fr_FR' || local == 'fr_CA')
548
+ {
549
+ jQuery("#efmfb_create_form_info_btn").css({width:'230px'});
550
+ jQuery("#efmfb_save_form").css({width:'230px'});
551
+ //
552
+ }
553
+ </script>
554
 
555
 
556
 
app/design/adminhtml/default/default/template/eflyermakerformbuilder/forms_list.phtml CHANGED
@@ -9,7 +9,7 @@
9
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_admin.js"></script>
10
 
11
 
12
- <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/logo-eflyermaker-en.png">
13
 
14
  <br><br>
15
 
@@ -23,17 +23,17 @@ $efmfb_forms_list = $this->forms_list ;
23
  </div>
24
  <div class="efmfb_container">
25
  <div class="efmfb_wrap">
26
- <h2>Manage Forms</h2>
27
  <div id="efmfb_manage_forms_table_container">
28
  <table id="efmfb_manage_forms_table" >
29
  <tbody>
30
  <tr align="left">
31
  <th width="20" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_name">Id</th>
32
- <th width="150" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_name">Name</th>
33
- <th width="400" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_description">Description</th>
34
- <th width="50" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_structure">Status</th>
35
- <th valign="middle" class="td-creation-date efmfb-sort-forms" width="100" efmfb-orderby="creation_date">Creation date</th>
36
- <th width="100" valign="middle" class="efmfb-sort-forms" efmfb-orderby="last_modification">Last modification</th>
37
  <th width="50" valign="middle">Actions</th>
38
  </tr>
39
  <!-- -->
@@ -72,7 +72,7 @@ $efmfb_forms_list = $this->forms_list ;
72
  else
73
  {
74
  ?>
75
- <tr><td colspan="5"><h2>Not Found</h2></td></tr>
76
  <?php
77
  }
78
 
9
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_admin.js"></script>
10
 
11
 
12
+ <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/eFlyerMaker_logo.png">
13
 
14
  <br><br>
15
 
23
  </div>
24
  <div class="efmfb_container">
25
  <div class="efmfb_wrap">
26
+ <h2><?= $this->__('Manage Forms') ?></h2>
27
  <div id="efmfb_manage_forms_table_container">
28
  <table id="efmfb_manage_forms_table" >
29
  <tbody>
30
  <tr align="left">
31
  <th width="20" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_name">Id</th>
32
+ <th width="150" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_name"><?= $this->__('Name') ?></th>
33
+ <th width="400" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_description"><?= $this->__('Description') ?></th>
34
+ <th width="50" valign="middle" class="efmfb-sort-forms" efmfb-orderby="form_structure"><?= $this->__('Status') ?></th>
35
+ <th valign="middle" class="td-creation-date efmfb-sort-forms" width="100" efmfb-orderby="creation_date"><?= $this->__('Creation date') ?></th>
36
+ <th width="100" valign="middle" class="efmfb-sort-forms" efmfb-orderby="last_modification"><?= $this->__('Last modification') ?></th>
37
  <th width="50" valign="middle">Actions</th>
38
  </tr>
39
  <!-- -->
72
  else
73
  {
74
  ?>
75
+ <tr><td colspan="5"><h2><?= $this->__('Not Found') ?></h2></td></tr>
76
  <?php
77
  }
78
 
app/design/adminhtml/default/default/template/eflyermakerformbuilder/get_started.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/jquery/jquery-1.11.3.min.js"></script>
2
+ <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/jquery-ui-1.11.4/jquery-ui.min.js"></script>
3
+ <script>jQuery.noConflict();</script>
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/eFlyerMaker_logo.png">
13
+
14
+ <br><br>
15
+
16
+ <!-- <h2><?= $this->__('Manage Forms') ?></h2> -->
17
+
18
+
19
+ <div id="efmfb_admin_error_container">
20
+ <div id="efmfb_admin_error"></div>
21
+ </div>
22
+ <div class="efmfb_container">
23
+
24
+
25
+
26
+ <div class="efmfb_wrap" style="padding-left:50px; font-size:16px; font-family: 'Open Sans', sans-serif;">
27
+ <h2>eFlyerMaker sign-up Forms Builder <?= Mage::helper('eflyermakerformbuilder')->getExtensionVersion(); ?></h2>
28
+
29
+
30
+
31
+ <p>
32
+ <i><?= $this->__('See <a href="http://kb.eflyermaker.com/magento-signup-form-plugin" title="eflyermaker\'s Form Builder plugin for magento" target="_blank">eFlyerMaker\'s Knowledge Base</a> for complete Plugin Form Builder instructions.');?></i>
33
+ </p>
34
+ <hr>
35
+ <br>
36
+ <h3><?= $this->__('From eFlyerMaker'); ?></h3>
37
+ <ol>
38
+ <li><?= $this->__('Login to your <a href="https://campaign.eflyermaker.com/?utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_en" target="_blank">eFlyerMaker\'s</a> account or create your <a href="https://campaign.eflyermaker.com/?signup&utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_en" target="_blank">free account now</a>');?></a>
39
+ <br>
40
+ <br>
41
+ </li>
42
+ <li><?= $this->__('In the navigation menu, select "List" and then "Publications"');?><br>
43
+
44
+ <img style="width:100%; max-width:560px; margin-top:10px; border:solid 1px #ccc;" src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/help1.jpg">
45
+ <br>
46
+ <br>
47
+ </li>
48
+ <li><?= $this->__('Under Newsletter, click on "Sign-Up HTML Code"');?><br>
49
+
50
+ <img style="width:100%; max-width:560px; margin-top:10px; border:solid 1px #ccc;" src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/help2.jpg">
51
+ <br>
52
+ <br>
53
+ </li>
54
+ <li><?= $this->__('In the pop-over modal window, select CMS Plugin then Wordpress');?><br>
55
+
56
+ <img style="width:100%; max-width:560px; margin-top:10px; border:solid 1px #ccc;" src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/help3.jpg">
57
+ </li>
58
+ <li><?= $this->__('Copy all the Json code');?></li>
59
+ <br>
60
+ <br>
61
+ </ol>
62
+ <hr>
63
+ <br>
64
+ <h3><?= $this->__('Back In WordPress');?></h3>
65
+ <ol>
66
+ <li><?= $this->__('Click on <a class="createForm" href="javascript:void(0)">Create a new form</a> button located in menu bar at your right');?></li>
67
+ <li><?= $this->__('Past the code in the field "eFlyerMaker Json code"');?></li>
68
+ <br>
69
+ </ol>
70
+ <hr>
71
+ <br>
72
+ <p>
73
+ <i><?= $this->__('See <a href="http://kb.eflyermaker.com/magento-signup-form-plugin" title="eflyermaker\'s Form Builder plugin for magento" target="_blank">eFlyerMaker\'s Knowledge Base</a> for complete Plugin Form Builder instructions.');?></i>
74
+ </p>
75
+
76
+ </div>
77
+ </div>
78
+
79
+
80
+
81
+ <script type="text/javascript">
82
+ createForm = "<?= $this->getUrl('admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/createForm') ?>";
83
+ jQuery('.createForm').attr('href', createForm);
84
+ </script>
85
+
app/design/adminhtml/default/default/template/eflyermakerformbuilder/popup.phtml CHANGED
@@ -11,38 +11,6 @@
11
  <script type="text/javascript">
12
 
13
 
14
- // jQuery(function(){
15
-
16
- // // var getUrl = "<?php echo $this->getUrl('admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getFormById', array('efmfb_form_id' => 1)); ?>";
17
- // // var getUrl = "<?php echo $this->getUrl('admin_eflyermakerformbuilder/adminhtml_eflyermakerformbuilder/getFormById'); ?>";
18
- // var getUrl = "eflyermakerformbuilder/adminhtml/eflyermakerformbuilder/getFormById/efmfb_form_id/1";
19
- // console.log(getUrl);
20
- // jQuery.ajax({
21
- // url: getUrl,
22
- // dataType: 'json',
23
- // type: "POST",
24
- // // data: {'efmfb_form_id':'1'},
25
- // success: function(data) {
26
- // // jQuery('#results').html(data);
27
- // console.log("data");
28
- // console.log(data);
29
- // // data = data.toJSON();
30
- // },error( jqXHR, textStatus, errorThrown){
31
- // console.log("error textStatus : "+textStatus);
32
- // console.log("errorThrown : "+errorThrown);
33
- // // console.log(jqXHR.responseText);
34
- // }
35
- // });
36
-
37
-
38
- // // jQuery.post(getUrl, {"efmfb_form_id": 1}, function(data){
39
- // // console.log(data);
40
- // // });
41
-
42
-
43
- // });
44
-
45
-
46
 
47
 
48
  </script>
@@ -57,27 +25,16 @@
57
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_popup_setup.js"></script>
58
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_popup_options.js"></script>
59
 
60
- <!--<script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/css/"></script>-->
61
-
62
-
63
-
64
-
65
 
66
 
67
- <!-- efmfb_popup_setup -->
68
- <!-- efmfb_popup_options -->
69
-
70
  <?php
71
  $efmfb_forms_list = Mage::registry('efmfb_forms_list');
72
  $efmfb_popup_db_options = Mage::registry('efmfb_popup_db_options');
73
 
74
- // echo $efmfb_forms_list["efmfb_id"];
75
- // echo "hi ".$efmfb_forms_list["efmfb_popup_box_shadow"];
76
- // $efmfb_forms_list = array();
77
 
78
 
79
- ?>
80
 
 
81
 
82
 
83
 
@@ -244,7 +201,7 @@ $efmfb_poup_delay_array = array(
244
 
245
 
246
 
247
- <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/logo-eflyermaker-en.png">
248
 
249
  <div id="efmfb_body_container">
250
 
@@ -253,21 +210,29 @@ $efmfb_poup_delay_array = array(
253
  </div>
254
  <div class="efmfb_container ">
255
  <div class="efmfb_wrap">
256
- <h2><?= $this->__('options') ?></h2>
257
 
258
  <div class="" style="margin-right:0; vertical-align: top;">
259
  <div class="efmfb-panel efmfb-panel-primary">
260
- <div class="efmfb-panel-heading"><h2 class="efmfb-panel-title">On Load Dialog</h2></div>
261
 
262
  <div class="efmfb-panel-body">
263
 
264
  <div class="efmfb_well">
265
  <p>
266
- This section provides you a powerfull tool to use your form as a pop-up. If you want more information about this section <a href="http://kb.eflyermaker.com/eFlyerMaker%20Forms%20Builder%20plugin%20for%20Wordpress" target="_blank">click here</a>.<br>
 
 
 
 
 
 
 
267
  </p>
268
 
269
  <p>
270
- <strong>P.S.</strong> some styles (colors, font size, ...) may change in public view due to your website style.
 
271
  </p>
272
  </div>
273
 
@@ -277,37 +242,37 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
277
 
278
  <div class="efmfb_well">
279
 
280
- <h3>Box</h3><br>
281
 
282
  <div class="efmfb-form-group efmfb-form-group-inline">
283
- <label class="efmfb-label efmfb-label-options">Width:</label>
284
  <input id="efmfb_popup_width" name="efmfb_popup_width" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_width'];?>" />
285
  </div>
286
  <div class="efmfb-form-group efmfb-form-group-inline">
287
- <label class="efmfb-label efmfb-label-options">Height:</label>
288
  <input id="efmfb_popup_height" name="efmfb_popup_height" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_height'];?>" />
289
  </div>
290
 
291
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
292
- <label class="efmfb-label efmfb-label-options">Background color:
293
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_bg_color'];?>"></span>
294
  </label>
295
  <input id="efmfb_popup_bg_color" name="efmfb_popup_bg_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_bg_color'];?>"/>
296
  </div>
297
  <div class="efmfb-form-group efmfb-form-group-inline">
298
- <label class="efmfb-label efmfb-label-options">Background image url:</label>
299
  <input id="efmfb_popup_bg_img" name="efmfb_popup_bg_img" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_bg_img_url'];?>" />
300
  </div>
301
 
302
 
303
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
304
- <label class="efmfb-label efmfb-label-options">Overlay color:
305
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_overlay_color'];?>"></span>
306
  </label>
307
  <input id="efmfb_popup_overlay_color" name="efmfb_popup_overlay_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_overlay_color'];?>" />
308
  </div>
309
  <div class="efmfb-form-group efmfb-form-group-inline">
310
- <label class="efmfb-label efmfb-label-options">Overlay opacity:
311
  <input type="text" id="efmfb_popup_overlay_opacity_slider_val" name="efmfb_popup_overlay_opacity_slider_val" readonly style="border:0; font-weight:bold; background-color:transparent; box-shadow: none;" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_overlay_opacity'];?>">
312
 
313
  </label>
@@ -317,13 +282,13 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
317
 
318
 
319
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
320
- <label class="efmfb-label efmfb-label-options">Border color:
321
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_border_color'];?>"></span>
322
  </label>
323
  <input id="efmfb_popup_border_color" name="efmfb_popup_border_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_border_color'];?>" />
324
  </div>
325
  <div class="efmfb-form-group efmfb-form-group-inline ">
326
- <label class="efmfb-label efmfb-label-options">Border radius:
327
  <input type="text" id="efmfb_popup_border_radius_slider_val" name="efmfb_popup_border_radius_slider_val" readonly style="border:0; font-weight:bold; background-color:transparent; box-shadow: none; width: 15px; margin: 0; padding: 0 0 0 20px;" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_border_radius'];?>" >
328
  <span>px</span>
329
  </label>
@@ -333,7 +298,7 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
333
  <br>
334
 
335
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container ">
336
- <label class="efmfb-label efmfb-label-options">Close icon color:
337
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_close_icon_color'];?>"></span>
338
  </label>
339
  <input id="efmfb_popup_close_color" name="efmfb_popup_close_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_close_icon_color'];?>" />
@@ -342,23 +307,23 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
342
 
343
 
344
  <div class="efmfb-form-group efmfb-form-group-inline">
345
- <label class="efmfb-label efmfb-label-options">Box shadow:</label>
346
  <input id="efmfb_popup_box_shadow" name="efmfb_popup_box_shadow" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_box_shadow'];?>" />
347
  </div>
348
 
349
 
350
  <div class="efmfb-form-group efmfb-form-group-inline">
351
- <label class="efmfb-label efmfb-label-options">Custom classes:</label>
352
  <input id="efmfb_popup_classes" name="efmfb_popup_classes" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_classes'];?>" />
353
  </div>
354
 
355
 
356
  <div class="efmfb-form-group">
357
- <label class="efmfb-label efmfb-label-options">Header text: (you can use html or text)</label>
358
  <textarea id="efmfb_popup_header_text" name="efmfb_popup_header_text" class="efmfb-form-control efmfb-inline-form" style="width:100% !important; min-height:50px;"><?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_header_text'];?></textarea>
359
  </div>
360
  <div class="efmfb-form-group">
361
- <label class="efmfb-label efmfb-label-options">Footer text: (you can use html or text)</label>
362
  <textarea id="efmfb_popup_footer_text" name="efmfb_popup_footer_text" class="efmfb-form-control efmfb-inline-form" style="width:100% !important; min-height:50px;" ><?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_footer_text'];?></textarea>
363
  </div>
364
 
@@ -373,32 +338,32 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
373
 
374
  <!-- =================================== BOX TITLE =================================== -->
375
  <div class="efmfb_well">
376
- <h3>Box Title</h3><br>
377
  <div class="efmfb-form-group efmfb-form-group-inline">
378
- <label class="efmfb-label efmfb-label-options">Text:</label>
379
  <input id="efmfb_popup_title_text" name="efmfb_popup_title_text" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title'];?>"/>
380
  </div>
381
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
382
- <label class="efmfb-label efmfb-label-options">Text color:
383
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_color'];?>"></span>
384
  </label>
385
  <input id="efmfb_popup_title_color" name="efmfb_popup_title_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input " type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_color'];?>" />
386
  </div>
387
 
388
  <div class="efmfb-form-group efmfb-form-group-inline">
389
- <label class="efmfb-label efmfb-label-options">Image url:</label>
390
  <input id="efmfb_popup_title_img" name="efmfb_popup_title_img" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_img_url'];?>" />
391
  </div>
392
  <div class="efmfb-form-group efmfb-form-group-inline">
393
- <label class="efmfb-label efmfb-label-options">Image positions:</label>
394
- <input id="efmfb_popup_title_img_pos_L" name="efmfb_popup_title_img_pos" class="efmfb-form-control efmfb-inline-form" style="width:auto !important;" type="radio" value="left" <?php if( isset( $efmfb_popup_db_options ) && $efmfb_popup_db_options['efmfb_popup_title_img_pos'] == 'left' ) echo 'checked'; ?> /> <span style="display:inline-block; margin-right:15px;">Left</span>
395
- <input id="efmfb_popup_title_img_pos_C" name="efmfb_popup_title_img_pos" class="efmfb-form-control efmfb-inline-form" style="width:auto !important; " type="radio" value="center" <?php if( isset( $efmfb_popup_db_options ) && $efmfb_popup_db_options['efmfb_popup_title_img_pos'] == 'center' ) echo 'checked'; ?> /> <span style="display:inline-block; margin-right:15px;">Center</span>
396
- <input id="efmfb_popup_title_img_pos_R" name="efmfb_popup_title_img_pos" class="efmfb-form-control efmfb-inline-form" style="width:auto !important; " type="radio" value="right" <?php if( isset( $efmfb_popup_db_options ) && $efmfb_popup_db_options['efmfb_popup_title_img_pos'] == 'right' ) echo 'checked'; ?> /> Right
397
  </div>
398
 
399
 
400
  <div class="efmfb-form-group efmfb-form-group-inline">
401
- <label class="efmfb-label efmfb-label-options">Custom style:</label>
402
  <input id="efmfb_popup_title_styles" name="efmfb_popup_title_styles" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_styles'];?>"/>
403
  </div>
404
 
@@ -408,16 +373,16 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
408
 
409
  <!-- =================================== BOX BODY =================================== -->
410
  <div class="efmfb_well">
411
- <h3>Box Body</h3><br>
412
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
413
- <label class="efmfb-label efmfb-label-options">Background color:
414
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_color'];?>"></span>
415
  </label>
416
  <input id="efmfb_popup_body_bg_color" name="efmfb_popup_body_bg_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input " type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_color'];?>" />
417
  <input type="hidden" name="efmfb_popup_body_bg_rgba" id="efmfb_popup_body_bg_rgba">
418
  </div>
419
  <div class="efmfb-form-group efmfb-form-group-inline " style="display:none !important;">
420
- <label class="efmfb-label efmfb-label-options"><input id="efmfb_popup_title_has_body_bgcolor" name="efmfb_popup_title_has_body_bgcolor" type='checkbox' <?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_has_body_bgcolor'];?> /> Apply box body background color to title</label>
421
  </div>
422
 
423
 
@@ -425,7 +390,7 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
425
 
426
 
427
  <div class="efmfb-form-group efmfb-form-group-inline">
428
- <label class="efmfb-label efmfb-label-options">Background color opacity:
429
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_opacity'];?>"></span>
430
  </label>
431
  <input type="text" id="efmfb_popup_body_bg_opacity" name="efmfb_popup_body_bg_opacity" readonly style="border:0; font-weight:bold; background-color:transparent; box-shadow: none;" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_opacity'];?>">
@@ -436,12 +401,12 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
436
 
437
  <br><br>
438
  <div class="efmfb-form-group efmfb-form-group-inline">
439
- <label class="efmfb-label efmfb-label-options">Custom style: </label>
440
  <input id="efmfb_popup_body_styles" name="efmfb_popup_body_styles" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_styles'];?>"/>
441
  </div>
442
 
443
  <div class="efmfb-form-group efmfb-form-group-inline">
444
- <label class="efmfb-label efmfb-label-options">Custom class: </label>
445
  <input id="efmfb_popup_body_classes" name="efmfb_popup_body_classes" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_classes'];?>"/>
446
  </div>
447
 
@@ -453,16 +418,16 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
453
 
454
  <!-- =================================== BOX EFFECTS =================================== -->
455
  <div class="efmfb_well">
456
- <h3>Box Animations</h3><br>
457
 
458
 
459
 
460
 
461
  <!-- ANIMATE CSS SHOW -->
462
  <div class="efmfb-form-group efmfb-form-group-inline">
463
- <label class="efmfb-label efmfb-label-options">Show animation:</label>
464
  <select id="efmfb_popup_animatecss_show" name="efmfb_popup_animatecss_show" class="efmfb-form-control efmfb-inline-form">
465
- <option value="">Select an animation</option>
466
  <optgroup label="Attention Seekers">
467
  <?php foreach ($efmfb_animatecss_attention_seekers as $key => $value) {
468
  $selected = '';
@@ -605,9 +570,9 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
605
 
606
 
607
  <div class="efmfb-form-group efmfb-form-group-inline">
608
- <label class="efmfb-label efmfb-label-options">Hide animation:</label>
609
  <select id="efmfb_popup_animatecss_hide" name="efmfb_popup_animatecss_hide" class="efmfb-form-control efmfb-inline-form">
610
- <option value="">Select an animation</option>
611
  <optgroup label="Attention Seekers">
612
  <?php foreach ($efmfb_animatecss_attention_seekers as $key => $value) {
613
  $selected = '';
@@ -745,7 +710,7 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
745
 
746
 
747
  <div class="efmfb-form-group efmfb-form-group-inline">
748
- <label class="efmfb-label efmfb-label-options">Delay (s):</label>
749
  <select id="efmfb_popup_delay" name="efmfb_popup_delay" class="efmfb-form-control efmfb-inline-form">
750
  <?php
751
  foreach ($efmfb_poup_delay_array as $key => $value) {
@@ -765,7 +730,7 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
765
 
766
 
767
  <div class="efmfb-form-group efmfb-form-group-inline ">
768
- <label class="efmfb-label efmfb-label-options"><input id="efmfb_popup_rotate_in_success" name="efmfb_popup_rotate_in_success" type='checkbox' <?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_rotate_in_success'];?> /> Rotate box to show success response</label>
769
  </div>
770
 
771
 
@@ -783,12 +748,12 @@ This section provides you a powerfull tool to use your form as a pop-up. If you
783
  <div class="efmfb_well" style="display:block; width:95%; padding-top:20px;">
784
  <!-- <div id="efmfb_popup_form_options" class="efmfb-btn efmfb-btn-actions" style="margin-right:10px;">Save Dialog Options</div> -->
785
  <!-- <button type="submit" class="efmfb-btn efmfb-btn-actions" style="margin-right:10px;">Save Dialog Options</button> -->
786
- <div id="efmfb_save_popup_options" class="efmfb-btn efmfb-btn-actions" style="margin-right:10px;">Save Dialog Options</div>
787
- <div id="efmfb_popup_form_options_demo" class="efmfb-btn efmfb-btn-actions">Demo</div>
788
  <div class=" " style="display:inline-block;">
789
 
790
  <select id="get_this_form_data" name="efmfb_popup_form_id" class="efmfb-form-control efmfb-inline-form" style="height: 36px; margin-top: -4px !important;">
791
- <option value="0">Form to display</option>
792
  <?php foreach( $efmfb_forms_list as $form ) { ?>
793
  <option value="<?php echo $form['efmfb_id']; ?>"><?php echo stripslashes( $form['efmfb_form_name'] ); ?></option>
794
  <?php } ?>
11
  <script type="text/javascript">
12
 
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
 
16
  </script>
25
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_popup_setup.js"></script>
26
  <script src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/js/efmfb_popup_options.js"></script>
27
 
 
 
 
 
 
28
 
29
 
 
 
 
30
  <?php
31
  $efmfb_forms_list = Mage::registry('efmfb_forms_list');
32
  $efmfb_popup_db_options = Mage::registry('efmfb_popup_db_options');
33
 
 
 
 
34
 
35
 
 
36
 
37
+ ?>
38
 
39
 
40
 
201
 
202
 
203
 
204
+ <img src="<?php echo Mage::getDesign()->getSkinUrl(); ?>eflyermakerformbuilder/images/eFlyerMaker_logo.png">
205
 
206
  <div id="efmfb_body_container">
207
 
210
  </div>
211
  <div class="efmfb_container ">
212
  <div class="efmfb_wrap">
213
+ <h2><?= $this->__('Options') ?></h2>
214
 
215
  <div class="" style="margin-right:0; vertical-align: top;">
216
  <div class="efmfb-panel efmfb-panel-primary">
217
+ <div class="efmfb-panel-heading"><h2 class="efmfb-panel-title"><?= $this->__('On Load Dialog'); ?></h2></div>
218
 
219
  <div class="efmfb-panel-body">
220
 
221
  <div class="efmfb_well">
222
  <p>
223
+ <?= $this->__('This section provides you a powerfull tool to use your form as a pop-up. If you want more information about this section') ?>
224
+ <a href="<?= $this->__('http://kb.eflyermaker.com/wordpress-signup-form-plugin') ?>" target="_blank"><?= $this->__('click here'); ?></a>.
225
+
226
+
227
+
228
+
229
+
230
+ <br>
231
  </p>
232
 
233
  <p>
234
+ <?= $this->__('<strong>P.S.</strong> some styles (colors, font size, ...) may change in public view due to your website style.') ?>
235
+
236
  </p>
237
  </div>
238
 
242
 
243
  <div class="efmfb_well">
244
 
245
+ <h3><?= $this->__('Box') ?></h3><br>
246
 
247
  <div class="efmfb-form-group efmfb-form-group-inline">
248
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Width:') ?></label>
249
  <input id="efmfb_popup_width" name="efmfb_popup_width" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_width'];?>" />
250
  </div>
251
  <div class="efmfb-form-group efmfb-form-group-inline">
252
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Height:') ?></label>
253
  <input id="efmfb_popup_height" name="efmfb_popup_height" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_height'];?>" />
254
  </div>
255
 
256
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
257
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Background color:') ?>
258
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_bg_color'];?>"></span>
259
  </label>
260
  <input id="efmfb_popup_bg_color" name="efmfb_popup_bg_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_bg_color'];?>"/>
261
  </div>
262
  <div class="efmfb-form-group efmfb-form-group-inline">
263
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Background image url:') ?></label>
264
  <input id="efmfb_popup_bg_img" name="efmfb_popup_bg_img" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_bg_img_url'];?>" />
265
  </div>
266
 
267
 
268
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
269
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Overlay color:') ?>
270
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_overlay_color'];?>"></span>
271
  </label>
272
  <input id="efmfb_popup_overlay_color" name="efmfb_popup_overlay_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_overlay_color'];?>" />
273
  </div>
274
  <div class="efmfb-form-group efmfb-form-group-inline">
275
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Overlay opacity:') ?>
276
  <input type="text" id="efmfb_popup_overlay_opacity_slider_val" name="efmfb_popup_overlay_opacity_slider_val" readonly style="border:0; font-weight:bold; background-color:transparent; box-shadow: none;" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_overlay_opacity'];?>">
277
 
278
  </label>
282
 
283
 
284
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
285
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Border color:') ?>
286
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_border_color'];?>"></span>
287
  </label>
288
  <input id="efmfb_popup_border_color" name="efmfb_popup_border_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_border_color'];?>" />
289
  </div>
290
  <div class="efmfb-form-group efmfb-form-group-inline ">
291
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Border radius:') ?>
292
  <input type="text" id="efmfb_popup_border_radius_slider_val" name="efmfb_popup_border_radius_slider_val" readonly style="border:0; font-weight:bold; background-color:transparent; box-shadow: none; width: 15px; margin: 0; padding: 0 0 0 20px;" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_border_radius'];?>" >
293
  <span>px</span>
294
  </label>
298
  <br>
299
 
300
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container ">
301
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Close icon color:') ?>
302
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_close_icon_color'];?>"></span>
303
  </label>
304
  <input id="efmfb_popup_close_color" name="efmfb_popup_close_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_close_icon_color'];?>" />
307
 
308
 
309
  <div class="efmfb-form-group efmfb-form-group-inline">
310
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Box shadow:') ?></label>
311
  <input id="efmfb_popup_box_shadow" name="efmfb_popup_box_shadow" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_box_shadow'];?>" />
312
  </div>
313
 
314
 
315
  <div class="efmfb-form-group efmfb-form-group-inline">
316
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Custom classes:') ?></label>
317
  <input id="efmfb_popup_classes" name="efmfb_popup_classes" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_classes'];?>" />
318
  </div>
319
 
320
 
321
  <div class="efmfb-form-group">
322
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Header text: (you can use html or text)') ?></label>
323
  <textarea id="efmfb_popup_header_text" name="efmfb_popup_header_text" class="efmfb-form-control efmfb-inline-form" style="width:100% !important; min-height:50px;"><?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_header_text'];?></textarea>
324
  </div>
325
  <div class="efmfb-form-group">
326
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Footer text: (you can use html or text)') ?></label>
327
  <textarea id="efmfb_popup_footer_text" name="efmfb_popup_footer_text" class="efmfb-form-control efmfb-inline-form" style="width:100% !important; min-height:50px;" ><?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_footer_text'];?></textarea>
328
  </div>
329
 
338
 
339
  <!-- =================================== BOX TITLE =================================== -->
340
  <div class="efmfb_well">
341
+ <h3><?= $this->__('Box Title') ?></h3><br>
342
  <div class="efmfb-form-group efmfb-form-group-inline">
343
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Text:') ?></label>
344
  <input id="efmfb_popup_title_text" name="efmfb_popup_title_text" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title'];?>"/>
345
  </div>
346
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
347
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Text color:') ?>
348
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_color'];?>"></span>
349
  </label>
350
  <input id="efmfb_popup_title_color" name="efmfb_popup_title_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input " type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_color'];?>" />
351
  </div>
352
 
353
  <div class="efmfb-form-group efmfb-form-group-inline">
354
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Image url:') ?></label>
355
  <input id="efmfb_popup_title_img" name="efmfb_popup_title_img" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_img_url'];?>" />
356
  </div>
357
  <div class="efmfb-form-group efmfb-form-group-inline">
358
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Image position:') ?></label>
359
+ <input id="efmfb_popup_title_img_pos_L" name="efmfb_popup_title_img_pos" class="efmfb-form-control efmfb-inline-form" style="width:auto !important;" type="radio" value="left" <?php if( isset( $efmfb_popup_db_options ) && $efmfb_popup_db_options['efmfb_popup_title_img_pos'] == 'left' ) echo 'checked'; ?> /> <span style="display:inline-block; margin-right:15px;"><?= $this->__('Left') ?></span>
360
+ <input id="efmfb_popup_title_img_pos_C" name="efmfb_popup_title_img_pos" class="efmfb-form-control efmfb-inline-form" style="width:auto !important; " type="radio" value="center" <?php if( isset( $efmfb_popup_db_options ) && $efmfb_popup_db_options['efmfb_popup_title_img_pos'] == 'center' ) echo 'checked'; ?> /> <span style="display:inline-block; margin-right:15px;"><?= $this->__('Center') ?></span>
361
+ <input id="efmfb_popup_title_img_pos_R" name="efmfb_popup_title_img_pos" class="efmfb-form-control efmfb-inline-form" style="width:auto !important; " type="radio" value="right" <?php if( isset( $efmfb_popup_db_options ) && $efmfb_popup_db_options['efmfb_popup_title_img_pos'] == 'right' ) echo 'checked'; ?> /> <?= $this->__('Right') ?>
362
  </div>
363
 
364
 
365
  <div class="efmfb-form-group efmfb-form-group-inline">
366
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Custom style:') ?></label>
367
  <input id="efmfb_popup_title_styles" name="efmfb_popup_title_styles" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_styles'];?>"/>
368
  </div>
369
 
373
 
374
  <!-- =================================== BOX BODY =================================== -->
375
  <div class="efmfb_well">
376
+ <h3><?= $this->__('Box Body') ?></h3><br>
377
  <div class="efmfb-form-group efmfb-form-group-inline efmfb-picker-container">
378
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Background color:') ?>
379
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_color'];?>"></span>
380
  </label>
381
  <input id="efmfb_popup_body_bg_color" name="efmfb_popup_body_bg_color" class="efmfb-form-control efmfb-inline-form efmfb-color-picker-input " type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_color'];?>" />
382
  <input type="hidden" name="efmfb_popup_body_bg_rgba" id="efmfb_popup_body_bg_rgba">
383
  </div>
384
  <div class="efmfb-form-group efmfb-form-group-inline " style="display:none !important;">
385
+ <label class="efmfb-label efmfb-label-options"><input id="efmfb_popup_title_has_body_bgcolor" name="efmfb_popup_title_has_body_bgcolor" type='checkbox' <?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_title_has_body_bgcolor'];?> /> <?= $this->__('Apply box body background color to title') ?></label>
386
  </div>
387
 
388
 
390
 
391
 
392
  <div class="efmfb-form-group efmfb-form-group-inline">
393
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Background color opacity:') ?>
394
  <span class="efmfb-show-color" style="background-color:<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_opacity'];?>"></span>
395
  </label>
396
  <input type="text" id="efmfb_popup_body_bg_opacity" name="efmfb_popup_body_bg_opacity" readonly style="border:0; font-weight:bold; background-color:transparent; box-shadow: none;" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_bg_opacity'];?>">
401
 
402
  <br><br>
403
  <div class="efmfb-form-group efmfb-form-group-inline">
404
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Custom style:') ?> </label>
405
  <input id="efmfb_popup_body_styles" name="efmfb_popup_body_styles" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_styles'];?>"/>
406
  </div>
407
 
408
  <div class="efmfb-form-group efmfb-form-group-inline">
409
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Custom class:') ?> </label>
410
  <input id="efmfb_popup_body_classes" name="efmfb_popup_body_classes" class="efmfb-form-control efmfb-inline-form" type="text" value="<?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_body_classes'];?>"/>
411
  </div>
412
 
418
 
419
  <!-- =================================== BOX EFFECTS =================================== -->
420
  <div class="efmfb_well">
421
+ <h3><?= $this->__('Box Animations') ?></h3><br>
422
 
423
 
424
 
425
 
426
  <!-- ANIMATE CSS SHOW -->
427
  <div class="efmfb-form-group efmfb-form-group-inline">
428
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Show animation:') ?></label>
429
  <select id="efmfb_popup_animatecss_show" name="efmfb_popup_animatecss_show" class="efmfb-form-control efmfb-inline-form">
430
+ <option value=""><?= $this->__('Select an animation') ?></option>
431
  <optgroup label="Attention Seekers">
432
  <?php foreach ($efmfb_animatecss_attention_seekers as $key => $value) {
433
  $selected = '';
570
 
571
 
572
  <div class="efmfb-form-group efmfb-form-group-inline">
573
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Hide animation:') ?></label>
574
  <select id="efmfb_popup_animatecss_hide" name="efmfb_popup_animatecss_hide" class="efmfb-form-control efmfb-inline-form">
575
+ <option value=""><?= $this->__('Select an animation') ?></option>
576
  <optgroup label="Attention Seekers">
577
  <?php foreach ($efmfb_animatecss_attention_seekers as $key => $value) {
578
  $selected = '';
710
 
711
 
712
  <div class="efmfb-form-group efmfb-form-group-inline">
713
+ <label class="efmfb-label efmfb-label-options"><?= $this->__('Delay (s):') ?></label>
714
  <select id="efmfb_popup_delay" name="efmfb_popup_delay" class="efmfb-form-control efmfb-inline-form">
715
  <?php
716
  foreach ($efmfb_poup_delay_array as $key => $value) {
730
 
731
 
732
  <div class="efmfb-form-group efmfb-form-group-inline ">
733
+ <label class="efmfb-label efmfb-label-options"><input id="efmfb_popup_rotate_in_success" name="efmfb_popup_rotate_in_success" type='checkbox' <?php if( isset( $efmfb_popup_db_options ) ) echo $efmfb_popup_db_options['efmfb_popup_rotate_in_success'];?> /> <?= $this->__('Rotate box to show success response') ?></label>
734
  </div>
735
 
736
 
748
  <div class="efmfb_well" style="display:block; width:95%; padding-top:20px;">
749
  <!-- <div id="efmfb_popup_form_options" class="efmfb-btn efmfb-btn-actions" style="margin-right:10px;">Save Dialog Options</div> -->
750
  <!-- <button type="submit" class="efmfb-btn efmfb-btn-actions" style="margin-right:10px;">Save Dialog Options</button> -->
751
+ <div id="efmfb_save_popup_options" class="efmfb-btn efmfb-btn-actions" style="margin-right:10px;"><?= $this->__('Save Dialog Options') ?></div>
752
+ <div id="efmfb_popup_form_options_demo" class="efmfb-btn efmfb-btn-actions"><?= $this->__('Demo') ?></div>
753
  <div class=" " style="display:inline-block;">
754
 
755
  <select id="get_this_form_data" name="efmfb_popup_form_id" class="efmfb-form-control efmfb-inline-form" style="height: 36px; margin-top: -4px !important;">
756
+ <option value="0"><?= $this->__('Form to display') ?></option>
757
  <?php foreach( $efmfb_forms_list as $form ) { ?>
758
  <option value="<?php echo $form['efmfb_id']; ?>"><?php echo stripslashes( $form['efmfb_form_name'] ); ?></option>
759
  <?php } ?>
app/design/frontend/base/default/layout/eflyermakerformbuilder/eflyermakerformbuilder.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addItem">
6
+ <type>skin_css</type>
7
+ <name>eflyermakerformbuilder/efmfb_public.css</name>
8
+ </action>
9
+ <action method="addItem">
10
+ <type>skin_css</type>
11
+ <name>eflyermakerformbuilder/animate.css</name>
12
+ </action>
13
+
14
+ <action method="addItem">
15
+ <type>skin_js</type>
16
+ <name>eflyermakerformbuilder/jquery.bpopup.js</name>
17
+ </action>
18
+ <action method="addItem">
19
+ <type>skin_js</type>
20
+ <name>eflyermakerformbuilder/efmfb_public.js</name>
21
+ </action>
22
+
23
+ </reference>
24
+ </default>
25
+ </layout>
app/locale/en_US/eflyermakerformbuilder.csv CHANGED
@@ -1,4 +0,0 @@
1
- "options","Options"
2
- "on_load_dialog","On Load Dialog"
3
- "dialog_header_text",This section provides you a powerfull tool to use your form as a pop-up. If you want more information about this section <a href="http://kb.eflyermaker.com/eFlyerMaker%20Forms%20Builder%20plugin%20for%20Wordpress" target="_blank">click here</a>.
4
- "dialog_header_text2", <strong>P.S.</strong> some styles (colors, font size, ...) may change in public view due to your website style.
 
 
 
 
app/locale/fr_CA/eflyermakerformbuilder.csv ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "lg","fr"
2
+ "Get Started", "Démarrer"
3
+ "On Load Dialog", "Boîte de dialogue"
4
+ "Input Text Options", "Options saisie de texte"
5
+ "Remove field", "Supprimer le champ"
6
+ "Button Options", "Options du bouton"
7
+ "Align Button:", "Aligner le bouton :"
8
+ "Checkbox Options", "Options case à cocher"
9
+ "List Options", "Options Liste"
10
+ "Radio Button Options", "Options Bouton Radio"
11
+ "Create New Form", "Créer un nouveau formulaire"
12
+ "Manage Forms", "Gérer les formulaires"
13
+ "Options", "Options"
14
+ "No forms found", "Aucun formulaire trouvé"
15
+ "eFlyerMaker Forms Builder", "eFlyerMaker Forms Builder"
16
+ "Form: ", "Formulaire :"
17
+ "Set as popup: ", "Utiliser comme une boite de dialogue"
18
+ "Create Form", "Création de formulaire"
19
+ "Create form", "Création de formulaire"
20
+ "Form informations", "Informations"
21
+ "Name:", "Nom :"
22
+ "Description:", "Description :"
23
+ "Classes:", "Classes :"
24
+ "Custom Styles:", "Styles personnalisés :"
25
+ "Custom styles:", "Styles personnalisés :"
26
+ "eFlyerMaker JSON code:", "Le code JSON de eFlyerMaker :"
27
+ "Paste-in your eFlyerMaker code", "Collez votre code JSON obtenu à partir de l’application eFlyerMaker"
28
+ "Save Form", "Sauvegarder le formulaire"
29
+ "Text input", "Champs texte"
30
+ "Required Field", "Champ obligatoire"
31
+ "Hidden Field", "Champ caché"
32
+ "Hide Label", "Masquer le libellé"
33
+ "Label:", "Libellé"
34
+ "Default Value:", "Valeur par défaut :"
35
+ "Placeholder:", "Texte à titre indicatif :"
36
+ "Custom Style:", "Styles personnalisés :"
37
+ "Custom style:", "Styles personnalisés :"
38
+ "List content:", "Contenu de la liste :"
39
+ "Text" : "Texte"
40
+ "Value":"Valeur"
41
+ "Error msg:", "Message d’erreur"
42
+ "Add", "Ajouter"
43
+ "List","Liste"
44
+ "Custom class:", "Classes personnalisées :"
45
+ "add to list", "ajouter à la liste"
46
+ "Checkbox", "Checkbox"
47
+ "Required", "Requis"
48
+ "Radio button", "Bouton radio"
49
+ "Name", "Nom"
50
+ "Description", "Description"
51
+ "Status", "Statut"
52
+ "Creation date", "Date de création"
53
+ "Last modification", "Dernière modification"
54
+ "Actions", "Actions"
55
+ "Edit", "Éditer"
56
+ "Duplicate", "Dupliquer"
57
+ "Delete", "Supprimer"
58
+ "Not Found", "Introuvable"
59
+ "On Load Dialog", "Boîte de dialogue"
60
+ "This section provides you a powerfull tool to use your form as a pop-up. If you want more information about this section", "Cette section fournit un outil puissant pour utiliser votre formulaire comme un pop-up. Si vous souhaitez plus d'informations sur cette section"
61
+ "http://kb.eflyermaker.com/wordpress-signup-form-plugin", "http://kb.eflyermaker.com/wordpress-signup-form-plugin-FR"
62
+ "click here","cliquez ici"
63
+ "<strong>P.S.</strong> some styles (colors, font size, ...) may change in public view due to your website style.", "<strong>Notez-bien : </strong>certains styles (couleurs, taille de la police, etc) peuvent être modifier en raison du thème de votre site."
64
+ "Box", "Boîte"
65
+ "Width:", "Largeur :"
66
+ "Height:","Hauteur :"
67
+ "Background color:", "Couleur de l’arrière plan :"
68
+ "Background image url:", "URL de l’image de l’arrière plan :"
69
+ "Overlay color:", "Couleur de fond du masque"
70
+ "Overlay opacity:", "Opacité de fond du masque :"
71
+ "Border color:", "Couleur de la bordure :"
72
+ "Border radius:", "Taille du rayon de la bordure :"
73
+ "Close icon color:", "La couleur de l'icône Fermer :"
74
+ "Box shadow:", "Ombre de la boîte :"
75
+ "Custom classes:", "Classes personnalisées :"
76
+ "Header text: (you can use html or text)", "Texte d’entête : (vous pouvez utiliser html ou texte)"
77
+ "Footer text: (you can use html or text)", "Texte de pied de page : (vous pouvez utiliser html ou texte)"
78
+ "Box Title", "Titre de la boîte"
79
+ "Text:", "Texte :"
80
+ "Text color:", "Couleur du texte :"
81
+ "Image url:", "URL de l’image :"
82
+ "Image position:", "Position de l'image :"
83
+ "Custom css:", "CSS personnalisé :"
84
+ "Box Body", "Contenu de la boîte"
85
+ "Apply box body background color to title", "Appliquer la couleur de l'arrière-plan de la boîte à la couleur de l'arrière-plan du titre"
86
+ "Background color opacity:", "Opacité de la couleur de l’arrière plan :"
87
+ "Box Animations", "Animations de la boîte"
88
+ "Show animation:", "Animation d’ouverture"
89
+ "Select an animation", "Sélectionnez une animation"
90
+ "Hide animation:", "Animation de fermeture "
91
+ "Delay (s):", "Délai (s) :"
92
+ "Rotate box to show success response", "Retourner la boîte lors de l’affichage de la réponse de succès"
93
+ "Save Dialog Options", "Sauvegarder"
94
+ "Demo", "Démo"
95
+ "Form to display", "Formulaire à tester"
96
+ "In the navigation menu, select ""List"" and then ""Publications""", "Dans le menu de navigation, sélectionnez ""Listes"" puis ""Publications"" "
97
+ "See <a href=""http://kb.eflyermaker.com/magento-signup-form-plugin"" title=""eflyermaker's Form Builder plugin for magento"" target=""_blank"">eFlyerMaker's Knowledge Base</a> for complete Plugin Form Builder instructions.","Visitez <a href=""http://kb.eflyermaker.com/magento-signup-form-plugin"" title=""eflyermaker's Form Builder plugin for magento"" target=""_blank""> Le Guide et base de connaissances de eFlyerMaker</a> afin d'obtenir des instructions complètes sur ce plugin."
98
+ "From eFlyerMaker", "À partir de eFlyerMaker"
99
+ "Login to your <a href=""https://campaign.eflyermaker.com/?utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_en"" target=""_blank"">eFlyerMaker's</a> account or create your <a href=""https://campaign.eflyermaker.com/?signup&utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_en"" target=""_blank"">free account now</a>","Connectez-vous à votre compte <a href=""https://campagne.eflyermaker.com/?utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_fr"" target=""_blank"">eFlyerMaker</a> ou créez-vous un <a href=""https://campagne.eflyermaker.com/?inscription&utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_fr"" target=""_blank"">compte gratuit</a>"
100
+ "Under Newsletter, click on ""Sign-Up HTML Code""", "À droite de la publication de votre choix, cliquez sur ""Code HTML pour le formulaire d'abonnement"""
101
+ "In the pop-over modal window, select CMS Plugin then Wordpress", "Dans la fenêtre qui vient d'apparaitre, cliquez CMS Plugin puis Wordpress "
102
+ "Copy all the Json code", "Copiez tout le codage JSON"
103
+ "Back In WordPress", "Retournez dans WordPress"
104
+ "Click on <a class=""createForm"" href=""javascript:void(0)"">Create a new form</a> button located in menu bar at your right", "Cliquez sur le bouton ""<a class=""createForm"" href=""javascript:void(0)"">Créer un nouveau formulaire</a>"" situé dans la barre de menu à votre droite"
105
+ "Past the code in the field ""eFlyerMaker Json code""", "Copiez le codage JSON dans le champ ""Le code JSON de eFlyerMaker"" puis cliquez sur ""Création de formulaire"", votre nouveau formulaire devrait apparaitre dans la zone blanche. "
106
+ "Create a new form", "Création de formulaire"
107
+ "Manage forms", "Gestion de formulaire"
108
+ "Manage form", "Gestion de formulaire"
109
+ "Title:", "Titre :"
110
+ "Form:", "Formulaire :"
111
+ "Display form description", "Afficher la description"
112
+ "Right","Droite"
113
+ "Left","Gauche"
114
+ "Center","Centre"
app/locale/fr_FR /eflyermakerformbuilder.csv DELETED
@@ -1 +0,0 @@
1
- "options","Options"
 
app/locale/fr_FR/eflyermakerformbuilder.csv ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "lg","fr"
2
+ "Get Started", "Démarrer"
3
+ "On Load Dialog", "Boîte de dialogue"
4
+ "Input Text Options", "Options saisie de texte"
5
+ "Remove field", "Supprimer le champ"
6
+ "Button Options", "Options du bouton"
7
+ "Align Button:", "Aligner le bouton :"
8
+ "Checkbox Options", "Options case à cocher"
9
+ "List Options", "Options Liste"
10
+ "Radio Button Options", "Options Bouton Radio"
11
+ "Create New Form", "Créer un nouveau formulaire"
12
+ "Manage Forms", "Gérer les formulaires"
13
+ "Options", "Options"
14
+ "No forms found", "Aucun formulaire trouvé"
15
+ "eFlyerMaker Forms Builder", "eFlyerMaker Forms Builder"
16
+ "Form: ", "Formulaire :"
17
+ "Set as popup: ", "Utiliser comme une boite de dialogue"
18
+ "Create Form", "Création de formulaire"
19
+ "Create form", "Création de formulaire"
20
+ "Form informations", "Informations"
21
+ "Name:", "Nom :"
22
+ "Description:", "Description :"
23
+ "Classes:", "Classes :"
24
+ "Custom Styles:", "Styles personnalisés :"
25
+ "Custom styles:", "Styles personnalisés :"
26
+ "eFlyerMaker JSON code:", "Le code JSON de eFlyerMaker :"
27
+ "Paste-in your eFlyerMaker code", "Collez votre code JSON obtenu à partir de l’application eFlyerMaker"
28
+ "Save Form", "Sauvegarder le formulaire"
29
+ "Text input", "Champs texte"
30
+ "Required Field", "Champ obligatoire"
31
+ "Hidden Field", "Champ caché"
32
+ "Hide Label", "Masquer le libellé"
33
+ "Label:", "Libellé"
34
+ "Default Value:", "Valeur par défaut :"
35
+ "Placeholder:", "Texte à titre indicatif :"
36
+ "Custom Style:", "Styles personnalisés :"
37
+ "Custom style:", "Styles personnalisés :"
38
+ "List content:", "Contenu de la liste :"
39
+ "Text" : "Texte"
40
+ "Value":"Valeur"
41
+ "Error msg:", "Message d’erreur"
42
+ "Add", "Ajouter"
43
+ "List","Liste"
44
+ "Custom class:", "Classes personnalisées :"
45
+ "add to list", "ajouter à la liste"
46
+ "Checkbox", "Checkbox"
47
+ "Required", "Requis"
48
+ "Radio button", "Bouton radio"
49
+ "Name", "Nom"
50
+ "Description", "Description"
51
+ "Status", "Statut"
52
+ "Creation date", "Date de création"
53
+ "Last modification", "Dernière modification"
54
+ "Actions", "Actions"
55
+ "Edit", "Éditer"
56
+ "Duplicate", "Dupliquer"
57
+ "Delete", "Supprimer"
58
+ "Not Found", "Introuvable"
59
+ "On Load Dialog", "Boîte de dialogue"
60
+ "This section provides you a powerfull tool to use your form as a pop-up. If you want more information about this section", "Cette section fournit un outil puissant pour utiliser votre formulaire comme un pop-up. Si vous souhaitez plus d'informations sur cette section"
61
+ "http://kb.eflyermaker.com/wordpress-signup-form-plugin", "http://kb.eflyermaker.com/wordpress-signup-form-plugin-FR"
62
+ "click here","cliquez ici"
63
+ "<strong>P.S.</strong> some styles (colors, font size, ...) may change in public view due to your website style.", "<strong>Notez-bien : </strong>certains styles (couleurs, taille de la police, etc) peuvent être modifier en raison du thème de votre site."
64
+ "Box", "Boîte"
65
+ "Width:", "Largeur :"
66
+ "Height:","Hauteur :"
67
+ "Background color:", "Couleur de l’arrière plan :"
68
+ "Background image url:", "URL de l’image de l’arrière plan :"
69
+ "Overlay color:", "Couleur de fond du masque"
70
+ "Overlay opacity:", "Opacité de fond du masque :"
71
+ "Border color:", "Couleur de la bordure :"
72
+ "Border radius:", "Taille du rayon de la bordure :"
73
+ "Close icon color:", "La couleur de l'icône Fermer :"
74
+ "Box shadow:", "Ombre de la boîte :"
75
+ "Custom classes:", "Classes personnalisées :"
76
+ "Header text: (you can use html or text)", "Texte d’entête : (vous pouvez utiliser html ou texte)"
77
+ "Footer text: (you can use html or text)", "Texte de pied de page : (vous pouvez utiliser html ou texte)"
78
+ "Box Title", "Titre de la boîte"
79
+ "Text:", "Texte :"
80
+ "Text color:", "Couleur du texte :"
81
+ "Image url:", "URL de l’image :"
82
+ "Image position:", "Position de l'image :"
83
+ "Custom css:", "CSS personnalisé :"
84
+ "Box Body", "Contenu de la boîte"
85
+ "Apply box body background color to title", "Appliquer la couleur de l'arrière-plan de la boîte à la couleur de l'arrière-plan du titre"
86
+ "Background color opacity:", "Opacité de la couleur de l’arrière plan :"
87
+ "Box Animations", "Animations de la boîte"
88
+ "Show animation:", "Animation d’ouverture"
89
+ "Select an animation", "Sélectionnez une animation"
90
+ "Hide animation:", "Animation de fermeture "
91
+ "Delay (s):", "Délai (s) :"
92
+ "Rotate box to show success response", "Retourner la boîte lors de l’affichage de la réponse de succès"
93
+ "Save Dialog Options", "Sauvegarder"
94
+ "Demo", "Démo"
95
+ "Form to display", "Formulaire à tester"
96
+ "In the navigation menu, select ""List"" and then ""Publications""", "Dans le menu de navigation, sélectionnez ""Listes"" puis ""Publications"" "
97
+ "See <a href=""http://kb.eflyermaker.com/magento-signup-form-plugin"" title=""eflyermaker's Form Builder plugin for magento"" target=""_blank"">eFlyerMaker's Knowledge Base</a> for complete Plugin Form Builder instructions.","Visitez <a href=""http://kb.eflyermaker.com/magento-signup-form-plugin"" title=""eflyermaker's Form Builder plugin for magento"" target=""_blank""> Le Guide et base de connaissances de eFlyerMaker</a> afin d'obtenir des instructions complètes sur ce plugin."
98
+ "From eFlyerMaker", "À partir de eFlyerMaker"
99
+ "Login to your <a href=""https://campaign.eflyermaker.com/?utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_en"" target=""_blank"">eFlyerMaker's</a> account or create your <a href=""https://campaign.eflyermaker.com/?signup&utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_en"" target=""_blank"">free account now</a>","Connectez-vous à votre compte <a href=""https://campagne.eflyermaker.com/?utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_fr"" target=""_blank"">eFlyerMaker</a> ou créez-vous un <a href=""https://campagne.eflyermaker.com/?inscription&utm_source=Magento_1.9.x&utm_medium=Plugin&utm_campaign=magento1_fr"" target=""_blank"">compte gratuit</a>"
100
+ "Under Newsletter, click on ""Sign-Up HTML Code""", "À droite de la publication de votre choix, cliquez sur ""Code HTML pour le formulaire d'abonnement"""
101
+ "In the pop-over modal window, select CMS Plugin then Wordpress", "Dans la fenêtre qui vient d'apparaitre, cliquez CMS Plugin puis Wordpress "
102
+ "Copy all the Json code", "Copiez tout le codage JSON"
103
+ "Back In WordPress", "Retournez dans WordPress"
104
+ "Click on <a class=""createForm"" href=""javascript:void(0)"">Create a new form</a> button located in menu bar at your right", "Cliquez sur le bouton ""<a class=""createForm"" href=""javascript:void(0)"">Créer un nouveau formulaire</a>"" situé dans la barre de menu à votre droite"
105
+ "Past the code in the field ""eFlyerMaker Json code""", "Copiez le codage JSON dans le champ ""Le code JSON de eFlyerMaker"" puis cliquez sur ""Création de formulaire"", votre nouveau formulaire devrait apparaitre dans la zone blanche. "
106
+ "Create a new form", "Création de formulaire"
107
+ "Manage forms", "Gestion de formulaire"
108
+ "Manage form", "Gestion de formulaire"
109
+ "Title:", "Titre :"
110
+ "Form:", "Formulaire :"
111
+ "Display form description", "Afficher la description"
112
+ "Right","Droite"
113
+ "Left","Gauche"
114
+ "Center","Centre"
package.xml CHANGED
@@ -1,18 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
- <name>Eflyermaker</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.html">GPLv3</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Get the Magento eFlyerMaker's Newsletter Sign Up Forms Builder Plugin. Ready-to use, 100% customizable.</summary>
10
- <description>Email marketing being in constant evolution, the game seems to have changed again. Enter the wordpress eFlyerMaker Forms Builder Plugin. Now you can 100% customize the look or the content of your sign-up form. </description>
11
- <notes>First version available to public</notes>
12
- <authors><author><name>eFlyerMaker</name><user>eflyermaker</user><email>welcome@eflyermaker.com</email></author></authors>
13
- <date>2016-03-29</date>
14
- <time>16:09:43</time>
15
- <contents><target name="magecommunity"><dir name="Eflyermaker"><dir name="Eflyermakerformbuilder"><dir name="Block"><dir name="Adminhtml"><file name="Eflyermakerformbuilder.php" hash="7f762eea74db8db841cc22ad489d53ef"/><file name="Form.php" hash="a62ba798855e8a473bd416f558eb2e34"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="8d5d3cebbb702d433a46991139a23e1a"/></dir><dir name="Helper"><file name="Data.php" hash="2b2f534732fff2d561d99179460be098"/></dir><dir name="Model"><file name="Eflyermakerformbuilder.php" hash="90ce0651b82fbee48f37c36e04eefbc4"/><file name="Form.php" hash="b8fd4691d10f0916fe5bd555bd1edb68"/><dir name="Mysql4"><dir name="Form"><file name="Collection.php" hash="4e79d96299e0a2cada24700fa384a646"/></dir><file name="Form.php" hash="9ffef24f2d9ae46ee5c54abde54e66d9"/><dir name="Popup"><file name="Collection.php" hash="e0c38b250ae92565219de0e833f9d80a"/></dir><file name="Popup.php" hash="2fa121790676326e78e7baf2795dfd0a"/><file name=".DS_Store" hash="e77e12cca09c4d807924c7343129bd8b"/></dir><file name="Popup.php" hash="006c2a57f8a9b50a7bacf0cbd1edcdfe"/><dir name="Resource"><file name="Setup.php" hash="81278eaf093c25443bc712964f3a107d"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Template"><file name="Filter.php" hash="e09d8f4751703976ab87f01822552a3b"/></dir><file name=".DS_Store" hash="ada0cec3addd7e1a255711395e15d9b8"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="EflyermakerformbuilderController.php" hash="1f9ee790162e3a76b3b953933ef63ca2"/></dir><file name="IndexController.php" hash="d2cdb00975221279ed31960892cd2272"/><file name=".DS_Store" hash="0f0ee9c5fedb5f29af293a963b8aba6f"/></dir><dir name="data"><file name=".DS_Store" hash="c998a004b6d1bce32b3dddcab6a4474d"/></dir><dir name="etc"><file name="config.xml" hash="165fcc8049296b6e6e51ad27131789af"/></dir><dir name="sql"><dir name="Eflyermaker_eflyermakerformbuilder_setup"><file name="mysql4-install-1.0.0.php" hash="25829f2dbfe79af5e44a3fffa1eb83db"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="8b2224273d678ca4d374aa6ef17fdcfd"/></dir><file name=".DS_Store" hash="a0140df4dc9a6520cd23e73a990e56d3"/><dir name=".phpintel"><file name="157b221243060224a94747dc1e242c36" hash="b5d36ba0bee206380f94af4d12d39ed0"/><file name="251f25927c85143364843adb5f2120da" hash="2dfdacb2ed3aca18309d026164e64ea5"/><file name="31de818860be83a3b6aea312f8559bda" hash="c5ef278493c8a85ec925532ff36a3ba8"/><file name="aeaa7f855181ace765d223c7bdba659e" hash="cbf8289d06b0850caeaaf11b0d7dac35"/><file name="e020f6a720df6b8b931b68a286a816d4" hash="be5ffa0a3c39bb11706f9995c2ec0a5c"/><file name="f8c52a604ebb7d97c7233ea770932a8d" hash="2dfdacb2ed3aca18309d026164e64ea5"/><file name="index" hash="368814c36c4aef5434ff343413c737d5"/></dir></dir><file name=".DS_Store" hash="e1f7551679e854c5d7ba5b2faf6d51eb"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eflyermakerformbuilder.xml" hash="6d6617538012ad9c7b7a8dc669e48728"/></dir><dir name="template"><dir name="eflyermakerformbuilder"><file name="about.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="eflyermakerformbuilder.phtml" hash="01b2a4d7809dfa5192faf63d8dcfb530"/><file name="form.phtml" hash="fc1e1057487963df58f76630f2bfb81a"/><file name="forms_list.phtml" hash="8d85cf2b37fd950b04bcd0541a5462cb"/><file name="header.phtml" hash="33f4f15a16a9843faf6a25d4f387b6fd"/><file name="popup.phtml" hash="3cd6228ab89a33ad0d29eb783fb1ce37"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="eflyermakerformbuilder.csv" hash="72d55916802bfd84d3c2a96666bfbf7c"/></dir><dir name="fr_FR "><file name="eflyermakerformbuilder.csv" hash="98ddcea975ac8d2cd41230f8e91162d3"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="eflyermakerformbuilder"><dir name="css"><file name="animate.css" hash="07f146141537e04ee282a965d8053198"/><file name="efmfb_admin.css" hash="8db91ec255a97021f5d0583f64e00ba4"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="font-awesome-4.5.0"><file name="HELP-US-OUT.txt" hash="33f55dbe0672826c0d0b617b290ed742"/><dir name="css"><file name="font-awesome.css" hash="5343ee1a287a65ff20961476fd8a6188"/><file name="font-awesome.min.css" hash="4fbd15cb6047af93373f4f895639c8bf"/></dir><dir name="fonts"><file name="FontAwesome.otf" hash="87d8ca3ddc57e7d2da6226e480f90457"/><file name="fontawesome-webfont.eot" hash="32400f4e08932a94d8bfd2422702c446"/><file name="fontawesome-webfont.svg" hash="f775f9cca88e21d45bebe185b27c0e5b"/><file name="fontawesome-webfont.ttf" hash="a3de2170e4e9df77161ea5d3f31b2668"/><file name="fontawesome-webfont.woff" hash="a35720c2fed2c7f043bc7e4ffb45e073"/><file name="fontawesome-webfont.woff2" hash="db812d8a70a4e88e888744c1c9a27e89"/></dir><dir name="less"><file name="animated.less" hash="08baef05e05301cabc91599a54921081"/><file name="bordered-pulled.less" hash="898f90e40876883214bbd121b0c20e9f"/><file name="core.less" hash="fb4efe4ae63737706875bbbfc7b7e9af"/><file name="fixed-width.less" hash="5e07ec001f8d21bd279c12ee542813f7"/><file name="font-awesome.less" hash="468f606d3d79e0de653ad010c0e24c0d"/><file name="icons.less" hash="e307cef3a4e7ea676babf6150d0265a7"/><file name="larger.less" hash="8cb65280c0f889daf72626c21a7c8628"/><file name="list.less" hash="975571323cf880a4a30601998236b027"/><file name="mixins.less" hash="63afa4054431cd255dd522314d42fe01"/><file name="path.less" hash="3ae443e0386cc3a69ff47d641aefb74b"/><file name="rotated-flipped.less" hash="a8476cdc50c264abd11ff59d6a9dd025"/><file name="stacked.less" hash="518e2b2d263982d2caa1e6514b4b4eac"/><file name="variables.less" hash="49b82ead1bba3097f60dd1c8d4128a3c"/></dir><dir name="scss"><file name="_animated.scss" hash="39ff4f359a7b81d6585075715f41e5dc"/><file name="_bordered-pulled.scss" hash="4cad0df17bf40327feae33fa9a6c6ba2"/><file name="_core.scss" hash="ef059a98cf9de6ca5b77ee6850771cf0"/><file name="_fixed-width.scss" hash="9277ab6964a434d499873687b00be906"/><file name="_icons.scss" hash="2718c9b0b198345b31c19d3830c223df"/><file name="_larger.scss" hash="e95931566f6fc6ad5685c4fa9802e206"/><file name="_list.scss" hash="7107e80b053928271d5fcf422dc29490"/><file name="_mixins.scss" hash="2052155a929be2769df84be98617f310"/><file name="_path.scss" hash="ab5a9e8388563e097b5ce835601f01d2"/><file name="_rotated-flipped.scss" hash="9f5d4bc6fadea89328d2aac26574a9d8"/><file name="_stacked.scss" hash="5594237226aedfbca2fa1c7f4604c214"/><file name="_variables.scss" hash="8d253b1500cfc4214f23820d7d9a13c3"/><file name="font-awesome.scss" hash="507b6625f2be2b82b178a2658a338ade"/></dir></dir><dir name="images"><file name="efmfb_ajax.gif" hash="ccb3e73bf752de290588dc703301f71a"/><file name="logo-eflyermaker-en.png" hash="41d920af5608e2210903cb9079952d4c"/></dir><dir name="jquery-ui-1.11.4"><dir name="external"><dir name="jquery"><file name="jquery.js" hash="91515770ce8c55de23b306444d8ea998"/></dir></dir><dir name="images"><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="4d4e638960a1a29b0d6b693b445087da"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="d0cc3ffc3dc84d3a7c48867c75e2485f"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c31d5fc3eb7d82c628a82e3b87024cd1"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="c17f552e8f4697d7608c57653af36df0"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="fe58c3539111d3021776e6833169c5e1"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="b624f702075cd719a38f428e143025ea"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="23932de7c235b03187b8a5de3d024490"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="0b708185ce8927f18c7b3b82a7e7c247"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="53acc69aaee6e2cb73b2021317e24af3"/><file name="ui-icons_222222_256x240.png" hash="4c27b34156b7a3776f31cc456ca01c10"/><file name="ui-icons_228ef1_256x240.png" hash="2f257489d9600ddf56d195a179ebc9df"/><file name="ui-icons_ef8c08_256x240.png" hash="772a64d6df4b93d230e9b38e1ab7522a"/><file name="ui-icons_ffd27a_256x240.png" hash="6686d21b904e18b100210169bb1c04ad"/><file name="ui-icons_ffffff_256x240.png" hash="a19fe1b2d726e920c12e43a65df9039a"/></dir><file name="index.html" hash="0ad8102e6966928764aab2d547e7f88a"/><file name="jquery-ui.css" hash="f635c10273900261c5f52f8fbd574bd2"/><file name="jquery-ui.js" hash="04a4db2983450a2970c459ba87b4210a"/><file name="jquery-ui.min.css" hash="26812a28850395f8f865be4893fb20c7"/><file name="jquery-ui.min.js" hash="d935d506ae9c8dd9e0f96706fbb91f65"/><file name="jquery-ui.structure.css" hash="532bb3ac04f943c488d555d7f26e5c54"/><file name="jquery-ui.structure.min.css" hash="cff750de5357f68ee80724d24547cbdd"/><file name="jquery-ui.theme.css" hash="5588e19871bc8ef086ed20773e8a726f"/><file name="jquery-ui.theme.min.css" hash="96669c49283ce254e48624bedcd93afe"/><file name=".DS_Store" hash="0158bee459331a2be6841673a52e8f9c"/></dir><dir name="jquery-ui-1.11.4.custom"><dir name="external"><dir name="jquery"><file name="jquery.js" hash="91515770ce8c55de23b306444d8ea998"/></dir></dir><dir name="images"><file name="ui-icons_444444_256x240.png" hash="d80747d34afb87753b51d45a36f8bd17"/><file name="ui-icons_555555_256x240.png" hash="1e70a2d46244ee4070fd47152bd71db1"/><file name="ui-icons_777620_256x240.png" hash="eb4a975c630f379279fe78c604d0b36c"/><file name="ui-icons_777777_256x240.png" hash="68855e6e3d288ab126a1f1dd82b64e26"/><file name="ui-icons_cc0000_256x240.png" hash="7c81a6253b77a9fdaf51bb1038f8c840"/><file name="ui-icons_ffffff_256x240.png" hash="41612b0f4a034424f8321c9f824a94da"/></dir><file name="index.html" hash="eec03c770559281e8f7e02f7b49da91f"/><file name="jquery-ui.css" hash="f438d26426e547a68290cdcf7684a58b"/><file name="jquery-ui.js" hash="3cb9c95e213b25ecdaee8db03dabe289"/><file name="jquery-ui.min.css" hash="686dbbb58c391c889556bb7172b13ac5"/><file name="jquery-ui.min.js" hash="f4efc50acc8ad4e23a48fc016a732ef9"/><file name="jquery-ui.structure.css" hash="d3c7e36562761d40eb1495fb448e7e0e"/><file name="jquery-ui.structure.min.css" hash="6d7c99f2356264158ca5b7fd5700ff5d"/><file name="jquery-ui.theme.css" hash="c92e67beb260dd2702736da71408b4d2"/><file name="jquery-ui.theme.min.css" hash="2626160b374ebb5dbc7a109d2edae079"/><file name=".DS_Store" hash="c57e930886ed214b5f31d43c65370479"/></dir><dir name="js"><file name="bootstrap-tooltip.js" hash="c4a6379c9f74d73e0e045be0fefdf95f"/><file name="efmfb_admin.js" hash="05344f8bd70088e0d5bc14e20a95a0a2"/><file name="efmfb_admin_welcome.js" hash="2228e977ebea8966e27929f43e39cb67"/><file name="efmfb_ajax.js" hash="46af6da522920b672e3df4c284f09763"/><file name="efmfb_globals.js" hash="3c35c578d351cd5b9531584badfb71e8"/><file name="efmfb_manage_forms.js" hash="c9e378430b58ddf39ddb6d96799cb966"/><file name="efmfb_popup_options.js" hash="1d719ee547dd901dedc82b56d92bfcbe"/><file name="efmfb_popup_setup.js" hash="590b7fa67d5b303d8698180aee7b8085"/><dir name="iris"><file name="iris-basic.js" hash="fe945d7d6664d27f09e529c7ed14e1f3"/><file name="iris-basic.min.js" hash="6c348923e1c49f1c870fac207fc81833"/><file name="iris.js" hash="770534d5334b5d7ad86c7d885af9d1e8"/><file name="iris.min.js" hash="75c63560c640c4a6c31f5565dfb0e8a9"/></dir><dir name="jquery"><file name="jquery-1.11.3.min.js" hash="b091a47f6b91e26c93a848092c6f3788"/><file name="jquery-1.12.1.js" hash="62f69d29b6f01c8d477a547cedd922f2"/><file name="jquery-1.12.1.min.js" hash="1d244cb043be8157f0050ce9e45c9ef2"/></dir><file name="jquery.bpopup.js" hash="295b0ca14f9fb335a84791e655a4d99d"/><file name="jquery.bpopup.min.js" hash="204ec5bd1f07bb6eb37b0da75badfc16"/><dir name="tinymce-plugins"><file name="efmfb-tinymce-button-plugin.js" hash="bfe92b50b1ad4826eb43e0952d55711a"/></dir><file name=".DS_Store" hash="4ddb5e9caf8fc70fa7cf83df2fb491a5"/></dir><dir name="noUiSlider.8.3.0"><file name="nouislider.css" hash="b48cdcefca16da759bcac342050e66c8"/><file name="nouislider.js" hash="813a80d3200f1b6737df56a6e2491380"/><file name="nouislider.min.css" hash="d2509b2c466924831bace0fb8dfce960"/><file name="nouislider.min.js" hash="dd19d897f5ee7cfca3543be98595fef1"/><file name="nouislider.pips.css" hash="46f3feefbfa932461d513348f530a2cd"/><file name="nouislider.tooltips.css" hash="a1aa715a5c5e7c319e271cebd090d128"/><file name="wNumb.js" hash="93a67b46225adb884fffc0593d7c4381"/></dir><file name=".DS_Store" hash="50d34f9c5e03e81666d0de523110ee55"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="eflyermakerformbuilder"><file name="animate.css" hash="07f146141537e04ee282a965d8053198"/><file name="efmfb_public.css" hash="e40acd6922a7cab81902a504495674c4"/><file name="efmfb_public.js" hash="51d2a5530bbe4c723eb2d298b02582e4"/><file name="jquery-noConflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.bpopup.js" hash="295b0ca14f9fb335a84791e655a4d99d"/><file name="jquery.bpopup.min.js" hash="204ec5bd1f07bb6eb37b0da75badfc16"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eflyermaker_Eflyermakerformbuilder.xml" hash="a34aeddc867fec13954493b98df52caa"/></dir></target></contents>
 
 
16
  <compatible/>
17
  <dependencies><required><php><min>5.5.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
+ <name>eFlyerMaker</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.html">GPLv3</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Get the Magento eFlyerMaker's Newsletter Sign Up Forms Builder Plugin. Ready-to use, 100% customizable.</summary>
10
+ <description>Email marketing being in constant evolution, the game seems to have changed again. Enter the Magento eFlyerMaker Forms Builder Plugin.&#xD;
11
+ Now you can fully customize the look or the content of your sign-up form. Ready-to use, 100% customizable, Including more than 75 specials effects.</description>
12
+ <notes>Tested for Magento 1.9&#xD;
13
+ First version available to public</notes>
14
+ <authors><author><name>eflyermaker</name><user>eflyermaker</user><email>welcome@eflyermaker.com</email></author></authors>
15
+ <date>2016-06-06</date>
16
+ <time>14:27:46</time>
17
+ <contents><target name="magelocale"><dir name="en_US"><file name="eflyermakerformbuilder.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="fr_CA"><file name="eflyermakerformbuilder.csv" hash="ec120bc43df1a26c5f06acf3a64c7b86"/></dir><dir name="fr_FR"><file name="eflyermakerformbuilder.csv" hash="ec120bc43df1a26c5f06acf3a64c7b86"/></dir></target><target name="magecommunity"><dir name="Eflyermaker"><dir name="Eflyermakerformbuilder"><dir name="Block"><dir name="Adminhtml"><file name="Eflyermakerformbuilder.php" hash="66b3bbbacf859136586899b81f63b74b"/><file name="Form.php" hash="af31ee6cfd4d047586b339ffb08a6ea1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="163b3bcd66a897f6ff4fda1f90678ab9"/></dir><dir name="Model"><file name="Form.php" hash="97b812c53c98927b99a13832bb8b6a8c"/><dir name="Mysql4"><dir name="Form"><file name="Collection.php" hash="4e79d96299e0a2cada24700fa384a646"/></dir><file name="Form.php" hash="9ffef24f2d9ae46ee5c54abde54e66d9"/><dir name="Popup"><file name="Collection.php" hash="e0c38b250ae92565219de0e833f9d80a"/></dir><file name="Popup.php" hash="2fa121790676326e78e7baf2795dfd0a"/></dir><file name="Popup.php" hash="6a684833f5461619f7b00c5710a59303"/><dir name="Resource"><file name="Setup.php" hash="81278eaf093c25443bc712964f3a107d"/></dir><dir name="Template"><file name="Filter.php" hash="2787745496564703e771bd9988ae157d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="EflyermakerformbuilderController.php" hash="22da72bf911d67dcff55cf7c9b5117dd"/></dir><file name="IndexController.php" hash="d2cdb00975221279ed31960892cd2272"/></dir><dir name="etc"><file name="config.xml" hash="696718253c502b4dd94e1914c0e9d910"/></dir><dir name="sql"><dir name="Eflyermaker_eflyermakerformbuilder_setup"><file name="mysql4-install-1.0.0.php" hash="efe675b4ccfe530410fd3ef3f906192e"/></dir></dir><file name=".DS_Store" hash="fdcb58b04793b85c1071409b14763847"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eflyermakerformbuilder.xml" hash="7db056483f81b42f6987802cccc37b4e"/></dir><dir name="template"><dir name="eflyermakerformbuilder"><file name="about.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="eflyermakerformbuilder.phtml" hash="45bcf63e3bc1d661a7e3676b8c201950"/><file name="form.phtml" hash="dc310e5d5fbed58a63195ee34841b166"/><file name="forms_list.phtml" hash="3345760314f3d427d5f0d2a4126a87f9"/><file name="get_started.phtml" hash="cec8a3c082822e76d9dd2259151f20e0"/><file name="header.phtml" hash="33f4f15a16a9843faf6a25d4f387b6fd"/><file name="popup.phtml" hash="9df94b5235a4db34ee9670fd1004241b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="eflyermakerformbuilder"><file name="eflyermakerformbuilder.xml" hash="4e9ae856335928f2a07ab2baea02c7c7"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eflyermaker_Eflyermakerformbuilder.xml" hash="a34aeddc867fec13954493b98df52caa"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="eflyermakerformbuilder"><dir name="css"><file name="animate.css" hash="07f146141537e04ee282a965d8053198"/><file name="efmfb_admin.css" hash="8db91ec255a97021f5d0583f64e00ba4"/></dir><dir name="font-awesome-4.5.0"><file name="HELP-US-OUT.txt" hash="33f55dbe0672826c0d0b617b290ed742"/><dir name="css"><file name="font-awesome.css" hash="5343ee1a287a65ff20961476fd8a6188"/><file name="font-awesome.min.css" hash="4fbd15cb6047af93373f4f895639c8bf"/></dir><dir name="fonts"><file name="FontAwesome.otf" hash="87d8ca3ddc57e7d2da6226e480f90457"/><file name="fontawesome-webfont.eot" hash="32400f4e08932a94d8bfd2422702c446"/><file name="fontawesome-webfont.svg" hash="f775f9cca88e21d45bebe185b27c0e5b"/><file name="fontawesome-webfont.ttf" hash="a3de2170e4e9df77161ea5d3f31b2668"/><file name="fontawesome-webfont.woff" hash="a35720c2fed2c7f043bc7e4ffb45e073"/><file name="fontawesome-webfont.woff2" hash="db812d8a70a4e88e888744c1c9a27e89"/></dir><dir name="less"><file name="animated.less" hash="08baef05e05301cabc91599a54921081"/><file name="bordered-pulled.less" hash="898f90e40876883214bbd121b0c20e9f"/><file name="core.less" hash="fb4efe4ae63737706875bbbfc7b7e9af"/><file name="fixed-width.less" hash="5e07ec001f8d21bd279c12ee542813f7"/><file name="font-awesome.less" hash="468f606d3d79e0de653ad010c0e24c0d"/><file name="icons.less" hash="e307cef3a4e7ea676babf6150d0265a7"/><file name="larger.less" hash="8cb65280c0f889daf72626c21a7c8628"/><file name="list.less" hash="975571323cf880a4a30601998236b027"/><file name="mixins.less" hash="63afa4054431cd255dd522314d42fe01"/><file name="path.less" hash="3ae443e0386cc3a69ff47d641aefb74b"/><file name="rotated-flipped.less" hash="a8476cdc50c264abd11ff59d6a9dd025"/><file name="stacked.less" hash="518e2b2d263982d2caa1e6514b4b4eac"/><file name="variables.less" hash="49b82ead1bba3097f60dd1c8d4128a3c"/></dir><dir name="scss"><file name="_animated.scss" hash="39ff4f359a7b81d6585075715f41e5dc"/><file name="_bordered-pulled.scss" hash="4cad0df17bf40327feae33fa9a6c6ba2"/><file name="_core.scss" hash="ef059a98cf9de6ca5b77ee6850771cf0"/><file name="_fixed-width.scss" hash="9277ab6964a434d499873687b00be906"/><file name="_icons.scss" hash="2718c9b0b198345b31c19d3830c223df"/><file name="_larger.scss" hash="e95931566f6fc6ad5685c4fa9802e206"/><file name="_list.scss" hash="7107e80b053928271d5fcf422dc29490"/><file name="_mixins.scss" hash="2052155a929be2769df84be98617f310"/><file name="_path.scss" hash="ab5a9e8388563e097b5ce835601f01d2"/><file name="_rotated-flipped.scss" hash="9f5d4bc6fadea89328d2aac26574a9d8"/><file name="_stacked.scss" hash="5594237226aedfbca2fa1c7f4604c214"/><file name="_variables.scss" hash="8d253b1500cfc4214f23820d7d9a13c3"/><file name="font-awesome.scss" hash="507b6625f2be2b82b178a2658a338ade"/></dir></dir><dir name="images"><file name="eFlyerMaker_logo.png" hash="0f1f6613922a9109f41d8c8b7ee7cf3a"/><file name="efmfb_ajax.gif" hash="ccb3e73bf752de290588dc703301f71a"/><file name="help1.jpg" hash="d0de40004cc642bce3835f8bcdc3fc2a"/><file name="help2.jpg" hash="b66cebd699c99887f61ba3405ca83f8e"/><file name="help3.jpg" hash="d2c5073dc13a6b1a7a3f4daffe30a939"/><file name="help3.png" hash="545c44360694e3571cc84dcf5c9e290b"/><file name="help3_.jpg" hash="ccaaa58fb13f6d49bb7242d4cd402185"/><file name="logo-eflyermaker-en.png" hash="41d920af5608e2210903cb9079952d4c"/></dir><dir name="jquery-ui-1.11.4"><dir name="external"><dir name="jquery"><file name="jquery.js" hash="91515770ce8c55de23b306444d8ea998"/></dir></dir><dir name="images"><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="4d4e638960a1a29b0d6b693b445087da"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="d0cc3ffc3dc84d3a7c48867c75e2485f"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c31d5fc3eb7d82c628a82e3b87024cd1"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="c17f552e8f4697d7608c57653af36df0"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="fe58c3539111d3021776e6833169c5e1"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="b624f702075cd719a38f428e143025ea"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="23932de7c235b03187b8a5de3d024490"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="0b708185ce8927f18c7b3b82a7e7c247"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="53acc69aaee6e2cb73b2021317e24af3"/><file name="ui-icons_222222_256x240.png" hash="4c27b34156b7a3776f31cc456ca01c10"/><file name="ui-icons_228ef1_256x240.png" hash="2f257489d9600ddf56d195a179ebc9df"/><file name="ui-icons_ef8c08_256x240.png" hash="772a64d6df4b93d230e9b38e1ab7522a"/><file name="ui-icons_ffd27a_256x240.png" hash="6686d21b904e18b100210169bb1c04ad"/><file name="ui-icons_ffffff_256x240.png" hash="a19fe1b2d726e920c12e43a65df9039a"/></dir><file name="index.html" hash="0ad8102e6966928764aab2d547e7f88a"/><file name="jquery-ui.css" hash="f635c10273900261c5f52f8fbd574bd2"/><file name="jquery-ui.js" hash="04a4db2983450a2970c459ba87b4210a"/><file name="jquery-ui.min.css" hash="26812a28850395f8f865be4893fb20c7"/><file name="jquery-ui.min.js" hash="d935d506ae9c8dd9e0f96706fbb91f65"/><file name="jquery-ui.structure.css" hash="532bb3ac04f943c488d555d7f26e5c54"/><file name="jquery-ui.structure.min.css" hash="cff750de5357f68ee80724d24547cbdd"/><file name="jquery-ui.theme.css" hash="5588e19871bc8ef086ed20773e8a726f"/><file name="jquery-ui.theme.min.css" hash="96669c49283ce254e48624bedcd93afe"/></dir><dir name="jquery-ui-1.11.4.custom"><dir name="external"><dir name="jquery"><file name="jquery.js" hash="91515770ce8c55de23b306444d8ea998"/></dir></dir><dir name="images"><file name="ui-icons_444444_256x240.png" hash="d80747d34afb87753b51d45a36f8bd17"/><file name="ui-icons_555555_256x240.png" hash="1e70a2d46244ee4070fd47152bd71db1"/><file name="ui-icons_777620_256x240.png" hash="eb4a975c630f379279fe78c604d0b36c"/><file name="ui-icons_777777_256x240.png" hash="68855e6e3d288ab126a1f1dd82b64e26"/><file name="ui-icons_cc0000_256x240.png" hash="7c81a6253b77a9fdaf51bb1038f8c840"/><file name="ui-icons_ffffff_256x240.png" hash="41612b0f4a034424f8321c9f824a94da"/></dir><file name="index.html" hash="eec03c770559281e8f7e02f7b49da91f"/><file name="jquery-ui.css" hash="f438d26426e547a68290cdcf7684a58b"/><file name="jquery-ui.js" hash="3cb9c95e213b25ecdaee8db03dabe289"/><file name="jquery-ui.min.css" hash="686dbbb58c391c889556bb7172b13ac5"/><file name="jquery-ui.min.js" hash="f4efc50acc8ad4e23a48fc016a732ef9"/><file name="jquery-ui.structure.css" hash="d3c7e36562761d40eb1495fb448e7e0e"/><file name="jquery-ui.structure.min.css" hash="6d7c99f2356264158ca5b7fd5700ff5d"/><file name="jquery-ui.theme.css" hash="c92e67beb260dd2702736da71408b4d2"/><file name="jquery-ui.theme.min.css" hash="2626160b374ebb5dbc7a109d2edae079"/></dir><dir name="js"><file name="bootstrap-tooltip.js" hash="c4a6379c9f74d73e0e045be0fefdf95f"/><file name="efmfb_admin.js" hash="fba52e695b3d5f25a33bc8f2a188e98c"/><file name="efmfb_admin_welcome.js" hash="2228e977ebea8966e27929f43e39cb67"/><file name="efmfb_ajax.js" hash="46af6da522920b672e3df4c284f09763"/><file name="efmfb_globals.js" hash="3c35c578d351cd5b9531584badfb71e8"/><file name="efmfb_manage_forms.js" hash="c9e378430b58ddf39ddb6d96799cb966"/><file name="efmfb_popup_options.js" hash="797d36b65aa33aa8b11d31e80585a9ea"/><file name="efmfb_popup_setup.js" hash="fafa62ffd61f345c93bc811cda19ee0b"/><dir name="iris"><file name="iris-basic.js" hash="fe945d7d6664d27f09e529c7ed14e1f3"/><file name="iris-basic.min.js" hash="6c348923e1c49f1c870fac207fc81833"/><file name="iris.js" hash="770534d5334b5d7ad86c7d885af9d1e8"/><file name="iris.min.js" hash="75c63560c640c4a6c31f5565dfb0e8a9"/></dir><dir name="jquery"><file name="jquery-1.11.3.min.js" hash="b091a47f6b91e26c93a848092c6f3788"/><file name="jquery-1.12.1.js" hash="62f69d29b6f01c8d477a547cedd922f2"/><file name="jquery-1.12.1.min.js" hash="1d244cb043be8157f0050ce9e45c9ef2"/></dir><file name="jquery.bpopup.js" hash="295b0ca14f9fb335a84791e655a4d99d"/><file name="jquery.bpopup.min.js" hash="204ec5bd1f07bb6eb37b0da75badfc16"/><dir name="tinymce-plugins"><file name="efmfb-tinymce-button-plugin.js" hash="bfe92b50b1ad4826eb43e0952d55711a"/></dir></dir><dir name="noUiSlider.8.3.0"><file name="nouislider.css" hash="b48cdcefca16da759bcac342050e66c8"/><file name="nouislider.js" hash="813a80d3200f1b6737df56a6e2491380"/><file name="nouislider.min.css" hash="d2509b2c466924831bace0fb8dfce960"/><file name="nouislider.min.js" hash="dd19d897f5ee7cfca3543be98595fef1"/><file name="nouislider.pips.css" hash="46f3feefbfa932461d513348f530a2cd"/><file name="nouislider.tooltips.css" hash="a1aa715a5c5e7c319e271cebd090d128"/><file name="wNumb.js" hash="93a67b46225adb884fffc0593d7c4381"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="eflyermakerformbuilder"><file name="animate.css" hash="07f146141537e04ee282a965d8053198"/><file name="efmfb_public.css" hash="e40acd6922a7cab81902a504495674c4"/><file name="efmfb_public.js" hash="a68be77538499a7c70f535f288f2dff7"/><file name="jquery-noConflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.bpopup.js" hash="295b0ca14f9fb335a84791e655a4d99d"/><file name="jquery.bpopup.min.js" hash="204ec5bd1f07bb6eb37b0da75badfc16"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.5.0</min><max>7.0.0</max></php></required></dependencies>
20
  </package>
skin/adminhtml/default/default/eflyermakerformbuilder/.DS_Store DELETED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/css/.DS_Store DELETED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/images/eFlyerMaker_logo.png ADDED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/images/help1.jpg ADDED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/images/help2.jpg ADDED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/images/help3.jpg ADDED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/images/help3.png ADDED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/images/help3_.jpg ADDED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/jquery-ui-1.11.4.custom/.DS_Store DELETED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/jquery-ui-1.11.4/.DS_Store DELETED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/js/.DS_Store DELETED
Binary file
skin/adminhtml/default/default/eflyermakerformbuilder/js/efmfb_admin.js CHANGED
@@ -76,36 +76,6 @@ jQuery('#efmfb_form_structure').val(jQuery('#efmfb_form_container').html());
76
 
77
  jQuery('#efmfb_create_info_form').submit();
78
 
79
- // var data = jQuery('#efmfb_create_info_form').serialize();
80
- //
81
- //
82
- // url_program = plugin_url;
83
- //
84
- // var request = jQuery.ajax({
85
- // url: url_program + "admin/ajax/eflyermaker_save_form.php",
86
- // method: "POST",
87
- // data: {data : JSON.stringify(data, null, 2)},
88
- // // contentType: "application/json; charset=utf-8",
89
- // dataType: "json"
90
- // });
91
- //
92
- //
93
- //
94
- // request.done(function( msg ) {
95
- //
96
- // var success = msg.success;
97
- // var error = msg.error;
98
- // console.log(msg);
99
- // if(success == 0 ){ efmfb_display_msg(error) }
100
- // else efmfb_display_msg('well done')
101
- //
102
- // });
103
- //
104
- // request.fail(function( jqXHR, textStatus ) {
105
- // console.log( "Request failed: " + textStatus );
106
- // });
107
-
108
-
109
 
110
  });
111
 
@@ -128,8 +98,6 @@ var left_container_width = left_container.width();
128
  var form_contents_options_width = jQuery('#form_contents_options_container').width();
129
 
130
 
131
- // console.log('left_container_width : '+left_container_width);
132
- // console.log('left_container_pos.left : '+left_container_pos.left);
133
 
134
  jQuery('#form_contents_options_container').css('top', left_container_pos.top+50 );
135
  jQuery('#form_contents_options_container').css('left', left_container_width+left_container_pos.left - form_contents_options_width );
@@ -178,16 +146,14 @@ jQuery( "#efmfb_form_container" ).sortable({
178
 
179
 
180
  jQuery( "#efmfb_form_container" ).on( "sortstart", function( event, ui ) {
181
- // jQuery('.efmfb_form_container').trigger('click');
182
- // console.log(ui.item[0]);
183
  var elem = ui.item[0];
184
  // if(jQuery(elem).hasClass('efmfb_form_container') )
185
  {
186
- // console.log('has class');
187
  jQuery('.efmfb-form-group').removeClass('efmfb-active-input');
188
  jQuery('#form_contents_options_container').slideUp('fast');
189
- // jQuery(elem).addClass('efmfb-active-input');
190
- // jQuery(elem).triiger('click');
191
  }
192
  } );
193
 
@@ -298,7 +264,7 @@ var required = '';
298
 
299
  if( create_input_required ) required = 'required';
300
 
301
- // console.log('required : '+required);
302
 
303
 
304
  ++eFlyerMakerForm.user_input_num;
@@ -310,7 +276,7 @@ input_html += '<input type="'+type+'" name="'+create_input_name+'" class="efmfb
310
  input_html += '<div class="efmfb-errors">'+create_input_error_msg+'</div>';
311
  input_html += '</div>';
312
 
313
- // jQuery('#efmfb_form_container').find('#efmfb_submit_form_btn').before(input_html);
314
  jQuery('#efmfb_form_container').append( input_html );
315
 
316
  source.trigger("reset");// clear data
@@ -365,11 +331,6 @@ function CreateFormFromJson( form_json )
365
  form_html += '<div class="efmfb-form-group " efmfb-inputtype="'+type_id+'">';
366
  form_html += '<label class="efmfb-label">'+label_text+'</label> <span class="efmfb_input_desc"></span>';
367
  form_html += '<select name="'+name+'" efmfb-input="1" efmfb-isuser="0" efmfb-isrequired="'+required+'" class="efmfb-form-control" '+required+' >';
368
- // var optionsList = input.value.split('/');
369
- // for(i in optionsList)
370
- // {
371
- // form_html += '<option value="yes">Yes</option>';
372
- // }
373
  form_html += '<option value="yes">Yes</option>';
374
  form_html += '<option value="no">No</option>';
375
  form_html += '</select>';
@@ -392,14 +353,19 @@ jQuery('#efmfb_create_form_info_btn').on('click', function(e){
392
  var form_name = jQuery('#create_info_name').val();
393
  var form_desc = jQuery('#create_info_desc').val();
394
  var form_classes = jQuery('#create_info_classes').val();
395
- // var btn_text = jQuery('#create_info_btn_text').val();
396
- // var form_publication_key = jQuery('#create_info_publication_key').val();
397
 
398
  var form_json = null;
399
  if( jQuery('#efmfb_form_info_json').val() )
400
  {
401
- form_json = jQuery.parseJSON( jQuery('#efmfb_form_info_json').val() );
402
- // console.log(form_json);
 
 
 
 
 
 
 
403
  }
404
 
405
  if( form_json !== null)
@@ -467,7 +433,7 @@ jQuery("#efmfb_create_info_form").find('#efmfb_form_key').val(form_publication_k
467
  form_html += '</div>';
468
 
469
  jQuery('#efmfb_form_container').html(form_html);
470
- // jQuery('#efmfb_form_info').trigger('click');
471
  }else
472
  {
473
  efmfb_display_msg('Not a valid json format!');
@@ -507,6 +473,7 @@ jQuery('#efmfb_edit_text_input_form input[type="checkbox"], #efmfb_edit_text_inp
507
 
508
  jQuery("#efmfb_edit_btn_form input, #efmfb_edit_btn_form textarea").on('change input', function(){
509
  get_button_options();
 
510
  });
511
 
512
 
@@ -517,12 +484,14 @@ jQuery("#efmfb_edit_btn_form input, #efmfb_edit_btn_form textarea").on('change i
517
  jQuery('#efmfb_edit_list_form input[type="text"], #efmfb_edit_list_form textarea').on('input', function(){
518
 
519
  get_list_options();
 
520
  });
521
 
522
 
523
  jQuery('#efmfb_edit_list_form input[type="checkbox"], #efmfb_edit_list_form input[type="radio"], #efmfb_edit_list_form select').on('change', function(){
524
 
525
  get_list_options();
 
526
  });
527
 
528
 
@@ -535,35 +504,23 @@ jQuery('#efmfb_edit_list_form input[type="checkbox"], #efmfb_edit_list_form inpu
535
 
536
  jQuery('#efmfb_edit_checkbox_form input[type="text"], #efmfb_edit_checkbox_form textarea').on('input', function(){
537
  get_checkbox_options();
 
538
  });
539
 
540
 
541
  jQuery('#efmfb_edit_checkbox_form input[type="checkbox"], #efmfb_edit_checkbox_form input[type="radio"], #efmfb_edit_checkbox_form select').on('change', function(){
542
  get_checkbox_options();
 
543
  });
544
 
545
 
546
 
547
 
548
-
549
-
550
- // if( input.attr('efmfb-isrequired') == 'required' )
551
- // {
552
- // jQuery('#form_text_options_panel').find('.efmfb_remove_active_input_btn').prop('disabled', true)
553
- // }
554
- // else
555
- // {
556
- // jQuery('#form_text_options_panel').find('.efmfb_remove_active_input_btn').prop('disabled', false);
557
- // }
558
-
559
-
560
-
561
-
562
  //================ REMOVE ACTIVE INPUT FROM FORM ===
563
 
564
  jQuery('.efmfb_remove_active_input_btn').on('click', function(){
565
 
566
- console.log('remove it');
567
  var remove_btn = jQuery(this);
568
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
569
 
@@ -578,7 +535,7 @@ console.log('remove it');
578
  {
579
  jQuery('#form_contents_options_container').slideUp('fast');
580
  target.remove();
581
- console.log('removed');
582
  }
583
 
584
  });
@@ -593,16 +550,10 @@ console.log('remove it');
593
  //===== when user modify options ( options == to ==> form)
594
  function get_text_input_options()
595
  {
596
- console.log('get_text_input_options()');
597
  var source = jQuery('#efmfb_edit_text_input_form');
598
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
599
 
600
- // console.log('source : ');
601
- // console.log(source);
602
- // console.log('target : ');
603
- // console.log(target);
604
- // console.log('============');
605
-
606
  var input = target.find('[efmfb-input="1"]');
607
  var label = target.find('.efmfb-label');
608
  var description = target.find('.efmfb_input_desc');
@@ -629,12 +580,10 @@ function get_text_input_options()
629
 
630
  if( required )
631
  {
632
- // input.addClass("required");
633
  input.prop('required', true);
634
  }
635
  else
636
  {
637
- // input.removeClass('required');
638
  input.prop('required', false);
639
  }
640
 
@@ -691,8 +640,6 @@ function set_text_input_options()
691
  var styles = input.attr("style");
692
 
693
  var error_msg = error.text();
694
- // var desc = input.attr("placeholder");
695
-
696
 
697
  var is_hidden = input.attr('type') == 'hidden' ? true : false;
698
  var label_is_hidden = !label.is(':visible') && ( label.text().length !== 0 ) ;
@@ -722,10 +669,7 @@ function set_text_input_options()
722
  target.find('#efmfb_edit_input_required').prop('disabled', false);
723
  }
724
 
725
- /*
726
- if(is_hidden) target.find('#efmfb_edit_input_hidden').prop('checked', true);
727
- else target.find('#efmfb_edit_input_hidden').prop('checked', false);
728
- */
729
 
730
  if(label_is_hidden) target.find('#efmfb_edit_input_hide_label').prop('checked', true);
731
  else target.find('#efmfb_edit_input_hide_label').prop('checked', false);
@@ -776,19 +720,19 @@ jQuery('#efmfb_form_container').on('click', '.efmfb-form-group', function( event
776
 
777
  var efmfb_inputType = self.attr("efmfb-inputtype");
778
 
779
- // console.log('efmfb_inputType :'+efmfb_inputType);
780
 
781
  if( efmfb_inputType == 0)
782
  {
783
  set_button_options();
784
- jQuery('#options_panel_title').text('Button Options');
785
  jQuery('#form_button_options_panel').fadeIn();
786
- // console.log('set_button_options()');
787
  }
788
  else if( efmfb_inputType == 5)
789
  {
790
  set_list_options();
791
- jQuery('#options_panel_title').text('List Options');
792
  jQuery('#form_select_options_panel').fadeIn();
793
 
794
 
@@ -800,27 +744,27 @@ var efmfb_inputType = self.attr("efmfb-inputtype");
800
  {
801
  jQuery('#form_select_options_panel').find('.efmfb_remove_active_input_btn').removeClass('efmfb-btn-muted');
802
  }
803
- // console.log('set_list_options()');
804
 
805
  }
806
  else if( efmfb_inputType == 100)
807
  {
808
  set_checkbox_options();
809
- jQuery('#options_panel_title').text('Checkbox Options');
810
  jQuery('#form_checkbox_options_panel').fadeIn();
811
- console.log('set_checkbox_options()');
812
  }
813
  else if( efmfb_inputType == 101)
814
  {
815
  set_radio_options();
816
- jQuery('#options_panel_title').text('Radio Button Options');
817
  jQuery('#form_radio_options_panel').fadeIn();
818
- console.log('set_radio_options()');
819
  }
820
  else
821
  {
822
  set_text_input_options();
823
- // console.log('set_text_input_options()');
824
  if( input.attr('efmfb-isrequired') == 'required' )
825
  {
826
  jQuery('#form_text_options_panel').find('.efmfb_remove_active_input_btn').addClass('efmfb-btn-muted')
@@ -829,19 +773,18 @@ var efmfb_inputType = self.attr("efmfb-inputtype");
829
  {
830
  jQuery('#form_text_options_panel').find('.efmfb_remove_active_input_btn').removeClass('efmfb-btn-muted');
831
  }
832
- jQuery('#options_panel_title').text('Input Text Options');
833
  jQuery('#form_text_options_panel').fadeIn();
834
 
835
 
836
 
837
  var option_name = jQuery('#efmfb_edit_input_name').val();
838
  var input_name = jQuery('.efmfb-active-input').find('[efmfb-input="1"]').attr('name');
839
- console.log('option_name : '+option_name);
840
- console.log('input_name : '+input_name);
841
  if(option_name !== input_name)
842
  {
843
  console.log('ERROR');
844
- // self.trigger('click');
845
  }
846
 
847
  }
@@ -850,7 +793,7 @@ var efmfb_inputType = self.attr("efmfb-inputtype");
850
 
851
 
852
  var input_name = jQuery('.efmfb-active-input').find('[efmfb-input="1"]').attr('name');
853
- console.log('::: input_name : '+input_name);
854
 
855
 
856
  });
@@ -882,7 +825,7 @@ function set_list_options()
882
 
883
  var isRequiredByeFlyerMaker = input.attr("efmfb-isrequired") == 'required' ? true : false;
884
  var is_required = input.prop('required') || ( input.attr('efmfb-isrequired') == "required" );
885
- // var efmfb_edit_default_list_val = jQuery('#efmfb_edit_default_list_val');
886
 
887
  var label = source.find('.efmfb-label');
888
  var description = source.find('.efmfb_input_desc');
@@ -935,7 +878,7 @@ function set_list_options()
935
  target.find('#efmfb_edit_list_styles').val( styles );
936
  target.find('#efmfb_edit_list_label').val( label.text() );
937
  target.find('#efmfb_edit_list_desc').val( desc_text );
938
- // target.find('#efmfb_edit_list_error').val( error_msg );
939
 
940
 
941
 
@@ -945,17 +888,10 @@ function set_list_options()
945
  //===== when user modify options ( options == to ==> form )
946
  function get_list_options()
947
  {
948
- console.log('get_list_options()');
949
  var source = jQuery('#efmfb_edit_list_form');
950
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
951
 
952
- // console.log('source : ');
953
- // console.log(source);
954
- // console.log('target : ');
955
- // console.log(target);
956
- // console.log('============');
957
-
958
-
959
  var input = target.find('[efmfb-input="1"]');
960
  var label = target.find('.efmfb-label');
961
  var description = target.find('.efmfb_input_desc');
@@ -978,14 +914,12 @@ function get_list_options()
978
 
979
  if( required )
980
  {
981
- // input.addClass("required");
982
- // input.attr("efmfb-isrequired","required");
983
  input.prop('required', true);
984
  }
985
  else
986
  {
987
- // input.removeClass('required');
988
- // input.attr("efmfb-isrequired","");
989
  input.prop('required', false);
990
  }
991
 
@@ -1063,7 +997,7 @@ function set_button_options()
1063
 
1064
 
1065
 
1066
- // console.log('align : '+align);
1067
 
1068
  target.find('#efmfb_edit_btn_text').val( btn_text );
1069
  target.find('#efmfb_edit_btn_classes').val( classes );
@@ -1080,17 +1014,23 @@ function get_button_options()
1080
 
1081
  var button = target.find('input[type="submit"]');
1082
 
 
1083
 
1084
  var btn_text = source.find('#efmfb_edit_btn_text').val();
1085
  var classes = source.find('#efmfb_edit_btn_classes').val();
1086
  var styles = source.find('#efmfb_edit_btn_styles').val();
1087
  var align = source.find('[name="efmfb_edit_btn_align"]:checked').val();
1088
-
 
 
 
1089
  target.css('text-align', align);
1090
  button.val( btn_text );
1091
  button.attr('class', classes);
1092
  button.attr('style', styles);
 
1093
 
 
1094
 
1095
 
1096
  }
@@ -1119,12 +1059,15 @@ function set_checkbox_options()
1119
  var classes = checkbox_container.attr('class');
1120
  var styles = checkbox_container.attr('style');
1121
 
 
 
 
1122
  target.find('#efmfb_edit_checkbox_name').val( name );
1123
  target.find('#efmfb_edit_checkbox_label').val( label );
1124
  target.find('#efmfb_edit_checkbox_classes').val( classes );
1125
  target.find('#efmfb_edit_checkbox_styles').val( styles );
1126
 
1127
-
1128
 
1129
  }
1130
 
@@ -1135,7 +1078,7 @@ function get_checkbox_options()
1135
  var source = jQuery('#efmfb_edit_checkbox_form');
1136
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
1137
 
1138
- // var name = source.find('#efmfb_edit_checkbox_name').val();
1139
  var label = source.find('#efmfb_edit_checkbox_label').val();
1140
  var classes = source.find('#efmfb_edit_checkbox_classes').val();
1141
  var styles = source.find('#efmfb_edit_checkbox_styles').val();
@@ -1144,10 +1087,13 @@ function get_checkbox_options()
1144
  var checkbox_container = target.find('div[efmfb-checkbox-container]');
1145
 
1146
 
1147
- // checkbox.attr('name', name);
1148
  checkbox_container.find('span.efmfb-chechbox-text').text( label );
1149
  checkbox_container.attr('class', classes);
1150
  checkbox_container.attr('style', styles);
 
 
 
1151
  }
1152
 
1153
 
@@ -1179,16 +1125,6 @@ function get_radio_options()
1179
 
1180
 
1181
 
1182
-
1183
-
1184
-
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
  jQuery('.efmfb-panel-heading').on('click', function(){
1193
  var self = jQuery(this);
1194
  self.closest('.efmfb-panel').find('.efmfb-panel-body').slideToggle('fast');
@@ -1198,7 +1134,7 @@ jQuery('.efmfb-panel-heading').on('click', function(){
1198
 
1199
  jQuery('.efmfb-picker-container .wp-picker-container').each(function(){
1200
  var elem = jQuery(this);
1201
- // console.log(elem);
1202
  elem.css("cssText", "display:inline-block!important; width:auto !important;");
1203
  });
1204
 
@@ -1206,42 +1142,11 @@ elem.css("cssText", "display:inline-block!important; width:auto !important;");
1206
 
1207
 
1208
 
1209
-
1210
-
1211
-
1212
-
1213
  //========================
1214
 
1215
 
1216
- // jQuery(document).on('click','.efmfb-action-remove-form', function(){
1217
-
1218
-
1219
- // var url = jQuery(this).attr('data-deleteurl');
1220
- // console.log(url);
1221
-
1222
- // var confirmation_msg = '';
1223
-
1224
 
1225
 
1226
- // confirmation_msg += '<span style="margin-right:15px;">This form will be deleted from database! Do you want to continue?</span>';
1227
- // // confirmation_msg += '<div>';
1228
- // confirmation_msg += '<span id="remove_form_db_validated" class="confirmation_btn">YES</span>';
1229
- // confirmation_msg += '<span id="remove_form_db_dismiss" class="confirmation_btn">NO</span>';
1230
- // // confirmation_msg += '</div>';
1231
-
1232
- // efmfb_display_msg( confirmation_msg , 12000);
1233
-
1234
- // jQuery('#remove_form_db_validated').on('click', function(){
1235
- // efmfbDeleteForm( delete_action );
1236
- // });
1237
-
1238
- // jQuery('#remove_form_db_dismiss').on('click', function(){
1239
- // dismiss_msg();
1240
-
1241
-
1242
- // });
1243
- // });
1244
-
1245
  jQuery(document).on('click', '.efmfb-close-shortcode', function(){
1246
  jQuery(this).closest(".efmfb-shortcode-container").remove()
1247
  });
@@ -1273,12 +1178,6 @@ div += '</div>';
1273
  jQuery('body').append(div);
1274
 
1275
 
1276
-
1277
- // var elem = document.getElementsByClassName("efmfb-shortcode-selection");
1278
- // SelectText(elem);
1279
-
1280
-
1281
-
1282
  });
1283
 
1284
 
76
 
77
  jQuery('#efmfb_create_info_form').submit();
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
80
  });
81
 
98
  var form_contents_options_width = jQuery('#form_contents_options_container').width();
99
 
100
 
 
 
101
 
102
  jQuery('#form_contents_options_container').css('top', left_container_pos.top+50 );
103
  jQuery('#form_contents_options_container').css('left', left_container_width+left_container_pos.left - form_contents_options_width );
146
 
147
 
148
  jQuery( "#efmfb_form_container" ).on( "sortstart", function( event, ui ) {
149
+
 
150
  var elem = ui.item[0];
151
  // if(jQuery(elem).hasClass('efmfb_form_container') )
152
  {
153
+
154
  jQuery('.efmfb-form-group').removeClass('efmfb-active-input');
155
  jQuery('#form_contents_options_container').slideUp('fast');
156
+
 
157
  }
158
  } );
159
 
264
 
265
  if( create_input_required ) required = 'required';
266
 
267
+
268
 
269
 
270
  ++eFlyerMakerForm.user_input_num;
276
  input_html += '<div class="efmfb-errors">'+create_input_error_msg+'</div>';
277
  input_html += '</div>';
278
 
279
+
280
  jQuery('#efmfb_form_container').append( input_html );
281
 
282
  source.trigger("reset");// clear data
331
  form_html += '<div class="efmfb-form-group " efmfb-inputtype="'+type_id+'">';
332
  form_html += '<label class="efmfb-label">'+label_text+'</label> <span class="efmfb_input_desc"></span>';
333
  form_html += '<select name="'+name+'" efmfb-input="1" efmfb-isuser="0" efmfb-isrequired="'+required+'" class="efmfb-form-control" '+required+' >';
 
 
 
 
 
334
  form_html += '<option value="yes">Yes</option>';
335
  form_html += '<option value="no">No</option>';
336
  form_html += '</select>';
353
  var form_name = jQuery('#create_info_name').val();
354
  var form_desc = jQuery('#create_info_desc').val();
355
  var form_classes = jQuery('#create_info_classes').val();
 
 
356
 
357
  var form_json = null;
358
  if( jQuery('#efmfb_form_info_json').val() )
359
  {
360
+ var json_val = jQuery('#efmfb_form_info_json').val();
361
+ try
362
+ {
363
+ form_json = jQuery.parseJSON( json_val );
364
+ }
365
+ catch(err)
366
+ {
367
+ form_json = null;
368
+ }
369
  }
370
 
371
  if( form_json !== null)
433
  form_html += '</div>';
434
 
435
  jQuery('#efmfb_form_container').html(form_html);
436
+
437
  }else
438
  {
439
  efmfb_display_msg('Not a valid json format!');
473
 
474
  jQuery("#efmfb_edit_btn_form input, #efmfb_edit_btn_form textarea").on('change input', function(){
475
  get_button_options();
476
+ return false;
477
  });
478
 
479
 
484
  jQuery('#efmfb_edit_list_form input[type="text"], #efmfb_edit_list_form textarea').on('input', function(){
485
 
486
  get_list_options();
487
+ return false;
488
  });
489
 
490
 
491
  jQuery('#efmfb_edit_list_form input[type="checkbox"], #efmfb_edit_list_form input[type="radio"], #efmfb_edit_list_form select').on('change', function(){
492
 
493
  get_list_options();
494
+ return false;
495
  });
496
 
497
 
504
 
505
  jQuery('#efmfb_edit_checkbox_form input[type="text"], #efmfb_edit_checkbox_form textarea').on('input', function(){
506
  get_checkbox_options();
507
+ return false;
508
  });
509
 
510
 
511
  jQuery('#efmfb_edit_checkbox_form input[type="checkbox"], #efmfb_edit_checkbox_form input[type="radio"], #efmfb_edit_checkbox_form select').on('change', function(){
512
  get_checkbox_options();
513
+ return false;
514
  });
515
 
516
 
517
 
518
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  //================ REMOVE ACTIVE INPUT FROM FORM ===
520
 
521
  jQuery('.efmfb_remove_active_input_btn').on('click', function(){
522
 
523
+
524
  var remove_btn = jQuery(this);
525
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
526
 
535
  {
536
  jQuery('#form_contents_options_container').slideUp('fast');
537
  target.remove();
538
+
539
  }
540
 
541
  });
550
  //===== when user modify options ( options == to ==> form)
551
  function get_text_input_options()
552
  {
553
+
554
  var source = jQuery('#efmfb_edit_text_input_form');
555
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
556
 
 
 
 
 
 
 
557
  var input = target.find('[efmfb-input="1"]');
558
  var label = target.find('.efmfb-label');
559
  var description = target.find('.efmfb_input_desc');
580
 
581
  if( required )
582
  {
 
583
  input.prop('required', true);
584
  }
585
  else
586
  {
 
587
  input.prop('required', false);
588
  }
589
 
640
  var styles = input.attr("style");
641
 
642
  var error_msg = error.text();
 
 
643
 
644
  var is_hidden = input.attr('type') == 'hidden' ? true : false;
645
  var label_is_hidden = !label.is(':visible') && ( label.text().length !== 0 ) ;
669
  target.find('#efmfb_edit_input_required').prop('disabled', false);
670
  }
671
 
672
+
 
 
 
673
 
674
  if(label_is_hidden) target.find('#efmfb_edit_input_hide_label').prop('checked', true);
675
  else target.find('#efmfb_edit_input_hide_label').prop('checked', false);
720
 
721
  var efmfb_inputType = self.attr("efmfb-inputtype");
722
 
723
+
724
 
725
  if( efmfb_inputType == 0)
726
  {
727
  set_button_options();
728
+ jQuery('#options_panel_title').text(Button_Options);
729
  jQuery('#form_button_options_panel').fadeIn();
730
+
731
  }
732
  else if( efmfb_inputType == 5)
733
  {
734
  set_list_options();
735
+ jQuery('#options_panel_title').text(List_Options);
736
  jQuery('#form_select_options_panel').fadeIn();
737
 
738
 
744
  {
745
  jQuery('#form_select_options_panel').find('.efmfb_remove_active_input_btn').removeClass('efmfb-btn-muted');
746
  }
747
+
748
 
749
  }
750
  else if( efmfb_inputType == 100)
751
  {
752
  set_checkbox_options();
753
+ jQuery('#options_panel_title').text(Checkbox_Options);
754
  jQuery('#form_checkbox_options_panel').fadeIn();
755
+
756
  }
757
  else if( efmfb_inputType == 101)
758
  {
759
  set_radio_options();
760
+ jQuery('#options_panel_title').text(Radio_Button_Options);
761
  jQuery('#form_radio_options_panel').fadeIn();
762
+
763
  }
764
  else
765
  {
766
  set_text_input_options();
767
+
768
  if( input.attr('efmfb-isrequired') == 'required' )
769
  {
770
  jQuery('#form_text_options_panel').find('.efmfb_remove_active_input_btn').addClass('efmfb-btn-muted')
773
  {
774
  jQuery('#form_text_options_panel').find('.efmfb_remove_active_input_btn').removeClass('efmfb-btn-muted');
775
  }
776
+ jQuery('#options_panel_title').text(Input_Text_Options);
777
  jQuery('#form_text_options_panel').fadeIn();
778
 
779
 
780
 
781
  var option_name = jQuery('#efmfb_edit_input_name').val();
782
  var input_name = jQuery('.efmfb-active-input').find('[efmfb-input="1"]').attr('name');
783
+
 
784
  if(option_name !== input_name)
785
  {
786
  console.log('ERROR');
787
+
788
  }
789
 
790
  }
793
 
794
 
795
  var input_name = jQuery('.efmfb-active-input').find('[efmfb-input="1"]').attr('name');
796
+
797
 
798
 
799
  });
825
 
826
  var isRequiredByeFlyerMaker = input.attr("efmfb-isrequired") == 'required' ? true : false;
827
  var is_required = input.prop('required') || ( input.attr('efmfb-isrequired') == "required" );
828
+
829
 
830
  var label = source.find('.efmfb-label');
831
  var description = source.find('.efmfb_input_desc');
878
  target.find('#efmfb_edit_list_styles').val( styles );
879
  target.find('#efmfb_edit_list_label').val( label.text() );
880
  target.find('#efmfb_edit_list_desc').val( desc_text );
881
+
882
 
883
 
884
 
888
  //===== when user modify options ( options == to ==> form )
889
  function get_list_options()
890
  {
891
+
892
  var source = jQuery('#efmfb_edit_list_form');
893
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
894
 
 
 
 
 
 
 
 
895
  var input = target.find('[efmfb-input="1"]');
896
  var label = target.find('.efmfb-label');
897
  var description = target.find('.efmfb_input_desc');
914
 
915
  if( required )
916
  {
917
+
 
918
  input.prop('required', true);
919
  }
920
  else
921
  {
922
+
 
923
  input.prop('required', false);
924
  }
925
 
997
 
998
 
999
 
1000
+
1001
 
1002
  target.find('#efmfb_edit_btn_text').val( btn_text );
1003
  target.find('#efmfb_edit_btn_classes').val( classes );
1014
 
1015
  var button = target.find('input[type="submit"]');
1016
 
1017
+
1018
 
1019
  var btn_text = source.find('#efmfb_edit_btn_text').val();
1020
  var classes = source.find('#efmfb_edit_btn_classes').val();
1021
  var styles = source.find('#efmfb_edit_btn_styles').val();
1022
  var align = source.find('[name="efmfb_edit_btn_align"]:checked').val();
1023
+
1024
+ var inputType = jQuery(target).attr('efmfb-inputtype');
1025
+ if(inputType == "0")
1026
+ {
1027
  target.css('text-align', align);
1028
  button.val( btn_text );
1029
  button.attr('class', classes);
1030
  button.attr('style', styles);
1031
+ }
1032
 
1033
+ return false;
1034
 
1035
 
1036
  }
1059
  var classes = checkbox_container.attr('class');
1060
  var styles = checkbox_container.attr('style');
1061
 
1062
+
1063
+
1064
+
1065
  target.find('#efmfb_edit_checkbox_name').val( name );
1066
  target.find('#efmfb_edit_checkbox_label').val( label );
1067
  target.find('#efmfb_edit_checkbox_classes').val( classes );
1068
  target.find('#efmfb_edit_checkbox_styles').val( styles );
1069
 
1070
+ return false;
1071
 
1072
  }
1073
 
1078
  var source = jQuery('#efmfb_edit_checkbox_form');
1079
  var target = jQuery('.efmfb-form-group.efmfb-active-input');
1080
 
1081
+
1082
  var label = source.find('#efmfb_edit_checkbox_label').val();
1083
  var classes = source.find('#efmfb_edit_checkbox_classes').val();
1084
  var styles = source.find('#efmfb_edit_checkbox_styles').val();
1087
  var checkbox_container = target.find('div[efmfb-checkbox-container]');
1088
 
1089
 
1090
+
1091
  checkbox_container.find('span.efmfb-chechbox-text').text( label );
1092
  checkbox_container.attr('class', classes);
1093
  checkbox_container.attr('style', styles);
1094
+
1095
+
1096
+ return false;
1097
  }
1098
 
1099
 
1125
 
1126
 
1127
 
 
 
 
 
 
 
 
 
 
 
1128
  jQuery('.efmfb-panel-heading').on('click', function(){
1129
  var self = jQuery(this);
1130
  self.closest('.efmfb-panel').find('.efmfb-panel-body').slideToggle('fast');
1134
 
1135
  jQuery('.efmfb-picker-container .wp-picker-container').each(function(){
1136
  var elem = jQuery(this);
1137
+
1138
  elem.css("cssText", "display:inline-block!important; width:auto !important;");
1139
  });
1140
 
1142
 
1143
 
1144
 
 
 
 
 
1145
  //========================
1146
 
1147
 
 
 
 
 
 
 
 
 
1148
 
1149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1150
  jQuery(document).on('click', '.efmfb-close-shortcode', function(){
1151
  jQuery(this).closest(".efmfb-shortcode-container").remove()
1152
  });
1178
  jQuery('body').append(div);
1179
 
1180
 
 
 
 
 
 
 
1181
  });
1182
 
1183
 
skin/adminhtml/default/default/eflyermakerformbuilder/js/efmfb_popup_options.js CHANGED
@@ -2,19 +2,8 @@
2
 
3
 
4
 
5
- // function efmfb_popup( options )
6
- // {
7
- // jQuery('.efmfb_dialog_form').find('#close_popup_container').remove();
8
 
9
 
10
- // // console.log( options);
11
- // efmfb_popup_form.dialog(options);
12
- // efmfb_popup_form.dialog( "open" );
13
- // jQuery('.efmfb_dialog_form').find('.ui-dialog-titlebar').prepend('<div id="close_popup_container" style="display: block; width: 100%; margin-bottom: 20px;"><span class="dashicons dashicons-no efmfb-close-ui-dialog" style="display:block; cursor:pointer; float:right; "></span></div>');
14
-
15
-
16
- // }
17
-
18
 
19
 
20
  function efmfbSetPopupOptions(efmfb_popup_obj) {
@@ -162,23 +151,14 @@ jQuery('body').append( efmfb_popup_Form_html );
162
 
163
 
164
 
165
- // if(efmfb_popup_overlay_color)
166
- // {
167
- // body_overlay_opacity = '1';
168
- // if(efmfb_popup_overlay_opacity) body_overlay_opacity = efmfb_popup_overlay_opacity;
169
 
170
- // body_overlay_rgb = hexToRgb(efmfb_popup_overlay_color);
171
- // efmfb_popup_overlay_color = 'rgba('+body_overlay_rgb["r"]+','+body_overlay_rgb["g"]+','+body_overlay_rgb["b"]+','+body_overlay_opacity+')';
172
- // }
173
 
174
 
175
 
176
  var efmfb_popup_form = jQuery('#efmfb_popup_form');
177
 
178
- // console.log( options);
179
- console.log('content : '+ efmfb_popup_form.text());
180
- // efmfb_popup_form.dialog(options);
181
- // efmfb_popup_form.dialog( "open" );
182
 
183
 
184
  efmfb_bPopup = efmfb_popup_form.bPopup(
@@ -206,14 +186,12 @@ efmfb_popup_form.addClass('animated ' + efmfb_popup_animatecss_show);
206
  onClose: function() {
207
  jQuery('body').removeClass('stop-scrolling');
208
 
209
- // efmfb_popup_form.removeClass('animated ' + efmfb_popup_animatecss_show).addClass('animated ' + efmfb_popup_animatecss_hide);
210
  }
211
  }, function(){
212
  // callback
213
  } );
214
 
215
- // jQuery('.efmfb_dialog_form').find('.ui-dialog-titlebar').prepend('<div id="close_popup_container" style="display: block; width: 100%; margin-bottom: 20px;"><span class="dashicons dashicons-no efmfb-close-ui-dialog" style="display:block; cursor:pointer; float:right; "></span></div>');
216
-
217
 
218
 
219
 
@@ -275,20 +253,15 @@ jQuery(document).on('click', '.efmfb-close-ui-dialog, .efmfb-b-modal', function(
275
 
276
 
277
 
278
- // var efmfb_dialog_form_ui_titlebar = jQuery('.efmfb_dialog_form .ui-dialog-titlebar').attr('style') || '' ;
279
- // jQuery('.efmfb_dialog_form .ui-dialog-titlebar').attr('style' , efmfb_dialog_form_ui_titlebar+' '+efmfb_popup_title_styles);
280
- //****** BOX BODY STYLES **********
281
- // console.log('efmfb_popup_body_styles : '+efmfb_popup_body_styles);
282
- // efmfb_poup_form_content.attr('style', efmfb_popup_body_styles);
283
 
284
  console.log('rgba : '+hexToRgba(efmfb_popup_body_bg_color, efmfb_popup_body_bg_opacity));
285
  var box_body_styles = {
286
  background:hexToRgba(efmfb_popup_body_bg_color, efmfb_popup_body_bg_opacity)
287
- // background: efmfb_popup_body_bg_color,
288
- // opacity: efmfb_popup_body_bg_opacity
289
  }
290
  efmfb_popup_body.css(box_body_styles);
291
- // if (jQuery('#efmfb_popup_title_has_body_bgcolor').is(':checked')) efmfb_title.css(box_body_styles);
292
  console.log('efmfb_popup_title_has_body_bgcolor : '+efmfb_popup_title_has_body_bgcolor);
293
  if ( efmfb_popup_title_has_body_bgcolor === '1') efmfb_title.css(box_body_styles);
294
  //****** BOX CLOSE ICON STYLES **********
@@ -303,23 +276,7 @@ jQuery(document).on('click', '.efmfb-close-ui-dialog, .efmfb-b-modal', function(
303
 
304
 
305
 
306
- // jQuery('.efmfb-close-ui-dialog').on('click', function() {
307
- // efmfb_popup_form.bPopup('hide')
308
- // // jQuery(this).closest(".efmfb-popup-container").remove();
309
- // });
310
- // jQuery('.efmfb-close-ui-dialog').on('click', function() {
311
- // if( jQuery('#efmfb_popup_animatecss_hide').val() == '')
312
- // {
313
- // efmfb_popup_form.dialog("close");
314
- // }
315
- // else
316
- // {
317
- // efmfb_dialog.addClass('animated ' + efmfb_popup_animatecss_hide).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
318
- // jQuery(this).removeClass('animated ' + efmfb_popup_animatecss_hide);
319
- // efmfb_popup_form.dialog("close");
320
- // });
321
- // }
322
- // });
323
 
324
 
325
 
2
 
3
 
4
 
 
 
 
5
 
6
 
 
 
 
 
 
 
 
 
7
 
8
 
9
  function efmfbSetPopupOptions(efmfb_popup_obj) {
151
 
152
 
153
 
 
 
 
 
154
 
 
 
 
155
 
156
 
157
 
158
  var efmfb_popup_form = jQuery('#efmfb_popup_form');
159
 
160
+
161
+
 
 
162
 
163
 
164
  efmfb_bPopup = efmfb_popup_form.bPopup(
186
  onClose: function() {
187
  jQuery('body').removeClass('stop-scrolling');
188
 
189
+
190
  }
191
  }, function(){
192
  // callback
193
  } );
194
 
 
 
195
 
196
 
197
 
253
 
254
 
255
 
256
+
 
 
 
 
257
 
258
  console.log('rgba : '+hexToRgba(efmfb_popup_body_bg_color, efmfb_popup_body_bg_opacity));
259
  var box_body_styles = {
260
  background:hexToRgba(efmfb_popup_body_bg_color, efmfb_popup_body_bg_opacity)
261
+
 
262
  }
263
  efmfb_popup_body.css(box_body_styles);
264
+
265
  console.log('efmfb_popup_title_has_body_bgcolor : '+efmfb_popup_title_has_body_bgcolor);
266
  if ( efmfb_popup_title_has_body_bgcolor === '1') efmfb_title.css(box_body_styles);
267
  //****** BOX CLOSE ICON STYLES **********
276
 
277
 
278
 
279
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
 
282
 
skin/adminhtml/default/default/eflyermakerformbuilder/js/efmfb_popup_setup.js CHANGED
@@ -8,42 +8,9 @@ var efmfb_popup_obj = new Object();
8
  var efmfb_popup_form_data = jQuery('#efmfb_popup_options_form');
9
 
10
 
11
- // var efmfb_popup_Form_html = '';
12
- // efmfb_popup_Form_html += '<div id="efmfb_popup_form" style="display:none;">';
13
- // efmfb_popup_Form_html += '<div id="efmfb_poup_header_text"></div>';
14
- // efmfb_popup_Form_html += '<div id="efmfb_poup_form_content">DEMO</div>';
15
- // efmfb_popup_Form_html += '<div id="efmfb_poup_footer_text"></div>';
16
- // efmfb_popup_Form_html += '</div>';
17
 
18
 
19
 
20
-
21
-
22
- // var $efmfb_popup_Form_html = '';
23
- // $efmfb_popup_Form_html .= '<div id="efmfb_popup_form" class="efmfb-popup-container" '.$classes.' '.$style.' > ';
24
- // $efmfb_popup_Form_html = '<div class="efmfb_popup_form_options"></div>';
25
- // $efmfb_popup_Form_html .= '<div class="efmfb-popup">';
26
- // $efmfb_popup_Form_html .= '<div class="title">';
27
- // $efmfb_popup_Form_html .= '<div class="title-text" '.$title_style.'>'.$popup_title_text.'</div>';
28
- // $efmfb_popup_Form_html .= '<div class="title-img"><img src="'.$popup_title_img.'" /></div>';
29
- // $efmfb_popup_Form_html .= '</div>';//title
30
- // $efmfb_popup_Form_html .= '<div class="efmfb-popup-header">'.$popup_header_text.'</div>';
31
- // $efmfb_popup_Form_html .= '<div class="efmfb-popup-body" '.$body_style.'>';
32
- // $efmfb_popup_Form_html .= $form;
33
- // $efmfb_popup_Form_html .= '</div>';
34
- // $efmfb_popup_Form_html .= '<div class="efmfb-popup-footer">'.$popup_footer_text.'</div>';
35
- // $efmfb_popup_Form_html .= '</div>';//.efmfb-popup
36
- // $efmfb_popup_Form_html .= '</div>';//.efmfb-popup-container
37
-
38
-
39
-
40
-
41
-
42
-
43
- // // console.log('--> : '+efmfb_popup_Form_html);
44
- // jQuery('body').append( efmfb_popup_Form_html );
45
-
46
-
47
  //=============================== SHOW POPUP DEMO ================================
48
 
49
 
@@ -81,12 +48,7 @@ function efmfbGetPopupOptions()
81
  efmfb_popup_obj.efmfb_popup_body_styles = efmfb_popup_form_data.find('#efmfb_popup_body_styles').val();
82
  efmfb_popup_obj.efmfb_popup_body_classes = efmfb_popup_form_data.find('#efmfb_popup_body_classes').val();
83
 
84
- // BOX EFFETS + ANIMATIONS
85
- // efmfb_popup_obj.efmfb_popup_show_effect = efmfb_popup_form_data.find('#efmfb_popup_show_effect').val();
86
- // efmfb_popup_obj.efmfb_popup_show_duration = parseInt( efmfb_popup_form_data.find('#efmfb_popup_show_effect_duration').val() );
87
 
88
- // efmfb_popup_obj.efmfb_popup_hide_effect = efmfb_popup_form_data.find('#efmfb_popup_hide_effect').val();
89
- // efmfb_popup_obj.efmfb_popup_hide_duration = parseInt( efmfb_popup_form_data.find('#efmfb_popup_hide_effect_duration').val() );
90
 
91
  efmfb_popup_obj.efmfb_popup_animatecss_show = efmfb_popup_form_data.find('#efmfb_popup_animatecss_show').val();
92
  efmfb_popup_obj.efmfb_popup_animatecss_hide = efmfb_popup_form_data.find('#efmfb_popup_animatecss_hide').val();
@@ -239,21 +201,7 @@ jQuery(document).ready(function ($) {
239
 
240
  efmfb_popup_body_bg_opacity = (typeof efmfb_popup_body_bg_opacity !== 'undefined' && efmfb_popup_body_bg_opacity ) ? efmfb_popup_body_bg_opacity : 0;
241
 
242
- // console.log('efmfb_popup_body_bg_opacity : '+efmfb_popup_body_bg_opacity);
243
-
244
- // jQuery( "#efmfb_popup_body_bg_opacity_slider" ).slider({
245
- // range: "max",
246
- // min: 0,
247
- // max: 1,
248
- // step:0.1,
249
- // value: efmfb_popup_body_bg_opacity,
250
- // slide: function( event, ui ) {
251
- // jQuery( "#efmfb_popup_body_bg_opacity" ).val( ui.value );
252
- // }
253
- // });
254
-
255
 
256
- // jQuery( "#efmfb_popup_body_bg_opacity" ).val( jQuery( "#efmfb_popup_body_bg_opacity_slider" ).slider( "value" ) );
257
 
258
 
259
 
@@ -297,45 +245,14 @@ popup_overlay_opacity_range.noUiSlider.on('update', function( values, handle ) {
297
  efmfb_popup_opacity = (typeof efmfb_popup_opacity !== 'undefined' && efmfb_popup_opacity ) ? efmfb_popup_opacity : 0.7;
298
 
299
 
300
- // console.log('efmfb_popup_opacity : '+efmfb_popup_opacity);
301
 
302
- // jQuery( "#efmfb_popup_overlay_opacity_slider" ).slider({
303
- // range: "max",
304
- // min: 0,
305
- // max: 1,
306
- // step:0.1,
307
- // value: efmfb_popup_opacity,
308
- // slide: function( event, ui ) {
309
- // jQuery( "#efmfb_popup_overlay_opacity_slider_val" ).val( ui.value );
310
- // }
311
- // });
312
-
313
-
314
- // jQuery( "#efmfb_popup_overlay_opacity_slider_val" ).val( jQuery( "#efmfb_popup_overlay_opacity_slider" ).slider( "value" ) );
315
 
316
 
317
  jQuery(function(){
318
 
319
  var popup_overlay_opacity_range = document.getElementById('efmfb_popup_overlay_opacity_slider');
320
  var overlayOpacityValueElement = document.getElementById('efmfb_popup_overlay_opacity_slider_val');
321
- // noUiSlider.create(range, {
322
- // start: [ 20, 80 ], // Handle start position
323
- // step: 10, // Slider moves in increments of '10'
324
- // margin: 20, // Handles must be more than '20' apart
325
- // connect: true, // Display a colored bar between the handles
326
- // direction: 'rtl', // Put '0' at the bottom of the slider
327
- // // orientation: 'vertical', // Orient the slider vertically
328
- // behaviour: 'tap-drag', // Move handle on tap, bar is draggable
329
- // range: { // Slider can select '0' to '100'
330
- // 'min': 0,
331
- // 'max': 100
332
- // }
333
- // // ,
334
- // // pips: { // Show a scale with the slider
335
- // // mode: 'steps',
336
- // // density: 2
337
- // // }
338
- // });
339
 
340
  noUiSlider.create(popup_overlay_opacity_range, {
341
  start: [ overlayOpacityValueElement.value ],
@@ -368,19 +285,6 @@ popup_overlay_opacity_range.noUiSlider.on('update', function( values, handle ) {
368
  //====== POPUP border radius ======
369
  jQuery(function(){
370
  efmfb_popup_border_radius = (typeof efmfb_popup_border_radius !== 'undefined') ? efmfb_popup_border_radius : 0;
371
- // jQuery( "#efmfb_popup_border_radius_slider" ).slider({
372
- // range: "max",
373
- // min: 0,
374
- // max: 50,
375
- // value: efmfb_popup_border_radius,
376
- // slide: function( event, ui ) {
377
- // jQuery( "#efmfb_popup_border_radius_slider_val" ).val( ui.value );
378
- // }
379
- // });
380
-
381
-
382
- // jQuery( "#efmfb_popup_border_radius_slider_val" ).val( jQuery( "#efmfb_popup_border_radius_slider" ).slider( "value" ));
383
-
384
 
385
 
386
  var popup_border_radius_range = document.getElementById('efmfb_popup_border_radius_slider');
@@ -415,31 +319,3 @@ popup_border_radius_range.noUiSlider.on('update', function( values, handle ) {
415
 
416
 
417
 
418
- /*
419
- slider.noUiSlider.on('update', function(){
420
- addClassFor(lUpdate, 'tShow', 450);
421
- });
422
-
423
- slider.noUiSlider.on('slide', function(){
424
- addClassFor(lSlide, 'tShow', 450);
425
- });
426
-
427
- slider.noUiSlider.on('set', function(){
428
- addClassFor(lSet, 'tShow', 450);
429
- });
430
-
431
- slider.noUiSlider.on('change', function(){
432
- addClassFor(lChange, 'tShow', 450);
433
- });
434
-
435
- slider.noUiSlider.on('start', function(){
436
- addClassFor(lStart, 'tShow', 450);
437
- });
438
-
439
- slider.noUiSlider.on('end', function(){
440
- addClassFor(lEnd, 'tShow', 450);
441
- });
442
- */
443
- //=========================
444
-
445
-
8
  var efmfb_popup_form_data = jQuery('#efmfb_popup_options_form');
9
 
10
 
 
 
 
 
 
 
11
 
12
 
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  //=============================== SHOW POPUP DEMO ================================
15
 
16
 
48
  efmfb_popup_obj.efmfb_popup_body_styles = efmfb_popup_form_data.find('#efmfb_popup_body_styles').val();
49
  efmfb_popup_obj.efmfb_popup_body_classes = efmfb_popup_form_data.find('#efmfb_popup_body_classes').val();
50
 
 
 
 
51
 
 
 
52
 
53
  efmfb_popup_obj.efmfb_popup_animatecss_show = efmfb_popup_form_data.find('#efmfb_popup_animatecss_show').val();
54
  efmfb_popup_obj.efmfb_popup_animatecss_hide = efmfb_popup_form_data.find('#efmfb_popup_animatecss_hide').val();
201
 
202
  efmfb_popup_body_bg_opacity = (typeof efmfb_popup_body_bg_opacity !== 'undefined' && efmfb_popup_body_bg_opacity ) ? efmfb_popup_body_bg_opacity : 0;
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
 
 
205
 
206
 
207
 
245
  efmfb_popup_opacity = (typeof efmfb_popup_opacity !== 'undefined' && efmfb_popup_opacity ) ? efmfb_popup_opacity : 0.7;
246
 
247
 
 
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
 
250
 
251
  jQuery(function(){
252
 
253
  var popup_overlay_opacity_range = document.getElementById('efmfb_popup_overlay_opacity_slider');
254
  var overlayOpacityValueElement = document.getElementById('efmfb_popup_overlay_opacity_slider_val');
255
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
 
257
  noUiSlider.create(popup_overlay_opacity_range, {
258
  start: [ overlayOpacityValueElement.value ],
285
  //====== POPUP border radius ======
286
  jQuery(function(){
287
  efmfb_popup_border_radius = (typeof efmfb_popup_border_radius !== 'undefined') ? efmfb_popup_border_radius : 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
288
 
289
 
290
  var popup_border_radius_range = document.getElementById('efmfb_popup_border_radius_slider');
319
 
320
 
321
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/eflyermakerformbuilder/efmfb_public.js CHANGED
@@ -1,10 +1,6 @@
1
 
2
 
3
 
4
-
5
-
6
-
7
-
8
  //============================================
9
 
10
  function goTo(elem)
@@ -16,7 +12,6 @@ function goTo(elem)
16
 
17
  var offset = -100;
18
  var elemPos = jQuery(elem).offset().top + offset;
19
- console.log('elemPos :'+elemPos);
20
  jQuery('body').stop(true, true).animate({
21
  scrollTop: elemPos
22
  }, 600);
@@ -44,7 +39,7 @@ function isSafeInteger( value )
44
  {
45
  var safeInt = Math.pow(2, 53) - 1;
46
  value = Math.abs(value);
47
- // console.log('( value <= safeInt ) : '+( value <= safeInt ));
48
  return value <= safeInt;
49
  }
50
 
@@ -57,7 +52,7 @@ function efmfb_isInt( value )
57
  value = filterInt( value );
58
  isInt = isSafeInteger( value ) && typeof value === "number" && isFinite(value) && Math.floor(value) === value ;
59
  }
60
- console.log('isInt : '+isInt);
61
  return isInt;
62
 
63
  }
@@ -67,8 +62,6 @@ console.log('isInt : '+isInt);
67
  function filterFloat( value )
68
  {
69
  value = value.replace(",", ".");
70
- // if(/^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(value)) return Number(value);
71
- // if(/^(\-)?([0-9]+(\.[0-9]+)?)$/.test(value)) return Number(value);
72
 
73
  if(/^(\-)?((([0])|([1-9]+\d*))(\.[0-9]+)?)$/.test(value)) return Number(value);
74
 
@@ -88,7 +81,7 @@ function efmfb_isFloat( value )
88
  if(value == '0' || value ) value = filterFloat( value );
89
  isFloat = ( typeof value === "number" && isFinite(value) );
90
  }
91
- console.log('isFloat : '+isFloat);
92
  return isFloat;
93
  }
94
 
@@ -108,36 +101,6 @@ jQuery(document).ready(function($) {
108
 
109
 
110
 
111
- /*
112
- efmfb-popup-container
113
- efmfb-popup
114
- efmfb-popup-header
115
- efmfb-popup-body
116
- efmfb-popup-footer
117
- /efmfb-popup
118
- /efmfb-popup-container
119
- */
120
-
121
- // jQuery('.efmfb-popup-container').bPopup(
122
- // {
123
- // opacity: 0.9,
124
- // positionStyle: 'fixed', //'fixed' or 'absolute'
125
- // modalClose: true,
126
- // follow: [false, false], //x, y
127
- // // position: [150, 400] //x, y
128
- // fadeSpeed: 'slow', //can be a string ('slow'/'fast') or int
129
- // followSpeed: 1500, //can be a string ('slow'/'fast') or int
130
- // modalColor: '#000000',
131
- // speed: 450,
132
- // // transition: 'slideIn',
133
- // // transitionClose: 'slideBack'
134
- // }
135
- // );
136
-
137
-
138
-
139
-
140
-
141
 
142
  //===============================================================================
143
 
@@ -223,14 +186,10 @@ jQuery('form[efmfb-formsource]').on('submit', function(e){
223
 
224
  var self = jQuery(this);
225
  var data = self.serializeArray();
226
- console.log(data);
227
-
228
-
229
- var isPopup = self.closest("#efmfb_popup_form").length > 0 ? true : false;
230
 
231
- // console.log("isPopup : "+isPopup);
232
 
233
 
 
234
 
235
  var publication_agreement = self.find('[name="publication_agreement"]');
236
  var consent_policy = self.find('[name="consent_policy"]');
@@ -253,7 +212,7 @@ jQuery('form[efmfb-formsource]').on('submit', function(e){
253
  var hasError = false;
254
 
255
 
256
- // console.log(name+' : '+input.attr('efmfb-isrequired') +' value : '+value);
257
  var required = input.attr('efmfb-isrequired');
258
  var input_type = input.closest('.efmfb-form-group').attr('efmfb-inputtype');
259
 
@@ -270,13 +229,13 @@ jQuery('form[efmfb-formsource]').on('submit', function(e){
270
  else if( input_type == '1' || input_type == '2' ) // int
271
  {
272
  var isInt = efmfb_isInt( input_val );
273
- // console.log('type ['+input_type+'] : val : '+input_val+' is Int : '+ isInt);
274
  if( !isInt ) hasError = true;
275
  }
276
  else if( input_type == '8' ) // decimal
277
  {
278
  var isFloat = efmfb_isFloat( input_val );
279
- // console.log('type ['+input_type+'] : '+ isDecimal );
280
  if( !isFloat ) hasError = true;
281
  }
282
 
@@ -302,12 +261,11 @@ else
302
  {
303
  var ajax_data = self.serialize();
304
  ajax_data += '&json=1';
305
- // var ajax_url = "https://stage2.intema.ca/eflyermaker/en?"+ajax_data+"&callback=?";
306
 
307
  var ajax_url = action_url+"?"+ajax_data;
308
 
309
 
310
- // console.log(ajax_data);
311
 
312
  // 1 : must give consent
313
  // 2 : must agree publication
@@ -343,7 +301,7 @@ var efmfb_popup_rotate_in_success = efmfb_popup_form_data.find('#efmfb_popup_rot
343
  type:'GET',
344
  success: function(data) {
345
 
346
- console.log(data);
347
 
348
  if(typeof data === 'object')
349
  {
@@ -357,34 +315,26 @@ var efmfb_popup_rotate_in_success = efmfb_popup_form_data.find('#efmfb_popup_rot
357
  if(isPopup)
358
  {
359
  var efmfb_popup_form = jQuery('#efmfb_popup_form');
360
- // efmfb_popup_form.dialog( "close" );
361
 
362
- // jQuery('#efmfb_popup_form').html('');
363
- // var efmfb_popup_rotate_in_success = jQuery('#efmfb_popup_rotate_in_success').val();
364
- console.log('efmfb_popup_rotate_in_success : '+efmfb_popup_rotate_in_success);
365
  if(efmfb_popup_rotate_in_success === 'checked')
366
  {efmfb_popup_form.attr('class','')
367
  efmfb_popup_form.addClass('animated flipInY');
368
  }
369
 
370
  jQuery('.efmfb-popup-body-container').html(response_msg);
371
-
372
-
373
  var el = jQuery(".efmfb-popup");
374
  var h = parseInt( jQuery('.efmfb-popup-body-container').outerHeight() )+50;
375
  el.animate({ height: h+"px" }, 400 );
376
-
377
-
378
-
379
-
380
  }
381
  else
382
  {
383
- // efmfb_msg.html(success_msg);
384
  efmfb_msg.html(response_msg);
385
  removeAlertClasses(efmfb_msg);
386
  efmfb_msg.addClass('efmfb-alert-success');
387
- // self.trigger('reset');
388
  self.fadeOut('fast', function(){
389
  efmfb_msg.fadeIn();
390
  });
@@ -437,7 +387,6 @@ var efmfb_popup_rotate_in_success = efmfb_popup_form_data.find('#efmfb_popup_rot
437
 
438
  }
439
 
440
- // goTo(efmfb_msg);
441
 
442
  }
443
  },
@@ -446,7 +395,7 @@ var efmfb_popup_rotate_in_success = efmfb_popup_form_data.find('#efmfb_popup_rot
446
  });
447
 
448
  callback = function( data ){
449
- console.log(data);
450
 
451
  }
452
 
@@ -494,7 +443,7 @@ jQuery('.efmfb-close-ui-dialog').on('click', function(){
494
 
495
  }
496
 
497
- console.log('efmfb_popup_form_data : '+efmfb_popup_form_data.text());
498
 
499
  //======== Show eFlyerMaker Form popup =============
500
  if( efmfb_popup_form_data.length > 0 )
@@ -503,49 +452,17 @@ if( efmfb_popup_form_data.length > 0 )
503
 
504
  var efmfb_popup_obj = new Object();
505
 
506
- // efmfb_popup_obj.efmfb_popup_classes = efmfb_popup_form_data.find('#efmfb_popup_classes').val();
507
  efmfb_popup_obj.efmfb_popup_background_color = efmfb_popup_form_data.find('#efmfb_popup_bg_color').val();
508
- // efmfb_popup_obj.efmfb_popup_width = efmfb_popup_form_data.find('#efmfb_popup_width').val();
509
- // efmfb_popup_obj.efmfb_popup_height = efmfb_popup_form_data.find('#efmfb_popup_height').val();
510
- // efmfb_popup_obj.efmfb_popup_bg_img = efmfb_popup_form_data.find('#efmfb_popup_bg_img').val();
511
  efmfb_popup_obj.efmfb_popup_overlay_color = efmfb_popup_form_data.find('#efmfb_popup_overlay_color').val();
512
  efmfb_popup_obj.efmfb_popup_overlay_opacity = efmfb_popup_form_data.find('#efmfb_popup_overlay_opacity').val();
513
- // efmfb_popup_obj.efmfb_popup_border_color = efmfb_popup_form_data.find('#efmfb_popup_border_color').val();
514
- // efmfb_popup_obj.efmfb_popup_border_radius = efmfb_popup_form_data.find('#efmfb_popup_border_radius').val();
515
- // efmfb_popup_obj.efmfb_popup_close_color = efmfb_popup_form_data.find('#efmfb_popup_close_color').val();
516
- // efmfb_popup_obj.efmfb_popup_box_shadow = efmfb_popup_form_data.find('#efmfb_popup_box_shadow').val();
517
- // efmfb_popup_obj.efmfb_popup_header_text = efmfb_popup_form_data.find('#efmfb_popup_header_text').val();
518
- // efmfb_popup_obj.efmfb_popup_footer_text = efmfb_popup_form_data.find('#efmfb_popup_footer_text').val();
519
-
520
-
521
- // BOX TITLE
522
- // efmfb_popup_obj.efmfb_popup_title = efmfb_popup_form_data.find('#efmfb_popup_title_text').val();
523
- // efmfb_popup_obj.efmfb_popup_title_styles = efmfb_popup_form_data.find('#efmfb_popup_title_styles').val();
524
- // efmfb_popup_obj.efmfb_popup_title_img = efmfb_popup_form_data.find('#efmfb_popup_title_img').val();
525
- // efmfb_popup_obj.efmfb_popup_title_img_pos = efmfb_popup_form_data.find('#efmfb_popup_title_img_pos').val();
526
- // efmfb_popup_obj.efmfb_popup_title_color = efmfb_popup_form_data.find('#efmfb_popup_title_color').val();
527
-
528
- // console.log('tit img : '+efmfb_popup_obj.efmfb_popup_title_img);
529
-
530
- // BOX Body
531
- // efmfb_popup_obj.efmfb_popup_body_bg_color = efmfb_popup_form_data.find('#efmfb_popup_body_bg_color').val();
532
- // efmfb_popup_obj.efmfb_popup_body_bg_opacity = efmfb_popup_form_data.find('#efmfb_popup_body_bg_opacity').val();
533
- // efmfb_popup_obj.efmfb_popup_body_styles = efmfb_popup_form_data.find('#efmfb_popup_body_styles').val();
534
-
535
-
536
-
537
  efmfb_popup_obj.efmfb_popup_animatecss_show = efmfb_popup_form_data.find('#efmfb_popup_animatecss_show').val();
538
  efmfb_popup_obj.efmfb_popup_animatecss_hide = efmfb_popup_form_data.find('#efmfb_popup_animatecss_hide').val();
539
-
540
  efmfb_popup_obj.efmfb_popup_delay = parseInt( efmfb_popup_form_data.find('#efmfb_popup_delay').val() );
541
- // efmfb_popup_obj.efmfb_popup_title_has_body_bgcolor = efmfb_popup_form_data.find('#efmfb_popup_title_has_body_bgcolor').val();
542
  efmfb_popup_obj.efmfb_popup_rotate_in_success = efmfb_popup_form_data.find('#efmfb_popup_rotate_in_success').val();
543
 
544
 
545
-
546
- // efmfbSetPopupOptions(efmfb_popup_obj);
547
-
548
-
549
 
550
  }
551
 
1
 
2
 
3
 
 
 
 
 
4
  //============================================
5
 
6
  function goTo(elem)
12
 
13
  var offset = -100;
14
  var elemPos = jQuery(elem).offset().top + offset;
 
15
  jQuery('body').stop(true, true).animate({
16
  scrollTop: elemPos
17
  }, 600);
39
  {
40
  var safeInt = Math.pow(2, 53) - 1;
41
  value = Math.abs(value);
42
+
43
  return value <= safeInt;
44
  }
45
 
52
  value = filterInt( value );
53
  isInt = isSafeInteger( value ) && typeof value === "number" && isFinite(value) && Math.floor(value) === value ;
54
  }
55
+
56
  return isInt;
57
 
58
  }
62
  function filterFloat( value )
63
  {
64
  value = value.replace(",", ".");
 
 
65
 
66
  if(/^(\-)?((([0])|([1-9]+\d*))(\.[0-9]+)?)$/.test(value)) return Number(value);
67
 
81
  if(value == '0' || value ) value = filterFloat( value );
82
  isFloat = ( typeof value === "number" && isFinite(value) );
83
  }
84
+
85
  return isFloat;
86
  }
87
 
101
 
102
 
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  //===============================================================================
106
 
186
 
187
  var self = jQuery(this);
188
  var data = self.serializeArray();
 
 
 
 
189
 
 
190
 
191
 
192
+ var isPopup = self.closest("#efmfb_popup_form").length > 0 ? true : false;
193
 
194
  var publication_agreement = self.find('[name="publication_agreement"]');
195
  var consent_policy = self.find('[name="consent_policy"]');
212
  var hasError = false;
213
 
214
 
215
+
216
  var required = input.attr('efmfb-isrequired');
217
  var input_type = input.closest('.efmfb-form-group').attr('efmfb-inputtype');
218
 
229
  else if( input_type == '1' || input_type == '2' ) // int
230
  {
231
  var isInt = efmfb_isInt( input_val );
232
+
233
  if( !isInt ) hasError = true;
234
  }
235
  else if( input_type == '8' ) // decimal
236
  {
237
  var isFloat = efmfb_isFloat( input_val );
238
+
239
  if( !isFloat ) hasError = true;
240
  }
241
 
261
  {
262
  var ajax_data = self.serialize();
263
  ajax_data += '&json=1';
 
264
 
265
  var ajax_url = action_url+"?"+ajax_data;
266
 
267
 
268
+
269
 
270
  // 1 : must give consent
271
  // 2 : must agree publication
301
  type:'GET',
302
  success: function(data) {
303
 
304
+
305
 
306
  if(typeof data === 'object')
307
  {
315
  if(isPopup)
316
  {
317
  var efmfb_popup_form = jQuery('#efmfb_popup_form');
 
318
 
319
+
 
 
320
  if(efmfb_popup_rotate_in_success === 'checked')
321
  {efmfb_popup_form.attr('class','')
322
  efmfb_popup_form.addClass('animated flipInY');
323
  }
324
 
325
  jQuery('.efmfb-popup-body-container').html(response_msg);
326
+
 
327
  var el = jQuery(".efmfb-popup");
328
  var h = parseInt( jQuery('.efmfb-popup-body-container').outerHeight() )+50;
329
  el.animate({ height: h+"px" }, 400 );
 
 
 
 
330
  }
331
  else
332
  {
333
+
334
  efmfb_msg.html(response_msg);
335
  removeAlertClasses(efmfb_msg);
336
  efmfb_msg.addClass('efmfb-alert-success');
337
+
338
  self.fadeOut('fast', function(){
339
  efmfb_msg.fadeIn();
340
  });
387
 
388
  }
389
 
 
390
 
391
  }
392
  },
395
  });
396
 
397
  callback = function( data ){
398
+
399
 
400
  }
401
 
443
 
444
  }
445
 
446
+
447
 
448
  //======== Show eFlyerMaker Form popup =============
449
  if( efmfb_popup_form_data.length > 0 )
452
 
453
  var efmfb_popup_obj = new Object();
454
 
455
+
456
  efmfb_popup_obj.efmfb_popup_background_color = efmfb_popup_form_data.find('#efmfb_popup_bg_color').val();
457
+
 
 
458
  efmfb_popup_obj.efmfb_popup_overlay_color = efmfb_popup_form_data.find('#efmfb_popup_overlay_color').val();
459
  efmfb_popup_obj.efmfb_popup_overlay_opacity = efmfb_popup_form_data.find('#efmfb_popup_overlay_opacity').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  efmfb_popup_obj.efmfb_popup_animatecss_show = efmfb_popup_form_data.find('#efmfb_popup_animatecss_show').val();
461
  efmfb_popup_obj.efmfb_popup_animatecss_hide = efmfb_popup_form_data.find('#efmfb_popup_animatecss_hide').val();
 
462
  efmfb_popup_obj.efmfb_popup_delay = parseInt( efmfb_popup_form_data.find('#efmfb_popup_delay').val() );
 
463
  efmfb_popup_obj.efmfb_popup_rotate_in_success = efmfb_popup_form_data.find('#efmfb_popup_rotate_in_success').val();
464
 
465
 
 
 
 
 
466
 
467
  }
468