Custom Post Type UI - Version 1.7.3

Version Description

  • 2020-02-05 =
  • Updated: styles and appearance to better match WordPress core.
  • Updated: Change newsletter service integration. Hey, sign up for our newsletter! Props @Oceas
Download this release

Release Info

Developer tw2113
Plugin Icon 128x128 Custom Post Type UI
Version 1.7.3
Comparing to
See all releases

Code changes from version 1.7.2 to 1.7.3

classes/class.cptui_admin_ui.php CHANGED
@@ -133,7 +133,7 @@ class cptui_admin_ui {
133
  * @return string
134
  */
135
  public function get_legend_start() {
136
- return '<legend>';
137
  }
138
 
139
  /**
@@ -233,7 +233,7 @@ class cptui_admin_ui {
233
  * @return string
234
  */
235
  public function get_description( $help_text = '' ) {
236
- return '<span class="cptui-field-description">' . $help_text . '</span>';
237
  }
238
 
239
  /**
133
  * @return string
134
  */
135
  public function get_legend_start() {
136
+ return '<legend class="screen-reader-text">';
137
  }
138
 
139
  /**
233
  * @return string
234
  */
235
  public function get_description( $help_text = '' ) {
236
+ return '<p class="cptui-field-description description">' . $help_text . '</p>';
237
  }
238
 
239
  /**
css/cptui.css CHANGED
@@ -210,12 +210,23 @@
210
 
211
  .about-wrap .cptui-about-text {
212
  margin-bottom: 1em !important;
 
 
213
  }
214
 
215
- .about-wrap .cptui-badge {
216
- position: absolute;
217
- top: 0;
218
- right: 0;
 
 
 
 
 
 
 
 
 
219
  }
220
 
221
  #togglelabels {
@@ -263,29 +274,23 @@ fieldset .cptui-help {
263
  overflow: hidden;
264
  }
265
 
266
- .cptui-section fieldset {
267
- border: solid #cccccc 1px;
268
  display: block;
269
- margin-bottom: 30px;
270
- padding: 10px;
271
- overflow: hidden;
272
  }
273
 
274
- .js .cptui-section fieldset.toggledclosed {
275
- height: 1px;
 
 
276
  }
277
 
278
- .cptui-section legend {
279
- border: solid #cccccc 1px;
280
- border-bottom: 0;
281
- font-size: 14px;
282
- font-weight: bold;
283
- padding: 5px;
284
  }
285
 
286
- .cptui-spacer {
287
- display: block;
288
- margin-top: 25px;
289
  }
290
 
291
  .wdspromos {
@@ -295,13 +300,6 @@ fieldset .cptui-help {
295
  width: 275px;
296
  }
297
 
298
- .wdspromos #mc_embed_signup {
299
- background: #fff;
300
- border: solid #cccccc 1px;
301
- clear: left;
302
- margin-bottom: 10px;
303
- }
304
-
305
  .wdspromos-about {
306
  display: -ms-flexbox;
307
  display: flex;
@@ -382,14 +380,14 @@ fieldset .cptui-help {
382
 
383
  @media screen and (min-width: 769px) {
384
  .cptui-badge {
385
- padding-top: 142px;
386
- height: 50px;
387
  width: 173px;
388
  color: #fafafa;
389
  font-weight: bold;
390
  font-size: 14px;
391
  text-align: center;
392
- margin: 0 -5px;
393
  background: url(../images/cptui-icon-173x173.png) no-repeat;
394
  }
395
  }
210
 
211
  .about-wrap .cptui-about-text {
212
  margin-bottom: 1em !important;
213
+ margin-right: 0px;
214
+ max-width: calc(100% - 173px);
215
  }
216
 
217
+ .email-octopus-form-row input:-ms-input-placeholder {
218
+ color: #cccccc;
219
+ }
220
+
221
+ .email-octopus-form-row input::placeholder {
222
+ color: #cccccc;
223
+ }
224
+
225
+ .cptui-intro-devblock {
226
+ display: -ms-flexbox;
227
+ display: flex;
228
+ -ms-flex-direction: row;
229
+ flex-direction: row;
230
  }
231
 
232
  #togglelabels {
274
  overflow: hidden;
275
  }
276
 
277
+ .cptui-spacer {
 
278
  display: block;
279
+ margin-top: 25px;
 
 
280
  }
281
 
282
+ .email-octopus-form-wrapper {
283
+ background: #fff;
284
+ margin-bottom: 10px;
285
+ padding: 20px;
286
  }
287
 
288
+ .email-octopus-form-wrapper label {
289
+ margin-bottom: 10px;
 
 
 
 
290
  }
291
 
292
+ .wdsoctosignup h2 {
293
+ text-align: left;
 
294
  }
295
 
296
  .wdspromos {
300
  width: 275px;
301
  }
302
 
 
 
 
 
 
 
 
303
  .wdspromos-about {
304
  display: -ms-flexbox;
305
  display: flex;
380
 
381
  @media screen and (min-width: 769px) {
382
  .cptui-badge {
383
+ margin-top: -42px;
384
+ height: 173px;
385
  width: 173px;
386
  color: #fafafa;
387
  font-weight: bold;
388
  font-size: 14px;
389
  text-align: center;
390
+ margin-bottom: 10px;
391
  background: url(../images/cptui-icon-173x173.png) no-repeat;
392
  }
393
  }
css/cptui.min.css CHANGED
@@ -1 +1 @@
1
- .posttypesui,.taxonomiesui{width:calc(100% - 300px)}.posttypesui .cptui-section:first-child,.taxonomiesui .cptui-section:first-child{margin-top:30px}.posttypesui .postbox-container,.taxonomiesui .postbox-container{width:100%}.posttypesui .postbox .toggle-indicator:before,.taxonomiesui .postbox .toggle-indicator:before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.posttypesui .postbox.closed .handlediv .toggle-indicator:before,.taxonomiesui .postbox.closed .handlediv .toggle-indicator:before{content:"\f140"}.posttypesui .postbox .hndle,.taxonomiesui .postbox .hndle{cursor:pointer}.posttypesui .required,.taxonomiesui .required{color:red}.cptui-table #excerpt{display:inline-block;height:16px;margin:12px 4px 12px 0;width:auto}.cptui-table td.outer{vertical-align:top;width:50%}.cptui-edit .cptui-table textarea,.cptui-new .cptui-table textarea,.cptui-table input[type=text]{width:75%}.cptui-table .question:hover{cursor:pointer}.cptui-table th p{font-weight:400;font-size:12px}.cptui-table .cptui-slug-details{margin-top:15px}.cptui-table #slugchanged,.cptui-table #slugexists{color:red;font-weight:700}.cptui-table #slugchanged.hidemessage,.cptui-table #slugexists.hidemessage{display:none}.cpt-ui_page_cptui_tools .cptui-table .outer p{padding:0 4px}.cptui-support #support .question{font-size:18px;font-weight:700}.cptui-support #support .question:before{content:"\f139";display:inline-block;font:normal 25px/1 dashicons;margin-left:-25px;position:absolute;-webkit-font-smoothing:antialiased}.cptui-support #support .question.active:before{content:"\f140"}.cptui-support #support .answer{margin:10px 0 0 20px}.cptui-support #support ol li{list-style:none}.cptui-support #support li{position:relative}.cptui-field-description{font-style:italic}#cptui_select_post_type,#cptui_select_taxonomy{margin-top:15px}.cptui_post_import,.cptui_tax_import{height:200px;margin-bottom:10px;resize:vertical;width:100%}.cptui_post_type_get_code,.cptui_tax_get_code{height:300px;resize:vertical}.about-wrap .cptui-feature{overflow:visible!important;*zoom:1}.about-wrap .cptui-feature:after,.about-wrap .cptui-feature:before{content:" ";display:table}.about-wrap .cptui-feature:after{clear:both}.about-wrap h3+.cptui-feature{margin-top:0}.about-wrap .changelog h2{text-align:center}.about-wrap .feature-rest div{width:50%!important;padding-right:100px;box-sizing:border-box;margin:0!important}.about-wrap .feature-rest div.last-feature{padding-left:100px;padding-right:0}.about-wrap .feature-rest div.icon{width:0!important;padding:0;margin:0}.about-wrap .feature-rest div.icon:before{font-weight:400;width:100%;font-size:170px;line-height:125px;color:#9c5d90;display:inline-block;position:relative;text-align:center;speak:none;margin:0 0 0 -100px;content:"\e01d";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rtl .about-wrap .feature-rest div{padding-left:100px}.rtl .about-wrap .feature-rest div.last-feature{padding-right:100px;padding-left:0}.rtl .about-wrap .feature-rest div.icon:before{margin:0 -100px 0 0}.about-wrap .about-integrations{background:#fff;margin:20px 0;padding:1px 20px 10px}.about-wrap .changelog h4{line-height:1.4}.about-wrap .cptui-about-text{margin-bottom:1em!important}.about-wrap .cptui-badge{position:absolute;top:0;right:0}#togglelabels{display:none}.js #togglelabels{display:inline-block}.cptui-help{color:#424242;margin-left:4px;opacity:.5;text-decoration:none;width:16px}fieldset .cptui-help{position:relative;top:4px}.cptui-help:hover{color:#0074a2;opacity:1}.cptui-help:focus{box-shadow:none}#toplevel_page_cptui_main_menu img{height:20px;margin-top:-2px;width:20px}.visuallyhidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.cptui-section fieldset{border:1px solid #ccc;display:block;margin-bottom:30px;padding:10px;overflow:hidden}.js .cptui-section fieldset.toggledclosed{height:1px}.cptui-section legend{border:1px solid #ccc;border-bottom:0;font-size:14px;font-weight:700;padding:5px}.cptui-spacer{display:block;margin-top:25px}.wdspromos{float:right;margin-left:20px;margin-top:10px;width:275px}.wdspromos #mc_embed_signup{background:#fff;border:1px solid #ccc;clear:left;margin-bottom:10px}.wdspromos-about{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:stretch;align-content:stretch;-ms-flex-align:start;align-items:flex-start;margin:20px 0}.wdspromos-about a:first-child,.wdspromos-about a:nth-child(2),.wdspromos-about a:nth-child(3){-ms-flex-order:0;order:0;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.wdspromos-about p{padding:0 5px}.wdspromos-about p:first-child{padding-left:0}.wdspromos-about p:nth-child(4){padding-right:0}.no-js #cptui_choose_icon{display:none}.cptui-listings th{font-weight:700}.cptui-listings .post-type-listing th{width:16.66667%}.cptui-listings .taxonomy-listing th{width:20%}#poststuff{min-width:463px}@media screen and (min-width:769px){.cptui-badge{padding-top:142px;height:50px;width:173px;color:#fafafa;font-weight:700;font-size:14px;text-align:center;margin:0 -5px;background:url(../images/cptui-icon-173x173.png) no-repeat}}@media screen and (max-width:768px){.cptui-table #description{width:100%}.wdspromos-about{-ms-flex-wrap:wrap;flex-wrap:wrap}.wdspromos-about p{margin:5px auto}.wdspromos-about p:first-child{padding-left:5px}.wdspromos-about p:nth-child(4){padding-right:5px}#cptui_debug_info_email,.cptui-table td.outer{width:100%}}
1
+ .posttypesui,.taxonomiesui{width:calc(100% - 300px)}.posttypesui .cptui-section:first-child,.taxonomiesui .cptui-section:first-child{margin-top:30px}.posttypesui .postbox-container,.taxonomiesui .postbox-container{width:100%}.posttypesui .postbox .toggle-indicator:before,.taxonomiesui .postbox .toggle-indicator:before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.posttypesui .postbox.closed .handlediv .toggle-indicator:before,.taxonomiesui .postbox.closed .handlediv .toggle-indicator:before{content:"\f140"}.posttypesui .postbox .hndle,.taxonomiesui .postbox .hndle{cursor:pointer}.posttypesui .required,.taxonomiesui .required{color:red}.cptui-table #excerpt{display:inline-block;height:16px;margin:12px 4px 12px 0;width:auto}.cptui-table td.outer{vertical-align:top;width:50%}.cptui-edit .cptui-table textarea,.cptui-new .cptui-table textarea,.cptui-table input[type=text]{width:75%}.cptui-table .question:hover{cursor:pointer}.cptui-table th p{font-weight:400;font-size:12px}.cptui-table .cptui-slug-details{margin-top:15px}.cptui-table #slugchanged,.cptui-table #slugexists{color:red;font-weight:700}.cptui-table #slugchanged.hidemessage,.cptui-table #slugexists.hidemessage{display:none}.cpt-ui_page_cptui_tools .cptui-table .outer p{padding:0 4px}.cptui-support #support .question{font-size:18px;font-weight:700}.cptui-support #support .question:before{content:"\f139";display:inline-block;font:normal 25px/1 dashicons;margin-left:-25px;position:absolute;-webkit-font-smoothing:antialiased}.cptui-support #support .question.active:before{content:"\f140"}.cptui-support #support .answer{margin:10px 0 0 20px}.cptui-support #support ol li{list-style:none}.cptui-support #support li{position:relative}.cptui-field-description{font-style:italic}#cptui_select_post_type,#cptui_select_taxonomy{margin-top:15px}.cptui_post_import,.cptui_tax_import{height:200px;margin-bottom:10px;resize:vertical;width:100%}.cptui_post_type_get_code,.cptui_tax_get_code{height:300px;resize:vertical}.about-wrap .cptui-feature{overflow:visible!important;*zoom:1}.about-wrap .cptui-feature:after,.about-wrap .cptui-feature:before{content:" ";display:table}.about-wrap .cptui-feature:after{clear:both}.about-wrap h3+.cptui-feature{margin-top:0}.about-wrap .changelog h2{text-align:center}.about-wrap .feature-rest div{width:50%!important;padding-right:100px;box-sizing:border-box;margin:0!important}.about-wrap .feature-rest div.last-feature{padding-left:100px;padding-right:0}.about-wrap .feature-rest div.icon{width:0!important;padding:0;margin:0}.about-wrap .feature-rest div.icon:before{font-weight:400;width:100%;font-size:170px;line-height:125px;color:#9c5d90;display:inline-block;position:relative;text-align:center;speak:none;margin:0 0 0 -100px;content:"\e01d";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rtl .about-wrap .feature-rest div{padding-left:100px}.rtl .about-wrap .feature-rest div.last-feature{padding-right:100px;padding-left:0}.rtl .about-wrap .feature-rest div.icon:before{margin:0 -100px 0 0}.about-wrap .about-integrations{background:#fff;margin:20px 0;padding:1px 20px 10px}.about-wrap .changelog h4{line-height:1.4}.about-wrap .cptui-about-text{margin-bottom:1em!important;margin-right:0;max-width:calc(100% - 173px)}.email-octopus-form-row input:-ms-input-placeholder{color:#ccc}.email-octopus-form-row input::placeholder{color:#ccc}.cptui-intro-devblock{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}#togglelabels{display:none}.js #togglelabels{display:inline-block}.cptui-help{color:#424242;margin-left:4px;opacity:.5;text-decoration:none;width:16px}fieldset .cptui-help{position:relative;top:4px}.cptui-help:hover{color:#0074a2;opacity:1}.cptui-help:focus{box-shadow:none}#toplevel_page_cptui_main_menu img{height:20px;margin-top:-2px;width:20px}.visuallyhidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.cptui-spacer{display:block;margin-top:25px}.email-octopus-form-wrapper{background:#fff;margin-bottom:10px;padding:20px}.email-octopus-form-wrapper label{margin-bottom:10px}.wdsoctosignup h2{text-align:left}.wdspromos{float:right;margin-left:20px;margin-top:10px;width:275px}.wdspromos-about{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:stretch;align-content:stretch;-ms-flex-align:start;align-items:flex-start;margin:20px 0}.wdspromos-about a:first-child,.wdspromos-about a:nth-child(2),.wdspromos-about a:nth-child(3){-ms-flex-order:0;order:0;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.wdspromos-about p{padding:0 5px}.wdspromos-about p:first-child{padding-left:0}.wdspromos-about p:nth-child(4){padding-right:0}.no-js #cptui_choose_icon{display:none}.cptui-listings th{font-weight:700}.cptui-listings .post-type-listing th{width:16.66667%}.cptui-listings .taxonomy-listing th{width:20%}#poststuff{min-width:463px}@media screen and (min-width:769px){.cptui-badge{margin-top:-42px;height:173px;width:173px;color:#fafafa;font-weight:700;font-size:14px;text-align:center;margin-bottom:10px;background:url(../images/cptui-icon-173x173.png) no-repeat}}@media screen and (max-width:768px){.cptui-table #description{width:100%}.wdspromos-about{-ms-flex-wrap:wrap;flex-wrap:wrap}.wdspromos-about p{margin:5px auto}.wdspromos-about p:first-child{padding-left:5px}.wdspromos-about p:nth-child(4){padding-right:5px}#cptui_debug_info_email,.cptui-table td.outer{width:100%}}
css/cptui.scss CHANGED
@@ -200,13 +200,20 @@ $max-tablet: "screen and (max-width: 768px)";
200
  }
201
  .cptui-about-text {
202
  margin-bottom: 1em !important;
 
 
203
  }
204
- .cptui-badge {
205
- position: absolute;
206
- top: 0;
207
- right: 0;
208
  }
209
  }
 
 
 
 
 
210
  #togglelabels {
211
  display: none;
212
  .js & {
@@ -246,41 +253,31 @@ $max-tablet: "screen and (max-width: 768px)";
246
  height: 1px;
247
  overflow: hidden;
248
  }
249
- .cptui-section {
250
- fieldset {
251
- border: solid rgb(204, 204, 204) 1px;
252
- display: block;
253
- margin-bottom: 30px;
254
- padding: 10px;
255
- overflow: hidden;
256
- .js &.toggledclosed {
257
- height: 1px;
258
- }
259
- }
260
- legend {
261
- border: solid rgb(204, 204, 204) 1px;
262
- border-bottom: 0;
263
- font-size: 14px;
264
- font-weight: bold;
265
- padding: 5px;
266
- }
267
- }
268
  .cptui-spacer {
269
  display: block;
270
  margin-top: 25px;
271
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  .wdspromos {
273
  float: right;
274
  margin-left: 20px;
275
  margin-top: 10px;
276
  width: 275px;
277
-
278
- #mc_embed_signup {
279
- background: #fff;
280
- border: solid rgb(204, 204, 204) 1px;
281
- clear: left;
282
- margin-bottom: 10px;
283
- }
284
  }
285
  .wdspromos-about {
286
  display: -ms-flexbox;
@@ -367,14 +364,14 @@ $max-tablet: "screen and (max-width: 768px)";
367
 
368
  @media #{$min-tablet} {
369
  .cptui-badge {
370
- padding-top: 142px;
371
- height: 50px;
372
  width: 173px;
373
  color: #fafafa;
374
  font-weight: bold;
375
  font-size: 14px;
376
  text-align: center;
377
- margin: 0 -5px;
378
  background: url(../images/cptui-icon-173x173.png) no-repeat;
379
  }
380
  }
200
  }
201
  .cptui-about-text {
202
  margin-bottom: 1em !important;
203
+ margin-right: 0;
204
+ max-width: calc(100% - 173px);
205
  }
206
+ }
207
+ .email-octopus-form-row {
208
+ input::placeholder {
209
+ color: #cccccc;
210
  }
211
  }
212
+ .cptui-intro-devblock{
213
+ display: flex;
214
+ flex-direction: row;
215
+ }
216
+
217
  #togglelabels {
218
  display: none;
219
  .js & {
253
  height: 1px;
254
  overflow: hidden;
255
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  .cptui-spacer {
257
  display: block;
258
  margin-top: 25px;
259
  }
260
+
261
+ .email-octopus-form-wrapper {
262
+ background: #fff;
263
+ margin-bottom: 10px;
264
+ padding: 20px;
265
+ label {
266
+ margin-bottom: 10px;
267
+ }
268
+ }
269
+
270
+ .wdsoctosignup {
271
+ h2 {
272
+ text-align:left;
273
+ }
274
+ }
275
+
276
  .wdspromos {
277
  float: right;
278
  margin-left: 20px;
279
  margin-top: 10px;
280
  width: 275px;
 
 
 
 
 
 
 
281
  }
282
  .wdspromos-about {
283
  display: -ms-flexbox;
364
 
365
  @media #{$min-tablet} {
366
  .cptui-badge {
367
+ margin-top: -42px;
368
+ height: 173px;
369
  width: 173px;
370
  color: #fafafa;
371
  font-weight: bold;
372
  font-size: 14px;
373
  text-align: center;
374
+ margin-bottom: 10px;
375
  background: url(../images/cptui-icon-173x173.png) no-repeat;
376
  }
377
  }
custom-post-type-ui.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17
  * Description: Admin panel for creating custom post types and custom taxonomies in WordPress
18
  * Author: WebDevStudios
19
- * Version: 1.7.2
20
  * Author URI: https://webdevstudios.com/
21
  * Text Domain: custom-post-type-ui
22
  * Domain Path: /languages
@@ -30,8 +30,8 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  exit;
31
  }
32
 
33
- define( 'CPT_VERSION', '1.7.2' ); // Left for legacy purposes.
34
- define( 'CPTUI_VERSION', '1.7.2' );
35
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
36
 
37
  /**
16
  * Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17
  * Description: Admin panel for creating custom post types and custom taxonomies in WordPress
18
  * Author: WebDevStudios
19
+ * Version: 1.7.3
20
  * Author URI: https://webdevstudios.com/
21
  * Text Domain: custom-post-type-ui
22
  * Domain Path: /languages
30
  exit;
31
  }
32
 
33
+ define( 'CPT_VERSION', '1.7.3' ); // Left for legacy purposes.
34
+ define( 'CPTUI_VERSION', '1.7.3' );
35
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
36
 
37
  /**
inc/about.php CHANGED
@@ -66,12 +66,12 @@ function cptui_settings() {
66
  */
67
  do_action( 'cptui_main_page_after_header' );
68
  ?>
69
-
70
- <div class="about-text cptui-about-text">
71
- <?php esc_html_e( 'Thank you for choosing Custom Post Type UI! We hope that your experience with our plugin makes creating post types and taxonomies and organizing your content quick and easy.', 'custom-post-type-ui' ); ?>
 
 
72
  </div>
73
- <div class="cptui-badge"></div>
74
-
75
  <?php
76
  /**
77
  * Fires before the About Page changelog.
@@ -157,9 +157,13 @@ function cptui_about_page_newsletter() {
157
  }
158
 
159
  ?>
160
- <h3><?php esc_html_e( 'Stay informed', 'custom-post-type-ui' ); ?></h3>
 
 
 
 
 
161
  <?php
162
- cptui_newsletter_form();
163
 
164
  return '';
165
  }
66
  */
67
  do_action( 'cptui_main_page_after_header' );
68
  ?>
69
+ <div class="cptui-intro-devblock">
70
+ <p class="about-text cptui-about-text">
71
+ <?php esc_html_e( 'Thank you for choosing Custom Post Type UI! We hope that your experience with our plugin makes creating post types and taxonomies and organizing your content quick and easy.', 'custom-post-type-ui' ); ?>
72
+ </p>
73
+ <div class="cptui-badge"></div>
74
  </div>
 
 
75
  <?php
76
  /**
77
  * Fires before the About Page changelog.
157
  }
158
 
159
  ?>
160
+ <div class='wdsoctosignup'>
161
+ <?php
162
+ cptui_newsletter_form();
163
+ ?>
164
+ </div>
165
+
166
  <?php
 
167
 
168
  return '';
169
  }
inc/utility.php CHANGED
@@ -369,37 +369,48 @@ add_action( 'cptui_below_taxonomy_tab_menu', 'cptui_products_sidebar' );
369
  */
370
  function cptui_newsletter_form() {
371
  ?>
372
- <!-- Begin MailChimp Signup Form -->
373
- <div id="mc_embed_signup">
374
- <form action="//webdevstudios.us1.list-manage.com/subscribe/post?u=67169b098c99de702c897d63e&amp;id=9cb1c7472e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
375
- <div id="mc_embed_signup_scroll">
376
- <p><strong><?php esc_html_e( 'Get email updates from pluginize.com about Custom Post Type UI', 'custom-post-type-ui' ); ?></strong></p>
377
- <div class="mc-field-group">
378
- <label for="mce-EMAIL"><?php esc_html_e( 'Email Address', 'custom-post-type-ui' ); ?></label>
379
- <input tabindex="-1" type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
380
- </div>
381
- <div id="mce-responses" class="clear">
382
- <div class="response" id="mce-error-response" style="display:none"></div>
383
- <div class="response" id="mce-success-response" style="display:none"></div>
384
- </div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
385
- <div style="position: absolute; left: -5000px;" aria-hidden="true">
386
- <input type="text" name="b_67169b098c99de702c897d63e_9cb1c7472e" tabindex="-1" value=""></div>
387
- <div class="clear">
388
- <input type="submit" value="<?php esc_attr_e( 'Subscribe', 'custom-post-type-ui' ); ?>" name="subscribe" id="mc-embedded-subscribe" class="button" tabindex="-1">
389
- </div>
390
- </div>
391
- </form>
 
 
 
 
 
 
 
 
 
392
  </div>
393
- <!--End mc_embed_signup-->
394
  <?php
395
  }
396
 
397
  /**
398
- * Add our mailchimp scripts and stylesheet.
399
  *
400
- * @since unsure
 
401
  */
402
- function cptui_mailchimp_scripts_styles() {
 
403
  $current_screen = get_current_screen();
404
 
405
  if ( ! is_object( $current_screen ) ) {
@@ -420,12 +431,12 @@ function cptui_mailchimp_scripts_styles() {
420
  return;
421
  }
422
 
423
- wp_enqueue_style( 'cptui-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css' );
424
- wp_enqueue_script( 'cptui-mailchimp-js', '//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js', [], '', true );
425
- wp_add_inline_script( 'cptui-mailchimp-js', '(function ($) {window.fnames = new Array();window.ftypes = new Array();fnames[0] = "EMAIL";ftypes[0] = "email";}(jQuery));var $mcj = jQuery.noConflict(true);' );
426
 
427
  }
428
- add_action( 'admin_enqueue_scripts', 'cptui_mailchimp_scripts_styles' );
429
 
430
  /**
431
  * Fetch all set ads to be displayed.
369
  */
370
  function cptui_newsletter_form() {
371
  ?>
372
+
373
+ <div class="email-octopus-form-wrapper">
374
+ <p><strong>Get email updates from pluginize.com about Custom Post Type UI</strong></p>
375
+ <p class="email-octopus-success-message"></p>
376
+ <p class="email-octopus-error-message"></p>
377
+
378
+ <form method="post"
379
+ action="https://emailoctopus.com/lists/2039e001-4775-11ea-be00-06b4694bee2a/members/embedded/1.3/add"
380
+ class="email-octopus-form"
381
+ data-sitekey="6LdYsmsUAAAAAPXVTt-ovRsPIJ_IVhvYBBhGvRV6">
382
+ <div class="email-octopus-form-row">
383
+ <label for="field_0">Email address</label>
384
+ <input id="field_0" name="field_0" type="email" placeholder="email@domain.com" style="max-width:100%;">
385
+ </div>
386
+
387
+ <div class="email-octopus-form-row-hp" aria-hidden="true">
388
+ <!-- Do not remove this field, otherwise you risk bot sign-ups -->
389
+ <input type="text" name="hp2039e001-4775-11ea-be00-06b4694bee2a"
390
+ tabindex="-1"
391
+ autocomplete="nope">
392
+ </div>
393
+
394
+ <div class="email-octopus-form-row-subscribe">
395
+ <input type="hidden"
396
+ name="successRedirectUrl"
397
+ value="">
398
+ <button type="submit">Subscribe</button>
399
+ </div>
400
+ </form>
401
  </div>
402
+
403
  <?php
404
  }
405
 
406
  /**
407
+ * Add our Email Octopus scripts and stylesheet.
408
  *
409
+ * @author Scott Anderson <scott.anderson@webdevstudios.com>
410
+ * @since NEXT
411
  */
412
+ function enqueue_email_octopus_assets() {
413
+
414
  $current_screen = get_current_screen();
415
 
416
  if ( ! is_object( $current_screen ) ) {
431
  return;
432
  }
433
 
434
+ wp_enqueue_style( 'cptui-emailoctopus', 'https://emailoctopus.com/bundles/emailoctopuslist/css/formEmbed.css' );
435
+
436
+ wp_enqueue_script( 'cptui-emailoctopus-js', 'https://emailoctopus.com/bundles/emailoctopuslist/js/1.4/formEmbed.js', [ 'jquery' ], '', true );
437
 
438
  }
439
+ add_action( 'admin_enqueue_scripts', 'enqueue_email_octopus_assets' );
440
 
441
  /**
442
  * Fetch all set ads to be displayed.
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdevstudios, pluginize, tw2113, vegasgeek, modemlooper, williams
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
4
  Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
5
  Requires at least: 5.2
6
- Tested up to: 5.3
7
- Stable tag: 1.7.2
8
  License: GPL-2.0+
9
  Requires PHP: 5.6
10
 
@@ -31,6 +31,10 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
31
 
32
  == Changelog ==
33
 
 
 
 
 
34
  = 1.7.2 - 2020-01-08 =
35
  * Fixed: Duplicate entries for "delete_with_user" in get code.
36
  * Fixed: Delete button for post types and taxonomies at bottom of page did not trigger dialog prompt.
@@ -94,6 +98,10 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
94
 
95
  == Upgrade Notice ==
96
 
 
 
 
 
97
  = 1.7.2 - 2020-01-08 =
98
  * Fixed: Duplicate entries for "delete_with_user" in get code.
99
  * Fixed: Delete button for post types and taxonomies at bottom of page did not trigger dialog prompt.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
4
  Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
5
  Requires at least: 5.2
6
+ Tested up to: 5.4.0
7
+ Stable tag: 1.7.3
8
  License: GPL-2.0+
9
  Requires PHP: 5.6
10
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.7.3 - 2020-02-05 =
35
+ * Updated: styles and appearance to better match WordPress core.
36
+ * Updated: Change newsletter service integration. Hey, sign up for our newsletter! Props @Oceas
37
+
38
  = 1.7.2 - 2020-01-08 =
39
  * Fixed: Duplicate entries for "delete_with_user" in get code.
40
  * Fixed: Delete button for post types and taxonomies at bottom of page did not trigger dialog prompt.
98
 
99
  == Upgrade Notice ==
100
 
101
+ = 1.7.3 - 2020-02-05 =
102
+ * Updated: styles and appearance to better match WordPress core.
103
+ * Updated: Change newsletter service integration. Hey, sign up for our newsletter! Props @Oceas
104
+
105
  = 1.7.2 - 2020-01-08 =
106
  * Fixed: Duplicate entries for "delete_with_user" in get code.
107
  * Fixed: Delete button for post types and taxonomies at bottom of page did not trigger dialog prompt.