IgniteUp – Coming Soon and Maintenance Mode - Version 2.0

Version Description

  • Mailchimp and Mailpoet integration to save subscribers directly to your already existing mailing lists
  • Added options to add a favicon
  • Added subscribe form support into the Glass template as well
  • Added an admin bar notification when maintenance mode is enabled
  • Fixed duplicate subscriber saving
  • Fixed conflict in the backend with some plugins
Download this release

Release Info

Developer ceylonsystems
Plugin Icon 128x128 IgniteUp – Coming Soon and Maintenance Mode
Version 2.0
Comparing to
See all releases

Code changes from version 1.2.1 to 2.0

Files changed (43) hide show
  1. igniteup.php +3 -3
  2. includes/class-admin-options.php +13 -2
  3. includes/class-coming-soon-creator.php +113 -15
  4. includes/class-mailchimp.php +96 -0
  5. includes/core-import.php +1 -0
  6. includes/css/front-compulsory.css +2 -0
  7. includes/css/front.css +1 -3
  8. includes/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  9. includes/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  10. includes/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  11. includes/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  12. includes/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  13. includes/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  14. includes/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  15. includes/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  16. includes/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  17. includes/css/images/ui-icons_222222_256x240.png +0 -0
  18. includes/css/images/ui-icons_228ef1_256x240.png +0 -0
  19. includes/css/images/ui-icons_ef8c08_256x240.png +0 -0
  20. includes/css/images/ui-icons_ffd27a_256x240.png +0 -0
  21. includes/css/images/ui-icons_ffffff_256x240.png +0 -0
  22. includes/css/main.css +24 -2
  23. includes/js/main.js +37 -10
  24. includes/templates/believe.php +4 -4
  25. includes/templates/believe/believe.php +1 -1
  26. includes/templates/glass.php +13 -6
  27. includes/templates/glass/css/main.css +35 -0
  28. includes/templates/glass/glass.php +61 -1
  29. includes/templates/launcher.php +1 -1
  30. includes/templates/launcher/css/main.css +1 -1
  31. includes/templates/launcher/launcher.php +9 -8
  32. includes/templates/offline.php +4 -4
  33. includes/templates/offline/offline.php +1 -1
  34. includes/views/admin-dashboard.php +13 -5
  35. includes/views/temp-general-options.php +22 -6
  36. includes/views/temp-help.php +70 -0
  37. includes/views/temp-integration-options.php +126 -0
  38. includes/views/temp-template-options.php +4 -2
  39. localization/_cscs_igniteup-si_LK.mo +0 -0
  40. localization/_cscs_igniteup-si_LK.po +111 -14
  41. localization/default.mo +0 -0
  42. localization/default.po +103 -14
  43. readme.txt +34 -4
igniteup.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: IgniteUp
4
  Plugin URI: http://plugins.ceylonsystems.com
5
  Description: IgniteUp is a powerful plugin which allows you to keep your site on launchpad till ignite-up and to build amazing coming soon pages.
6
- Version: 1.2.1
7
  Author: Ceylon Systems
8
- Author URI: http://ceylonsystems.com
9
  License: GPLv2 or later
10
  Text Domain: _cscs_igniteup
11
  Domain Path: ./languages/
@@ -13,4 +13,4 @@
13
 
14
  require_once 'includes/core-import.php';
15
 
16
- new CSComingSoonCreator(__FILE__);
3
  Plugin Name: IgniteUp
4
  Plugin URI: http://plugins.ceylonsystems.com
5
  Description: IgniteUp is a powerful plugin which allows you to keep your site on launchpad till ignite-up and to build amazing coming soon pages.
6
+ Version: 2.0
7
  Author: Ceylon Systems
8
+ Author URI: http://www.ceylonsystems.com
9
  License: GPLv2 or later
10
  Text Domain: _cscs_igniteup
11
  Domain Path: ./languages/
13
 
14
  require_once 'includes/core-import.php';
15
 
16
+ new CSComingSoonCreator(__FILE__, '2.0');
includes/class-admin-options.php CHANGED
@@ -2,12 +2,16 @@
2
 
3
  class CSAdminOptions {
4
 
5
- public static $gener_options = array('enable', 'cs_page_title', 'skipfor', 'powered_by', 'customcss');
 
6
 
7
  public static function registerGeneralOptions() {
8
  foreach (self::$gener_options as $val) {
9
  register_setting('cscs_gener_options', CSCS_GENEROPTION_PREFIX . $val);
10
  }
 
 
 
11
  }
12
 
13
  public static function registerOptions() {
@@ -55,7 +59,14 @@ class CSAdminOptions {
55
  }
56
 
57
  public static function setDefaultOptions() {
58
- //add_option(CSCS_GENEROPTION_PREFIX . 'skipfor', json_encode(array('administrator')));
 
 
 
 
 
 
 
59
  }
60
 
61
  }
2
 
3
  class CSAdminOptions {
4
 
5
+ public static $gener_options = array('enable', 'cs_page_title', 'skipfor', 'powered_by', 'customcss', 'favicon_url');
6
+ private static $integrat_options = array('mailchimp_api', 'mailchimp_list', 'save_email_to', 'enable_integration', 'mailpoet_list');
7
 
8
  public static function registerGeneralOptions() {
9
  foreach (self::$gener_options as $val) {
10
  register_setting('cscs_gener_options', CSCS_GENEROPTION_PREFIX . $val);
11
  }
12
+
13
+ foreach (self::$integrat_options as $ival)
14
+ register_setting('cscs_integrat_options', CSCS_GENEROPTION_PREFIX . $ival);
15
  }
16
 
17
  public static function registerOptions() {
59
  }
60
 
61
  public static function setDefaultOptions() {
62
+
63
+
64
+ }
65
+
66
+ public static function selectOptionIsSelected($saved_val, $current_val) {
67
+ if ($saved_val == $current_val)
68
+ return 'selected="selected"';
69
+ return '';
70
  }
71
 
72
  }
includes/class-coming-soon-creator.php CHANGED
@@ -2,8 +2,8 @@
2
 
3
  class CSComingSoonCreator {
4
 
5
- public function __construct($file = NULL) {
6
- $this->setConstants($file);
7
 
8
  add_action('admin_menu', array($this, 'setMenus'));
9
  add_action('admin_enqueue_scripts', array($this, 'loadAdminScripts'));
@@ -12,16 +12,19 @@ class CSComingSoonCreator {
12
  add_action('admin_init', array('CSAdminOptions', 'registerOptions'));
13
  add_action('admin_init', array('CSAdminOptions', 'registerGeneralOptions'));
14
  add_action('admin_init', array($this, 'removeSubscribers'));
 
15
  add_action("template_include", array($this, 'myThemeRedirect'));
16
  add_action('upload_mimes', array($this, 'customMimes'));
17
  add_action('admin_init', array($this, 'activateTemplate'));
18
  add_action('admin_init', array($this, 'deleteTemplate'));
 
19
  add_action('init', array($this, 'makeTemplateOptionsGlobal'));
20
  register_activation_hook(CSCS_FILE, array('CSAdminOptions', 'setDefaultOptions'));
21
  add_action('wp_ajax_nopriv_subscribe_email', array($this, 'subscribeEmail'));
22
  add_action('wp_ajax_subscribe_email', array($this, 'subscribeEmail'));
23
  add_action('admin_init', array($this, 'createCsvFile'));
24
  add_action('admin_init', array($this, 'createBccFile'));
 
25
  add_action('after_setup_theme', array($this, 'load_languages'));
26
  new CSComingSoonDbMigrations();
27
  }
@@ -33,7 +36,7 @@ class CSComingSoonCreator {
33
  *
34
  */
35
 
36
- private function setConstants($file) {
37
  global $wpdb;
38
  define('CSCS_TEXT_DOMAIN', '_cscs_igniteup');
39
  define('CSCS_DEFTEMP_OPTION', 'cscs_default_template');
@@ -47,6 +50,9 @@ class CSComingSoonCreator {
47
 
48
  if (!empty($file))
49
  define('CSCS_FILE', $file);
 
 
 
50
  }
51
 
52
  /*
@@ -57,9 +63,9 @@ class CSComingSoonCreator {
57
 
58
  public function setMenus() {
59
  add_menu_page(__('CS Coming Soon', CSCS_TEXT_DOMAIN), __('IgniteUp', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_templates', '', '', 39);
60
- add_submenu_page('cscs_templates', 'Templates', __('Templates', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_templates', array('CSAdminOptions', 'templatePage'));
61
- add_submenu_page('cscs_templates', 'Subscribers', __('Subscribers', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_subscribers', array('CSAdminOptions', 'subscribersPage'));
62
- add_submenu_page('cscs_templates', 'Options', __('Options', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_options', array('CSAdminOptions', 'optionsPage'));
63
  }
64
 
65
  private function greenToPublishTheme() {
@@ -73,11 +79,12 @@ class CSComingSoonCreator {
73
  }
74
 
75
  public function loadThemeScripts() {
 
76
  if (!$this->greenToPublishTheme())
77
  return;
78
 
79
  do_action('cscs_theme_scripts_' . CSCS_DEFAULT_TEMPLATE);
80
- wp_enqueue_style('igniteup-front', plugin_dir_url(CSCS_FILE) . 'includes/css/front.css');
81
 
82
  $custom_css = get_option(CSCS_GENEROPTION_PREFIX . 'customcss', '');
83
  wp_add_inline_style('igniteup-front', $custom_css);
@@ -114,16 +121,18 @@ class CSComingSoonCreator {
114
  }
115
 
116
  public function loadAdminScripts() {
117
- wp_enqueue_style('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/css/main.css', array(), '1.2.1');
118
- wp_enqueue_style('wp-color-picker');
119
- wp_enqueue_script('jquery');
120
- wp_enqueue_script('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/js/main.js', array('jquery', 'wp-color-picker'), '1.2.1', true);
121
- wp_enqueue_style('rockyton-icon', plugin_dir_url(CSCS_FILE) . 'includes/css/icons/styles.css');
122
 
123
  if (isset($_GET['page']) && $_GET['page'] == 'cscs_options') {
 
 
 
124
  wp_enqueue_script('jquery-form', false, array('jquery'));
125
  wp_enqueue_script('jquery-ui-datepicker');
126
  wp_enqueue_style('jquery-style', plugin_dir_url(CSCS_FILE) . 'includes/css/jquery-ui.css');
 
 
127
  }
128
  }
129
 
@@ -200,9 +209,22 @@ class CSComingSoonCreator {
200
  return FALSE;
201
  }
202
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  public function subscribeEmail() {
204
- if (!filter_var(($_REQUEST['cs_email']), FILTER_VALIDATE_EMAIL)) {
205
- echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => 'Invalied email'));
 
206
  wp_die();
207
  }
208
  $name = '';
@@ -210,11 +232,67 @@ class CSComingSoonCreator {
210
  $name = $_REQUEST['cs_name'];
211
 
212
  global $wpdb;
213
- $wpdb->insert(CSCS_DBTABLE_PREFIX . CSCS_DBTABLE_SUBSCRIPTS, array('name' => $name, 'email' => $_REQUEST['cs_email']));
 
 
 
 
 
 
 
 
214
  echo json_encode(array('status' => TRUE, 'error' => FALSE));
215
  wp_die();
216
  }
217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  private function convertToCsv($input_array, $output_file_name, $delimiter) {
219
  $temp_memory = fopen('php://memory', 'w');
220
  foreach ($input_array as $line) {
@@ -276,4 +354,24 @@ class CSComingSoonCreator {
276
  load_plugin_textdomain(CSCS_TEXT_DOMAIN, false, dirname(plugin_basename(CSCS_FILE)) . '/localization/');
277
  }
278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  }
2
 
3
  class CSComingSoonCreator {
4
 
5
+ public function __construct($file = NULL, $version = NULL) {
6
+ $this->setConstants($file, $version);
7
 
8
  add_action('admin_menu', array($this, 'setMenus'));
9
  add_action('admin_enqueue_scripts', array($this, 'loadAdminScripts'));
12
  add_action('admin_init', array('CSAdminOptions', 'registerOptions'));
13
  add_action('admin_init', array('CSAdminOptions', 'registerGeneralOptions'));
14
  add_action('admin_init', array($this, 'removeSubscribers'));
15
+ add_action('wp_head', array($this, 'addHeaderStatics'));
16
  add_action("template_include", array($this, 'myThemeRedirect'));
17
  add_action('upload_mimes', array($this, 'customMimes'));
18
  add_action('admin_init', array($this, 'activateTemplate'));
19
  add_action('admin_init', array($this, 'deleteTemplate'));
20
+ add_action('admin_init', array($this, 'showWelcomeMessage'));
21
  add_action('init', array($this, 'makeTemplateOptionsGlobal'));
22
  register_activation_hook(CSCS_FILE, array('CSAdminOptions', 'setDefaultOptions'));
23
  add_action('wp_ajax_nopriv_subscribe_email', array($this, 'subscribeEmail'));
24
  add_action('wp_ajax_subscribe_email', array($this, 'subscribeEmail'));
25
  add_action('admin_init', array($this, 'createCsvFile'));
26
  add_action('admin_init', array($this, 'createBccFile'));
27
+ add_action('admin_bar_menu', array($this, 'showAdminBarMenu'), 1000);
28
  add_action('after_setup_theme', array($this, 'load_languages'));
29
  new CSComingSoonDbMigrations();
30
  }
36
  *
37
  */
38
 
39
+ private function setConstants($file, $version = NULL) {
40
  global $wpdb;
41
  define('CSCS_TEXT_DOMAIN', '_cscs_igniteup');
42
  define('CSCS_DEFTEMP_OPTION', 'cscs_default_template');
50
 
51
  if (!empty($file))
52
  define('CSCS_FILE', $file);
53
+
54
+ if (!empty($version))
55
+ define('CSCS_CURRENT_VERSION', $version);
56
  }
57
 
58
  /*
63
 
64
  public function setMenus() {
65
  add_menu_page(__('CS Coming Soon', CSCS_TEXT_DOMAIN), __('IgniteUp', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_templates', '', '', 39);
66
+ add_submenu_page('cscs_templates', __('Templates', CSCS_TEXT_DOMAIN), __('Templates', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_templates', array('CSAdminOptions', 'templatePage'));
67
+ add_submenu_page('cscs_templates', __('Subscribers', CSCS_TEXT_DOMAIN), __('Subscribers', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_subscribers', array('CSAdminOptions', 'subscribersPage'));
68
+ add_submenu_page('cscs_templates', __('Options', CSCS_TEXT_DOMAIN), __('Options', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_options', array('CSAdminOptions', 'optionsPage'));
69
  }
70
 
71
  private function greenToPublishTheme() {
79
  }
80
 
81
  public function loadThemeScripts() {
82
+ wp_enqueue_style('igniteup-front-compulsory', plugin_dir_url(CSCS_FILE) . 'includes/css/front-compulsory.css', array(), CSCS_CURRENT_VERSION);
83
  if (!$this->greenToPublishTheme())
84
  return;
85
 
86
  do_action('cscs_theme_scripts_' . CSCS_DEFAULT_TEMPLATE);
87
+ wp_enqueue_style('igniteup-front', plugin_dir_url(CSCS_FILE) . 'includes/css/front.css', array(), CSCS_CURRENT_VERSION);
88
 
89
  $custom_css = get_option(CSCS_GENEROPTION_PREFIX . 'customcss', '');
90
  wp_add_inline_style('igniteup-front', $custom_css);
121
  }
122
 
123
  public function loadAdminScripts() {
124
+ wp_enqueue_style('rockyton-icon', plugin_dir_url(CSCS_FILE) . 'includes/css/icons/styles.css', array(), CSCS_CURRENT_VERSION);
125
+ wp_enqueue_style('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/css/main.css', array(), CSCS_CURRENT_VERSION);
 
 
 
126
 
127
  if (isset($_GET['page']) && $_GET['page'] == 'cscs_options') {
128
+ wp_enqueue_style('wp-color-picker');
129
+ wp_enqueue_script('jquery');
130
+
131
  wp_enqueue_script('jquery-form', false, array('jquery'));
132
  wp_enqueue_script('jquery-ui-datepicker');
133
  wp_enqueue_style('jquery-style', plugin_dir_url(CSCS_FILE) . 'includes/css/jquery-ui.css');
134
+ wp_enqueue_script('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/js/main.js', array('jquery', 'wp-color-picker'), CSCS_CURRENT_VERSION, true);
135
+ wp_enqueue_media();
136
  }
137
  }
138
 
209
  return FALSE;
210
  }
211
 
212
+ public function showAdminBarMenu() {
213
+ if (!$this->checkIfEnabled())
214
+ return;
215
+
216
+ global $wp_admin_bar;
217
+
218
+ if (!is_super_admin() || !is_admin_bar_showing())
219
+ return;
220
+
221
+ $wp_admin_bar->add_menu(array('id' => 'igniteup_enabled', 'title' => __('IgniteUp: Enabled', CSCS_TEXT_DOMAIN), 'href' => '#'));
222
+ }
223
+
224
  public function subscribeEmail() {
225
+ $email = trim($_REQUEST['cs_email']);
226
+ if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
227
+ echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => '<strong>Invalid email address.</strong> Please enter again.'));
228
  wp_die();
229
  }
230
  $name = '';
232
  $name = $_REQUEST['cs_name'];
233
 
234
  global $wpdb;
235
+
236
+ $wpdb->get_results("SELECT id FROM " . CSCS_DBTABLE_PREFIX . CSCS_DBTABLE_SUBSCRIPTS . " WHERE email = '$email'", 'ARRAY_A');
237
+ if ($wpdb->num_rows > 0) {
238
+ echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => 'Email address is <strong>already exists</strong>!'));
239
+ wp_die();
240
+ }
241
+
242
+ $wpdb->insert(CSCS_DBTABLE_PREFIX . CSCS_DBTABLE_SUBSCRIPTS, array('name' => $name, 'email' => $email));
243
+ $this->subscribeToMailingLists($name, $email);
244
  echo json_encode(array('status' => TRUE, 'error' => FALSE));
245
  wp_die();
246
  }
247
 
248
+ private function subscribeToMailingLists($name, $email) {
249
+ $enabled = get_option(CSCS_GENEROPTION_PREFIX . 'enable_integration');
250
+ if ($enabled !== '1')
251
+ return;
252
+
253
+ $cs_name_int_save_to_val = get_option(CSCS_GENEROPTION_PREFIX . 'save_email_to', '');
254
+
255
+ switch ($cs_name_int_save_to_val) {
256
+ case 'mailchimp':
257
+ $cs_mailchimp_api_key = get_option(CSCS_GENEROPTION_PREFIX . 'mailchimp_api', '');
258
+ if (empty($cs_mailchimp_api_key))
259
+ return;
260
+
261
+ $cs_mailchimp_list = get_option(CSCS_GENEROPTION_PREFIX . 'mailchimp_list', '');
262
+ if (empty($cs_mailchimp_list))
263
+ return;
264
+
265
+ $MailChimp = new IgniteUpMailChimp($cs_mailchimp_api_key);
266
+ $return = $MailChimp->call('lists/subscribe', array(
267
+ 'id' => $cs_mailchimp_list,
268
+ 'email' => array('email' => $email)
269
+ ));
270
+ update_option(CSCS_GENEROPTION_PREFIX . 'integrat_return', serialize($return));
271
+ break;
272
+ case 'mailpoet':
273
+ $cs_mailpet_list_val = get_option(CSCS_GENEROPTION_PREFIX . 'mailpoet_list', '');
274
+
275
+ if (empty($cs_mailpet_list_val))
276
+ return;
277
+
278
+ $user_data = array(
279
+ 'email' => $email,
280
+ 'firstname' => $name
281
+ );
282
+
283
+ $data_subscriber = array(
284
+ 'user' => $user_data,
285
+ 'user_list' => array('list_ids' => array($cs_mailpet_list_val))
286
+ );
287
+
288
+ $helper_user = WYSIJA::get('user', 'helper');
289
+ $helper_user->addSubscriber($data_subscriber);
290
+ break;
291
+ default:
292
+ break;
293
+ }
294
+ }
295
+
296
  private function convertToCsv($input_array, $output_file_name, $delimiter) {
297
  $temp_memory = fopen('php://memory', 'w');
298
  foreach ($input_array as $line) {
354
  load_plugin_textdomain(CSCS_TEXT_DOMAIN, false, dirname(plugin_basename(CSCS_FILE)) . '/localization/');
355
  }
356
 
357
+ public function showWelcomeMessage() {
358
+ if (defined('DOING_AJAX') && DOING_AJAX)
359
+ return;
360
+
361
+ // set options for showing welcome message.
362
+ $prev_version = get_option(CSCS_GENEROPTION_PREFIX . 'version', '1.0');
363
+ if (floatval(CSCS_CURRENT_VERSION) !== floatval($prev_version) && floatval(CSCS_CURRENT_VERSION) > floatval($prev_version)){
364
+ update_option(CSCS_GENEROPTION_PREFIX . 'version', '' . CSCS_CURRENT_VERSION);
365
+ wp_redirect(admin_url('admin.php?page=cscs_options&section=help'));
366
+ exit;
367
+ }
368
+ //-------------
369
+ }
370
+
371
+ public function addHeaderStatics() {
372
+ $favicon_url = get_option(CSCS_GENEROPTION_PREFIX . 'favicon_url');
373
+ if (!empty($favicon_url))
374
+ echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
375
+ }
376
+
377
  }
includes/class-mailchimp.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /**
5
+ * Super-simple, minimum abstraction MailChimp API v2 wrapper
6
+ *
7
+ * Uses curl if available, falls back to file_get_contents and HTTP stream.
8
+ * This probably has more comments than code.
9
+ *
10
+ * Contributors:
11
+ * Michael Minor <me@pixelbacon.com>
12
+ * Lorna Jane Mitchell, github.com/lornajane
13
+ *
14
+ * @author Drew McLellan <drew.mclellan@gmail.com>
15
+ * @version 1.1.1
16
+ */
17
+ class IgniteUpMailChimp
18
+ {
19
+ private $api_key;
20
+ private $api_endpoint = 'https://<dc>.api.mailchimp.com/2.0';
21
+ private $verify_ssl = false;
22
+
23
+ /**
24
+ * Create a new instance
25
+ * @param string $api_key Your MailChimp API key
26
+ */
27
+ public function __construct($api_key)
28
+ {
29
+ $this->api_key = $api_key;
30
+ list(, $datacentre) = explode('-', $this->api_key);
31
+ $this->api_endpoint = str_replace('<dc>', $datacentre, $this->api_endpoint);
32
+ }
33
+
34
+ /**
35
+ * Validates MailChimp API Key
36
+ */
37
+ public function validateApiKey()
38
+ {
39
+ $request = $this->call('helper/ping');
40
+ return !empty($request);
41
+ }
42
+
43
+ /**
44
+ * Call an API method. Every request needs the API key, so that is added automatically -- you don't need to pass it in.
45
+ * @param string $method The API method to call, e.g. 'lists/list'
46
+ * @param array $args An array of arguments to pass to the method. Will be json-encoded for you.
47
+ * @return array Associative array of json decoded API response.
48
+ */
49
+ public function call($method, $args = array(), $timeout = 10)
50
+ {
51
+ return $this->makeRequest($method, $args, $timeout);
52
+ }
53
+
54
+ /**
55
+ * Performs the underlying HTTP request. Not very exciting
56
+ * @param string $method The API method to be called
57
+ * @param array $args Assoc array of parameters to be passed
58
+ * @return array Assoc array of decoded result
59
+ */
60
+ private function makeRequest($method, $args = array(), $timeout = 10)
61
+ {
62
+ $args['apikey'] = $this->api_key;
63
+
64
+ $url = $this->api_endpoint.'/'.$method.'.json';
65
+ $json_data = json_encode($args);
66
+
67
+ if (function_exists('curl_init') && function_exists('curl_setopt')) {
68
+ $ch = curl_init();
69
+ curl_setopt($ch, CURLOPT_URL, $url);
70
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
71
+ curl_setopt($ch, CURLOPT_USERAGENT, 'PHP-MCAPI/2.0');
72
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
73
+ curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
74
+ curl_setopt($ch, CURLOPT_POST, true);
75
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->verify_ssl);
76
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
77
+ curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
78
+ $result = curl_exec($ch);
79
+ curl_close($ch);
80
+ } else {
81
+ $result = file_get_contents($url, null, stream_context_create(array(
82
+ 'http' => array(
83
+ 'protocol_version' => 1.1,
84
+ 'user_agent' => 'PHP-MCAPI/2.0',
85
+ 'method' => 'POST',
86
+ 'header' => "Content-type: application/json\r\n".
87
+ "Connection: close\r\n" .
88
+ "Content-length: " . strlen($json_data) . "\r\n",
89
+ 'content' => $json_data,
90
+ ),
91
+ )));
92
+ }
93
+
94
+ return $result ? json_decode($result, true) : false;
95
+ }
96
+ }
includes/core-import.php CHANGED
@@ -3,6 +3,7 @@
3
  include 'class-coming-soon-creator.php';
4
  include 'class-admin-options.php';
5
  include 'class-dbmigrations.php';
 
6
 
7
  /*
8
  *
3
  include 'class-coming-soon-creator.php';
4
  include 'class-admin-options.php';
5
  include 'class-dbmigrations.php';
6
+ include 'class-mailchimp.php';
7
 
8
  /*
9
  *
includes/css/front-compulsory.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ #wp-admin-bar-igniteup_enabled{background-color: #C70000 !important;}
2
+ #wp-admin-bar-igniteup_enabled:hover a{background: #A20A0A !important;color: #FFFFFF !important;}
includes/css/front.css CHANGED
@@ -1,3 +1 @@
1
- body::before{
2
- background: none !important;
3
- }
1
+ body::before{background: none !important;}
 
 
includes/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png ADDED
Binary file
includes/css/images/ui-bg_diagonals-thick_20_666666_40x40.png ADDED
Binary file
includes/css/images/ui-bg_flat_10_000000_40x100.png ADDED
Binary file
includes/css/images/ui-bg_glass_100_f6f6f6_1x400.png ADDED
Binary file
includes/css/images/ui-bg_glass_100_fdf5ce_1x400.png ADDED
Binary file
includes/css/images/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
includes/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png ADDED
Binary file
includes/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png ADDED
Binary file
includes/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png ADDED
Binary file
includes/css/images/ui-icons_222222_256x240.png ADDED
Binary file
includes/css/images/ui-icons_228ef1_256x240.png ADDED
Binary file
includes/css/images/ui-icons_ef8c08_256x240.png ADDED
Binary file
includes/css/images/ui-icons_ffd27a_256x240.png ADDED
Binary file
includes/css/images/ui-icons_ffffff_256x240.png ADDED
Binary file
includes/css/main.css CHANGED
@@ -10,8 +10,8 @@
10
  #cscs-templates .template-box .template-footer form{display: inline;}
11
 
12
  .cscs_message{padding: 20px !important; margin: 5px 0 15px;background: #fff; border-left: 4px solid #7ad03a; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);}
13
- .cscs-nav{border-bottom: 1px solid #ccc;padding-bottom: 0;padding-left: 10px;}
14
- .cscs-nav-tabs{border: 1px solid #ccc;border-bottom: none;background: #e4e4e4;color: #555;display: inline-block;text-decoration: none;margin: -4px 4px -1px 0;padding: 6px 10px;font-weight: 700;font-size: 15px;line-height: 24px;}
15
  .cscs-nav-tabs:hover{background-color: #fff;color: #464646;}
16
  .cscs-nav-tabs.active, .cscs-nav-tabs.active:hover{border-bottom: 1px solid #f1f1f1;background: #f1f1f1;color: #000;}
17
  .clearfix{clear:both;}
@@ -20,8 +20,30 @@
20
 
21
  body.igniteup_page_cscs_options #saveResult{margin-left: 20px;}
22
  body.igniteup_page_cscs_options .reset-igniteup{margin-left: 0;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  @media screen and (max-width:767px){
 
 
25
  #cscs-templates .template-box{width: 80%;position: relative; margin: 0 auto 20px auto; float: inherit;}
26
  #cscs-templates .template-box:nth-child(3n) {margin-right: auto;}
27
  }
10
  #cscs-templates .template-box .template-footer form{display: inline;}
11
 
12
  .cscs_message{padding: 20px !important; margin: 5px 0 15px;background: #fff; border-left: 4px solid #7ad03a; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);}
13
+ h2.cscs-nav{border-bottom: 1px solid #ccc;padding-bottom: 0;padding-left: 10px;}
14
+ .cscs-nav-tabs{border: 1px solid #ccc;border-bottom: none;background: #e4e4e4;color: #555;display: inline-block;text-decoration: none;margin: -4px 2px -1px -2px;padding: 6px 10px;font-weight: 700;font-size: 15px;line-height: 24px;}
15
  .cscs-nav-tabs:hover{background-color: #fff;color: #464646;}
16
  .cscs-nav-tabs.active, .cscs-nav-tabs.active:hover{border-bottom: 1px solid #f1f1f1;background: #f1f1f1;color: #000;}
17
  .clearfix{clear:both;}
20
 
21
  body.igniteup_page_cscs_options #saveResult{margin-left: 20px;}
22
  body.igniteup_page_cscs_options .reset-igniteup{margin-left: 0;}
23
+ body.igniteup_page_cscs_options .cs-hidden-section{display: none;}
24
+
25
+ .igniteup_page_cscs_options .update-page{padding: 20px;}
26
+ .igniteup_page_cscs_options .update-page h1.title{color:#0073AA;}
27
+ .igniteup_page_cscs_options .update-page h2.subtitle{margin-bottom: 30px;}
28
+
29
+ .igniteup_page_cscs_options .update-page .widget-wrapper{display: block;}
30
+ .igniteup_page_cscs_options .update-page .help-page-col{float:left;margin-right: 2%; width: 32%;}
31
+ .igniteup_page_cscs_options .update-page .help-page-widget{background-color: #FFF; margin-bottom: 20px;padding: 20px;}
32
+ .igniteup_page_cscs_options .update-page .help-page-col-last{margin-right: 0;}
33
+ .igniteup_page_cscs_options .update-page .help-page-widget h2{font-weight: 600;}
34
+ .igniteup_page_cscs_options .update-page .help-page-widget p{font-size: 16px;color: #777;}
35
+ .igniteup_page_cscs_options .update-page .changelog h3{color:#539030;}
36
+ .igniteup_page_cscs_options .update-page .changelog .changelog-main-list li.main-item{font-size: 21px; color: #0073AA; margin-bottom: 20px;display: inline-block;}
37
+ .igniteup_page_cscs_options .update-page .changelog .changelog-main-list li.main-item span{font-size: 13px;color: #49E21F;font-style: italic;}
38
+ .igniteup_page_cscs_options .update-page .changelog .changelog-sub-list{margin-top: 10px; margin-left: 20px;list-style: square;line-height: 1.5;}
39
+ .igniteup_page_cscs_options .update-page .changelog .changelog-sub-list li{font-size: 16px; color: #777;}
40
+
41
+ #wp-admin-bar-igniteup_enabled{background-color: #C70000 !important;}
42
+ #wp-admin-bar-igniteup_enabled:hover a{background: #A20A0A !important;color: #FFFFFF !important;}
43
 
44
  @media screen and (max-width:767px){
45
+ .igniteup_page_cscs_options .update-page .help-page-col{float:left;margin-right: 0; width: 100%;}
46
+
47
  #cscs-templates .template-box{width: 80%;position: relative; margin: 0 auto 20px auto; float: inherit;}
48
  #cscs-templates .template-box:nth-child(3n) {margin-right: auto;}
49
  }
includes/js/main.js CHANGED
@@ -56,28 +56,34 @@ jQuery(document).ready(function () {
56
  jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').attr('disabled', 'disabled');
57
  jQuery('#saveResult').html("<span id='saveMessage' class='successModal'></span>");
58
  jQuery('#saveMessage').append("<span>Saving . . .</span>").show();
59
- prwindow = window.open('', 'igniteup');
60
  jQuery('#igniteup-template-options').ajaxSubmit({
61
  success: function () {
62
  jQuery('#saveMessage').html("<span>" + jQuery('#saveResult').data('text') + "</span>").show();
63
  jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
64
- var theurl = jQuery('body.igniteup_page_cscs_options .preview-igniteup').data('forward');
65
  prwindow.location = theurl;
66
- setTimeout("jQuery('#saveMessage').hide('slow');", 3000);
67
  },
68
  timeout: 10000,
69
- error: function(){
70
- jQuery('#saveMessage').hide('slow');
71
- alert('Saving process reached timeout! Please try again.');
72
- jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
73
  }
74
- });
75
  return false;
76
  });
77
  });
78
 
 
 
 
 
 
 
79
  jQuery(document).on('click', 'body.igniteup_page_cscs_options .reset-igniteup', function (e) {
80
- if(!confirm("Are you sure to reset template options to defaults?"))
81
  return false;
82
  jQuery('.reset-supported').each(function () {
83
  var defval_ = jQuery(this).data('defval');
@@ -85,4 +91,25 @@ jQuery(document).on('click', 'body.igniteup_page_cscs_options .reset-igniteup',
85
  });
86
  jQuery('#igniteup-template-options').submit();
87
  e.preventDefault();
88
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').attr('disabled', 'disabled');
57
  jQuery('#saveResult').html("<span id='saveMessage' class='successModal'></span>");
58
  jQuery('#saveMessage').append("<span>Saving . . .</span>").show();
59
+ prwindow = window.open('', 'igniteup');
60
  jQuery('#igniteup-template-options').ajaxSubmit({
61
  success: function () {
62
  jQuery('#saveMessage').html("<span>" + jQuery('#saveResult').data('text') + "</span>").show();
63
  jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
64
+ var theurl = jQuery('body.igniteup_page_cscs_options .preview-igniteup').data('forward');
65
  prwindow.location = theurl;
66
+ setTimeout("jQuery('#saveMessage').hide('slow');", 3000);
67
  },
68
  timeout: 10000,
69
+ error: function () {
70
+ jQuery('#saveMessage').hide('slow');
71
+ alert('Saving process reached timeout! Please try again.');
72
+ jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
73
  }
74
+ });
75
  return false;
76
  });
77
  });
78
 
79
+ /*
80
+ *
81
+ * Reset defaults button action
82
+ *
83
+ */
84
+
85
  jQuery(document).on('click', 'body.igniteup_page_cscs_options .reset-igniteup', function (e) {
86
+ if (!confirm("Are you sure to reset template options to defaults?"))
87
  return false;
88
  jQuery('.reset-supported').each(function () {
89
  var defval_ = jQuery(this).data('defval');
91
  });
92
  jQuery('#igniteup-template-options').submit();
93
  e.preventDefault();
94
+ });
95
+
96
+ /*
97
+ *
98
+ * Integration page manage sections
99
+ *
100
+ */
101
+
102
+ jQuery(document).ready(function () {
103
+ showHideIntegrationSection(true);
104
+ });
105
+
106
+ jQuery(document).on('change', '#cs-selected-provider', function () {
107
+ showHideIntegrationSection();
108
+ });
109
+
110
+ function showHideIntegrationSection(load) {
111
+ if (load !== true)
112
+ jQuery('.cs-hidden-section').slideUp();
113
+ var selected_val = jQuery('#cs-selected-provider').val();
114
+ jQuery('#cs-section-' + selected_val).slideDown();
115
+ }
includes/templates/believe.php CHANGED
@@ -87,10 +87,10 @@ $options = array(
87
  $cscs_templates['believe'] = $options;
88
 
89
  function cscs_belive_theme_scripts(){
90
- wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE));
91
- wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE));
92
- wp_enqueue_style('font-biryani', plugins_url('includes/css/font-biryani.css', CSCS_FILE));
93
- wp_enqueue_style('believe', plugins_url('believe/css/main.css', __FILE__));
94
  }
95
 
96
  add_action('cscs_theme_scripts_believe', 'cscs_belive_theme_scripts');
87
  $cscs_templates['believe'] = $options;
88
 
89
  function cscs_belive_theme_scripts(){
90
+ wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
91
+ wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
92
+ wp_enqueue_style('font-biryani', plugins_url('includes/css/font-biryani.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
93
+ wp_enqueue_style('believe', plugins_url('believe/css/main.css', __FILE__), array(), CSCS_CURRENT_VERSION);
94
  }
95
 
96
  add_action('cscs_theme_scripts_believe', 'cscs_belive_theme_scripts');
includes/templates/believe/believe.php CHANGED
@@ -2,7 +2,7 @@
2
  <!DOCTYPE html>
3
  <html lang="en">
4
  <head>
5
- <title> <?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready we are ready to launch.'); ?> </title>
6
  <meta charset="UTF-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
2
  <!DOCTYPE html>
3
  <html lang="en">
4
  <head>
5
+ <title> <?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | '. get_bloginfo('name')); ?> </title>
6
  <meta charset="UTF-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
includes/templates/glass.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  global $cscs_templates;
3
  $cscs_templates['glass'] = array(
4
  'name' => 'Glass',
@@ -52,6 +53,12 @@ $cscs_templates['glass'] = array(
52
  'placeholder' => 'Paragraph Text',
53
  'description' => 'This will be the paragraph text, you can use html tags here.',
54
  ),
 
 
 
 
 
 
55
  'social-twitter' => array(
56
  'type' => 'text',
57
  'label' => 'Twitter',
@@ -115,16 +122,16 @@ $cscs_templates['glass'] = array(
115
  'placeholder' => 'http://linkedin.com/ceylonsystems',
116
  'description' => 'Enter the Linkedin URL here',
117
  ),
118
-
119
  )
120
  );
121
 
122
  function cscs_glass_theme_scripts() {
123
- wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE));
124
- wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE));
125
- wp_enqueue_style('igniteup-fontawesome', plugins_url('includes/css/font-awesome.min.css', CSCS_FILE));
126
- wp_enqueue_style('font-opensans', plugins_url('includes/css/font-opensans.css', CSCS_FILE));
127
- wp_enqueue_style('igniteup-glass', plugins_url('glass/css/main.css', __FILE__));
 
128
  }
129
 
130
  add_action('cscs_theme_scripts_glass', 'cscs_glass_theme_scripts');
1
  <?php
2
+
3
  global $cscs_templates;
4
  $cscs_templates['glass'] = array(
5
  'name' => 'Glass',
53
  'placeholder' => 'Paragraph Text',
54
  'description' => 'This will be the paragraph text, you can use html tags here.',
55
  ),
56
+ 'subscribe' => array(
57
+ 'type' => 'checkbox',
58
+ 'label' => 'Show Subscribe Form',
59
+ 'def' => '1',
60
+ 'description' => 'Show/Hide Email Subscribe Form',
61
+ ),
62
  'social-twitter' => array(
63
  'type' => 'text',
64
  'label' => 'Twitter',
122
  'placeholder' => 'http://linkedin.com/ceylonsystems',
123
  'description' => 'Enter the Linkedin URL here',
124
  ),
 
125
  )
126
  );
127
 
128
  function cscs_glass_theme_scripts() {
129
+ wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
130
+ wp_enqueue_style('animate', plugins_url('includes/css/animate.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
131
+ wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
132
+ wp_enqueue_style('igniteup-fontawesome', plugins_url('includes/css/font-awesome.min.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
133
+ wp_enqueue_style('font-opensans', plugins_url('includes/css/font-opensans.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
134
+ wp_enqueue_style('igniteup-glass', plugins_url('glass/css/main.css', __FILE__), array(), CSCS_CURRENT_VERSION);
135
  }
136
 
137
  add_action('cscs_theme_scripts_glass', 'cscs_glass_theme_scripts');
includes/templates/glass/css/main.css CHANGED
@@ -39,6 +39,41 @@
39
  .glass-wrapper .social-icon>li>a:hover{
40
  text-decoration: none;
41
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  @media (max-width:768px){
43
  .glass-wrapper p{
44
  font-size: 16px;
39
  .glass-wrapper .social-icon>li>a:hover{
40
  text-decoration: none;
41
  }
42
+ .form-control {
43
+ background: rgba(255, 255, 255, 0.14);
44
+ margin: 5px 0;
45
+ border-radius: 0;
46
+ height: 40px;
47
+ color: #fff;
48
+ }
49
+ .form-control::-webkit-input-placeholder {
50
+ color: rgba(255,255,255,0.5);
51
+ }
52
+
53
+ .form-control:-moz-placeholder { /* Firefox 18- */
54
+ color: rgba(255,255,255,0.5);
55
+ }
56
+
57
+ .form-control::-moz-placeholder { /* Firefox 19+ */
58
+ color: rgba(255,255,255,0.5);
59
+ }
60
+
61
+ .form-control:-ms-input-placeholder {
62
+ color: rgba(255,255,255,0.5);
63
+ }
64
+ #subscribe-btn{
65
+ background: rgba(255, 255, 255, 0.49);
66
+ border-radius: 0;
67
+ border: 1px solid rgba(255, 255, 255, 0.49);
68
+ color: #fff;
69
+ height: 40px;
70
+ margin: 5px 0;
71
+ border-left: 0;
72
+ }
73
+ #subscribe-btn:hover{
74
+ background: rgba(255, 255, 255, 0.69);
75
+ color:#666;
76
+ }
77
  @media (max-width:768px){
78
  .glass-wrapper p{
79
  font-size: 16px;
includes/templates/glass/glass.php CHANGED
@@ -6,7 +6,7 @@
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
- <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready we are ready to launch.'); ?></title>
10
 
11
  <style>
12
  a{
@@ -42,6 +42,27 @@
42
  <img class="img-responsive logo" src="<?php echo $the_cs_template_options['logo']; ?>">
43
  <h2 class="text-center"> <?php echo $the_cs_template_options['title_top']; ?></h2>
44
  <p class="text-center"><?php echo $the_cs_template_options['paragraph']; ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <ul class="social-icon">
46
  <?php
47
  $twitter = $the_cs_template_options['social-twitter'];
@@ -75,6 +96,45 @@
75
  </div>
76
  </div>
77
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  <?php wp_footer(); ?>
79
  </body>
80
  </html>
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
+ <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | '. get_bloginfo('name')); ?></title>
10
 
11
  <style>
12
  a{
42
  <img class="img-responsive logo" src="<?php echo $the_cs_template_options['logo']; ?>">
43
  <h2 class="text-center"> <?php echo $the_cs_template_options['title_top']; ?></h2>
44
  <p class="text-center"><?php echo $the_cs_template_options['paragraph']; ?></p>
45
+ <div class="thankyou hidden" style="margin-bottom: -70px;">
46
+ <div class="alert alert-success alert-dismissible" role="alert">
47
+ <div class="text-center"> <strong>Thank you! </strong> Your email added successfully!</div>
48
+ </div>
49
+ </div>
50
+ <div class="error-msg hidden" style="margin-top: 0px;">
51
+ <div class="alert alert-danger alert-dismissible" role="alert">
52
+ <div class="text-center" id='error-msg-text'></div>
53
+ </div>
54
+ </div>
55
+ <div class="row subscribe <?php echo (($the_cs_template_options['subscribe']) == 1) ? '' : 'hidden' ?>">
56
+ <div class="col-sm-8 col-sm-offset-2">
57
+ <div class="subscribe input-group">
58
+ <input type="email" id="cs_email" class="form-control" placeholder="Your email address">
59
+ <span class="input-group-btn">
60
+ <button class="btn btn-default subscribe-btn" id="subscribe-btn" type="button">Subscribe</button>
61
+ </span>
62
+ </div>
63
+ </div>
64
+ </div>
65
+
66
  <ul class="social-icon">
67
  <?php
68
  $twitter = $the_cs_template_options['social-twitter'];
96
  </div>
97
  </div>
98
  </div>
99
+ <script>
100
+ jQuery('.subscribe-btn').on('click', function () {
101
+ subscribe();
102
+ });
103
+ jQuery('#cs_email').on('keypress', function (e) {
104
+ if (e.which == 13) {
105
+ subscribe();
106
+ }
107
+ });
108
+
109
+ function subscribe() {
110
+ jQuery.ajax({
111
+ url: '<?php echo admin_url('admin-ajax.php'); ?>',
112
+ data: {action: 'subscribe_email', cs_email: jQuery("#cs_email").val()},
113
+ dataType: 'json',
114
+ success: function (data) {
115
+ if (data['error']) {
116
+ jQuery('.error-msg #error-msg-text').html(data['message']);
117
+ jQuery('.error-msg').removeClass('hidden');
118
+ jQuery('.error-msg').addClass('animated fadeIn');
119
+ function hideMsg() {
120
+ jQuery('.error-msg').addClass('fadeOut');
121
+ }
122
+ setTimeout(hideMsg, 4000);
123
+ function showMsg() {
124
+ jQuery('.error-msg').addClass('hidden');
125
+ jQuery('.error-msg').removeClass('animated fadeIn fadeOut');
126
+ }
127
+ setTimeout(showMsg, 4500);
128
+ }
129
+ else {
130
+ jQuery('.subscribe').addClass('animated fadeOutDown');
131
+ jQuery('.thankyou').removeClass('hidden');
132
+ jQuery('.thankyou').addClass('animated fadeIn');
133
+ }
134
+ }
135
+ });
136
+ }
137
+ </script>
138
  <?php wp_footer(); ?>
139
  </body>
140
  </html>
includes/templates/launcher.php CHANGED
@@ -152,7 +152,7 @@ function cscs_launcher_theme_scripts(){
152
  wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE));
153
  wp_enqueue_style('animate', plugins_url('includes/css/animate.css', CSCS_FILE));
154
  wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE));
155
- wp_enqueue_style('launcher', plugins_url('launcher/css/main.css', __FILE__));
156
  wp_enqueue_style('launcher-icons', plugins_url('includes/css/icons/styles.css', CSCS_FILE));
157
  wp_enqueue_script('jquery');
158
  wp_enqueue_script('jquery-countdown', plugins_url('launcher/js/jquery.countdown.js', __FILE__), array('jquery'));
152
  wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE));
153
  wp_enqueue_style('animate', plugins_url('includes/css/animate.css', CSCS_FILE));
154
  wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE));
155
+ wp_enqueue_style('launcher', plugins_url('launcher/css/main.css', __FILE__), array(), CSCS_CURRENT_VERSION);
156
  wp_enqueue_style('launcher-icons', plugins_url('includes/css/icons/styles.css', CSCS_FILE));
157
  wp_enqueue_script('jquery');
158
  wp_enqueue_script('jquery-countdown', plugins_url('launcher/js/jquery.countdown.js', __FILE__), array('jquery'));
includes/templates/launcher/css/main.css CHANGED
@@ -65,7 +65,7 @@ a:hover, a:focus{
65
  .text-box {
66
  border: none;
67
  border-radius: 0;
68
- padding: 22px 18px;
69
  }
70
  .subscribe-btn{
71
  padding: 12px 23px;
65
  .text-box {
66
  border: none;
67
  border-radius: 0;
68
+ height:44px;
69
  }
70
  .subscribe-btn{
71
  padding: 12px 23px;
includes/templates/launcher/launcher.php CHANGED
@@ -6,7 +6,7 @@
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
- <title> <?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready we are ready to launch.'); ?> </title>
10
 
11
  <style>
12
  a{
@@ -95,7 +95,7 @@
95
  </div>
96
  <div class="error-msg hidden" style="margin-top: 0px;">
97
  <div class="alert alert-danger alert-dismissible" role="alert">
98
- <div class="text-center"> <strong>Invalid email address.</strong> Please enter again.</div>
99
  </div>
100
  </div>
101
  <div class="social">
@@ -217,12 +217,12 @@
217
  jQuery("#rocket").css('margin-top', '-=120');
218
  count_completed = true;
219
 
220
- jQuery('#rocket').addClass('animated bounceOutUp');
221
- setTimeout(function () {
222
- jQuery("#rocket").css('margin-top', '-75px');
223
- jQuery('#rocket').removeClass('bounceOutUp');
224
- jQuery('#rocket').addClass('bounceInUp');
225
- }, 3000);
226
  });
227
  <?php endif; ?>
228
  });
@@ -243,6 +243,7 @@
243
  dataType: 'json',
244
  success: function (data) {
245
  if (data['error']) {
 
246
  jQuery('.error-msg').removeClass('hidden');
247
  jQuery('.error-msg').addClass('animated fadeIn');
248
  function hideMsg() {
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
+ <title> <?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?> </title>
10
 
11
  <style>
12
  a{
95
  </div>
96
  <div class="error-msg hidden" style="margin-top: 0px;">
97
  <div class="alert alert-danger alert-dismissible" role="alert">
98
+ <div class="text-center" id='error-msg-text'> </div>
99
  </div>
100
  </div>
101
  <div class="social">
217
  jQuery("#rocket").css('margin-top', '-=120');
218
  count_completed = true;
219
 
220
+ jQuery('#rocket').addClass('animated bounceOutUp');
221
+ setTimeout(function () {
222
+ jQuery("#rocket").css('margin-top', '-75px');
223
+ jQuery('#rocket').removeClass('bounceOutUp');
224
+ jQuery('#rocket').addClass('bounceInUp');
225
+ }, 3000);
226
  });
227
  <?php endif; ?>
228
  });
243
  dataType: 'json',
244
  success: function (data) {
245
  if (data['error']) {
246
+ jQuery('.error-msg #error-msg-text').html(data['message']);
247
  jQuery('.error-msg').removeClass('hidden');
248
  jQuery('.error-msg').addClass('animated fadeIn');
249
  function hideMsg() {
includes/templates/offline.php CHANGED
@@ -71,10 +71,10 @@ $cscs_templates['offline'] = array(
71
  );
72
 
73
  function cscs_offline_theme_scripts() {
74
- wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE));
75
- wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE));
76
- wp_enqueue_style('font-biryani', plugins_url('includes/css/font-biryani.css', CSCS_FILE));
77
- wp_enqueue_style('offline', plugins_url('offline/css/main.css', __FILE__));
78
  }
79
 
80
  add_action('cscs_theme_scripts_offline', 'cscs_offline_theme_scripts');
71
  );
72
 
73
  function cscs_offline_theme_scripts() {
74
+ wp_enqueue_style('bootstrap', plugins_url('includes/css/bootstrap.min.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
75
+ wp_enqueue_style('font-montserrat', plugins_url('includes/css/font-montserrat.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
76
+ wp_enqueue_style('font-biryani', plugins_url('includes/css/font-biryani.css', CSCS_FILE), array(), CSCS_CURRENT_VERSION);
77
+ wp_enqueue_style('offline', plugins_url('offline/css/main.css', __FILE__), array(), CSCS_CURRENT_VERSION);
78
  }
79
 
80
  add_action('cscs_theme_scripts_offline', 'cscs_offline_theme_scripts');
includes/templates/offline/offline.php CHANGED
@@ -6,7 +6,7 @@
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
- <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready we are ready to launch.'); ?></title>
10
 
11
  <style>
12
  a{
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
+ <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | '. get_bloginfo('name')); ?></title>
10
 
11
  <style>
12
  a{
includes/views/admin-dashboard.php CHANGED
@@ -12,19 +12,27 @@ function show_saved_notice() {
12
  }
13
  ?>
14
  <div class="wrap">
15
- <h3 class="cscs-nav">
16
  <a class="cscs-nav-tabs <?php echo $section == 'general' ? 'active' : ''; ?>" href="<?php echo admin_url('admin.php?page=cscs_options&section=general'); ?>" ><?php _e('General', CSCS_TEXT_DOMAIN); ?></a>
17
  <a class="cscs-nav-tabs <?php echo $section == 'appearance' ? 'active' : ''; ?>" href="<?php echo admin_url('admin.php?page=cscs_options&section=appearance'); ?>"><?php _e('Template Options', CSCS_TEXT_DOMAIN); ?></a>
18
- </h3>
19
-
 
 
20
  <?php show_saved_notice(); ?>
21
 
22
- <?php if (!isset($_REQUEST['section']) || $_REQUEST['section'] == 'general'): ?>
23
  <h3><?php _e('General Options', CSCS_TEXT_DOMAIN); ?></h3>
24
  <?php include 'temp-general-options.php'; ?>
25
- <?php else: ?>
26
  <h3><?php _e('Template Options', CSCS_TEXT_DOMAIN); ?></h3>
27
  <?php include 'temp-template-options.php'; ?>
 
 
 
 
 
 
28
  <?php endif; ?>
29
  </div>
30
  <?php
12
  }
13
  ?>
14
  <div class="wrap">
15
+ <h2 class="cscs-nav">
16
  <a class="cscs-nav-tabs <?php echo $section == 'general' ? 'active' : ''; ?>" href="<?php echo admin_url('admin.php?page=cscs_options&section=general'); ?>" ><?php _e('General', CSCS_TEXT_DOMAIN); ?></a>
17
  <a class="cscs-nav-tabs <?php echo $section == 'appearance' ? 'active' : ''; ?>" href="<?php echo admin_url('admin.php?page=cscs_options&section=appearance'); ?>"><?php _e('Template Options', CSCS_TEXT_DOMAIN); ?></a>
18
+ <a class="cscs-nav-tabs <?php echo $section == 'integrations' ? 'active' : ''; ?>" href="<?php echo admin_url('admin.php?page=cscs_options&section=integrations'); ?>"><?php _e('Integrations', CSCS_TEXT_DOMAIN); ?></a>
19
+ <a class="cscs-nav-tabs <?php echo $section == 'help' ? 'active' : ''; ?>" href="<?php echo admin_url('admin.php?page=cscs_options&section=help'); ?>"><?php _e('Help', CSCS_TEXT_DOMAIN); ?></a>
20
+ </h2>
21
+
22
  <?php show_saved_notice(); ?>
23
 
24
+ <?php if (!isset($_REQUEST['section']) || empty($_REQUEST['section']) || $_REQUEST['section'] == 'general'): ?>
25
  <h3><?php _e('General Options', CSCS_TEXT_DOMAIN); ?></h3>
26
  <?php include 'temp-general-options.php'; ?>
27
+ <?php elseif (!isset($_REQUEST['section']) || $_REQUEST['section'] == 'appearance'): ?>
28
  <h3><?php _e('Template Options', CSCS_TEXT_DOMAIN); ?></h3>
29
  <?php include 'temp-template-options.php'; ?>
30
+ <?php elseif (!isset($_REQUEST['section']) || $_REQUEST['section'] == 'help'): ?>
31
+
32
+ <?php include 'temp-help.php'; ?>
33
+ <?php else: ?>
34
+ <h3><?php _e('Manage Integrations', CSCS_TEXT_DOMAIN); ?></h3>
35
+ <?php include 'temp-integration-options.php'; ?>
36
  <?php endif; ?>
37
  </div>
38
  <?php
includes/views/temp-general-options.php CHANGED
@@ -15,7 +15,8 @@
15
  <label><?php _e('Enable / Disable', CSCS_TEXT_DOMAIN); ?></label>
16
  </th>
17
  <td>
18
- <label><input type="checkbox" name="<?php echo $cs_enable_name = CSCS_GENEROPTION_PREFIX . 'enable'; ?>" value="1" <?php check_checkboxes(get_option($cs_enable_name) == '1'); ?>><?php _e('Enable Coming Soon or Site Offline', CSCS_TEXT_DOMAIN); ?></label>
 
19
  </td>
20
  </tr>
21
  <tr>
@@ -31,28 +32,43 @@
31
  <div class="clearfix"></div>
32
  <label><input type="checkbox" class="skip_checkbox" value="subscriber" <?php check_checkboxes(in_array('subscriber', $skip_for_array)); ?>><?php _e('Subscribers', CSCS_TEXT_DOMAIN); ?></label>
33
  <input type="hidden" name="<?php echo CSCS_GENEROPTION_PREFIX . 'skipfor'; ?>" id="skip_for_value" value='<?php echo $skipfor; ?>'>
 
34
  </td>
35
  </tr>
36
  <tr>
37
  <th><label><?php _e('Page Title', CSCS_TEXT_DOMAIN); ?></label></th>
38
  <td>
39
- <input type="text" class="regular-text" placeholder="Page Title" name='<?php echo $pg_title_name = CSCS_GENEROPTION_PREFIX . 'cs_page_title'; ?>' value='<?php echo get_option($pg_title_name); ?>'>
 
40
  <p><?php _e('This will be the title of the coming soon page.', CSCS_TEXT_DOMAIN); ?></p>
41
  </td>
42
  </tr>
 
43
  <tr>
44
- <th><label><?php _e('Powered by IgniteUp', CSCS_TEXT_DOMAIN); ?></label></th>
45
  <td>
46
- <?php $cs_powered_by = CSCS_GENEROPTION_PREFIX . 'powered_by'; ?>
47
- <label><input type="checkbox" name="<?php echo $cs_powered_by; ?>" value="1" <?php check_checkboxes(get_option($cs_powered_by) == '1'); ?>><?php _e('Show "Powered by IgniteUp" in the page', CSCS_TEXT_DOMAIN); ?></label>
 
 
 
 
48
  </td>
49
  </tr>
50
 
51
-
52
  <tr>
53
  <th><label><?php _e('Custom CSS', CSCS_TEXT_DOMAIN); ?></label></th>
54
  <td>
55
  <textarea name="<?php echo CSCS_GENEROPTION_PREFIX . 'customcss'; ?>" cols="50" rows="7"><?php echo get_option(CSCS_GENEROPTION_PREFIX . 'customcss', ''); ?></textarea>
 
 
 
 
 
 
 
 
 
56
  </td>
57
  </tr>
58
 
15
  <label><?php _e('Enable / Disable', CSCS_TEXT_DOMAIN); ?></label>
16
  </th>
17
  <td>
18
+ <?php $cs_enable_name = CSCS_GENEROPTION_PREFIX . 'enable'; ?>
19
+ <label><input type="checkbox" name="<?php echo $cs_enable_name; ?>" value="1" <?php check_checkboxes(get_option($cs_enable_name) == '1'); ?>><?php _e('Enable Coming Soon or Site Offline', CSCS_TEXT_DOMAIN); ?></label>
20
  </td>
21
  </tr>
22
  <tr>
32
  <div class="clearfix"></div>
33
  <label><input type="checkbox" class="skip_checkbox" value="subscriber" <?php check_checkboxes(in_array('subscriber', $skip_for_array)); ?>><?php _e('Subscribers', CSCS_TEXT_DOMAIN); ?></label>
34
  <input type="hidden" name="<?php echo CSCS_GENEROPTION_PREFIX . 'skipfor'; ?>" id="skip_for_value" value='<?php echo $skipfor; ?>'>
35
+ <p class="description">Select user roles to skip maintenance mode page.</p>
36
  </td>
37
  </tr>
38
  <tr>
39
  <th><label><?php _e('Page Title', CSCS_TEXT_DOMAIN); ?></label></th>
40
  <td>
41
+ <?php $pg_title_name = CSCS_GENEROPTION_PREFIX . 'cs_page_title'; ?>
42
+ <input type="text" class="regular-text" placeholder="Page Title" name='<?php echo $pg_title_name; ?>' value='<?php echo get_option($pg_title_name); ?>'>
43
  <p><?php _e('This will be the title of the coming soon page.', CSCS_TEXT_DOMAIN); ?></p>
44
  </td>
45
  </tr>
46
+
47
  <tr>
48
+ <th><label><?php _e('Favicon', CSCS_TEXT_DOMAIN); ?></label></th>
49
  <td>
50
+ <div class="uploader">
51
+ <?php $favicon_option_name = CSCS_GENEROPTION_PREFIX . 'favicon_url'; ?>
52
+ <input id="<?php echo $favicon_option_name; ?>" class="regular-text" name="<?php echo $favicon_option_name; ?>" type="text" value="<?php echo get_option($favicon_option_name, ''); ?>" />
53
+ <input id="<?php echo $favicon_option_name; ?>_button" class="button cscs_uploadbutton" data-input="<?php echo $favicon_option_name; ?>" type="submit" value="Upload" />
54
+ <p class="description">Recommended size is 16x16 or 32x32. Use only ICO or PNG file.<br>May not be working if your theme or any other plugin is setting a favicon.</p>
55
+ </div>
56
  </td>
57
  </tr>
58
 
 
59
  <tr>
60
  <th><label><?php _e('Custom CSS', CSCS_TEXT_DOMAIN); ?></label></th>
61
  <td>
62
  <textarea name="<?php echo CSCS_GENEROPTION_PREFIX . 'customcss'; ?>" cols="50" rows="7"><?php echo get_option(CSCS_GENEROPTION_PREFIX . 'customcss', ''); ?></textarea>
63
+ <p class="description">Use custom css to customize front end templates.</p>
64
+ </td>
65
+ </tr>
66
+
67
+ <tr>
68
+ <th><label><?php _e('Powered by IgniteUp', CSCS_TEXT_DOMAIN); ?></label></th>
69
+ <td>
70
+ <?php $cs_powered_by = CSCS_GENEROPTION_PREFIX . 'powered_by'; ?>
71
+ <label><input type="checkbox" name="<?php echo $cs_powered_by; ?>" value="1" <?php check_checkboxes(get_option($cs_powered_by) == '1'); ?>><?php _e('Show "Powered by IgniteUp" in the page', CSCS_TEXT_DOMAIN); ?></label>
72
  </td>
73
  </tr>
74
 
includes/views/temp-help.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="update-page">
2
+ <h1 class="title">Welcome to IgniteUp <?php echo CSCS_CURRENT_VERSION; ?>!</h1>
3
+ <h2 class="subtitle">We have some cool stuff for you.</h2>
4
+ <div class="widget-wrapper">
5
+ <div class="help-page-col">
6
+ <div class="changelog help-page-widget">
7
+ <h2>What's New?</h2>
8
+ <ul class="changelog-main-list">
9
+ <li class="main-item">
10
+ 2.0 <span>NEW!</span>
11
+ <ul class="changelog-sub-list">
12
+ <li>Mailchimp and Mailpoet integration to save subscribers directly to your already existing mailing lists.</li>
13
+ <li>Added options to add a favicon.</li>
14
+ <li>Added subscribe form support into the Glass template as well.</li>
15
+ <li>Added an admin bar notification when maintenance mode is enabled.</li>
16
+ <li>Fixed duplicate subscriber saving.</li>
17
+ <li>Fixed conflict in the backend with some plugins.</li>
18
+ </ul>
19
+ </li>
20
+ <li class="main-item">
21
+ 1.2.1
22
+ <ul class="changelog-sub-list">
23
+ <li>Add support to skip the page for subscriber role as well.</li>
24
+ <li>Add feature to use Custom CSS.</li>
25
+ <li>Improve preview feature.</li>
26
+ </ul>
27
+ </li>
28
+ </ul>
29
+ </div>
30
+ </div>
31
+
32
+
33
+
34
+ <div class="help-page-col">
35
+ <div class="rating-box help-page-widget">
36
+ <h2>Loving IgniteUp?</h2>
37
+ <p>Thank you for using IgniteUp in your WordPress installation.</p>
38
+ <p>Do you mind taking a minute to support us by adding a review? Your feedback is very important to us.</p>
39
+ <a href="https://wordpress.org/support/view/plugin-reviews/igniteup" target="_blank" class="button button-primary">Add a Review on WordPress</a>
40
+ </div>
41
+
42
+
43
+ <div class="support-box help-page-widget">
44
+ <h2>Need Help?</h2>
45
+ <p>We have an acting fast support for you. Post your question in WordPress support forums for IgniteUp</p>
46
+ <a href="https://wordpress.org/support/plugin/igniteup" target="_blank" class="button button-primary">Visit Support Forum</a>
47
+ <p>Got any suggestions or feedback? Write us via our general <a href="mailto:info@ceylonsystems.com">email address</a>. If you need to email us a support request please use our <a href="mailto:support@ceylonsystems.com">support email</a>.</p>
48
+ </div>
49
+ </div>
50
+
51
+ <div class="help-page-col help-page-col-last">
52
+ <div class="support-box help-page-widget row-last-widget">
53
+ <h2>About IgniteUp</h2>
54
+ <p>IgniteUp is an in-house product from Ceylon Systems. Want to know more about us? Visit <a target="_blank" href="http://www.ceylonsystems.com">our website</a>.</p>
55
+
56
+
57
+ <p>If you appreciate our effort, please make a donation with PayPal. In this way we can serve you better and IgniteUp will improve. Thank you in advance!</p>
58
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E6MY6RKB8DAEL" target="_blank" class="button button-primary">Donate with PayPal</a>
59
+ </div>
60
+
61
+ <div class="support-box help-page-widget row-last-widget">
62
+ <h2>Watch Tutorial</h2>
63
+ <p></p>
64
+ <iframe style="width:100%; height: 205px;" src="https://www.youtube.com/embed/59KSFWCF0Rw?list=PL1W6Z2r2qAK1_VtjZkk32rU5I0AUl6xZc" frameborder="0" allowfullscreen></iframe>
65
+ </div>
66
+ </div>
67
+
68
+
69
+ </div>
70
+ </div>
includes/views/temp-integration-options.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <form action="options.php" method="post">
2
+ <?php
3
+ settings_fields('cscs_integrat_options');
4
+ do_settings_sections('cscs_integrat_options');
5
+ ?>
6
+ <table class="form-table">
7
+ <tr>
8
+ <th>
9
+ <label><?php _e('Enable / Disable', CSCS_TEXT_DOMAIN); ?></label>
10
+ </th>
11
+ <td>
12
+ <?php
13
+ $cs_name_int_enable = CSCS_GENEROPTION_PREFIX . 'enable_integration';
14
+ $cs_name_int_enable_val = get_option($cs_name_int_enable, '');
15
+ ?>
16
+ <label>
17
+ <input type="checkbox" value="1" name="<?php echo $cs_name_int_enable; ?>" <?php echo $cs_name_int_enable_val == '1' ? 'checked="checked"' : ''; ?>>
18
+ <?php _e('Enable External Mailinglist Integration', CSCS_TEXT_DOMAIN); ?>
19
+ </label>
20
+ <p class="description"><?php _e('Tick this if you need to send your subscribers into one of the following Mailing list providers.', CSCS_TEXT_DOMAIN); ?></p>
21
+ </td>
22
+ </tr>
23
+
24
+ <tr>
25
+ <th>
26
+ <label><?php _e('Save subscribers to', CSCS_TEXT_DOMAIN); ?></label>
27
+ </th>
28
+ <td>
29
+ <?php
30
+ $cs_name_int_save_to = CSCS_GENEROPTION_PREFIX . 'save_email_to';
31
+ $cs_name_int_save_to_val = get_option($cs_name_int_save_to, '');
32
+ ?>
33
+ <select name="<?php echo $cs_name_int_save_to; ?>" id="cs-selected-provider">
34
+ <option value="default" <?php echo CSAdminOptions::selectOptionIsSelected($cs_name_int_save_to_val, 'default'); ?>>Only to Local Database</option>
35
+ <option value="mailchimp" <?php echo CSAdminOptions::selectOptionIsSelected($cs_name_int_save_to_val, 'mailchimp'); ?>>Mailchimp</option>
36
+ <option value="mailpoet" <?php echo CSAdminOptions::selectOptionIsSelected($cs_name_int_save_to_val, 'mailpoet'); ?>>Mailpoet</option>
37
+ </select>
38
+ <p class="description"><?php _e('Choose the default provider to save your subscribers. IgniteUp will always save to the local database.', CSCS_TEXT_DOMAIN); ?></p>
39
+ </td>
40
+ </tr>
41
+ </table>
42
+ <span id="cs-section-mailchimp" class="cs-hidden-section">
43
+ <h3 class="title">Mailchimp v2.0</h3>
44
+ <p><?php _e('If you need to use Mailchimp integration, provide an API key. So we can get you the mailing lists that you have in your Mailchimp account to select.', CSCS_TEXT_DOMAIN); ?></p>
45
+ <table class="form-table">
46
+ <tr>
47
+ <th>
48
+ <label><?php _e('Mailchimp API Key', CSCS_TEXT_DOMAIN); ?></label>
49
+ </th>
50
+ <td>
51
+ <?php
52
+ $cs_name_mailchimp_api = CSCS_GENEROPTION_PREFIX . 'mailchimp_api';
53
+ $cs_mailchimp_api_value = get_option($cs_name_mailchimp_api, '');
54
+ ?>
55
+ <input type="text" name="<?php echo $cs_name_mailchimp_api; ?>" class="regular-text" placeholder="This is required to use Mailchimp integrations" value="<?php echo $cs_mailchimp_api_value ?>">
56
+ <p class="description"><?php _e('Need help finding your API key? <a href="http://kb.mailchimp.com/accounts/management/about-api-keys" target="_blank">Read this article</a>.', CSCS_TEXT_DOMAIN); ?></p>
57
+ </td>
58
+ </tr>
59
+
60
+ <?php if (!empty($cs_mailchimp_api_value)): ?>
61
+ <tr>
62
+ <th>
63
+ <label><?php _e('Select the list', CSCS_TEXT_DOMAIN); ?></label>
64
+ </th>
65
+ <td>
66
+ <?php
67
+ $cs_name_mailchimp_list = CSCS_GENEROPTION_PREFIX . 'mailchimp_list';
68
+ $cs_name_mailchimp_list_val = get_option($cs_name_mailchimp_list, '');
69
+ $MailChimp = new IgniteUpMailChimp($cs_mailchimp_api_value);
70
+ $mailchimp_lists = $MailChimp->call('lists/list');
71
+ if (is_array($mailchimp_lists) && $mailchimp_lists['total'] > 0) {
72
+ echo "<select name='$cs_name_mailchimp_list'>";
73
+ echo "<option value=''>Select a list..</option>";
74
+ foreach ($mailchimp_lists['data'] as $list):
75
+ echo '<option value="' . $list['id'] . '" ' . (($cs_name_mailchimp_list_val == $list['id']) ? 'selected="selected"' : '') . ' >' . $list['name'] . '</option>';
76
+ endforeach;
77
+ echo "</select>";
78
+ echo '<p class="description">' . __('Select the Mailchimp list you want your subscribers to be added.', CSCS_TEXT_DOMAIN) . '</p>';
79
+ }elseif (is_array($mailchimp_lists) && $mailchimp_lists['total'] == 0) {
80
+ _e('There are no lists in your Mailchimp account.', CSCS_TEXT_DOMAIN);
81
+ } else {
82
+ _e('Your API key seems to invalid!', CSCS_TEXT_DOMAIN);
83
+ }
84
+ ?>
85
+ </td>
86
+ </tr>
87
+ <?php endif; ?>
88
+ </table>
89
+ </span>
90
+
91
+ <span id="cs-section-mailpoet" class="cs-hidden-section">
92
+
93
+ <h3 class="title">Mailpoet</h3>
94
+ <p><?php _e('If you need to use Mailpoet integration, make sure you have Mailpoet plugin installed.', CSCS_TEXT_DOMAIN); ?></p>
95
+
96
+ <table class="form-table">
97
+ <tr>
98
+ <th><label><?php _e('Select the list', CSCS_TEXT_DOMAIN); ?></label></th>
99
+ <td>
100
+ <?php
101
+ if (class_exists('WYSIJA')) {
102
+ $model_list = WYSIJA::get('list', 'model');
103
+ $mailpoet_lists = $model_list->get(array('name', 'list_id'), array('is_enabled' => 1));
104
+
105
+ $cs_name_mailpoet_list = CSCS_GENEROPTION_PREFIX . 'mailpoet_list';
106
+ $cs_mailpet_list_val = get_option($cs_name_mailpoet_list, '');
107
+ echo "<select name='$cs_name_mailpoet_list'>";
108
+ echo "<option value=''>Select a list..</option>";
109
+ foreach ($mailpoet_lists as $list) :
110
+ echo '<option value="' . $list['list_id'] . '" ' . (($cs_mailpet_list_val == $list['list_id']) ? 'selected="selected"' : '') . ' >' . $list['name'] . '</option>';
111
+ endforeach;
112
+ echo "</select>";
113
+ }else {
114
+ _e('Install Mailpoet plugin to use the service', CSCS_TEXT_DOMAIN);
115
+ }
116
+ ?>
117
+ </td>
118
+ </tr>
119
+ </table>
120
+
121
+ </span>
122
+
123
+ <p class="submit">
124
+ <input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes">
125
+ </p>
126
+ </form>
includes/views/temp-template-options.php CHANGED
@@ -1,8 +1,7 @@
1
  <form action="options.php" method="post" id="igniteup-template-options">
2
- <?php settings_fields('cscs_temp_options'); ?>
3
  <?php
 
4
  do_settings_sections('cscs_temp_options');
5
- wp_enqueue_media();
6
  ?>
7
 
8
  <table class="form-table">
@@ -44,6 +43,9 @@
44
  case 'date':
45
  echo "<input type='text' class='cs-date-picker regular-text reset-supported' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>";
46
  break;
 
 
 
47
  case 'textarea':
48
  echo "<textarea rows='5' cols='46' class='regular-text reset-supported' id='$option_id' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>$saved_value</textarea>";
49
  break;
1
  <form action="options.php" method="post" id="igniteup-template-options">
 
2
  <?php
3
+ settings_fields('cscs_temp_options');
4
  do_settings_sections('cscs_temp_options');
 
5
  ?>
6
 
7
  <table class="form-table">
43
  case 'date':
44
  echo "<input type='text' class='cs-date-picker regular-text reset-supported' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>";
45
  break;
46
+ case 'checkbox':
47
+ echo "<label><input type='checkbox' class='reset-supported' id='$option_id' value='1' name='$option_key' data-defval='" . $def_val . "' " . ($saved_value == 1 ? 'checked="checked"' : '' ) . ">" . (isset($field['label']) ? $field['label'] : 'Undefined') . "</label>";
48
+ break;
49
  case 'textarea':
50
  echo "<textarea rows='5' cols='46' class='regular-text reset-supported' id='$option_id' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>$saved_value</textarea>";
51
  break;
localization/_cscs_igniteup-si_LK.mo CHANGED
Binary file
localization/_cscs_igniteup-si_LK.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: IgniteUp\n"
4
- "POT-Creation-Date: 2015-07-09 15:46+0530\n"
5
- "PO-Revision-Date: 2015-07-09 15:47+0530\n"
6
  "Last-Translator: Thambaru Wijesekara <thambaru@gmail.com>\n"
7
  "Language-Team: CeylonSystems <info@ceylonsystems.com>\n"
8
  "Language: en\n"
@@ -14,25 +14,26 @@ msgstr ""
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: includes\n"
16
 
17
- #: includes/class-coming-soon-creator.php:57
18
  msgid "CS Coming Soon"
19
  msgstr "CS Coming Soon"
20
 
21
- #: includes/class-coming-soon-creator.php:57
22
  msgid "IgniteUp"
23
  msgstr "IgniteUp"
24
 
25
- #: includes/class-coming-soon-creator.php:58
26
  #: includes/views/admin-templates.php:35
27
  msgid "Templates"
28
  msgstr "තේමා"
29
 
30
- #: includes/class-coming-soon-creator.php:59
31
  #: includes/views/admin-subscribers.php:6
 
32
  msgid "Subscribers"
33
  msgstr "දායකත්වයන්"
34
 
35
- #: includes/class-coming-soon-creator.php:60
36
  msgid "Options"
37
  msgstr "සැකසුම්"
38
 
@@ -44,14 +45,30 @@ msgstr "වෙනස්කම් සුරැකිණි."
44
  msgid "General"
45
  msgstr "ප්‍රධාන"
46
 
47
- #: includes/views/admin-dashboard.php:17 includes/views/admin-dashboard.php:26
48
  msgid "Template Options"
49
  msgstr "තේමා සැකසුම්"
50
 
51
- #: includes/views/admin-dashboard.php:23
 
 
 
 
 
 
 
 
52
  msgid "General Options"
53
  msgstr "ප්‍රධාන සැකසුම්"
54
 
 
 
 
 
 
 
 
 
55
  #: includes/views/admin-subscribers.php:7
56
  msgid "List of subscribers you've got through the Coming Soon page."
57
  msgstr "අඩවිය හරහා ඊමේල් දායකත්වය ලබාගත් අයගේ ලැයිස්තුව."
@@ -115,6 +132,7 @@ msgid "Customize it"
115
  msgstr "අභිරුචි කරන්න"
116
 
117
  #: includes/views/temp-general-options.php:15
 
118
  msgid "Enable / Disable"
119
  msgstr "සබල / අබල"
120
 
@@ -134,26 +152,105 @@ msgstr "පරිපාලකවරු"
134
  msgid "Editors"
135
  msgstr "සංස්කාරකවරු"
136
 
137
- #: includes/views/temp-general-options.php:35
138
  msgid "Page Title"
139
  msgstr "පිටු ශීර්ෂය"
140
 
141
- #: includes/views/temp-general-options.php:38
142
  msgid "This will be the title of the coming soon page."
143
  msgstr "මෙය ඔබේ coming soon පිටුවේ ශීර්ෂය වනු ඇත."
144
 
145
- #: includes/views/temp-general-options.php:42
146
  msgid "Powered by IgniteUp"
147
  msgstr "ප්ලගිනයට සහාය"
148
 
149
- #: includes/views/temp-general-options.php:44
150
  msgid "Show \"Powered by IgniteUp\" in the page"
151
  msgstr "පිටුවේ \"Powered by IgniteUp\" ලෙස පෙන්වන්න"
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  #: includes/views/temp-template-options.php:14
154
  msgid "Something is wrong with your template"
155
  msgstr "ඔබේ තේමාවේ කිසියම් වරදක් වෙයි."
156
 
157
- #: includes/views/temp-template-options.php:69
158
  msgid "No options defined for the active template!"
159
  msgstr "සබල කළ තේමාව සඳහා කිසිදු සැකසුම් නැත!"
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: IgniteUp\n"
4
+ "POT-Creation-Date: 2015-07-28 17:13+0530\n"
5
+ "PO-Revision-Date: 2015-07-28 17:19+0530\n"
6
  "Last-Translator: Thambaru Wijesekara <thambaru@gmail.com>\n"
7
  "Language-Team: CeylonSystems <info@ceylonsystems.com>\n"
8
  "Language: en\n"
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: includes\n"
16
 
17
+ #: includes/class-coming-soon-creator.php:60
18
  msgid "CS Coming Soon"
19
  msgstr "CS Coming Soon"
20
 
21
+ #: includes/class-coming-soon-creator.php:60
22
  msgid "IgniteUp"
23
  msgstr "IgniteUp"
24
 
25
+ #: includes/class-coming-soon-creator.php:61
26
  #: includes/views/admin-templates.php:35
27
  msgid "Templates"
28
  msgstr "තේමා"
29
 
30
+ #: includes/class-coming-soon-creator.php:62
31
  #: includes/views/admin-subscribers.php:6
32
+ #: includes/views/temp-general-options.php:32
33
  msgid "Subscribers"
34
  msgstr "දායකත්වයන්"
35
 
36
+ #: includes/class-coming-soon-creator.php:63
37
  msgid "Options"
38
  msgstr "සැකසුම්"
39
 
45
  msgid "General"
46
  msgstr "ප්‍රධාන"
47
 
48
+ #: includes/views/admin-dashboard.php:17 includes/views/admin-dashboard.php:28
49
  msgid "Template Options"
50
  msgstr "තේමා සැකසුම්"
51
 
52
+ #: includes/views/admin-dashboard.php:18
53
+ msgid "Integrations"
54
+ msgstr "සේවා"
55
+
56
+ #: includes/views/admin-dashboard.php:19
57
+ msgid "Help"
58
+ msgstr "උදව්"
59
+
60
+ #: includes/views/admin-dashboard.php:25
61
  msgid "General Options"
62
  msgstr "ප්‍රධාන සැකසුම්"
63
 
64
+ #: includes/views/admin-dashboard.php:31
65
+ msgid "About IgniteUp and Support Information"
66
+ msgstr "IgniteUp සහ සහාය විස්තර පිළිබඳව"
67
+
68
+ #: includes/views/admin-dashboard.php:34
69
+ msgid "Manage Integrations"
70
+ msgstr "සේවා කළමනාකරණය"
71
+
72
  #: includes/views/admin-subscribers.php:7
73
  msgid "List of subscribers you've got through the Coming Soon page."
74
  msgstr "අඩවිය හරහා ඊමේල් දායකත්වය ලබාගත් අයගේ ලැයිස්තුව."
132
  msgstr "අභිරුචි කරන්න"
133
 
134
  #: includes/views/temp-general-options.php:15
135
+ #: includes/views/temp-integration-options.php:9
136
  msgid "Enable / Disable"
137
  msgstr "සබල / අබල"
138
 
152
  msgid "Editors"
153
  msgstr "සංස්කාරකවරු"
154
 
155
+ #: includes/views/temp-general-options.php:37
156
  msgid "Page Title"
157
  msgstr "පිටු ශීර්ෂය"
158
 
159
+ #: includes/views/temp-general-options.php:40
160
  msgid "This will be the title of the coming soon page."
161
  msgstr "මෙය ඔබේ coming soon පිටුවේ ශීර්ෂය වනු ඇත."
162
 
163
+ #: includes/views/temp-general-options.php:44
164
  msgid "Powered by IgniteUp"
165
  msgstr "ප්ලගිනයට සහාය"
166
 
167
+ #: includes/views/temp-general-options.php:47
168
  msgid "Show \"Powered by IgniteUp\" in the page"
169
  msgstr "පිටුවේ \"Powered by IgniteUp\" ලෙස පෙන්වන්න"
170
 
171
+ #: includes/views/temp-general-options.php:53
172
+ msgid "Custom CSS"
173
+ msgstr "අභිමත CSS"
174
+
175
+ #: includes/views/temp-integration-options.php:18
176
+ msgid "Enable External Mailinglist Integration"
177
+ msgstr "බාහිර ලැයිස්තු ඉ-ලිපි සේවා සක්‍රීය කරන්න"
178
+
179
+ #: includes/views/temp-integration-options.php:20
180
+ msgid ""
181
+ "Tick this if you need to send your subscribers into one of the following "
182
+ "Mailing list providers."
183
+ msgstr ""
184
+ "ඔබේ දායකත්වය ලැබූවන් ලැයිස්තු ඉ-ලිපි (Mailing list) සේවා සපයන්නන් වෙත එක් කිරීමට මෙහි හරි "
185
+ "ලකුණ යොදන්න."
186
+
187
+ #: includes/views/temp-integration-options.php:26
188
+ msgid "Save subscribers to"
189
+ msgstr "දායකත්වයන් සුරැකිය යුත්තේ"
190
+
191
+ #: includes/views/temp-integration-options.php:38
192
+ msgid ""
193
+ "Choose the default provider to save your subscribers. IgniteUp will always "
194
+ "save to the local database."
195
+ msgstr ""
196
+ "ඔබේ දායකත්වය දරන්නන් සුරැකීම සඳහා මූලික සේවා සපයන්නා තෝරන්න. IgniteUp හැමවිටම මේවා "
197
+ "ස්ථානීය දත්තපාදකයට ද සුරකිනු ඇත."
198
+
199
+ #: includes/views/temp-integration-options.php:43
200
+ msgid ""
201
+ "If you need to use Mailchimp integration, provide an API key. So we can get "
202
+ "you the mailing lists that you have in your Mailchimp account to select."
203
+ msgstr ""
204
+ "ඔබට Mailchimp සේවා අවශ්‍ය නම්, API යතුරක් ලබා දෙන්න. එවිට අපට ඔබේ Mailchimp ගිණුමේ ඇති "
205
+ "ඉ-ලිපි ලැයිස්තුව තෝරාගැනීම සඳහා අවකාශ සැලසිය හැකියි."
206
+
207
+ #: includes/views/temp-integration-options.php:47
208
+ msgid "Mailchimp API Key"
209
+ msgstr "Mailchimp API යතුර"
210
+
211
+ #: includes/views/temp-integration-options.php:55
212
+ msgid ""
213
+ "Need help finding your API key? <a href=\"http://kb.mailchimp.com/accounts/"
214
+ "management/about-api-keys\" target=\"_blank\">Read this article</a>."
215
+ msgstr ""
216
+ "API යතුර සෙවීමට උපකාර අවශ්‍ය ද? <a href=\"http://kb.mailchimp.com/accounts/"
217
+ "management/about-api-keys\" target=\"_blank\">මේ ලිපිය කියවන්න</a>."
218
+
219
+ #: includes/views/temp-integration-options.php:62
220
+ #: includes/views/temp-integration-options.php:94
221
+ msgid "Select the list"
222
+ msgstr "ලැයිස්තුව තෝරන්න"
223
+
224
+ #: includes/views/temp-integration-options.php:77
225
+ msgid "Select the Mailchimp list you want your subscribers to be added."
226
+ msgstr "ඔබේ දායකත්වය දැරූවන් එක් කළ යුතු Mailchip ලැයිස්තුව තෝරන්න"
227
+
228
+ #: includes/views/temp-integration-options.php:79
229
+ msgid "There are no lists in your Mailchimp account."
230
+ msgstr "ඔබේ Mailchimp ගිණුමේ කිසිදු ලැයිස්තුවක් නොමැත."
231
+
232
+ #: includes/views/temp-integration-options.php:81
233
+ msgid "Your API key seems to invalid!"
234
+ msgstr "ඔබේ API යතුර වැරදියි!"
235
+
236
+ #: includes/views/temp-integration-options.php:90
237
+ msgid ""
238
+ "If you need to use Mailpoet integration, make sure you have Mailpoet plugin "
239
+ "installed."
240
+ msgstr "ඔබට Mailpoet සේවාව අවශ්‍ය නම් කරුණාකර Mailpoet ප්ලගිනය ස්ථාපනය කරන්න."
241
+
242
+ #: includes/views/temp-integration-options.php:110
243
+ msgid "Install Mailpoet plugin to use the service"
244
+ msgstr "මෙම සේවාව භාවිතා කිරීමට Mailpoet ප්ලගිනය ස්ථාපනය කරන්න."
245
+
246
  #: includes/views/temp-template-options.php:14
247
  msgid "Something is wrong with your template"
248
  msgstr "ඔබේ තේමාවේ කිසියම් වරදක් වෙයි."
249
 
250
+ #: includes/views/temp-template-options.php:70
251
  msgid "No options defined for the active template!"
252
  msgstr "සබල කළ තේමාව සඳහා කිසිදු සැකසුම් නැත!"
253
+
254
+ #: includes/views/temp-template-options.php:82
255
+ msgid "Settings Saved Successfully"
256
+ msgstr "වෙනස්කම් සුරැකිණි."
localization/default.mo CHANGED
Binary file
localization/default.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: IgniteUp\n"
4
- "POT-Creation-Date: 2015-07-09 15:47+0530\n"
5
- "PO-Revision-Date: 2015-07-09 15:47+0530\n"
6
  "Last-Translator: Thambaru Wijesekara <thambaru@gmail.com>\n"
7
  "Language-Team: CeylonSystems <info@ceylonsystems.com>\n"
8
  "Language: en\n"
@@ -14,25 +14,26 @@ msgstr ""
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: includes\n"
16
 
17
- #: includes/class-coming-soon-creator.php:57
18
  msgid "CS Coming Soon"
19
  msgstr ""
20
 
21
- #: includes/class-coming-soon-creator.php:57
22
  msgid "IgniteUp"
23
  msgstr ""
24
 
25
- #: includes/class-coming-soon-creator.php:58
26
  #: includes/views/admin-templates.php:35
27
  msgid "Templates"
28
  msgstr ""
29
 
30
- #: includes/class-coming-soon-creator.php:59
31
  #: includes/views/admin-subscribers.php:6
 
32
  msgid "Subscribers"
33
  msgstr ""
34
 
35
- #: includes/class-coming-soon-creator.php:60
36
  msgid "Options"
37
  msgstr ""
38
 
@@ -44,14 +45,30 @@ msgstr ""
44
  msgid "General"
45
  msgstr ""
46
 
47
- #: includes/views/admin-dashboard.php:17 includes/views/admin-dashboard.php:26
48
  msgid "Template Options"
49
  msgstr ""
50
 
51
- #: includes/views/admin-dashboard.php:23
 
 
 
 
 
 
 
 
52
  msgid "General Options"
53
  msgstr ""
54
 
 
 
 
 
 
 
 
 
55
  #: includes/views/admin-subscribers.php:7
56
  msgid "List of subscribers you've got through the Coming Soon page."
57
  msgstr ""
@@ -115,6 +132,7 @@ msgid "Customize it"
115
  msgstr ""
116
 
117
  #: includes/views/temp-general-options.php:15
 
118
  msgid "Enable / Disable"
119
  msgstr ""
120
 
@@ -134,26 +152,97 @@ msgstr ""
134
  msgid "Editors"
135
  msgstr ""
136
 
137
- #: includes/views/temp-general-options.php:35
138
  msgid "Page Title"
139
  msgstr ""
140
 
141
- #: includes/views/temp-general-options.php:38
142
  msgid "This will be the title of the coming soon page."
143
  msgstr ""
144
 
145
- #: includes/views/temp-general-options.php:42
146
  msgid "Powered by IgniteUp"
147
  msgstr ""
148
 
149
- #: includes/views/temp-general-options.php:44
150
  msgid "Show \"Powered by IgniteUp\" in the page"
151
  msgstr ""
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  #: includes/views/temp-template-options.php:14
154
  msgid "Something is wrong with your template"
155
  msgstr ""
156
 
157
- #: includes/views/temp-template-options.php:69
158
  msgid "No options defined for the active template!"
159
  msgstr ""
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: IgniteUp\n"
4
+ "POT-Creation-Date: 2015-07-28 17:19+0530\n"
5
+ "PO-Revision-Date: 2015-07-28 17:19+0530\n"
6
  "Last-Translator: Thambaru Wijesekara <thambaru@gmail.com>\n"
7
  "Language-Team: CeylonSystems <info@ceylonsystems.com>\n"
8
  "Language: en\n"
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SearchPath-0: includes\n"
16
 
17
+ #: includes/class-coming-soon-creator.php:60
18
  msgid "CS Coming Soon"
19
  msgstr ""
20
 
21
+ #: includes/class-coming-soon-creator.php:60
22
  msgid "IgniteUp"
23
  msgstr ""
24
 
25
+ #: includes/class-coming-soon-creator.php:61
26
  #: includes/views/admin-templates.php:35
27
  msgid "Templates"
28
  msgstr ""
29
 
30
+ #: includes/class-coming-soon-creator.php:62
31
  #: includes/views/admin-subscribers.php:6
32
+ #: includes/views/temp-general-options.php:32
33
  msgid "Subscribers"
34
  msgstr ""
35
 
36
+ #: includes/class-coming-soon-creator.php:63
37
  msgid "Options"
38
  msgstr ""
39
 
45
  msgid "General"
46
  msgstr ""
47
 
48
+ #: includes/views/admin-dashboard.php:17 includes/views/admin-dashboard.php:28
49
  msgid "Template Options"
50
  msgstr ""
51
 
52
+ #: includes/views/admin-dashboard.php:18
53
+ msgid "Integrations"
54
+ msgstr ""
55
+
56
+ #: includes/views/admin-dashboard.php:19
57
+ msgid "Help"
58
+ msgstr ""
59
+
60
+ #: includes/views/admin-dashboard.php:25
61
  msgid "General Options"
62
  msgstr ""
63
 
64
+ #: includes/views/admin-dashboard.php:31
65
+ msgid "About IgniteUp and Support Information"
66
+ msgstr ""
67
+
68
+ #: includes/views/admin-dashboard.php:34
69
+ msgid "Manage Integrations"
70
+ msgstr ""
71
+
72
  #: includes/views/admin-subscribers.php:7
73
  msgid "List of subscribers you've got through the Coming Soon page."
74
  msgstr ""
132
  msgstr ""
133
 
134
  #: includes/views/temp-general-options.php:15
135
+ #: includes/views/temp-integration-options.php:9
136
  msgid "Enable / Disable"
137
  msgstr ""
138
 
152
  msgid "Editors"
153
  msgstr ""
154
 
155
+ #: includes/views/temp-general-options.php:37
156
  msgid "Page Title"
157
  msgstr ""
158
 
159
+ #: includes/views/temp-general-options.php:40
160
  msgid "This will be the title of the coming soon page."
161
  msgstr ""
162
 
163
+ #: includes/views/temp-general-options.php:44
164
  msgid "Powered by IgniteUp"
165
  msgstr ""
166
 
167
+ #: includes/views/temp-general-options.php:47
168
  msgid "Show \"Powered by IgniteUp\" in the page"
169
  msgstr ""
170
 
171
+ #: includes/views/temp-general-options.php:53
172
+ msgid "Custom CSS"
173
+ msgstr ""
174
+
175
+ #: includes/views/temp-integration-options.php:18
176
+ msgid "Enable External Mailinglist Integration"
177
+ msgstr ""
178
+
179
+ #: includes/views/temp-integration-options.php:20
180
+ msgid ""
181
+ "Tick this if you need to send your subscribers into one of the following "
182
+ "Mailing list providers."
183
+ msgstr ""
184
+
185
+ #: includes/views/temp-integration-options.php:26
186
+ msgid "Save subscribers to"
187
+ msgstr ""
188
+
189
+ #: includes/views/temp-integration-options.php:38
190
+ msgid ""
191
+ "Choose the default provider to save your subscribers. IgniteUp will always "
192
+ "save to the local database."
193
+ msgstr ""
194
+
195
+ #: includes/views/temp-integration-options.php:43
196
+ msgid ""
197
+ "If you need to use Mailchimp integration, provide an API key. So we can get "
198
+ "you the mailing lists that you have in your Mailchimp account to select."
199
+ msgstr ""
200
+
201
+ #: includes/views/temp-integration-options.php:47
202
+ msgid "Mailchimp API Key"
203
+ msgstr ""
204
+
205
+ #: includes/views/temp-integration-options.php:55
206
+ msgid ""
207
+ "Need help finding your API key? <a href=\"http://kb.mailchimp.com/accounts/"
208
+ "management/about-api-keys\" target=\"_blank\">Read this article</a>."
209
+ msgstr ""
210
+
211
+ #: includes/views/temp-integration-options.php:62
212
+ #: includes/views/temp-integration-options.php:94
213
+ msgid "Select the list"
214
+ msgstr ""
215
+
216
+ #: includes/views/temp-integration-options.php:77
217
+ msgid "Select the Mailchimp list you want your subscribers to be added."
218
+ msgstr ""
219
+
220
+ #: includes/views/temp-integration-options.php:79
221
+ msgid "There are no lists in your Mailchimp account."
222
+ msgstr ""
223
+
224
+ #: includes/views/temp-integration-options.php:81
225
+ msgid "Your API key seems to invalid!"
226
+ msgstr ""
227
+
228
+ #: includes/views/temp-integration-options.php:90
229
+ msgid ""
230
+ "If you need to use Mailpoet integration, make sure you have Mailpoet plugin "
231
+ "installed."
232
+ msgstr ""
233
+
234
+ #: includes/views/temp-integration-options.php:110
235
+ msgid "Install Mailpoet plugin to use the service"
236
+ msgstr ""
237
+
238
  #: includes/views/temp-template-options.php:14
239
  msgid "Something is wrong with your template"
240
  msgstr ""
241
 
242
+ #: includes/views/temp-template-options.php:70
243
  msgid "No options defined for the active template!"
244
  msgstr ""
245
+
246
+ #: includes/views/temp-template-options.php:82
247
+ msgid "Settings Saved Successfully"
248
+ msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ceylonsystems
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E6MY6RKB8DAEL
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, subscribe, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, igniter
5
  Requires at least: 3.0.1
6
- Tested up to: 4.2.2
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -25,16 +25,22 @@ Create decent pages to let users know the site is in Coming Soon, Maintenance Mo
25
  = Features =
26
 
27
  * Active Support for Your Questions
28
- * Supporting every WordPress theme.
29
  * 100% Mobile Responsive
30
  * Powered by Twitter Bootstrap
31
  * Fully Customizable Templates
32
- * Email Subscription Form Available in Launcher Template
 
33
  * Export Email Subscriber List as a CSV or BCC Text
34
  * Translation Ready
35
  * Multisite Support
36
  * More New Templates Coming Soon with Future Updates
37
 
 
 
 
 
 
38
  = Included Languages =
39
 
40
  * Sinhala (si_LK)
@@ -79,6 +85,22 @@ Navigate to `IgniteUp > Options` and click the tab `Template Options`. There you
79
 
80
  Make sure the plugin is activated. And also you should enable the option `Enable/Disable` in the IgniteUp Options (`Ignite > Options`) page. Note: IgniteUp page won't be seen by users who are logged in and belongs to the user roles ticked on `Skip Page For` option.
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  = How can I reach IgniteUp developers for help? =
83
 
84
  You can post your question / suggestion in the [IgniteUp forums](https://wordpress.org/support/plugin/igniteup). We will reach you as soon as possible. You can also email us via support[at]ceylonsystems[dot]com for any support requests.
@@ -93,6 +115,14 @@ You can post your question / suggestion in the [IgniteUp forums](https://wordpre
93
 
94
  == Changelog ==
95
 
 
 
 
 
 
 
 
 
96
  = 1.2.1 =
97
  * Add support to skip the page for subscriber role as well
98
  * Add feature to use Custom CSS
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E6MY6RKB8DAEL
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, subscribe, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, igniter
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.3
7
+ Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
25
  = Features =
26
 
27
  * Active Support for Your Questions
28
+ * Supporting Almost Every WordPress theme
29
  * 100% Mobile Responsive
30
  * Powered by Twitter Bootstrap
31
  * Fully Customizable Templates
32
+ * Email Subscription Forms
33
+ * Mailchimp and Mailpoet Integration
34
  * Export Email Subscriber List as a CSV or BCC Text
35
  * Translation Ready
36
  * Multisite Support
37
  * More New Templates Coming Soon with Future Updates
38
 
39
+ Note: IgniteUp is fully supported with `/wp-admin` login url.
40
+ Don't use it if you have any other URL except `/wp-admin` for your login page.
41
+
42
+ [youtube https://www.youtube.com/watch?v=59KSFWCF0Rw&list=PL1W6Z2r2qAK1_VtjZkk32rU5I0AUl6xZc]
43
+
44
  = Included Languages =
45
 
46
  * Sinhala (si_LK)
85
 
86
  Make sure the plugin is activated. And also you should enable the option `Enable/Disable` in the IgniteUp Options (`Ignite > Options`) page. Note: IgniteUp page won't be seen by users who are logged in and belongs to the user roles ticked on `Skip Page For` option.
87
 
88
+ = How to skip the coming soon page for logged-in administrators? =
89
+
90
+ You have options to skip the page for `administrator`, `editor` and `subscriber` roles from the Skip Page For option in the `IgniteUp > Options` page.
91
+
92
+ = Why is the WordPress customizer is showing coming soon page =
93
+
94
+ You have to skip the page for your user role. It will fix the problem. Please read the above question to read how to do it.
95
+
96
+ = Why is my coming soon page looks different from announced demos? =
97
+
98
+ It's because your WordPress theme or other plugin made conflicts with IgniteUp CSS styles. IgniteUp dequeuing all enqueued stylesheets from any other source to avoid any conflicts. But in some themes, they are using on-page or in-line styles that will not be removed. In those cases those can be caused for some conflicts or may completely ruin IgniteUp templates.
99
+
100
+ Try activating a WordPress default theme to clarify. If the issue still exists try deactivating active plugins to find out which one caused it.
101
+
102
+ Let us know by emailing us if you experienced any conflict with other theme or a plugin (with the name and the URL to find the theme or plugin caused the conflict). Your email will help us to improve IgniteUp to minimize conflicts as much as possible. Please find our email address in the last question at the bottom of the page.
103
+
104
  = How can I reach IgniteUp developers for help? =
105
 
106
  You can post your question / suggestion in the [IgniteUp forums](https://wordpress.org/support/plugin/igniteup). We will reach you as soon as possible. You can also email us via support[at]ceylonsystems[dot]com for any support requests.
115
 
116
  == Changelog ==
117
 
118
+ = 2.0 =
119
+ * Mailchimp and Mailpoet integration to save subscribers directly to your already existing mailing lists
120
+ * Added options to add a favicon
121
+ * Added subscribe form support into the Glass template as well
122
+ * Added an admin bar notification when maintenance mode is enabled
123
+ * Fixed duplicate subscriber saving
124
+ * Fixed conflict in the backend with some plugins
125
+
126
  = 1.2.1 =
127
  * Add support to skip the page for subscriber role as well
128
  * Add feature to use Custom CSS