Minimal Coming Soon & Maintenance Mode - Version 1.85

Version Description

  • 2018-11-15
  • minor bug fixes
  • deep integration with MailOptin plugin
  • 456,000 downloads
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Minimal Coming Soon & Maintenance Mode
Version 1.85
Comparing to
See all releases

Code changes from version 1.80 to 1.85

framework/admin/css/admin.css CHANGED
@@ -1275,14 +1275,14 @@ hr {
1275
  padding:6px;
1276
  }
1277
 
1278
- .csmm-image-picker-image{
1279
  border:3px solid transparent;
1280
  float:left;
1281
  margin: 4px;
1282
  line-height: 0px;
1283
  }
1284
 
1285
- .csmm-image-picker-image_ad {
1286
  border:3px solid transparent;
1287
  float:left;
1288
  margin: 4px;
@@ -1325,3 +1325,83 @@ hr {
1325
 
1326
  /* background image filters */
1327
  .aden{position:relative;-webkit-filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2);filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)}.aden:after,.aden:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.aden img{width:100%;z-index:1}.aden:before{z-index:2}.aden:after{z-index:3}.aden::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.gingham::after,.perpetua::after,.reyes::after{mix-blend-mode:soft-light}.inkwell{position:relative;-webkit-filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1);filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1)}.inkwell:after,.inkwell:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.inkwell img{width:100%;z-index:1}.inkwell:before{z-index:2}.inkwell:after{z-index:3}.perpetua{position:relative}.perpetua:after,.perpetua:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.perpetua img{width:100%;z-index:1}.perpetua:before{z-index:2}.perpetua:after{z-index:3}.perpetua::after{background:-webkit-linear-gradient(top,#005b9a,#e6c13d);background:linear-gradient(to bottom,#005b9a,#e6c13d);opacity:.5}.reyes{position:relative;-webkit-filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75);filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75)}.reyes:after,.reyes:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.reyes img{width:100%;z-index:1}.reyes:before{z-index:2}.reyes:after{z-index:3}.reyes::after{background:#efcdad;opacity:.5}.gingham{position:relative;-webkit-filter:brightness(1.05) hue-rotate(-10deg);filter:brightness(1.05) hue-rotate(-10deg)}.gingham:after,.gingham:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.gingham img{width:100%;z-index:1}.gingham:before{z-index:2}.gingham:after{z-index:3}.gingham::after{background:#e6e6fa}.toaster{position:relative;-webkit-filter:contrast(1.5) brightness(.9);filter:contrast(1.5) brightness(.9)}.toaster:after,.toaster:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.toaster img{width:100%;z-index:1}.toaster:before{z-index:2}.toaster:after{z-index:3}.toaster::after{background:-webkit-radial-gradient(circle,#804e0f,#3b003b);background:radial-gradient(circle,#804e0f,#3b003b);mix-blend-mode:screen}.walden{position:relative;-webkit-filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6);filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6)}.walden:after,.walden:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.walden img{width:100%;z-index:1}.walden:before{z-index:2}.walden:after{z-index:3}.walden::after{background:#04c;mix-blend-mode:screen;opacity:.3}.hudson{position:relative;-webkit-filter:brightness(1.2) contrast(.9) saturate(1.1);filter:brightness(1.2) contrast(.9) saturate(1.1)}.hudson:after,.hudson:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.hudson img{width:100%;z-index:1}.hudson:before{z-index:2}.hudson:after{z-index:3}.hudson::after{background:-webkit-radial-gradient(circle,#a6b1ff 50%,#342134);background:radial-gradient(circle,#a6b1ff 50%,#342134);mix-blend-mode:multiply;opacity:.5}.earlybird{position:relative;-webkit-filter:contrast(.9) sepia(.2);filter:contrast(.9) sepia(.2)}.earlybird:after,.earlybird:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.earlybird img{width:100%;z-index:1}.earlybird:before{z-index:2}.earlybird:after{z-index:3}.earlybird::after{background:-webkit-radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);background:radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);mix-blend-mode:overlay}.mayfair{position:relative;-webkit-filter:contrast(1.1) saturate(1.1);filter:contrast(1.1) saturate(1.1)}.mayfair:after,.mayfair:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.mayfair img{width:100%;z-index:1}.mayfair:before{z-index:2}.mayfair:after{z-index:3}.mayfair::after{background:-webkit-radial-gradient(40% 40%,circle,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);background:radial-gradient(circle at 40% 40%,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);mix-blend-mode:overlay;opacity:.4}.lofi{position:relative;-webkit-filter:saturate(1.1) contrast(1.5);filter:saturate(1.1) contrast(1.5)}.lofi:after,.lofi:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.lofi img{width:100%;z-index:1}.lofi:before{z-index:2}.lofi:after{z-index:3}.lofi::after{background:-webkit-radial-gradient(circle,transparent 70%,#222 150%);background:radial-gradient(circle,transparent 70%,#222 150%);mix-blend-mode:multiply}._1977{position:relative;-webkit-filter:contrast(1.1) brightness(1.1) saturate(1.3);filter:contrast(1.1) brightness(1.1) saturate(1.3)}._1977:after,._1977:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}._1977 img{width:100%;z-index:1}._1977:before{z-index:2}._1977:after{z-index:3;background:rgba(243,106,188,.3);mix-blend-mode:screen}.brooklyn{position:relative;-webkit-filter:contrast(.9) brightness(1.1);filter:contrast(.9) brightness(1.1)}.brooklyn:after,.brooklyn:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.brooklyn img{width:100%;z-index:1}.brooklyn:before{z-index:2}.brooklyn:after{z-index:3}.brooklyn::after{background:-webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);background:radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);mix-blend-mode:overlay}.xpro2{position:relative;-webkit-filter:sepia(.3);filter:sepia(.3)}.xpro2:after,.xpro2:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.xpro2 img{width:100%;z-index:1}.xpro2:before{z-index:2}.xpro2:after{z-index:3}.xpro2::after{background:-webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);background:radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);mix-blend-mode:color-burn}.nashville{position:relative;-webkit-filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2);filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2)}.nashville:after,.nashville:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.nashville img{width:100%;z-index:1}.nashville:before{z-index:2}.nashville:after{z-index:3}.nashville::after{background:rgba(0,70,150,.4);mix-blend-mode:lighten}.nashville::before{background:rgba(247,176,153,.56);mix-blend-mode:darken}.lark{position:relative;-webkit-filter:contrast(.9);filter:contrast(.9)}.lark:after,.lark:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.lark img{width:100%;z-index:1}.lark:before{z-index:2}.lark:after{z-index:3}.lark::after{background:rgba(242,242,242,.8);mix-blend-mode:darken}.lark::before{background:#22253f;mix-blend-mode:color-dodge}.moon{position:relative;-webkit-filter:grayscale(1) contrast(1.1) brightness(1.1);filter:grayscale(1) contrast(1.1) brightness(1.1)}.moon:after,.moon:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.moon img{width:100%;z-index:1}.moon:before{z-index:2}.moon:after{z-index:3}.moon::before{background:#a0a0a0;mix-blend-mode:soft-light}.moon::after{background:#383838;mix-blend-mode:lighten}.clarendon{position:relative;-webkit-filter:contrast(1.2) saturate(1.35);filter:contrast(1.2) saturate(1.35)}.clarendon:after,.clarendon:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.clarendon img{width:100%;z-index:1}.clarendon:before{z-index:2;background:rgba(127,187,227,.2);mix-blend-mode:overlay}.clarendon:after{z-index:3}.willow{position:relative;-webkit-filter:grayscale(.5) contrast(.95) brightness(.9);filter:grayscale(.5) contrast(.95) brightness(.9)}.willow:after,.willow:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.willow img{width:100%;z-index:1}.willow:before{z-index:2}.willow:after{z-index:3}.willow::before{background-color:radial-gradient(40%,circle,#d4a9af 55%,#000 150%);mix-blend-mode:overlay}.willow::after{background-color:#d8cdcb;mix-blend-mode:color}.rise{position:relative;-webkit-filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9);filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9)}.rise:after,.rise:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.rise img{width:100%;z-index:1}.rise:before{z-index:2}.rise:after{z-index:3}.rise::after{background:-webkit-radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);background:radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);mix-blend-mode:overlay;opacity:.6}.rise::before{background:-webkit-radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));background:radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));mix-blend-mode:multiply}.slumber{position:relative;-webkit-filter:saturate(.66) brightness(1.05);filter:saturate(.66) brightness(1.05)}.slumber:after,.slumber:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.slumber img{width:100%;z-index:1}.slumber:before{z-index:2}.slumber:after{z-index:3}.slumber::after{background:rgba(125,105,24,.5);mix-blend-mode:soft-light}.slumber::before{background:rgba(69,41,12,.4);mix-blend-mode:lighten}.brannan{position:relative;-webkit-filter:sepia(.5) contrast(1.4);filter:sepia(.5) contrast(1.4)}.brannan:after,.brannan:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.brannan img{width:100%;z-index:1}.brannan:before{z-index:2}.brannan:after{z-index:3}.brannan::after{background-color:rgba(161,44,199,.31);mix-blend-mode:lighten}.valencia{position:relative;-webkit-filter:contrast(1.08) brightness(1.08) sepia(.08);filter:contrast(1.08) brightness(1.08) sepia(.08)}.valencia:after,.valencia:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.valencia img{width:100%;z-index:1}.valencia:before{z-index:2}.valencia:after{z-index:3}.valencia::after{background:#3a0339;mix-blend-mode:exclusion;opacity:.5}.kelvin{position:relative}.kelvin:after,.kelvin:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.kelvin img{width:100%;z-index:1}.kelvin:before{z-index:2}.kelvin:after{z-index:3}.kelvin::after{background:#b77d21;mix-blend-mode:overlay}.kelvin::before{background:#382c34;mix-blend-mode:color-dodge}.maven{position:relative;-webkit-filter:sepia(.25) brightness(.95) contrast(.95) saturate(1.5);filter:sepia(.25) brightness(.95) contrast(.95) saturate(1.5)}.maven:after,.maven:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.maven img{width:100%;z-index:1}.maven:before{z-index:2}.maven:after{z-index:3;background:rgba(3,230,26,.2);mix-blend-mode:hue}.stinson{position:relative;-webkit-filter:contrast(.75) saturate(.85) brightness(1.15);filter:contrast(.75) saturate(.85) brightness(1.15)}.stinson:after,.stinson:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.stinson img{width:100%;z-index:1}.stinson:before{z-index:2}.stinson:after{z-index:3}.stinson::before{background:rgba(240,149,128,.2);mix-blend-mode:soft-light}.blackwhite { -webkit-filter: grayscale(100%); filter: grayscale(100%); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1275
  padding:6px;
1276
  }
1277
 
1278
+ .csmm-image-picker-image{
1279
  border:3px solid transparent;
1280
  float:left;
1281
  margin: 4px;
1282
  line-height: 0px;
1283
  }
1284
 
1285
+ .csmm-image-picker-image_ad {
1286
  border:3px solid transparent;
1287
  float:left;
1288
  margin: 4px;
1325
 
1326
  /* background image filters */
1327
  .aden{position:relative;-webkit-filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2);filter:hue-rotate(-20deg) contrast(.9) saturate(.85) brightness(1.2)}.aden:after,.aden:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.aden img{width:100%;z-index:1}.aden:before{z-index:2}.aden:after{z-index:3}.aden::after{background:-webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);background:linear-gradient(to right,rgba(66,10,14,.2),transparent);mix-blend-mode:darken}.gingham::after,.perpetua::after,.reyes::after{mix-blend-mode:soft-light}.inkwell{position:relative;-webkit-filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1);filter:sepia(.3) contrast(1.1) brightness(1.1) grayscale(1)}.inkwell:after,.inkwell:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.inkwell img{width:100%;z-index:1}.inkwell:before{z-index:2}.inkwell:after{z-index:3}.perpetua{position:relative}.perpetua:after,.perpetua:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.perpetua img{width:100%;z-index:1}.perpetua:before{z-index:2}.perpetua:after{z-index:3}.perpetua::after{background:-webkit-linear-gradient(top,#005b9a,#e6c13d);background:linear-gradient(to bottom,#005b9a,#e6c13d);opacity:.5}.reyes{position:relative;-webkit-filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75);filter:sepia(.22) brightness(1.1) contrast(.85) saturate(.75)}.reyes:after,.reyes:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.reyes img{width:100%;z-index:1}.reyes:before{z-index:2}.reyes:after{z-index:3}.reyes::after{background:#efcdad;opacity:.5}.gingham{position:relative;-webkit-filter:brightness(1.05) hue-rotate(-10deg);filter:brightness(1.05) hue-rotate(-10deg)}.gingham:after,.gingham:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.gingham img{width:100%;z-index:1}.gingham:before{z-index:2}.gingham:after{z-index:3}.gingham::after{background:#e6e6fa}.toaster{position:relative;-webkit-filter:contrast(1.5) brightness(.9);filter:contrast(1.5) brightness(.9)}.toaster:after,.toaster:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.toaster img{width:100%;z-index:1}.toaster:before{z-index:2}.toaster:after{z-index:3}.toaster::after{background:-webkit-radial-gradient(circle,#804e0f,#3b003b);background:radial-gradient(circle,#804e0f,#3b003b);mix-blend-mode:screen}.walden{position:relative;-webkit-filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6);filter:brightness(1.1) hue-rotate(-10deg) sepia(.3) saturate(1.6)}.walden:after,.walden:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.walden img{width:100%;z-index:1}.walden:before{z-index:2}.walden:after{z-index:3}.walden::after{background:#04c;mix-blend-mode:screen;opacity:.3}.hudson{position:relative;-webkit-filter:brightness(1.2) contrast(.9) saturate(1.1);filter:brightness(1.2) contrast(.9) saturate(1.1)}.hudson:after,.hudson:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.hudson img{width:100%;z-index:1}.hudson:before{z-index:2}.hudson:after{z-index:3}.hudson::after{background:-webkit-radial-gradient(circle,#a6b1ff 50%,#342134);background:radial-gradient(circle,#a6b1ff 50%,#342134);mix-blend-mode:multiply;opacity:.5}.earlybird{position:relative;-webkit-filter:contrast(.9) sepia(.2);filter:contrast(.9) sepia(.2)}.earlybird:after,.earlybird:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.earlybird img{width:100%;z-index:1}.earlybird:before{z-index:2}.earlybird:after{z-index:3}.earlybird::after{background:-webkit-radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);background:radial-gradient(circle,#d0ba8e 20%,#360309 85%,#1d0210 100%);mix-blend-mode:overlay}.mayfair{position:relative;-webkit-filter:contrast(1.1) saturate(1.1);filter:contrast(1.1) saturate(1.1)}.mayfair:after,.mayfair:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.mayfair img{width:100%;z-index:1}.mayfair:before{z-index:2}.mayfair:after{z-index:3}.mayfair::after{background:-webkit-radial-gradient(40% 40%,circle,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);background:radial-gradient(circle at 40% 40%,rgba(255,255,255,.8),rgba(255,200,200,.6),#111 60%);mix-blend-mode:overlay;opacity:.4}.lofi{position:relative;-webkit-filter:saturate(1.1) contrast(1.5);filter:saturate(1.1) contrast(1.5)}.lofi:after,.lofi:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.lofi img{width:100%;z-index:1}.lofi:before{z-index:2}.lofi:after{z-index:3}.lofi::after{background:-webkit-radial-gradient(circle,transparent 70%,#222 150%);background:radial-gradient(circle,transparent 70%,#222 150%);mix-blend-mode:multiply}._1977{position:relative;-webkit-filter:contrast(1.1) brightness(1.1) saturate(1.3);filter:contrast(1.1) brightness(1.1) saturate(1.3)}._1977:after,._1977:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}._1977 img{width:100%;z-index:1}._1977:before{z-index:2}._1977:after{z-index:3;background:rgba(243,106,188,.3);mix-blend-mode:screen}.brooklyn{position:relative;-webkit-filter:contrast(.9) brightness(1.1);filter:contrast(.9) brightness(1.1)}.brooklyn:after,.brooklyn:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.brooklyn img{width:100%;z-index:1}.brooklyn:before{z-index:2}.brooklyn:after{z-index:3}.brooklyn::after{background:-webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);background:radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);mix-blend-mode:overlay}.xpro2{position:relative;-webkit-filter:sepia(.3);filter:sepia(.3)}.xpro2:after,.xpro2:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.xpro2 img{width:100%;z-index:1}.xpro2:before{z-index:2}.xpro2:after{z-index:3}.xpro2::after{background:-webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);background:radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);mix-blend-mode:color-burn}.nashville{position:relative;-webkit-filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2);filter:sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2)}.nashville:after,.nashville:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.nashville img{width:100%;z-index:1}.nashville:before{z-index:2}.nashville:after{z-index:3}.nashville::after{background:rgba(0,70,150,.4);mix-blend-mode:lighten}.nashville::before{background:rgba(247,176,153,.56);mix-blend-mode:darken}.lark{position:relative;-webkit-filter:contrast(.9);filter:contrast(.9)}.lark:after,.lark:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.lark img{width:100%;z-index:1}.lark:before{z-index:2}.lark:after{z-index:3}.lark::after{background:rgba(242,242,242,.8);mix-blend-mode:darken}.lark::before{background:#22253f;mix-blend-mode:color-dodge}.moon{position:relative;-webkit-filter:grayscale(1) contrast(1.1) brightness(1.1);filter:grayscale(1) contrast(1.1) brightness(1.1)}.moon:after,.moon:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.moon img{width:100%;z-index:1}.moon:before{z-index:2}.moon:after{z-index:3}.moon::before{background:#a0a0a0;mix-blend-mode:soft-light}.moon::after{background:#383838;mix-blend-mode:lighten}.clarendon{position:relative;-webkit-filter:contrast(1.2) saturate(1.35);filter:contrast(1.2) saturate(1.35)}.clarendon:after,.clarendon:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.clarendon img{width:100%;z-index:1}.clarendon:before{z-index:2;background:rgba(127,187,227,.2);mix-blend-mode:overlay}.clarendon:after{z-index:3}.willow{position:relative;-webkit-filter:grayscale(.5) contrast(.95) brightness(.9);filter:grayscale(.5) contrast(.95) brightness(.9)}.willow:after,.willow:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.willow img{width:100%;z-index:1}.willow:before{z-index:2}.willow:after{z-index:3}.willow::before{background-color:radial-gradient(40%,circle,#d4a9af 55%,#000 150%);mix-blend-mode:overlay}.willow::after{background-color:#d8cdcb;mix-blend-mode:color}.rise{position:relative;-webkit-filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9);filter:brightness(1.05) sepia(.2) contrast(.9) saturate(.9)}.rise:after,.rise:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.rise img{width:100%;z-index:1}.rise:before{z-index:2}.rise:after{z-index:3}.rise::after{background:-webkit-radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);background:radial-gradient(circle,rgba(232,197,152,.8),transparent 90%);mix-blend-mode:overlay;opacity:.6}.rise::before{background:-webkit-radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));background:radial-gradient(circle,rgba(236,205,169,.15) 55%,rgba(50,30,7,.4));mix-blend-mode:multiply}.slumber{position:relative;-webkit-filter:saturate(.66) brightness(1.05);filter:saturate(.66) brightness(1.05)}.slumber:after,.slumber:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.slumber img{width:100%;z-index:1}.slumber:before{z-index:2}.slumber:after{z-index:3}.slumber::after{background:rgba(125,105,24,.5);mix-blend-mode:soft-light}.slumber::before{background:rgba(69,41,12,.4);mix-blend-mode:lighten}.brannan{position:relative;-webkit-filter:sepia(.5) contrast(1.4);filter:sepia(.5) contrast(1.4)}.brannan:after,.brannan:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.brannan img{width:100%;z-index:1}.brannan:before{z-index:2}.brannan:after{z-index:3}.brannan::after{background-color:rgba(161,44,199,.31);mix-blend-mode:lighten}.valencia{position:relative;-webkit-filter:contrast(1.08) brightness(1.08) sepia(.08);filter:contrast(1.08) brightness(1.08) sepia(.08)}.valencia:after,.valencia:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.valencia img{width:100%;z-index:1}.valencia:before{z-index:2}.valencia:after{z-index:3}.valencia::after{background:#3a0339;mix-blend-mode:exclusion;opacity:.5}.kelvin{position:relative}.kelvin:after,.kelvin:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.kelvin img{width:100%;z-index:1}.kelvin:before{z-index:2}.kelvin:after{z-index:3}.kelvin::after{background:#b77d21;mix-blend-mode:overlay}.kelvin::before{background:#382c34;mix-blend-mode:color-dodge}.maven{position:relative;-webkit-filter:sepia(.25) brightness(.95) contrast(.95) saturate(1.5);filter:sepia(.25) brightness(.95) contrast(.95) saturate(1.5)}.maven:after,.maven:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.maven img{width:100%;z-index:1}.maven:before{z-index:2}.maven:after{z-index:3;background:rgba(3,230,26,.2);mix-blend-mode:hue}.stinson{position:relative;-webkit-filter:contrast(.75) saturate(.85) brightness(1.15);filter:contrast(.75) saturate(.85) brightness(1.15)}.stinson:after,.stinson:before{content:'';display:block;height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none}.stinson img{width:100%;z-index:1}.stinson:before{z-index:2}.stinson:after{z-index:3}.stinson::before{background:rgba(240,149,128,.2);mix-blend-mode:soft-light}.blackwhite { -webkit-filter: grayscale(100%); filter: grayscale(100%); }
1328
+
1329
+ /* mailoptin upsell dialog */
1330
+ .csmm-mailoptin-upsell-dialog .ui-dialog-titlebar {
1331
+ background: #2980b9;
1332
+ text-align: center;
1333
+ height: 55px;
1334
+ }
1335
+ .csmm-mailoptin-upsell-dialog .ui-dialog-titlebar img {
1336
+ height: 32px;
1337
+ display: inline-block;
1338
+ margin: 11px 0 0 0;
1339
+ }
1340
+ .csmm-mailoptin-upsell-dialog .ui-dialog-titlebar-close {
1341
+ color: #fff;
1342
+ height: 55px;
1343
+ }
1344
+ .csmm-mailoptin-upsell-dialog .ui-dialog-titlebar-close:hover {
1345
+ color: #333;
1346
+ }
1347
+ .csmm-mailoptin-upsell-dialog .ui-dialog-content {
1348
+ padding: 0;
1349
+ }
1350
+ .csmm-mailoptin-upsell-dialog .ui-tabs-nav {
1351
+ text-align: center;
1352
+ }
1353
+ .csmm-mailoptin-upsell-dialog .ui-tabs .upsell-tab {
1354
+ padding: 20px 15px;
1355
+ text-align: center;
1356
+ }
1357
+ .csmm-mailoptin-upsell-dialog a {
1358
+ color: #333;
1359
+ }
1360
+ .csmm-mailoptin-upsell-dialog a:hover {
1361
+ color: #000;
1362
+ }
1363
+
1364
+ .upsell-header {
1365
+ margin: 0 0 20px 0;
1366
+ background: #2980b9;
1367
+ color: #fefefe;
1368
+ padding: 10px;
1369
+ box-sizing: content-box;
1370
+ border: 1px solid #111;
1371
+ }
1372
+ .upsell-header b {
1373
+ font-weight: bolder;
1374
+ }
1375
+ .upsell-footer {
1376
+ padding: 20px;
1377
+ box-sizing: border-box;
1378
+ text-align: center;
1379
+ margin: 20px -15px -20px -15px;
1380
+ background-color: rgba(128, 128, 128, 0.03);
1381
+ }
1382
+ #tab-upsell-features .upsell-footer {
1383
+ margin-top: 0;
1384
+ }
1385
+ option.mailoptin-promo {
1386
+ color: #2980b9;
1387
+ }
1388
+
1389
+ .mailoptin-pro-feature {
1390
+ display: inline-block;
1391
+ width: 32%;
1392
+ background: rgba(128, 128, 128, 0.03);
1393
+ margin: 0 5px 20px 5px;
1394
+ padding: 10px;
1395
+ box-sizing: border-box;
1396
+ vertical-align: top;
1397
+ position: relative;
1398
+ border-top: 1px solid #2980b9;
1399
+ }
1400
+
1401
+ .normal-list {
1402
+ list-style-type: circle;
1403
+ list-style-position: outside;
1404
+ margin-left: 14px;
1405
+ }
1406
+
1407
+ /* upsell dialog */
framework/admin/img/mailoptin-logo-white.png ADDED
Binary file
framework/admin/include/mailoptin.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function csmm_mailoptin_settings($signals_csmm_options){
4
+ global $wpdb;
5
+ if(csmm_is_mailoptin_active()){
6
+ $mailoptin_campaigns = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'mo_optin_campaigns');
7
+
8
+ echo '<label for="signals_csmm_mailoptin_campaign" class="signals-strong">MailOptin Campaign:</label>';
9
+ if (empty($mailoptin_campaigns)) {
10
+ echo '<p><a href="' . admin_url('admin.php?page=mailoptin-optin-campaigns') . '">Create your first optin</a> to start collecting leads and subscribers via in-content optins or popups.</p>';
11
+ } else {
12
+ echo '<select name="signals_csmm_mailoptin_campaign" id="signals_csmm_mailoptin_campaign">';
13
+ echo '<option value="0">Select Campaign</option>';
14
+ foreach($mailoptin_campaigns as $mailoptin_campaign) {
15
+ if ($mailoptin_campaign->optin_type == 'lightbox') {
16
+ $type = 'lightbox optin';
17
+ } else {
18
+ $type = 'content optin';
19
+ }
20
+ echo '<option value="'.$mailoptin_campaign->id.'" '.($signals_csmm_options['mailoptin_campaign'] == $mailoptin_campaign->id?'selected':'').'>'.$mailoptin_campaign->name . ' - ' . $type . '</option>';
21
+ } // foreach
22
+ echo '</select>';
23
+ echo '<p class="signals-form-help-block">Create, edit and manage optins on the <a href="' . admin_url('admin.php?page=mailoptin-optin-campaigns') . '">MailOptin campaigns page</a>. Lightbox optins are more prominent but some users find them annoying. Content box optins tend to generate leads of higher quality.</p>';
24
+ }
25
+ } else {
26
+ echo '<p class="signals-form-help-block"><a href="#" class="button button-primary open-mailoptin-upsell">Enable the free MailOptin plugin</a> to start creating in-content optin forms and popup optins. MailOptin is fully integrated into Coming Soon pages and offers numerous customization options.</p>';
27
+ }
28
+
29
+ // mailoptin install dialog
30
+ echo '<div id="csmm-mailoptin-upsell-dialog" style="display: none;" title="MailOptin"><span class="ui-helper-hidden-accessible"><input type="text"/></span>';
31
+ echo '<div style="padding: 20px; font-size: 14px;">';
32
+ echo '<ul class="normal-list">';
33
+ echo '<li>completely free plugin that integrates into Coming Soon pages</li>';
34
+ echo '<li>instantly start collecting leads &amp; subscribers</li>';
35
+ echo '<li>use an in-content optin form</li>';
36
+ echo '<li>or try a popup/lightbox optin</li>';
37
+ echo '<li>easily connect with numerous leading autoresponder services</li>';
38
+ echo '<li>completely customize the look &amp; feel of the optin form</li>';
39
+ echo '</ul>';
40
+ echo '<p class="upsell-footer"><a class="button button-primary" id="install-mailoptin">Install &amp; activate MailOptin to start collecting leads</a></p>';
41
+ echo '</div>';
42
+ echo '</div>'; // mailoptin install dialog
43
+ }
44
+
45
+
46
+ function csmm_is_mailoptin_active() {
47
+ if ( ! function_exists( 'is_plugin_active' ) || ! function_exists( 'get_plugin_data' )) {
48
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
49
+ }
50
+
51
+ if(is_plugin_active('mailoptin/mailoptin.php')){
52
+ $mailoptin_info = get_plugin_data(ABSPATH.'wp-content/plugins/mailoptin/mailoptin.php');
53
+ if(version_compare($mailoptin_info['Version'],'1.2.10.1','<')){
54
+ return false;
55
+ } else {
56
+ return true;
57
+ }
58
+ } else {
59
+ return false;
60
+ }
61
+
62
+ }
63
+
64
+ function csmm_install_mailoptin() {
65
+ $plugin_slug = 'mailoptin/mailoptin.php';
66
+ $plugin_zip = 'https://downloads.wordpress.org/plugin/mailoptin.latest-stable.zip';
67
+
68
+ @include_once ABSPATH . 'wp-admin/includes/plugin.php';
69
+ @include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
70
+ @include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
71
+ @include_once ABSPATH . 'wp-admin/includes/file.php';
72
+ @include_once ABSPATH . 'wp-admin/includes/misc.php';
73
+ echo '<style>
74
+ body{
75
+ font-family: sans-serif;
76
+ font-size: 14px;
77
+ line-height: 1.5;
78
+ color: #444;
79
+ }
80
+ </style>';
81
+
82
+ echo '<div style="margin: 20px; color:#444;">';
83
+ echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=mailoptin&tab=search&type=term') .'">install the plugin manually via Plugins page</a><br><br>';
84
+ echo 'Starting ...<br><br>';
85
+
86
+ wp_cache_flush();
87
+ $upgrader = new Plugin_Upgrader();
88
+ echo 'Check if MailOptin is already installed ... <br />';
89
+ if (csmm_is_plugin_installed($plugin_slug)) {
90
+ echo 'MailOptin is already installed! <br /><br />Making sure it\'s the latest version.<br />';
91
+ $upgrader->upgrade($plugin_slug);
92
+ $installed = true;
93
+ } else {
94
+ echo 'Installing MailOptin.<br />';
95
+ $installed = $upgrader->install($plugin_zip);
96
+ }
97
+ wp_cache_flush();
98
+
99
+ if (!is_wp_error($installed) && $installed) {
100
+ echo 'Activating MailOptin.<br />';
101
+ $activate = activate_plugin($plugin_slug);
102
+
103
+ if (is_null($activate)) {
104
+ echo 'MailOptin Activated.<br />';
105
+ $options = get_option('wp-reset', array());
106
+ $options['meta']['reset-wp-user'] = true;
107
+ update_option('wp-reset', $options);
108
+
109
+ echo '<script>setTimeout(function() { top.location = "options-general.php?page=maintenance_mode_options"; }, 800);</script>';
110
+ echo '<br>If you are not redirected in a few seconds - <a href="options-general.php?page=maintenance_mode_options" target="_parent">click here</a>.';
111
+ }
112
+ } else {
113
+ echo 'Could not install MailOptin. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=mailoptin&tab=search&type=term') .'">download and install manually</a>.';
114
+ }
115
+
116
+ echo '</div>';
117
+ } // replace
118
+
119
+ function csmm_is_plugin_installed( $slug ) {
120
+ if ( ! function_exists( 'get_plugins' ) ) {
121
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
122
+ }
123
+ $all_plugins = get_plugins();
124
+
125
+ if ( !empty( $all_plugins[$slug] ) ) {
126
+ return true;
127
+ } else {
128
+ return false;
129
+ }
130
+ }
framework/admin/init.php CHANGED
@@ -8,7 +8,6 @@
8
  * @package Signals_Maintenance_Mode
9
  */
10
 
11
-
12
  function csmm_add_menu() {
13
  if(current_user_can('manage_options')) {
14
  // Adding to the plugin panel link to the settings menu
@@ -21,7 +20,8 @@ function csmm_add_menu() {
21
  );
22
 
23
  // Loading the JS conditionally
24
- add_action( 'load-' . $signals_csmm_menu, 'csmm_load_scripts' );
 
25
  }
26
 
27
  }
@@ -51,6 +51,8 @@ function csmm_admin_scripts() {
51
  $mm_js_vars = array(
52
  'mm_url' => 'https://assets.comingsoonwp.com/free-backgrounds/',
53
  'mm_base_url' => CSMM_URL,
 
 
54
  'mm_images' => array('john-cobb-13961-unsplash.jpg', 'aaron-burden-189321-unsplash.jpg', 'alberto-restifo-4510-unsplash.jpg', 'amy-humphries-227515-unsplash.jpg', 'anders-jilden-89745-unsplash.jpg', 'art-by-lonfeldt-1064207-unsplash.jpg', 'brenda-godinez-229718-unsplash.jpg', 'ad_more-images.png', 'brooke-lark-229136-unsplash.jpg', 'carmine-de-fazio-31543-unsplash.jpg', 'denys-nevozhai-100695-unsplash.jpg', 'dustin-lee-19667-unsplash.jpg', 'elena-prokofyeva-17909-unsplash.jpg', 'fezbot2000-278419-unsplash.jpg', 'glenn-carstens-peters-190592-unsplash.jpg', 'greg-rakozy-38802-unsplash.jpg', 'henry-be-99471-unsplash.jpg', 'hoach-le-dinh-91879-unsplash.jpg', 'ian-dooley-280928-unsplash.jpg', 'ian-schneider-108618-unsplash.jpg', 'jakub-sejkora-42069-unsplash.jpg', 'jesus-kiteque-224069-unsplash.jpg', 'joanna-kosinska-44214-unsplash.jpg', 'jonathan-bean-37632-unsplash.jpg', 'kimon-maritz-193428-unsplash.jpg', 'matthew-henry-49707-unsplash.jpg', 'ng-32703-unsplash.jpg', 'nitish-meena-37745-unsplash.jpg', 'osman-rana-1064081-unsplash.jpg', 'patrick-tomasso-208114-unsplash.jpg', 'patrick-tomasso-71909-unsplash.jpg', 'pawel-czerwinski-1060762-unsplash.jpg', 'rachael-gorjestani-282049-unsplash.jpg', 'rawpixel-191102-unsplash.jpg', 'sarah-dorweiler-211779-unsplash.jpg', 'stefan-stefancik-105374-unsplash.jpg', 'steven-wei-124690-unsplash.jpg', 'sunrise-1756274.jpg', 'teddy-kelley-106391-unsplash.jpg', 'thought-catalog-214785-unsplash.jpg', 'ad_custom-image.png', 'brooke-lark-356767-unsplash.jpg', 'ian-dooley-280928-unsplash.jpg', 'jeremy-bishop-334996-unsplash.jpg', 'martin-reisch-185835-unsplash.jpg', 'simon-matzinger-320332-unsplash.jpg', 'trevor-cole-393228-unsplash.jpg', 'verne-ho-237626-unsplash.jpg')
55
  );
56
  wp_localize_script( 'csmm-admin-base', 'mm_js_vars', $mm_js_vars );
@@ -63,6 +65,9 @@ function csmm_admin_scripts() {
63
  wp_enqueue_script( 'csmm-admin-plugins' );
64
  wp_enqueue_script( 'csmm-admin-base' );
65
 
 
 
 
66
  // For the upload option using media uploader
67
  wp_enqueue_media();
68
  }
8
  * @package Signals_Maintenance_Mode
9
  */
10
 
 
11
  function csmm_add_menu() {
12
  if(current_user_can('manage_options')) {
13
  // Adding to the plugin panel link to the settings menu
20
  );
21
 
22
  // Loading the JS conditionally
23
+ add_action( 'load-' . $signals_csmm_menu, 'csmm_load_scripts' );
24
+ add_action( 'admin_action_csmm_install_mailoptin', 'csmm_install_mailoptin');
25
  }
26
 
27
  }
51
  $mm_js_vars = array(
52
  'mm_url' => 'https://assets.comingsoonwp.com/free-backgrounds/',
53
  'mm_base_url' => CSMM_URL,
54
+ 'mm_mo_title' => '<img alt="' . __('MailOptin', 'signals') . '" title="' . __('MailOptin', 'signals') . '" src="' . CSMM_URL . '/framework/admin/img/mailoptin-logo-white.png' . '">',
55
+ 'mm_mo_install_url' => add_query_arg( array('action' => 'csmm_install_mailoptin'), admin_url('admin.php') ),
56
  'mm_images' => array('john-cobb-13961-unsplash.jpg', 'aaron-burden-189321-unsplash.jpg', 'alberto-restifo-4510-unsplash.jpg', 'amy-humphries-227515-unsplash.jpg', 'anders-jilden-89745-unsplash.jpg', 'art-by-lonfeldt-1064207-unsplash.jpg', 'brenda-godinez-229718-unsplash.jpg', 'ad_more-images.png', 'brooke-lark-229136-unsplash.jpg', 'carmine-de-fazio-31543-unsplash.jpg', 'denys-nevozhai-100695-unsplash.jpg', 'dustin-lee-19667-unsplash.jpg', 'elena-prokofyeva-17909-unsplash.jpg', 'fezbot2000-278419-unsplash.jpg', 'glenn-carstens-peters-190592-unsplash.jpg', 'greg-rakozy-38802-unsplash.jpg', 'henry-be-99471-unsplash.jpg', 'hoach-le-dinh-91879-unsplash.jpg', 'ian-dooley-280928-unsplash.jpg', 'ian-schneider-108618-unsplash.jpg', 'jakub-sejkora-42069-unsplash.jpg', 'jesus-kiteque-224069-unsplash.jpg', 'joanna-kosinska-44214-unsplash.jpg', 'jonathan-bean-37632-unsplash.jpg', 'kimon-maritz-193428-unsplash.jpg', 'matthew-henry-49707-unsplash.jpg', 'ng-32703-unsplash.jpg', 'nitish-meena-37745-unsplash.jpg', 'osman-rana-1064081-unsplash.jpg', 'patrick-tomasso-208114-unsplash.jpg', 'patrick-tomasso-71909-unsplash.jpg', 'pawel-czerwinski-1060762-unsplash.jpg', 'rachael-gorjestani-282049-unsplash.jpg', 'rawpixel-191102-unsplash.jpg', 'sarah-dorweiler-211779-unsplash.jpg', 'stefan-stefancik-105374-unsplash.jpg', 'steven-wei-124690-unsplash.jpg', 'sunrise-1756274.jpg', 'teddy-kelley-106391-unsplash.jpg', 'thought-catalog-214785-unsplash.jpg', 'ad_custom-image.png', 'brooke-lark-356767-unsplash.jpg', 'ian-dooley-280928-unsplash.jpg', 'jeremy-bishop-334996-unsplash.jpg', 'martin-reisch-185835-unsplash.jpg', 'simon-matzinger-320332-unsplash.jpg', 'trevor-cole-393228-unsplash.jpg', 'verne-ho-237626-unsplash.jpg')
57
  );
58
  wp_localize_script( 'csmm-admin-base', 'mm_js_vars', $mm_js_vars );
65
  wp_enqueue_script( 'csmm-admin-plugins' );
66
  wp_enqueue_script( 'csmm-admin-base' );
67
 
68
+ wp_enqueue_style('wp-jquery-ui-dialog');
69
+ wp_enqueue_script('jquery-ui-dialog');
70
+
71
  // For the upload option using media uploader
72
  wp_enqueue_media();
73
  }
framework/admin/js/admin.js CHANGED
@@ -82,7 +82,7 @@ function getMMUploader($text, $target) {
82
  html +='</div>';
83
  html +='</div>';
84
  $('.csmm-image-picker').remove();
85
- $('body').append(html);
86
 
87
  $('body').on('click', '.csmm-image-picker-image',function() {
88
  var image_url = $(this).data('image');
@@ -105,7 +105,7 @@ function load_gumroad() {
105
  $('body').on('click','.media-modal-close', function() {
106
  $('.csmm-image-picker').remove();
107
  });
108
-
109
  $('body').on('click','.csmm-image-picker-image_ad', function(e) {
110
  $('.csmm-image-picker').remove();
111
  csmm_change_tab('pro');
@@ -277,6 +277,69 @@ function load_gumroad() {
277
  return false;
278
  });
279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  $('#background_image_filter').on('change', function(e) {
281
  filter = $(this).val();
282
  image = $('#background-preview img');
@@ -288,6 +351,16 @@ function load_gumroad() {
288
  $(image).addClass(filter);
289
  }).trigger('change');
290
 
 
 
 
 
 
 
 
 
 
 
291
  $('#header-status').on('click', function(e) {
292
  e.preventDefault();
293
  window.location = $(this).data('action-url');
@@ -444,7 +517,7 @@ function load_gumroad() {
444
 
445
  // tabs
446
  var $state = $.cookie( 'signals_csmm_menu' );
447
-
448
  if ($state == '#pro') {
449
  load_gumroad();
450
  }
@@ -466,7 +539,7 @@ function load_gumroad() {
466
 
467
  var $selector = $( this );
468
  var $tab = $selector.attr( 'href' );
469
-
470
  if ($tab == '#pro') {
471
  load_gumroad();
472
  }
82
  html +='</div>';
83
  html +='</div>';
84
  $('.csmm-image-picker').remove();
85
+ $('body').append(html);
86
 
87
  $('body').on('click', '.csmm-image-picker-image',function() {
88
  var image_url = $(this).data('image');
105
  $('body').on('click','.media-modal-close', function() {
106
  $('.csmm-image-picker').remove();
107
  });
108
+
109
  $('body').on('click','.csmm-image-picker-image_ad', function(e) {
110
  $('.csmm-image-picker').remove();
111
  csmm_change_tab('pro');
277
  return false;
278
  });
279
 
280
+ $(document).on('click', '.open-mailoptin-upsell', function(e) {
281
+ e.preventDefault();
282
+
283
+ $(this).blur();
284
+
285
+ $('#csmm-mailoptin-upsell-dialog').dialog('open');
286
+ return false;
287
+ });
288
+
289
+ $('#mail_system_to_use').on('change', function(e) {
290
+
291
+ var mailsystem = $(this).val();
292
+ if(mailsystem == 'mc'){
293
+ $('#mailoptin-wrapper').hide();
294
+ $('#mailchimp-wrapper').show();
295
+ } else if(mailsystem == 'mo'){
296
+ $('#mailoptin-wrapper').show();
297
+ $('#mailchimp-wrapper').hide();
298
+ }
299
+
300
+
301
+ });
302
+
303
+
304
+
305
+ // upsell dialog init
306
+ $('#csmm-mailoptin-upsell-dialog').dialog({'dialogClass': 'wp-dialog csmm-dialog csmm-mailoptin-upsell-dialog',
307
+ 'modal': 1,
308
+ 'resizable': false,
309
+ 'title': 'Start Collecting Leads and Subscribers',
310
+ 'zIndex': 9999,
311
+ 'width': 550,
312
+ 'height': 'auto',
313
+ 'show': 'fade',
314
+ 'hide': 'fade',
315
+ 'open': function(event, ui) {
316
+ csmm_fix_dialog_close(event, ui);
317
+ $(this).siblings().find('span.ui-dialog-title').html(mm_js_vars.mm_mo_title);
318
+ },
319
+ 'close': function(event, ui) { },
320
+ 'autoOpen': false,
321
+ 'closeOnEscape': true
322
+ });
323
+
324
+ $(window).resize(function(e){
325
+ $('#csmm-mailoptin-upsell-dialog').dialog("option", "position", {my: "center", at: "center", of: window});
326
+ });
327
+
328
+
329
+ jQuery('#install-mailoptin').on('click',function(e){
330
+ $('#csmm-mailoptin-upsell-dialog').dialog('close');
331
+ jQuery('body').append('<div style="width:550px;height:450px; position:fixed;top:10%;left:50%;margin-left:-275px; color:#444; background-color: #fbfbfb;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="'+mm_js_vars.mm_mo_install_url+'" style="width:100%;height:100%;border:none;" /></div>');
332
+ jQuery('#wpwrap').css('pointer-events', 'none');
333
+ e.preventDefault();
334
+ return false;
335
+ });
336
+
337
+ function csmm_fix_dialog_close(event, ui) {
338
+ jQuery('.ui-widget-overlay').bind('click', function(){
339
+ jQuery('#' + event.target.id).dialog('close');
340
+ });
341
+ } // csmm_fix_dialog_close
342
+
343
  $('#background_image_filter').on('change', function(e) {
344
  filter = $(this).val();
345
  image = $('#background-preview img');
351
  $(image).addClass(filter);
352
  }).trigger('change');
353
 
354
+ $('#mail_system_to_use').on('change', function(e) {
355
+ if ($(this).val() == 'mc') {
356
+ $('#csmm-setting-form-mo').hide();
357
+ $('#csmm-setting-form-mc').show();
358
+ } else if ($(this).val() == 'mo') {
359
+ $('#csmm-setting-form-mc').hide();
360
+ $('#csmm-setting-form-mo').show();
361
+ }
362
+ }).trigger('change');
363
+
364
  $('#header-status').on('click', function(e) {
365
  e.preventDefault();
366
  window.location = $(this).data('action-url');
517
 
518
  // tabs
519
  var $state = $.cookie( 'signals_csmm_menu' );
520
+
521
  if ($state == '#pro') {
522
  load_gumroad();
523
  }
539
 
540
  var $selector = $( this );
541
  var $tab = $selector.attr( 'href' );
542
+
543
  if ($tab == '#pro') {
544
  load_gumroad();
545
  }
framework/admin/settings.php CHANGED
@@ -13,6 +13,7 @@ function csmm_admin_settings() {
13
  require_once 'include/classes/class-mailchimp.php';
14
 
15
 
 
16
  // List of Google fonts
17
  require_once 'include/fonts.php';
18
 
@@ -129,6 +130,9 @@ function csmm_admin_settings() {
129
  'arrange' => strip_tags( $_POST['signals_csmm_arrange'] ),
130
  'analytics' => $_POST['signals_csmm_analytics'],
131
 
 
 
 
132
  'mailchimp_api' => strip_tags( $_POST['signals_csmm_api'] ),
133
  'mailchimp_list' => $tmp_options['list'],
134
  'message_noemail' => strip_tags( $_POST['signals_csmm_message_noemail'] ),
13
  require_once 'include/classes/class-mailchimp.php';
14
 
15
 
16
+
17
  // List of Google fonts
18
  require_once 'include/fonts.php';
19
 
130
  'arrange' => strip_tags( $_POST['signals_csmm_arrange'] ),
131
  'analytics' => $_POST['signals_csmm_analytics'],
132
 
133
+ 'mail_system_to_use' => $_POST['mail_system_to_use'],
134
+ 'mailoptin_campaign' => @$_POST['signals_csmm_mailoptin_campaign'],
135
+
136
  'mailchimp_api' => strip_tags( $_POST['signals_csmm_api'] ),
137
  'mailchimp_list' => $tmp_options['list'],
138
  'message_noemail' => strip_tags( $_POST['signals_csmm_message_noemail'] ),
framework/admin/views/settings-email.php CHANGED
@@ -7,27 +7,33 @@
7
  * @since 1.0
8
  */
9
 
 
 
 
 
10
  ?>
11
 
12
  <div class="signals-tile" id="email">
13
  <div class="signals-tile-body">
14
  <div class="signals-tile-title"><?php _e( 'EMAIL', 'signals' ); ?></div>
15
- <p><?php _e( 'Email settings for the plugin. You can configure your MailChimp account API to store collected emails in a list.', 'signals' ); ?></p>
16
 
17
  <div class="signals-section-content">
18
 
19
  <div class="signals-double-group signals-clearfix">
20
  <div class="signals-form-group">
21
- <label for="mail_system_to_use" class="signals-strong">Select Emailing / Integration System<sup>PRO</sup></label>
22
- <select id="mail_system_to_use" name="mail_system_to_use" class="signals-form-control pro-option skip-save">
23
- <option value="mc" selected><?php _e( 'MailChimp', 'signals' ); ?></option>
24
- <option value="-1"><?php _e( 'Universal Autoresponder - PRO option', 'signals' ); ?></option>
25
  <option value="-1"><?php _e( 'Zapier - PRO option', 'signals' ); ?></option>
26
  </select>
27
- <p class="signals-form-help-block">MailChimp is integrated via the API. For any other services (autoresponders, webinars, CRMs) that can generate an HTML form use the "Universal Autoresponder" option. We recommend using Zapier as it easily connects to 1000+ services. Get the <a href="#pro" class="csmm-change-tab">PRO version</a> to use Zapier and universal autoresponder integrations.</p>
28
  </div>
29
  </div>
30
 
 
 
31
  <div class="signals-double-group signals-clearfix">
32
  <div class="signals-form-group">
33
  <label for="signals_csmm_api" class="signals-strong"><?php _e( 'MailChimp API', 'signals' ); ?></label>
@@ -116,4 +122,17 @@
116
  </div>
117
  </div>
118
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  </div><!-- #email -->
7
  * @since 1.0
8
  */
9
 
10
+ if (!isset($signals_csmm_options['mail_system_to_use'])) {
11
+ $signals_csmm_options['mail_system_to_use'] = 'mc';
12
+ }
13
+
14
  ?>
15
 
16
  <div class="signals-tile" id="email">
17
  <div class="signals-tile-body">
18
  <div class="signals-tile-title"><?php _e( 'EMAIL', 'signals' ); ?></div>
19
+ <p><?php _e( 'Optin settings for the plugin. You can configure various services to store collected emails.', 'signals' ); ?></p>
20
 
21
  <div class="signals-section-content">
22
 
23
  <div class="signals-double-group signals-clearfix">
24
  <div class="signals-form-group">
25
+ <label for="mail_system_to_use" class="signals-strong">Select Emailing / Integration System</label>
26
+ <select id="mail_system_to_use" name="mail_system_to_use" class="signals-form-control pro-option">
27
+ <option value="mc" <?php echo $signals_csmm_options['mail_system_to_use']=='mc'?'selected':''; ?>><?php _e( 'MailChimp', 'signals' ); ?></option>
28
+ <option value="mo" <?php echo $signals_csmm_options['mail_system_to_use']=='mo'?'selected':''; ?>><?php _e( 'MailOptin - optin boxes and popups', 'signals' ); ?></option>
29
  <option value="-1"><?php _e( 'Zapier - PRO option', 'signals' ); ?></option>
30
  </select>
31
+ <p class="signals-form-help-block">If you use any other autoresponder services apart from Mailchimp such as Aweber or Constant Contact, or if you whish to show popup/lightbox optins, choose the MailOptin option. If you need Zapier get the <a href="#pro" class="csmm-change-tab">PRO version</a>.</p>
32
  </div>
33
  </div>
34
 
35
+ <div id="mailchimp-wrapper" <?php echo $signals_csmm_options['mail_system_to_use']=='mo'?'style="display:none;"':''; ?>>
36
+
37
  <div class="signals-double-group signals-clearfix">
38
  <div class="signals-form-group">
39
  <label for="signals_csmm_api" class="signals-strong"><?php _e( 'MailChimp API', 'signals' ); ?></label>
122
  </div>
123
  </div>
124
  </div>
125
+
126
+
127
+ <div id="mailoptin-wrapper" <?php echo $signals_csmm_options['mail_system_to_use']!='mo'?'style="display:none;"':''; ?> >
128
+ <div class="signals-double-group signals-clearfix">
129
+ <div class="signals-form-group">
130
+
131
+ <?php
132
+ csmm_mailoptin_settings($signals_csmm_options);
133
+ ?>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
  </div><!-- #email -->
framework/admin/views/settings-form.php CHANGED
@@ -14,6 +14,11 @@
14
  <div class="signals-tile-title"><?php _e( 'FORM', 'signals' ); ?></div>
15
  <p><?php _e( 'Leads are the lifeline of any business. Make sure your form looks trustworthy. Configure technical details on the <a href="">email tab</a>.', 'signals' ); ?></p>
16
 
 
 
 
 
 
17
  <div class="signals-section-content">
18
  <div class="signals-double-group signals-clearfix">
19
  <div class="signals-form-group">
@@ -219,5 +224,7 @@
219
  </div>
220
  </div>
221
  </div>
 
 
222
  </div>
223
  </div><!-- #form -->
14
  <div class="signals-tile-title"><?php _e( 'FORM', 'signals' ); ?></div>
15
  <p><?php _e( 'Leads are the lifeline of any business. Make sure your form looks trustworthy. Configure technical details on the <a href="">email tab</a>.', 'signals' ); ?></p>
16
 
17
+ <div id="csmm-setting-form-mo" style="<?php if ($signals_csmm_options['mail_system_to_use'] != 'mo') echo 'display: none;' ?>">
18
+ <br><br><p class="signals-form-help-block">When MailOptin is active as the <a href="#email" class="js-action csmm-change-tab">email system</a> all form related options, including creating, editing and managing optins are done on the <a href="admin.php?page=mailoptin-optin-campaigns">MailOptin campaigns page</a>.</p>
19
+ </div>
20
+
21
+ <div id="csmm-setting-form-mc" style="<?php if ($signals_csmm_options['mail_system_to_use'] != 'mc') echo 'display: none;' ?>">
22
  <div class="signals-section-content">
23
  <div class="signals-double-group signals-clearfix">
24
  <div class="signals-form-group">
224
  </div>
225
  </div>
226
  </div>
227
+ </div>
228
+
229
  </div>
230
  </div><!-- #form -->
framework/admin/views/settings-themes.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  $themes =
3
  array (
4
- 0 =>
5
  array (
6
  'type' => 'CSMM PRO',
7
  'version' => '5.005',
@@ -12,7 +12,7 @@ array (
12
  'status' => 'pro',
13
  'name_clean' => 'aeroplane-company',
14
  ),
15
- 1 =>
16
  array (
17
  'type' => 'CSMM PRO',
18
  'version' => '15.17',
@@ -23,7 +23,7 @@ array (
23
  'status' => 'agency',
24
  'name_clean' => 'air-balloon',
25
  ),
26
- 2 =>
27
  array (
28
  'type' => 'CSMM PRO',
29
  'version' => '15.05',
@@ -34,7 +34,7 @@ array (
34
  'status' => 'pro',
35
  'name_clean' => 'animated-clock',
36
  ),
37
- 3 =>
38
  array (
39
  'type' => 'CSMM PRO',
40
  'version' => '15.17',
@@ -45,7 +45,7 @@ array (
45
  'status' => 'agency',
46
  'name_clean' => 'architecture',
47
  ),
48
- 4 =>
49
  array (
50
  'type' => 'CSMM PRO',
51
  'version' => '15.17',
@@ -56,7 +56,7 @@ array (
56
  'status' => 'agency',
57
  'name_clean' => 'auto-service',
58
  ),
59
- 5 =>
60
  array (
61
  'type' => 'CSMM PRO',
62
  'version' => '15.17',
@@ -67,7 +67,7 @@ array (
67
  'status' => 'pro',
68
  'name_clean' => 'beach',
69
  ),
70
- 6 =>
71
  array (
72
  'type' => 'CSMM PRO',
73
  'version' => '5.05',
@@ -78,7 +78,7 @@ array (
78
  'status' => 'agency',
79
  'name_clean' => 'bicycle-race',
80
  ),
81
- 7 =>
82
  array (
83
  'type' => 'CSMM PRO',
84
  'version' => '5.005',
@@ -89,7 +89,7 @@ array (
89
  'status' => 'agency',
90
  'name_clean' => 'bitcoin-miners',
91
  ),
92
- 8 =>
93
  array (
94
  'type' => 'CSMM PRO',
95
  'version' => '15.17',
@@ -100,7 +100,7 @@ array (
100
  'status' => 'agency',
101
  'name_clean' => 'blogging',
102
  ),
103
- 9 =>
104
  array (
105
  'type' => 'CSMM PRO',
106
  'version' => '5.005',
@@ -111,7 +111,7 @@ array (
111
  'status' => 'agency',
112
  'name_clean' => 'book-lovers',
113
  ),
114
- 10 =>
115
  array (
116
  'type' => 'CSMM PRO',
117
  'version' => '5.001',
@@ -122,7 +122,7 @@ array (
122
  'status' => 'agency',
123
  'name_clean' => 'business-company',
124
  ),
125
- 11 =>
126
  array (
127
  'type' => 'CSMM PRO',
128
  'version' => '15.17',
@@ -133,7 +133,7 @@ array (
133
  'status' => 'agency',
134
  'name_clean' => 'business',
135
  ),
136
- 12 =>
137
  array (
138
  'type' => 'CSMM PRO',
139
  'version' => '15.17',
@@ -144,7 +144,7 @@ array (
144
  'status' => 'agency',
145
  'name_clean' => 'cityscape',
146
  ),
147
- 13 =>
148
  array (
149
  'type' => 'CSMM PRO',
150
  'version' => '5.14',
@@ -155,7 +155,7 @@ array (
155
  'status' => 'agency',
156
  'name_clean' => 'clouds-screensaver-video',
157
  ),
158
- 14 =>
159
  array (
160
  'type' => 'CSMM PRO',
161
  'version' => '5.005',
@@ -166,7 +166,7 @@ array (
166
  'status' => 'agency',
167
  'name_clean' => 'coffee-shop',
168
  ),
169
- 15 =>
170
  array (
171
  'type' => 'CSMM PRO',
172
  'version' => '15.17',
@@ -177,7 +177,7 @@ array (
177
  'status' => 'agency',
178
  'name_clean' => 'cold-lake',
179
  ),
180
- 16 =>
181
  array (
182
  'type' => 'CSMM PRO',
183
  'version' => '5.005',
@@ -188,7 +188,7 @@ array (
188
  'status' => 'pro',
189
  'name_clean' => 'default',
190
  ),
191
- 17 =>
192
  array (
193
  'type' => 'CSMM PRO',
194
  'version' => '15.17',
@@ -199,7 +199,7 @@ array (
199
  'status' => 'agency',
200
  'name_clean' => 'dental-clinic',
201
  ),
202
- 18 =>
203
  array (
204
  'type' => 'CSMM PRO',
205
  'version' => '5.001',
@@ -210,7 +210,7 @@ array (
210
  'status' => 'agency',
211
  'name_clean' => 'dog-training-and-behavior-consulting',
212
  ),
213
- 19 =>
214
  array (
215
  'type' => 'CSMM PRO',
216
  'version' => '15.17',
@@ -221,7 +221,7 @@ array (
221
  'status' => 'pro',
222
  'name_clean' => 'fall-video',
223
  ),
224
- 20 =>
225
  array (
226
  'type' => 'CSMM PRO',
227
  'version' => '15.17',
@@ -232,7 +232,7 @@ array (
232
  'status' => 'agency',
233
  'name_clean' => 'fashion',
234
  ),
235
- 21 =>
236
  array (
237
  'type' => 'CSMM PRO',
238
  'version' => '15.05',
@@ -243,7 +243,7 @@ array (
243
  'status' => 'agency',
244
  'name_clean' => 'flower-shop',
245
  ),
246
- 22 =>
247
  array (
248
  'type' => 'CSMM PRO',
249
  'version' => '15.17',
@@ -254,7 +254,7 @@ array (
254
  'status' => 'pro',
255
  'name_clean' => 'food-blog',
256
  ),
257
- 23 =>
258
  array (
259
  'type' => 'CSMM PRO',
260
  'version' => '15.17',
@@ -265,7 +265,7 @@ array (
265
  'status' => 'pro',
266
  'name_clean' => 'football',
267
  ),
268
- 24 =>
269
  array (
270
  'type' => 'CSMM PRO',
271
  'version' => '15.17',
@@ -276,7 +276,7 @@ array (
276
  'status' => 'pro',
277
  'name_clean' => 'holiday-resort',
278
  ),
279
- 25 =>
280
  array (
281
  'type' => 'CSMM PRO',
282
  'version' => '15.17',
@@ -287,7 +287,7 @@ array (
287
  'status' => 'pro',
288
  'name_clean' => 'homemade-chocolate-gifts',
289
  ),
290
- 26 =>
291
  array (
292
  'type' => 'CSMM PRO',
293
  'version' => '15.05',
@@ -298,7 +298,7 @@ array (
298
  'status' => 'agency',
299
  'name_clean' => 'interior-design',
300
  ),
301
- 27 =>
302
  array (
303
  'type' => 'CSMM PRO',
304
  'version' => '5.14',
@@ -309,7 +309,7 @@ array (
309
  'status' => 'agency',
310
  'name_clean' => 'journey-video',
311
  ),
312
- 28 =>
313
  array (
314
  'type' => 'CSMM PRO',
315
  'version' => '15.17',
@@ -320,7 +320,7 @@ array (
320
  'status' => 'pro',
321
  'name_clean' => 'lego-bricks',
322
  ),
323
- 29 =>
324
  array (
325
  'type' => 'CSMM PRO',
326
  'version' => '15.17',
@@ -331,7 +331,7 @@ array (
331
  'status' => 'agency',
332
  'name_clean' => 'loneliness',
333
  ),
334
- 30 =>
335
  array (
336
  'type' => 'CSMM PRO',
337
  'version' => '15.17',
@@ -342,7 +342,7 @@ array (
342
  'status' => 'agency',
343
  'name_clean' => 'lonely-road',
344
  ),
345
- 31 =>
346
  array (
347
  'type' => 'CSMM PRO',
348
  'version' => '15.17',
@@ -353,7 +353,7 @@ array (
353
  'status' => 'pro',
354
  'name_clean' => 'luxury-car',
355
  ),
356
- 32 =>
357
  array (
358
  'type' => 'CSMM PRO',
359
  'version' => '5.005',
@@ -364,7 +364,7 @@ array (
364
  'status' => 'pro',
365
  'name_clean' => 'maintenance-mode',
366
  ),
367
- 33 =>
368
  array (
369
  'type' => 'CSMM PRO',
370
  'version' => '5.005',
@@ -375,7 +375,7 @@ array (
375
  'status' => 'agency',
376
  'name_clean' => 'makeup-artist-training',
377
  ),
378
- 34 =>
379
  array (
380
  'type' => 'CSMM PRO',
381
  'version' => '15.17',
@@ -386,7 +386,7 @@ array (
386
  'status' => 'pro',
387
  'name_clean' => 'misty-forest-video',
388
  ),
389
- 35 =>
390
  array (
391
  'type' => 'CSMM PRO',
392
  'version' => '15.17',
@@ -397,7 +397,7 @@ array (
397
  'status' => 'agency',
398
  'name_clean' => 'mobile-designer',
399
  ),
400
- 36 =>
401
  array (
402
  'type' => 'CSMM PRO',
403
  'version' => '5.005',
@@ -408,7 +408,7 @@ array (
408
  'status' => 'pro',
409
  'name_clean' => 'modern-blog',
410
  ),
411
- 37 =>
412
  array (
413
  'type' => 'CSMM PRO',
414
  'version' => '15.05',
@@ -419,7 +419,7 @@ array (
419
  'status' => 'agency',
420
  'name_clean' => 'modern-office',
421
  ),
422
- 38 =>
423
  array (
424
  'type' => 'CSMM PRO',
425
  'version' => '15.17',
@@ -430,7 +430,7 @@ array (
430
  'status' => 'pro',
431
  'name_clean' => 'mountain-slide',
432
  ),
433
- 39 =>
434
  array (
435
  'type' => 'CSMM PRO',
436
  'version' => '5.05',
@@ -441,7 +441,7 @@ array (
441
  'status' => 'pro',
442
  'name_clean' => 'mountain',
443
  ),
444
- 40 =>
445
  array (
446
  'type' => 'CSMM PRO',
447
  'version' => '15.17',
@@ -452,7 +452,7 @@ array (
452
  'status' => 'pro',
453
  'name_clean' => 'movie-trailer-video',
454
  ),
455
- 41 =>
456
  array (
457
  'type' => 'CSMM PRO',
458
  'version' => '15.05',
@@ -463,7 +463,7 @@ array (
463
  'status' => 'agency',
464
  'name_clean' => 'nature',
465
  ),
466
- 42 =>
467
  array (
468
  'type' => 'CSMM PRO',
469
  'version' => '5.14',
@@ -474,7 +474,7 @@ array (
474
  'status' => 'agency',
475
  'name_clean' => 'office-meeting-video',
476
  ),
477
- 43 =>
478
  array (
479
  'type' => 'CSMM PRO',
480
  'version' => '15.05',
@@ -485,7 +485,7 @@ array (
485
  'status' => 'agency',
486
  'name_clean' => 'office-theme',
487
  ),
488
- 44 =>
489
  array (
490
  'type' => 'CSMM PRO',
491
  'version' => '5.005',
@@ -496,7 +496,7 @@ array (
496
  'status' => 'agency',
497
  'name_clean' => 'online-learning',
498
  ),
499
- 45 =>
500
  array (
501
  'type' => 'CSMM PRO',
502
  'version' => '15.17',
@@ -507,7 +507,7 @@ array (
507
  'status' => 'pro',
508
  'name_clean' => 'pancake-house',
509
  ),
510
- 46 =>
511
  array (
512
  'type' => 'CSMM PRO',
513
  'version' => '15.17',
@@ -518,7 +518,7 @@ array (
518
  'status' => 'pro',
519
  'name_clean' => 'parenting',
520
  ),
521
- 47 =>
522
  array (
523
  'type' => 'CSMM PRO',
524
  'version' => '15.17',
@@ -529,7 +529,7 @@ array (
529
  'status' => 'pro',
530
  'name_clean' => 'passage',
531
  ),
532
- 48 =>
533
  array (
534
  'type' => 'CSMM PRO',
535
  'version' => '15.17',
@@ -540,7 +540,7 @@ array (
540
  'status' => 'agency',
541
  'name_clean' => 'photography',
542
  ),
543
- 49 =>
544
  array (
545
  'type' => 'CSMM PRO',
546
  'version' => '15.17',
@@ -551,7 +551,7 @@ array (
551
  'status' => 'agency',
552
  'name_clean' => 'running-blog',
553
  ),
554
- 50 =>
555
  array (
556
  'type' => 'CSMM PRO',
557
  'version' => '15.14',
@@ -562,7 +562,7 @@ array (
562
  'status' => 'pro',
563
  'name_clean' => 'running-video',
564
  ),
565
- 51 =>
566
  array (
567
  'type' => 'CSMM PRO',
568
  'version' => '5.005',
@@ -573,7 +573,7 @@ array (
573
  'status' => 'agency',
574
  'name_clean' => 'shoes-store',
575
  ),
576
- 52 =>
577
  array (
578
  'type' => 'CSMM PRO',
579
  'version' => '15.17',
@@ -584,7 +584,7 @@ array (
584
  'status' => 'pro',
585
  'name_clean' => 'simple-beige-design',
586
  ),
587
- 53 =>
588
  array (
589
  'type' => 'CSMM PRO',
590
  'version' => '15.17',
@@ -595,7 +595,7 @@ array (
595
  'status' => 'pro',
596
  'name_clean' => 'snow-screensaver-video',
597
  ),
598
- 54 =>
599
  array (
600
  'type' => 'CSMM PRO',
601
  'version' => '15.17',
@@ -606,7 +606,7 @@ array (
606
  'status' => 'pro',
607
  'name_clean' => 'snowboarding-blog',
608
  ),
609
- 55 =>
610
  array (
611
  'type' => 'CSMM PRO',
612
  'version' => '15.17',
@@ -617,7 +617,7 @@ array (
617
  'status' => 'pro',
618
  'name_clean' => 'snowy-mountain',
619
  ),
620
- 56 =>
621
  array (
622
  'type' => 'CSMM PRO',
623
  'version' => '15.17',
@@ -628,7 +628,7 @@ array (
628
  'status' => 'agency',
629
  'name_clean' => 'spring',
630
  ),
631
- 57 =>
632
  array (
633
  'type' => 'CSMM PRO',
634
  'version' => '15.17',
@@ -639,7 +639,7 @@ array (
639
  'status' => 'pro',
640
  'name_clean' => 'stylish-workplace',
641
  ),
642
- 58 =>
643
  array (
644
  'type' => 'CSMM PRO',
645
  'version' => '15.17',
@@ -650,7 +650,7 @@ array (
650
  'status' => 'agency',
651
  'name_clean' => 'the-big-city-newsletter',
652
  ),
653
- 59 =>
654
  array (
655
  'type' => 'CSMM PRO',
656
  'version' => '5.14',
@@ -661,7 +661,7 @@ array (
661
  'status' => 'pro',
662
  'name_clean' => 'the-sunny-view',
663
  ),
664
- 60 =>
665
  array (
666
  'type' => 'CSMM PRO',
667
  'version' => '5.001',
@@ -672,7 +672,7 @@ array (
672
  'status' => 'pro',
673
  'name_clean' => 'travel-agency',
674
  ),
675
- 61 =>
676
  array (
677
  'type' => 'CSMM PRO',
678
  'version' => '15.05',
@@ -683,7 +683,7 @@ array (
683
  'status' => 'agency',
684
  'name_clean' => 'travel-blog',
685
  ),
686
- 62 =>
687
  array (
688
  'type' => 'CSMM PRO',
689
  'version' => '15.17',
@@ -694,7 +694,7 @@ array (
694
  'status' => 'agency',
695
  'name_clean' => 'tulips',
696
  ),
697
- 63 =>
698
  array (
699
  'type' => 'CSMM PRO',
700
  'version' => '5.001',
@@ -705,7 +705,7 @@ array (
705
  'status' => 'pro',
706
  'name_clean' => 'video-production',
707
  ),
708
- 64 =>
709
  array (
710
  'type' => 'CSMM PRO',
711
  'version' => '15.17',
@@ -716,7 +716,7 @@ array (
716
  'status' => 'pro',
717
  'name_clean' => 'walking-away-video',
718
  ),
719
- 65 =>
720
  array (
721
  'type' => 'CSMM PRO',
722
  'version' => '5.005',
@@ -727,7 +727,7 @@ array (
727
  'status' => 'agency',
728
  'name_clean' => 'webinar',
729
  ),
730
- 66 =>
731
  array (
732
  'type' => 'CSMM PRO',
733
  'version' => '5.005',
@@ -738,7 +738,7 @@ array (
738
  'status' => 'agency',
739
  'name_clean' => 'wedding-blog',
740
  ),
741
- 67 =>
742
  array (
743
  'type' => 'CSMM PRO',
744
  'version' => '15.17',
@@ -749,7 +749,7 @@ array (
749
  'status' => 'pro',
750
  'name_clean' => 'white-orchids',
751
  ),
752
- 68 =>
753
  array (
754
  'type' => 'CSMM PRO',
755
  'version' => '5.14',
@@ -760,7 +760,7 @@ array (
760
  'status' => 'agency',
761
  'name_clean' => 'working-out',
762
  ),
763
- 69 =>
764
  array (
765
  'type' => 'CSMM PRO',
766
  'version' => '15.05',
@@ -771,7 +771,7 @@ array (
771
  'status' => 'agency',
772
  'name_clean' => 'workplace',
773
  ),
774
- 70 =>
775
  array (
776
  'type' => 'CSMM PRO',
777
  'version' => '15.17',
@@ -791,7 +791,15 @@ array_unshift($themes, array('name' => 'Default', 'name_clean' => 'default', 'st
791
  <div class="signals-tile" id="themes">
792
  <div class="signals-tile-body">
793
  <div class="signals-tile-title">Themes</div>
794
- <p>Once a theme is activated it can be fullly adjusted and modified. There are no "locked in" features. Please note that activating a theme overwrites all customizations done to the current design. Non-design settings such as access control are not affected.</p>
 
 
 
 
 
 
 
 
795
 
796
  <div class="signals-section-content">
797
  <?php
1
  <?php
2
  $themes =
3
  array (
4
+ 0 =>
5
  array (
6
  'type' => 'CSMM PRO',
7
  'version' => '5.005',
12
  'status' => 'pro',
13
  'name_clean' => 'aeroplane-company',
14
  ),
15
+ 1 =>
16
  array (
17
  'type' => 'CSMM PRO',
18
  'version' => '15.17',
23
  'status' => 'agency',
24
  'name_clean' => 'air-balloon',
25
  ),
26
+ 2 =>
27
  array (
28
  'type' => 'CSMM PRO',
29
  'version' => '15.05',
34
  'status' => 'pro',
35
  'name_clean' => 'animated-clock',
36
  ),
37
+ 3 =>
38
  array (
39
  'type' => 'CSMM PRO',
40
  'version' => '15.17',
45
  'status' => 'agency',
46
  'name_clean' => 'architecture',
47
  ),
48
+ 4 =>
49
  array (
50
  'type' => 'CSMM PRO',
51
  'version' => '15.17',
56
  'status' => 'agency',
57
  'name_clean' => 'auto-service',
58
  ),
59
+ 5 =>
60
  array (
61
  'type' => 'CSMM PRO',
62
  'version' => '15.17',
67
  'status' => 'pro',
68
  'name_clean' => 'beach',
69
  ),
70
+ 6 =>
71
  array (
72
  'type' => 'CSMM PRO',
73
  'version' => '5.05',
78
  'status' => 'agency',
79
  'name_clean' => 'bicycle-race',
80
  ),
81
+ 7 =>
82
  array (
83
  'type' => 'CSMM PRO',
84
  'version' => '5.005',
89
  'status' => 'agency',
90
  'name_clean' => 'bitcoin-miners',
91
  ),
92
+ 8 =>
93
  array (
94
  'type' => 'CSMM PRO',
95
  'version' => '15.17',
100
  'status' => 'agency',
101
  'name_clean' => 'blogging',
102
  ),
103
+ 9 =>
104
  array (
105
  'type' => 'CSMM PRO',
106
  'version' => '5.005',
111
  'status' => 'agency',
112
  'name_clean' => 'book-lovers',
113
  ),
114
+ 10 =>
115
  array (
116
  'type' => 'CSMM PRO',
117
  'version' => '5.001',
122
  'status' => 'agency',
123
  'name_clean' => 'business-company',
124
  ),
125
+ 11 =>
126
  array (
127
  'type' => 'CSMM PRO',
128
  'version' => '15.17',
133
  'status' => 'agency',
134
  'name_clean' => 'business',
135
  ),
136
+ 12 =>
137
  array (
138
  'type' => 'CSMM PRO',
139
  'version' => '15.17',
144
  'status' => 'agency',
145
  'name_clean' => 'cityscape',
146
  ),
147
+ 13 =>
148
  array (
149
  'type' => 'CSMM PRO',
150
  'version' => '5.14',
155
  'status' => 'agency',
156
  'name_clean' => 'clouds-screensaver-video',
157
  ),
158
+ 14 =>
159
  array (
160
  'type' => 'CSMM PRO',
161
  'version' => '5.005',
166
  'status' => 'agency',
167
  'name_clean' => 'coffee-shop',
168
  ),
169
+ 15 =>
170
  array (
171
  'type' => 'CSMM PRO',
172
  'version' => '15.17',
177
  'status' => 'agency',
178
  'name_clean' => 'cold-lake',
179
  ),
180
+ 16 =>
181
  array (
182
  'type' => 'CSMM PRO',
183
  'version' => '5.005',
188
  'status' => 'pro',
189
  'name_clean' => 'default',
190
  ),
191
+ 17 =>
192
  array (
193
  'type' => 'CSMM PRO',
194
  'version' => '15.17',
199
  'status' => 'agency',
200
  'name_clean' => 'dental-clinic',
201
  ),
202
+ 18 =>
203
  array (
204
  'type' => 'CSMM PRO',
205
  'version' => '5.001',
210
  'status' => 'agency',
211
  'name_clean' => 'dog-training-and-behavior-consulting',
212
  ),
213
+ 19 =>
214
  array (
215
  'type' => 'CSMM PRO',
216
  'version' => '15.17',
221
  'status' => 'pro',
222
  'name_clean' => 'fall-video',
223
  ),
224
+ 20 =>
225
  array (
226
  'type' => 'CSMM PRO',
227
  'version' => '15.17',
232
  'status' => 'agency',
233
  'name_clean' => 'fashion',
234
  ),
235
+ 21 =>
236
  array (
237
  'type' => 'CSMM PRO',
238
  'version' => '15.05',
243
  'status' => 'agency',
244
  'name_clean' => 'flower-shop',
245
  ),
246
+ 22 =>
247
  array (
248
  'type' => 'CSMM PRO',
249
  'version' => '15.17',
254
  'status' => 'pro',
255
  'name_clean' => 'food-blog',
256
  ),
257
+ 23 =>
258
  array (
259
  'type' => 'CSMM PRO',
260
  'version' => '15.17',
265
  'status' => 'pro',
266
  'name_clean' => 'football',
267
  ),
268
+ 24 =>
269
  array (
270
  'type' => 'CSMM PRO',
271
  'version' => '15.17',
276
  'status' => 'pro',
277
  'name_clean' => 'holiday-resort',
278
  ),
279
+ 25 =>
280
  array (
281
  'type' => 'CSMM PRO',
282
  'version' => '15.17',
287
  'status' => 'pro',
288
  'name_clean' => 'homemade-chocolate-gifts',
289
  ),
290
+ 26 =>
291
  array (
292
  'type' => 'CSMM PRO',
293
  'version' => '15.05',
298
  'status' => 'agency',
299
  'name_clean' => 'interior-design',
300
  ),
301
+ 27 =>
302
  array (
303
  'type' => 'CSMM PRO',
304
  'version' => '5.14',
309
  'status' => 'agency',
310
  'name_clean' => 'journey-video',
311
  ),
312
+ 28 =>
313
  array (
314
  'type' => 'CSMM PRO',
315
  'version' => '15.17',
320
  'status' => 'pro',
321
  'name_clean' => 'lego-bricks',
322
  ),
323
+ 29 =>
324
  array (
325
  'type' => 'CSMM PRO',
326
  'version' => '15.17',
331
  'status' => 'agency',
332
  'name_clean' => 'loneliness',
333
  ),
334
+ 30 =>
335
  array (
336
  'type' => 'CSMM PRO',
337
  'version' => '15.17',
342
  'status' => 'agency',
343
  'name_clean' => 'lonely-road',
344
  ),
345
+ 31 =>
346
  array (
347
  'type' => 'CSMM PRO',
348
  'version' => '15.17',
353
  'status' => 'pro',
354
  'name_clean' => 'luxury-car',
355
  ),
356
+ 32 =>
357
  array (
358
  'type' => 'CSMM PRO',
359
  'version' => '5.005',
364
  'status' => 'pro',
365
  'name_clean' => 'maintenance-mode',
366
  ),
367
+ 33 =>
368
  array (
369
  'type' => 'CSMM PRO',
370
  'version' => '5.005',
375
  'status' => 'agency',
376
  'name_clean' => 'makeup-artist-training',
377
  ),
378
+ 34 =>
379
  array (
380
  'type' => 'CSMM PRO',
381
  'version' => '15.17',
386
  'status' => 'pro',
387
  'name_clean' => 'misty-forest-video',
388
  ),
389
+ 35 =>
390
  array (
391
  'type' => 'CSMM PRO',
392
  'version' => '15.17',
397
  'status' => 'agency',
398
  'name_clean' => 'mobile-designer',
399
  ),
400
+ 36 =>
401
  array (
402
  'type' => 'CSMM PRO',
403
  'version' => '5.005',
408
  'status' => 'pro',
409
  'name_clean' => 'modern-blog',
410
  ),
411
+ 37 =>
412
  array (
413
  'type' => 'CSMM PRO',
414
  'version' => '15.05',
419
  'status' => 'agency',
420
  'name_clean' => 'modern-office',
421
  ),
422
+ 38 =>
423
  array (
424
  'type' => 'CSMM PRO',
425
  'version' => '15.17',
430
  'status' => 'pro',
431
  'name_clean' => 'mountain-slide',
432
  ),
433
+ 39 =>
434
  array (
435
  'type' => 'CSMM PRO',
436
  'version' => '5.05',
441
  'status' => 'pro',
442
  'name_clean' => 'mountain',
443
  ),
444
+ 40 =>
445
  array (
446
  'type' => 'CSMM PRO',
447
  'version' => '15.17',
452
  'status' => 'pro',
453
  'name_clean' => 'movie-trailer-video',
454
  ),
455
+ 41 =>
456
  array (
457
  'type' => 'CSMM PRO',
458
  'version' => '15.05',
463
  'status' => 'agency',
464
  'name_clean' => 'nature',
465
  ),
466
+ 42 =>
467
  array (
468
  'type' => 'CSMM PRO',
469
  'version' => '5.14',
474
  'status' => 'agency',
475
  'name_clean' => 'office-meeting-video',
476
  ),
477
+ 43 =>
478
  array (
479
  'type' => 'CSMM PRO',
480
  'version' => '15.05',
485
  'status' => 'agency',
486
  'name_clean' => 'office-theme',
487
  ),
488
+ 44 =>
489
  array (
490
  'type' => 'CSMM PRO',
491
  'version' => '5.005',
496
  'status' => 'agency',
497
  'name_clean' => 'online-learning',
498
  ),
499
+ 45 =>
500
  array (
501
  'type' => 'CSMM PRO',
502
  'version' => '15.17',
507
  'status' => 'pro',
508
  'name_clean' => 'pancake-house',
509
  ),
510
+ 46 =>
511
  array (
512
  'type' => 'CSMM PRO',
513
  'version' => '15.17',
518
  'status' => 'pro',
519
  'name_clean' => 'parenting',
520
  ),
521
+ 47 =>
522
  array (
523
  'type' => 'CSMM PRO',
524
  'version' => '15.17',
529
  'status' => 'pro',
530
  'name_clean' => 'passage',
531
  ),
532
+ 48 =>
533
  array (
534
  'type' => 'CSMM PRO',
535
  'version' => '15.17',
540
  'status' => 'agency',
541
  'name_clean' => 'photography',
542
  ),
543
+ 49 =>
544
  array (
545
  'type' => 'CSMM PRO',
546
  'version' => '15.17',
551
  'status' => 'agency',
552
  'name_clean' => 'running-blog',
553
  ),
554
+ 50 =>
555
  array (
556
  'type' => 'CSMM PRO',
557
  'version' => '15.14',
562
  'status' => 'pro',
563
  'name_clean' => 'running-video',
564
  ),
565
+ 51 =>
566
  array (
567
  'type' => 'CSMM PRO',
568
  'version' => '5.005',
573
  'status' => 'agency',
574
  'name_clean' => 'shoes-store',
575
  ),
576
+ 52 =>
577
  array (
578
  'type' => 'CSMM PRO',
579
  'version' => '15.17',
584
  'status' => 'pro',
585
  'name_clean' => 'simple-beige-design',
586
  ),
587
+ 53 =>
588
  array (
589
  'type' => 'CSMM PRO',
590
  'version' => '15.17',
595
  'status' => 'pro',
596
  'name_clean' => 'snow-screensaver-video',
597
  ),
598
+ 54 =>
599
  array (
600
  'type' => 'CSMM PRO',
601
  'version' => '15.17',
606
  'status' => 'pro',
607
  'name_clean' => 'snowboarding-blog',
608
  ),
609
+ 55 =>
610
  array (
611
  'type' => 'CSMM PRO',
612
  'version' => '15.17',
617
  'status' => 'pro',
618
  'name_clean' => 'snowy-mountain',
619
  ),
620
+ 56 =>
621
  array (
622
  'type' => 'CSMM PRO',
623
  'version' => '15.17',
628
  'status' => 'agency',
629
  'name_clean' => 'spring',
630
  ),
631
+ 57 =>
632
  array (
633
  'type' => 'CSMM PRO',
634
  'version' => '15.17',
639
  'status' => 'pro',
640
  'name_clean' => 'stylish-workplace',
641
  ),
642
+ 58 =>
643
  array (
644
  'type' => 'CSMM PRO',
645
  'version' => '15.17',
650
  'status' => 'agency',
651
  'name_clean' => 'the-big-city-newsletter',
652
  ),
653
+ 59 =>
654
  array (
655
  'type' => 'CSMM PRO',
656
  'version' => '5.14',
661
  'status' => 'pro',
662
  'name_clean' => 'the-sunny-view',
663
  ),
664
+ 60 =>
665
  array (
666
  'type' => 'CSMM PRO',
667
  'version' => '5.001',
672
  'status' => 'pro',
673
  'name_clean' => 'travel-agency',
674
  ),
675
+ 61 =>
676
  array (
677
  'type' => 'CSMM PRO',
678
  'version' => '15.05',
683
  'status' => 'agency',
684
  'name_clean' => 'travel-blog',
685
  ),
686
+ 62 =>
687
  array (
688
  'type' => 'CSMM PRO',
689
  'version' => '15.17',
694
  'status' => 'agency',
695
  'name_clean' => 'tulips',
696
  ),
697
+ 63 =>
698
  array (
699
  'type' => 'CSMM PRO',
700
  'version' => '5.001',
705
  'status' => 'pro',
706
  'name_clean' => 'video-production',
707
  ),
708
+ 64 =>
709
  array (
710
  'type' => 'CSMM PRO',
711
  'version' => '15.17',
716
  'status' => 'pro',
717
  'name_clean' => 'walking-away-video',
718
  ),
719
+ 65 =>
720
  array (
721
  'type' => 'CSMM PRO',
722
  'version' => '5.005',
727
  'status' => 'agency',
728
  'name_clean' => 'webinar',
729
  ),
730
+ 66 =>
731
  array (
732
  'type' => 'CSMM PRO',
733
  'version' => '5.005',
738
  'status' => 'agency',
739
  'name_clean' => 'wedding-blog',
740
  ),
741
+ 67 =>
742
  array (
743
  'type' => 'CSMM PRO',
744
  'version' => '15.17',
749
  'status' => 'pro',
750
  'name_clean' => 'white-orchids',
751
  ),
752
+ 68 =>
753
  array (
754
  'type' => 'CSMM PRO',
755
  'version' => '5.14',
760
  'status' => 'agency',
761
  'name_clean' => 'working-out',
762
  ),
763
+ 69 =>
764
  array (
765
  'type' => 'CSMM PRO',
766
  'version' => '15.05',
771
  'status' => 'agency',
772
  'name_clean' => 'workplace',
773
  ),
774
+ 70 =>
775
  array (
776
  'type' => 'CSMM PRO',
777
  'version' => '15.17',
791
  <div class="signals-tile" id="themes">
792
  <div class="signals-tile-body">
793
  <div class="signals-tile-title">Themes</div>
794
+ <p>Once a theme is activated it can be fullly adjusted and modified. There are no "locked in" features. Please note that activating a theme overwrites all customizations done to the current design. Non-design settings such as access control are not affected.<br>
795
+ <?php
796
+ if (csmm_is_mailoptin_active()) {
797
+ echo 'Collecting subscribers and leads is one of the most important aspect of any coming soon page. Choose MailOptin in <a href="#email" class="js-action csmm-change-tab">email options</a> if you want to add popup optins or advanced in-content subscription boxes.';
798
+ } else {
799
+ echo 'Collecting subscribers and leads is one of the most important aspect of any coming soon page. To connect to any autoresponder such as Constant Contact or Aweber and to collect leads via an in-content box or a popup install the <a href="#" class="open-mailoptin-upsell">free MailOptin plugin</a>. It\'s fully integrated into our designs and offers numerous options.';
800
+ }
801
+ ?>
802
+ </p>
803
 
804
  <div class="signals-section-content">
805
  <?php
framework/public/views/html.php CHANGED
@@ -33,6 +33,26 @@
33
 
34
  <?php
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  // analytics
37
  if (csmm_convert_ga($options['analytics'])) {
38
  echo "<script>
@@ -70,7 +90,8 @@
70
  }
71
 
72
  // Form
73
- if ( ! empty( $options['mailchimp_api'] ) && ! empty( $options['mailchimp_list'] ) ) {
 
74
  // Checking if the form is submitted or not
75
  if ( isset( $_POST['signals_email'] ) ) {
76
  // Processing begins
@@ -114,6 +135,9 @@
114
  }
115
  } // signals_email
116
 
 
 
 
117
  // Subscription form
118
  // Displaying errors as well if they are set
119
  $signals_arrange['form'] = '<div class="subscription">';
@@ -124,9 +148,9 @@
124
 
125
  $signals_arrange['form'] .= '<form role="form" method="post">
126
  <input value="' . strip_tags( @$_POST['signals_email'] ) . '" type="text" name="signals_email" placeholder="' . esc_attr( $options['input_text'] ) . '">';
127
- if ($options['gdpr_text']) {
128
- $signals_arrange['form'] .= '<div class="gdpr_consent"><input type="checkbox" value="1" name="gdpr_consent" id="gdpr_consent"> <label for="gdpr_consent">' . $options['gdpr_text'] . '</label></div>';
129
- }
130
  $signals_arrange['form'] .= '<input type="submit" name="submit" value="' . esc_attr( $options['button_text'] ) . '">
131
  </form>';
132
 
@@ -139,7 +163,11 @@
139
  $signals_arrange['form'] .= '</div>';
140
 
141
 
142
- } // mailchimp_api && mailchimp_list
 
 
 
 
143
 
144
  // Custom HTML
145
  $signals_arrange['html'] = stripslashes( $options['custom_html'] );
33
 
34
  <?php
35
 
36
+ if(csmm_is_mailoptin_active() && $options['mailoptin_campaign']>0 && isset($options['mail_system_to_use']) && $options['mail_system_to_use'] == 'mo'){
37
+ echo '<script src="'.includes_url('/js/jquery/jquery.js').'"></script>';
38
+ echo '<script type="text/javascript">
39
+ var mailoptin_globals = {
40
+ "admin_url":"' . admin_url().'",
41
+ "public_js":"' . MAILOPTIN_ASSETS_URL . 'js/src",
42
+ "nonce":"'.wp_create_nonce('mailoptin-admin-nonce').'",
43
+ "mailoptin_ajaxurl":"'.MailOptin\Core\AjaxHandler::get_endpoint().'",
44
+ "ajaxurl":"'.admin_url('admin-ajax.php').'",
45
+ "split_test_start_label":"Start Test",
46
+ "split_test_pause_label":"Pause Test",
47
+ "is_customize_preview":"false",
48
+ "disable_impression_tracking":"false",
49
+ "chosen_search_placeholder":"Type to search",
50
+ "js_confirm_text":"Are you sure you want to do this?",
51
+ "js_clear_stat_text":"Are you sure you want to do this? Clicking OK will delete all your optin analytics records."};
52
+ </script>';
53
+ echo '<script src="'.MAILOPTIN_ASSETS_URL.'/js/mailoptin.min.js"></script>';
54
+ }
55
+
56
  // analytics
57
  if (csmm_convert_ga($options['analytics'])) {
58
  echo "<script>
90
  }
91
 
92
  // Form
93
+
94
+ if ( ! empty( $options['mailchimp_api'] ) && ! empty( $options['mailchimp_list'] ) && isset($options['mail_system_to_use']) && $options['mail_system_to_use'] == 'mc' ) {
95
  // Checking if the form is submitted or not
96
  if ( isset( $_POST['signals_email'] ) ) {
97
  // Processing begins
135
  }
136
  } // signals_email
137
 
138
+
139
+
140
+
141
  // Subscription form
142
  // Displaying errors as well if they are set
143
  $signals_arrange['form'] = '<div class="subscription">';
148
 
149
  $signals_arrange['form'] .= '<form role="form" method="post">
150
  <input value="' . strip_tags( @$_POST['signals_email'] ) . '" type="text" name="signals_email" placeholder="' . esc_attr( $options['input_text'] ) . '">';
151
+ if ($options['gdpr_text']) {
152
+ $signals_arrange['form'] .= '<div class="gdpr_consent"><input type="checkbox" value="1" name="gdpr_consent" id="gdpr_consent"> <label for="gdpr_consent">' . $options['gdpr_text'] . '</label></div>';
153
+ }
154
  $signals_arrange['form'] .= '<input type="submit" name="submit" value="' . esc_attr( $options['button_text'] ) . '">
155
  </form>';
156
 
163
  $signals_arrange['form'] .= '</div>';
164
 
165
 
166
+ } // mailchimp_api && mailchimp_list
167
+
168
+ if(csmm_is_mailoptin_active() && $options['mailoptin_campaign']>0 && isset($options['mail_system_to_use']) && $options['mail_system_to_use'] == 'mo'){
169
+ $signals_arrange['form'] = MailOptin\Core\Admin\Customizer\OptinForm\OptinFormFactory::build($options['mailoptin_campaign']);
170
+ }
171
 
172
  // Custom HTML
173
  $signals_arrange['html'] = stripslashes( $options['custom_html'] );
minimal-coming-soon-maintenance-mode.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Minimal Coming Soon & Maintenance Mode
4
  * Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
5
  * Description: Simply awesome coming soon & maintenance mode plugin. Super-simple to use. MailChimp support built-in.
6
- * Version: 1.80
7
  * Author: WebFactory
8
  * Author URI: https://www.webfactoryltd.com
9
  * License: GPLv3
@@ -59,6 +59,8 @@ function csmm_default_options() {
59
  'analytics' => '',
60
  'disable_adminbar' => '0',
61
 
 
 
62
  'mailchimp_api' => '',
63
  'mailchimp_list' => '',
64
  'message_noemail' => 'Please provide a valid email address.',
@@ -207,6 +209,9 @@ if (is_admin()) {
207
 
208
  require CSMM_PATH . 'framework/public/init.php';
209
 
 
 
 
210
 
211
  function csmm_get_plugin_version() {
212
  $plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
3
  * Plugin Name: Minimal Coming Soon & Maintenance Mode
4
  * Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
5
  * Description: Simply awesome coming soon & maintenance mode plugin. Super-simple to use. MailChimp support built-in.
6
+ * Version: 1.85
7
  * Author: WebFactory
8
  * Author URI: https://www.webfactoryltd.com
9
  * License: GPLv3
59
  'analytics' => '',
60
  'disable_adminbar' => '0',
61
 
62
+ 'mailoptin_campaign' => 0,
63
+ 'mail_system_to_use' => 'mc',
64
  'mailchimp_api' => '',
65
  'mailchimp_list' => '',
66
  'message_noemail' => 'Please provide a valid email address.',
209
 
210
  require CSMM_PATH . 'framework/public/init.php';
211
 
212
+ // MailOptin
213
+ require_once CSMM_PATH . 'framework/admin/include/mailoptin.php';
214
+
215
 
216
  function csmm_get_plugin_version() {
217
  $plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: WebFactory, googlemapswidget, wpreset, securityninja, underconstru
3
  Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance mode page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance, mailchimp, gdpr
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
- Tested up to: 4.9
7
- Stable tag: 1.80
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -16,6 +16,7 @@ The <a href="https://comingsoonwp.com/?utm_source=wordpressorg&utm_medium=conten
16
 
17
  It's simple + flexible and works with any WordPress theme & plugin. You'll have full control over the frontend of the website and can modify almost every aspect of the Coming Soon or Maintenance Mode page per your needs. Easily connects with MailChimp API so that you can **collect emails** from visitors and it's fully GDPR compliant.
18
 
 
19
 
20
  = Plugin Features =
21
 
@@ -80,6 +81,11 @@ Yes and no. When activated it enables itself across the entire WP-MU network.
80
 
81
 
82
  == Changelog ==
 
 
 
 
 
83
 
84
  = 1.80 =
85
  * 2018-10-26
3
  Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance mode page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance, mailchimp, gdpr
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
+ Tested up to: 5.0
7
+ Stable tag: 1.85
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
16
 
17
  It's simple + flexible and works with any WordPress theme & plugin. You'll have full control over the frontend of the website and can modify almost every aspect of the Coming Soon or Maintenance Mode page per your needs. Easily connects with MailChimp API so that you can **collect emails** from visitors and it's fully GDPR compliant.
18
 
19
+ You can collect leads and subscribers via optin boxes or via optin popups thanks to our integration with <a href="https://wordpress.org/plugins/mailoptin/">MailOptin</a>. A great, free plugin that connects to Aweber, Constant Contact and numerous other autoresponder services allowing you to easily collect emails from the moment your coming soon page is up.
20
 
21
  = Plugin Features =
22
 
81
 
82
 
83
  == Changelog ==
84
+ = 1.85 =
85
+ * 2018-11-15
86
+ * minor bug fixes
87
+ * deep integration with MailOptin plugin
88
+ * 456,000 downloads
89
 
90
  = 1.80 =
91
  * 2018-10-26