Under Construction - Version 2.75

Version Description

  • 2017/11/22
  • translation efforts are in full swing
  • PRO version is available
  • new logo
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Under Construction
Version 2.75
Comparing to
See all releases

Code changes from version 2.70 to 2.75

css/ucp-admin.css CHANGED
@@ -80,7 +80,11 @@ a.reset-settings.button:hover {
80
  display: inherit;
81
  }
82
 
83
- .settings_page_ucp h1:hover img {
 
 
 
 
84
  transform: rotate(360deg);
85
  }
86
 
@@ -96,7 +100,7 @@ a.reset-settings.button:hover {
96
  max-width: 300px;
97
  }
98
 
99
- div.ucp-thumb, .ucp-thumb-special {
100
  max-width: 300px;
101
  width: calc(31% - 20px);
102
  margin: 0 10px 5px 0;
@@ -110,7 +114,7 @@ div.ucp-thumb.active {
110
  border: 2px solid rgba(255, 121, 0, 0.7);
111
  }
112
 
113
- div.ucp-thumb:hover {
114
  border: 2px solid rgba(255, 121, 0, 0.7);
115
  cursor: pointer;
116
  }
@@ -626,9 +630,7 @@ h3.ucp-pro-logo {
626
  }
627
 
628
  h3.ucp-pro-logo img {
629
- height: 40px;
630
- margin-right: 10px;
631
- margin-bottom: -2px;
632
  }
633
 
634
  h3.ucp-pro-logo span {
80
  display: inherit;
81
  }
82
 
83
+ .settings_page_ucp h1 .ucp-logo-text {
84
+ max-height: 17px;
85
+ }
86
+
87
+ .settings_page_ucp h1:hover img.rotate {
88
  transform: rotate(360deg);
89
  }
90
 
100
  max-width: 300px;
101
  }
102
 
103
+ div.ucp-thumb, div.ucp-thumb-special {
104
  max-width: 300px;
105
  width: calc(31% - 20px);
106
  margin: 0 10px 5px 0;
114
  border: 2px solid rgba(255, 121, 0, 0.7);
115
  }
116
 
117
+ div.ucp-thumb:hover, div.ucp-thumb-special:hover {
118
  border: 2px solid rgba(255, 121, 0, 0.7);
119
  cursor: pointer;
120
  }
630
  }
631
 
632
  h3.ucp-pro-logo img {
633
+ height: 64px;
 
 
634
  }
635
 
636
  h3.ucp-pro-logo span {
images/thumbnails/more_coming_soon.png CHANGED
Binary file
images/ucp_logo.png CHANGED
Binary file
images/ucp_logo_2.png ADDED
Binary file
images/ucp_pro_logo.png CHANGED
Binary file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: maintenance mode, maintenance page, coming soon page, landing page, under
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
- Stable tag: 2.70
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,12 @@ Or if needed, upload manually;
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
124
  = 2.70 =
125
  * 2017/11/06
126
  * continued marking strings for translation
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
+ Stable tag: 2.75
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 2.75 =
125
+ * 2017/11/22
126
+ * translation efforts are in full swing
127
+ * PRO version is available
128
+ * new logo
129
+
130
  = 2.70 =
131
  * 2017/11/06
132
  * continued marking strings for translation
under-construction.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: https://underconstructionpage.com/
5
  Description: Put your site behind a great looking under construction page while you do maintenance work.
6
  Author: Web factory Ltd
7
- Version: 2.70
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
@@ -318,6 +318,20 @@ class UCP {
318
  wp_enqueue_script('ucp-select2', UCP_PLUGIN_URL . 'js/select2.min.js', array(), self::$version, true);
319
  wp_enqueue_script('ucp-admin', UCP_PLUGIN_URL . 'js/ucp-admin.js', array('jquery'), self::$version, true);
320
  wp_localize_script('ucp-admin', 'ucp', $js_localize);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  }
322
 
323
  if ('plugins.php' == $hook) {
@@ -920,6 +934,9 @@ class UCP {
920
  // add settings link to plugins page
921
  static function plugin_action_links($links) {
922
  $settings_link = '<a href="' . admin_url('options-general.php?page=ucp') . '" title="' . __('UnderConstruction Settings', 'under-construction-page') . '">' . __('Settings', 'under-construction-page') . '</a>';
 
 
 
923
  array_unshift($links, $settings_link);
924
 
925
  $links['deactivate'] = str_replace('href=',' data-under-construction-page="true" href=', $links['deactivate']);
@@ -931,9 +948,12 @@ class UCP {
931
  // add links to plugin's description in plugins table
932
  static function plugin_meta_links($links, $file) {
933
  $support_link = '<a target="_blank" href="https://wordpress.org/support/plugin/under-construction-page" title="' . __('Get help', 'under-construction-page') . '">' . __('Support', 'under-construction-page') . '</a>';
 
 
934
 
935
  if ($file == plugin_basename(__FILE__)) {
936
  $links[] = $support_link;
 
937
  }
938
 
939
  return $links;
@@ -1160,8 +1180,29 @@ class UCP {
1160
  return $out;
1161
  }
1162
  } // create_select_options
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1163
 
1164
 
 
1165
  static function tab_main() {
1166
  $options = self::get_options();
1167
  $default_options = self::default_options();
@@ -1173,7 +1214,7 @@ class UCP {
1173
  <th scope="row"><label for="status">' . __('Under Construction Mode', 'under-construction-page') . '</label></th>
1174
  <td>';
1175
 
1176
- echo '<div class="toggle-wrapper">
1177
  <input type="checkbox" id="status" ' . self::checked(1, $options['status']) . ' type="checkbox" value="1" name="' . UCP_OPTIONS_KEY . '[status]">
1178
  <label for="status" class="toggle"><span class="toggle_handler"></span></label>
1179
  </div>';
@@ -1438,28 +1479,16 @@ class UCP {
1438
  <td colspan="2"><b style="margin-bottom: 10px; display: inline-block;">' . __('Theme', 'under-construction-page') . '</b><br>';
1439
  echo '<input type="hidden" id="theme_id" name="' . UCP_OPTIONS_KEY . '[theme]" value="' . $options['theme'] . '">';
1440
 
 
 
1441
  foreach ($themes as $theme_id => $theme_name) {
1442
  if ($theme_id === $options['theme']) {
1443
  $class = ' active';
1444
  } else {
1445
  $class = '';
1446
  }
1447
- echo '<div class="ucp-thumb' . $class . '" data-theme-id="' . $theme_id . '"><img src="' . $img_path . $theme_id . '.png" alt="' . $theme_name . '" title="' . $theme_name . '" /><span>' . $theme_name . '</span></div>';
1448
- }
1449
-
1450
- $tmp = md5(get_site_url());
1451
- if ($tmp[0] < '6') {
1452
- $tweet = 'I need more themes for the free Under Construction #wordpress plugin. When are they coming out? @webfactoryltd';
1453
- $url = 'https://wordpress.org/plugins/under-construction-page/';
1454
- } elseif ($tmp[0] < 'a') {
1455
- $tweet = 'I need more themes for the free Under Construction Page #wordpress plugin. When are they coming out? @webfactoryltd';
1456
- $url = 'https://underconstructionpage.com/';
1457
- } else {
1458
- $tweet = 'When will you make more themes for the free Under Construction Page plugin for #wordpress? @webfactoryltd';
1459
- $url = 'https://underconstructionpage.com/';
1460
- }
1461
-
1462
- echo '<div class="ucp-thumb-special"><a href="https://twitter.com/intent/tweet?url=' . $url . '&text=' . urlencode($tweet) . '" target="_blank"><img src="' . $img_path . 'more_coming_soon.png" alt="Need more themes?" title="Need more themes?" /></a><br />Click for More Themes</div>';
1463
 
1464
  echo '</td></tr>';
1465
 
@@ -1536,7 +1565,7 @@ class UCP {
1536
 
1537
  echo '<div style="display: none;" id="tab_support_faq" class="ucp-tab-content">';
1538
 
1539
- echo '<p><b>Do you have a video to help me get started?</b><br>We sure do! <a href="https://www.youtube.com/watch?v=RN4XABhK7_w" target="_blank">Getting started with the UnderConstructionPage plugin</a>. If that doesn\'t help don\'t hesitate to contact our friendly support.</p>';
1540
 
1541
  echo '<p><b>How can I check if construction mode is really enabled on my site?</b><br>If the under construction status is green in the admin bar (the very top of the page, above this text), then it\'s enabled. But we made a tool specifically for these kinds of situations so you can double-check everything. <a href="https://underconstructionpage.com/under-construction-tester/?url=' . urlencode(get_home_url()) . '" target="_blank">Run under construction mode tester</a>.</p>';
1542
 
@@ -1612,10 +1641,10 @@ class UCP {
1612
  $user = wp_get_current_user();
1613
 
1614
  echo '<div class="ucp-tab-content">';
1615
- echo '<h3 class="ucp-pro-logo"><img src="' . UCP_PLUGIN_URL . 'images/ucp_pro_logo.png" alt="UnderConstructionPage PRO" title="UnderConstructionPage">UnderConstructionPage<span>pro</span></h3>';
1616
 
1617
- echo '<div id="ucp-earlybird"><span>Build <b>landing pages, coming soon pages, maintenance &amp; under construction pages</b> faster &amp; easier!<br>UCP PRO comes out on Black Friday. Get on the earlybird list - <b>get it cheaper &amp; a week before others</b>.</span>';
1618
- echo '<p><input value="" type="email" placeholder="Your best email address" class="skip-save regular-text" id="ucp-earlybird-email"> <select id="ucp-earlybird-type"><option value="0">- How do you use UCP? Please select -</option><option value="solo-use">I use it only on one site</option><option value="multi-site">I use it on multiple sites I own</option><option value="webmaster">I use it on multiple sites I build/maintain for others</option></select> <a href="#" class="button button-primary button-large" id="ucp-earlybird-submit">I want the discount! Put me on the Earlybird List!</a></p>';
1619
  echo '</div>';
1620
 
1621
  echo '<h3 class="ucp-small-title">Some of the features available in the PRO version</h3>';
@@ -1709,7 +1738,7 @@ class UCP {
1709
  $default_options = self::default_options();
1710
 
1711
  echo '<div class="wrap">
1712
- <h1 class="ucp-logo"><a href="' . admin_url('options-general.php?page=ucp') . '"><img src="' . UCP_PLUGIN_URL . 'images/ucp_logo.png" alt="UnderConstructionPage" title="UnderConstructionPage">UnderConstructionPage</a></h1>';
1713
 
1714
  echo '<form action="options.php" method="post" id="ucp_form">';
1715
  settings_fields(UCP_OPTIONS_KEY);
@@ -1842,7 +1871,7 @@ class UCP {
1842
  $pointers = array();
1843
 
1844
  $pointers['welcome'] = array('target' => '#menu-settings', 'edge' => 'left', 'align' => 'right', 'content' => 'Thank you for installing the <b style="font-weight: 800; font-variant: small-caps;">UnderConstructionPage</b> plugin! Please open <a href="' . admin_url('options-general.php?page=ucp'). '">Settings - UnderConstruction</a> to create a beautiful under construction page.');
1845
- $pointers['getting_started'] = array('target' => '#ucp_tabs #ui-id-1', 'edge' => 'left', 'align' => 'right', 'content' => 'Watch the short <a href="https://www.youtube.com/watch?v=RN4XABhK7_w" target="_blank">Getting Started Video</a> to get you up to speed with UCP in no time. If you need the video later, link is in the <a href="#" class="change_tab" data-tab="4">FAQ</a>.');
1846
 
1847
  update_option(UCP_POINTERS_KEY, $pointers);
1848
  } // reset_pointers
4
  Plugin URI: https://underconstructionpage.com/
5
  Description: Put your site behind a great looking under construction page while you do maintenance work.
6
  Author: Web factory Ltd
7
+ Version: 2.75
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: under-construction-page
10
  Domain Path: lang
318
  wp_enqueue_script('ucp-select2', UCP_PLUGIN_URL . 'js/select2.min.js', array(), self::$version, true);
319
  wp_enqueue_script('ucp-admin', UCP_PLUGIN_URL . 'js/ucp-admin.js', array('jquery'), self::$version, true);
320
  wp_localize_script('ucp-admin', 'ucp', $js_localize);
321
+
322
+ // fix for agressive plugins
323
+ wp_dequeue_style('uiStyleSheet');
324
+ wp_dequeue_style('wpcufpnAdmin' );
325
+ wp_dequeue_style('unifStyleSheet' );
326
+ wp_dequeue_style('wpcufpn_codemirror');
327
+ wp_dequeue_style('wpcufpn_codemirrorTheme');
328
+ wp_dequeue_style('collapse-admin-css');
329
+ wp_dequeue_style('jquery-ui-css');
330
+ wp_dequeue_style('tribe-common-admin');
331
+ wp_dequeue_style('file-manager__jquery-ui-css');
332
+ wp_dequeue_style('file-manager__jquery-ui-css-theme');
333
+ wp_dequeue_style('wpmegmaps-jqueryui');
334
+ wp_dequeue_style('wp-botwatch-css');
335
  }
336
 
337
  if ('plugins.php' == $hook) {
934
  // add settings link to plugins page
935
  static function plugin_action_links($links) {
936
  $settings_link = '<a href="' . admin_url('options-general.php?page=ucp') . '" title="' . __('UnderConstruction Settings', 'under-construction-page') . '">' . __('Settings', 'under-construction-page') . '</a>';
937
+ $pro_link = '<a target="_blank" href="' . self::generate_web_link('plugins-table-left') . '" title="' . __('Get PRO', 'under-construction-page') . '">' . __('Go <b>PRO</b>', 'under-construction-page') . '</a>';
938
+
939
+ array_unshift($links, $pro_link);
940
  array_unshift($links, $settings_link);
941
 
942
  $links['deactivate'] = str_replace('href=',' data-under-construction-page="true" href=', $links['deactivate']);
948
  // add links to plugin's description in plugins table
949
  static function plugin_meta_links($links, $file) {
950
  $support_link = '<a target="_blank" href="https://wordpress.org/support/plugin/under-construction-page" title="' . __('Get help', 'under-construction-page') . '">' . __('Support', 'under-construction-page') . '</a>';
951
+ $pro_link = '<a target="_blank" href="' . self::generate_web_link('plugins-table-right') . '" title="' . __('Get PRO', 'under-construction-page') . '">' . __('Get the <b>PRO</b> version', 'under-construction-page') . '</a>';
952
+
953
 
954
  if ($file == plugin_basename(__FILE__)) {
955
  $links[] = $support_link;
956
+ $links[] = $pro_link;
957
  }
958
 
959
  return $links;
1180
  return $out;
1181
  }
1182
  } // create_select_options
1183
+
1184
+
1185
+ // helper function to generate tagged buy links
1186
+ static function generate_web_link($placement = '', $page = '/', $params = array(), $anchor = '') {
1187
+ $base_url = 'https://underconstructionpage.com';
1188
+
1189
+ if ('/' != $page) {
1190
+ $page = '/' . trim($page, '/') . '/';
1191
+ }
1192
+
1193
+ $parts = array_merge(array('utm_source' => 'ucp-free', 'utm_medium' => 'plugin', 'utm_content' => $placement, 'utm_campaign' => 'ucp-free-v' . self::$version), $params);
1194
+
1195
+ if (!empty($anchor)) {
1196
+ $anchor = '#' . trim($anchor, '#');
1197
+ }
1198
+
1199
+ $out = $base_url . $page . '?' . http_build_query($parts, '', '&amp;') . $anchor;
1200
+
1201
+ return $out;
1202
+ } // generate_web_link
1203
 
1204
 
1205
+ // first, main tab content
1206
  static function tab_main() {
1207
  $options = self::get_options();
1208
  $default_options = self::default_options();
1214
  <th scope="row"><label for="status">' . __('Under Construction Mode', 'under-construction-page') . '</label></th>
1215
  <td>';
1216
 
1217
+ echo '<div class="toggle-wrapper" id="main-status">
1218
  <input type="checkbox" id="status" ' . self::checked(1, $options['status']) . ' type="checkbox" value="1" name="' . UCP_OPTIONS_KEY . '[status]">
1219
  <label for="status" class="toggle"><span class="toggle_handler"></span></label>
1220
  </div>';
1479
  <td colspan="2"><b style="margin-bottom: 10px; display: inline-block;">' . __('Theme', 'under-construction-page') . '</b><br>';
1480
  echo '<input type="hidden" id="theme_id" name="' . UCP_OPTIONS_KEY . '[theme]" value="' . $options['theme'] . '">';
1481
 
1482
+ echo '<div class="ucp-thumb-special"><a href="' . self::generate_web_link('thumb-build-theme') . '" target="_blank"><img src="' . $img_path . 'more_coming_soon.png" alt="Build your own custom theme with our drag & drop editor" title="Build your own custom theme with our drag & drop editor"></a><span>Build your own custom theme</span></div>';
1483
+
1484
  foreach ($themes as $theme_id => $theme_name) {
1485
  if ($theme_id === $options['theme']) {
1486
  $class = ' active';
1487
  } else {
1488
  $class = '';
1489
  }
1490
+ echo '<div class="ucp-thumb' . $class . '" data-theme-id="' . $theme_id . '"><img src="' . $img_path . $theme_id . '.png" alt="' . $theme_name . '" title="' . $theme_name . '"><span>' . $theme_name . '</span></div>';
1491
+ } // foreach
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1492
 
1493
  echo '</td></tr>';
1494
 
1565
 
1566
  echo '<div style="display: none;" id="tab_support_faq" class="ucp-tab-content">';
1567
 
1568
+ echo '<p><b>Do you have a video to help me get started?</b><br>We sure do! <a href="https://www.youtube.com/watch?v=RN4XABhK7_w" target="_blank">Getting started with the UnderConstructionPage plugin</a>. If that doesn\'t help we also have an <a href="https://www.youtube.com/watch?v=K3DF-NP6Fog" target="_blank">in-depth video walktrough</a>. In case you\'re still uncertain about something don\'t hesitate to contact our friendly support.</p>';
1569
 
1570
  echo '<p><b>How can I check if construction mode is really enabled on my site?</b><br>If the under construction status is green in the admin bar (the very top of the page, above this text), then it\'s enabled. But we made a tool specifically for these kinds of situations so you can double-check everything. <a href="https://underconstructionpage.com/under-construction-tester/?url=' . urlencode(get_home_url()) . '" target="_blank">Run under construction mode tester</a>.</p>';
1571
 
1641
  $user = wp_get_current_user();
1642
 
1643
  echo '<div class="ucp-tab-content">';
1644
+ echo '<h3 class="ucp-pro-logo"><a href="' . self::generate_web_link('pro-tab-logo') . '" target="_blank"><img src="' . UCP_PLUGIN_URL . 'images/ucp_pro_logo.png" alt="UnderConstructionPage PRO" title="UnderConstructionPage"></a></h3>';
1645
 
1646
+ echo '<div id="ucp-earlybird"><span>Build <b>landing pages, coming soon pages, maintenance &amp; under construction pages</b> faster &amp; easier!</span>';
1647
+ echo '<p class="textcenter"><a target="_blank" href="' . self::generate_web_link('pro-tab-black-friday') . '" class="button button-primary button-large">Get <b>PRO</b> now with <b>30% discount</b> for Black Friday &amp; Cyber Monday!</a></p>';
1648
  echo '</div>';
1649
 
1650
  echo '<h3 class="ucp-small-title">Some of the features available in the PRO version</h3>';
1738
  $default_options = self::default_options();
1739
 
1740
  echo '<div class="wrap">
1741
+ <h1 class="ucp-logo"><a href="' . admin_url('options-general.php?page=ucp') . '"><img src="' . UCP_PLUGIN_URL . 'images/ucp_logo.png" class="rotate" alt="UnderConstructionPage" title="UnderConstructionPage"><img src="' . UCP_PLUGIN_URL . 'images/ucp_logo_2.png" class="ucp-logo-text" alt="UnderConstructionPage" title="UnderConstructionPage"></a></h1>';
1742
 
1743
  echo '<form action="options.php" method="post" id="ucp_form">';
1744
  settings_fields(UCP_OPTIONS_KEY);
1871
  $pointers = array();
1872
 
1873
  $pointers['welcome'] = array('target' => '#menu-settings', 'edge' => 'left', 'align' => 'right', 'content' => 'Thank you for installing the <b style="font-weight: 800; font-variant: small-caps;">UnderConstructionPage</b> plugin! Please open <a href="' . admin_url('options-general.php?page=ucp'). '">Settings - UnderConstruction</a> to create a beautiful under construction page.');
1874
+ $pointers['getting_started'] = array('target' => '.ucp-main-tab li:nth-child(2)', 'edge' => 'top', 'align' => 'left', 'content' => 'Watch the short <a href="https://www.youtube.com/watch?v=RN4XABhK7_w" target="_blank">getting started video</a> to get you up to speed with UCP in no time. If that doesn\'t answer your questions watch the longer <a href="https://www.youtube.com/watch?v=K3DF-NP6Fog" target="_blank">in-depth video walktrough</a>.<br>If you need the videos later, links are in the <a href="#" class="change_tab" data-tab="4">FAQ</a>.');
1875
 
1876
  update_option(UCP_POINTERS_KEY, $pointers);
1877
  } // reset_pointers