| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Provide a admin area view for the plugin |
| 5 |
* |
| 6 |
* This file is used to markup the admin-facing aspects of the plugin. |
| 7 |
* |
| 8 |
* @link www.scrollsequence.com |
| 9 |
* @since 0.7.0 |
| 10 |
* |
| 11 |
* @package Scrollsequence |
| 12 |
* @subpackage Scrollsequence/admin/partials |
| 13 |
*/ |
| 14 |
?> |
| 15 |
|
| 16 |
<style> |
| 17 |
|
| 18 |
* {box-sizing: border-box} |
| 19 |
|
| 20 |
/* Set height of body and the document to 100% */ |
| 21 |
body, html { |
| 22 |
height: 100%; |
| 23 |
margin: 0; |
| 24 |
font-family: Arial; |
| 25 |
} |
| 26 |
|
| 27 |
/* Style tab links */ |
| 28 |
.tablink { |
| 29 |
background-color: lightgrey; |
| 30 |
/*color: white;*/ |
| 31 |
float: left; |
| 32 |
border: none; |
| 33 |
outline: none; |
| 34 |
cursor: pointer; |
| 35 |
padding: 14px 1px; |
| 36 |
font-size: 17px; |
| 37 |
width:25%; |
| 38 |
} |
| 39 |
|
| 40 |
.tablink:hover { |
| 41 |
background-color: #777; |
| 42 |
|
| 43 |
} |
| 44 |
|
| 45 |
/* Style the tab content (and add height:100% for full page content) */ |
| 46 |
.tabcontent { |
| 47 |
/*color: white;*/ |
| 48 |
display: none; |
| 49 |
padding: 100px 20px; |
| 50 |
height: 100%; |
| 51 |
border: 1px solid #ccd0d4; |
| 52 |
} |
| 53 |
|
| 54 |
#GettingStarted {background-color: #fff;} |
| 55 |
#Settings {background-color: #fff;} |
| 56 |
#GetPro {background-color: #fff;} |
| 57 |
/*#Contact {background-color: grey;} |
| 58 |
#About {background-color: grey;}*/ |
| 59 |
|
| 60 |
.menulink{ |
| 61 |
text-decoration: none; |
| 62 |
color: black; |
| 63 |
} |
| 64 |
|
| 65 |
.ssq-heading{ |
| 66 |
font-size:23px; |
| 67 |
font-weight: 400; |
| 68 |
padding: 9px 0 4px 0; |
| 69 |
line-height: 1.3; |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
.ssq-welcome{ |
| 74 |
background-color: white; |
| 75 |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='540' height='450' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='.05'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/svg%3E"); |
| 76 |
} |
| 77 |
|
| 78 |
|
| 79 |
</style> |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
<div class="wrap"> |
| 84 |
|
| 85 |
<div class="ssq-welcome" style="height:200px" > |
| 86 |
<div style=" padding: 30px; width: 190px; float:left; "> |
| 87 |
<svg width="128" height="128" viewBox="-150 -150 1300 1300"> |
| 88 |
<defs> |
| 89 |
<linearGradient id="ssq-logo-gradient" x1="0%" y1="50%" x2="100%" y2="0%"> |
| 90 |
<stop offset="0%" style="stop-color:rgb(23,48,66);stop-opacity:1" /> |
| 91 |
<stop offset="100%" style="stop-color:rgb(35,110,119);stop-opacity:1" /> |
| 92 |
</linearGradient> |
| 93 |
</defs> |
| 94 |
<!-- Background --> |
| 95 |
<rect x="-150" y="-150" rx="225" ry="225" width="1300" height="1300" |
| 96 |
style=" fill:url(#ssq-logo-gradient);" /> |
| 97 |
<!-- Mid Left --> |
| 98 |
<polyline points="162,322 500,500 340,575 0,400 162,322" |
| 99 |
style="fill:rgb(40,183,107);stroke:rgb(40,183,107);stroke-width:5;" /> |
| 100 |
<polyline points="500,500 500,650 340,575" |
| 101 |
style="fill:rgb(74,108,47);stroke:rgb(74,108,47);stroke-width:5;"/> |
| 102 |
<!-- Mid Right --> |
| 103 |
<polyline points="845,675 500,500, 650,425 1000,600 845,675" |
| 104 |
style="fill:rgb(40,183,107);stroke:rgb(40,183,107);stroke-width:5;" /> |
| 105 |
<polyline points="500,500, 500,350 650,425" |
| 106 |
style="fill:rgb(74,108,47);stroke:rgb(74,108,47);stroke-width:5; "/> |
| 107 |
<!-- TOP TOP CHEVRON TOP TOP --> |
| 108 |
<polyline points="500,0 1000,250, 1000,400 500,150 0,400 0,250 500,0" |
| 109 |
style="fill:rgb(207,223,218);stroke:rgb(207,223,218);stroke-width:5;"/> |
| 110 |
<!-- BOTTOM BOTTOM CHEVRON BOTTOM --> |
| 111 |
<polyline points="0,600 500,850 1000,600 1000,750 500,1000 0,750 0,600" |
| 112 |
style="fill:rgb(207,223,218);stroke:rgb(207,223,218);stroke-width:5;"/> |
| 113 |
</svg> |
| 114 |
</div> |
| 115 |
<div > |
| 116 |
<p class ="ssq-heading" style="padding-top: 60px;"><b>Scroll</b>sequence |
| 117 |
|
| 118 |
<?php |
| 119 |
echo 'Free' ; |
| 120 |
?> |
| 121 |
|
| 122 |
</p> |
| 123 |
<p>You are working with Beta version. Use with caution. Backup your work before updating.</p> |
| 124 |
</div> |
| 125 |
</div> |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
<button class="tablink" onclick="openPage('GettingStarted', this, 'darkgrey')" id="defaultOpen"> Get Started</button> |
| 138 |
<!-- <button class="tablink" onclick="openPage('Settings', this, 'darkgrey')" style="width:18%"> Settings</button> --> |
| 139 |
|
| 140 |
|
| 141 |
<?php |
| 142 |
// CODE IN ELSE STATEMENT IS F R E E plan only |
| 143 |
?> |
| 144 |
<a href="<?php |
| 145 |
echo admin_url( 'admin.php?page=scrollsequence-pricing' ) ; |
| 146 |
?>"> |
| 147 |
<button class="tablink" style="width:20%">Get PRO</button> |
| 148 |
</a> |
| 149 |
<?php |
| 150 |
// END OF ELSE |
| 151 |
?> |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
<a href="https://scrollsequence.com/examples/" class="menulink" target="_blank"> |
| 156 |
<button class="tablink" ><i aria-hidden="true" class="dashicons dashicons-external"></i>Examples</button> |
| 157 |
</a> |
| 158 |
|
| 159 |
<a href="https://scrollsequence.com/documentation/" class="menulink" target="_blank"> |
| 160 |
<button class="tablink" style="width:30%"><i aria-hidden="true" class="dashicons dashicons-external"></i>Documentation</button> |
| 161 |
</a> |
| 162 |
|
| 163 |
|
| 164 |
<div id="GettingStarted" class="tabcontent"> |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
<?php |
| 169 |
// FREE START |
| 170 |
?> |
| 171 |
|
| 172 |
<br><br> |
| 173 |
<p class ="ssq-heading" >For limited time only we offer <a class="button button-primary button-hero" href="<?php |
| 174 |
echo admin_url( 'admin.php?page=scrollsequence-pricing&trial=true' ) ; |
| 175 |
?>">14 DAYS FREE TRIAL</a> of PRO version.</p> |
| 176 |
<p><strong>No credit card, no risk. Grab yours while they last!</strong> </p> |
| 177 |
<br><br><br><br> |
| 178 |
<?php |
| 179 |
// FREE END |
| 180 |
?> |
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
<p class ="ssq-heading">Getting Started is easy as one two three! </p> <br> |
| 188 |
<table class="form-table" > |
| 189 |
<tbody> |
| 190 |
<tr> |
| 191 |
<th scope="row"><label >Tutorial Video: </label></th> |
| 192 |
<td> |
| 193 |
|
| 194 |
<iframe src="https://player.vimeo.com/video/413362050" width="640" height="336" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> |
| 195 |
</td> |
| 196 |
</tr> |
| 197 |
|
| 198 |
<tr> |
| 199 |
<th scope="row"><label >Create a new page: </label></th> |
| 200 |
<td> |
| 201 |
Click on <i><strong>(1) Add New Scrollsequence</strong></i>, set a <i><strong>(2) title</strong></i> name and <i><strong>(3) add page</strong></i>.<br><br> |
| 202 |
<img src="<?php |
| 203 |
echo plugin_dir_url( __FILE__ ) . '../img/add-new-scrollsequence-images.png' ; |
| 204 |
?>" width="640"> |
| 205 |
</td> |
| 206 |
</tr> |
| 207 |
|
| 208 |
<tr> |
| 209 |
<th scope="row"><label for="default_post_format">Select images: </label></th> |
| 210 |
<td> |
| 211 |
Click on <i><strong>(4) Select Images</strong></i> (5) confirm selection that you want to use. Hold down CTRL or SHIFT for multiple selection.<br> Take care about the order you select your images. After you made and confirmed your selection, you can easily drag and drop to reorder. <br><br> |
| 212 |
<img src="<?php |
| 213 |
echo plugin_dir_url( __FILE__ ) . '../img/select-images.png' ; |
| 214 |
?>" width="640"> |
| 215 |
<br><br> |
| 216 |
<img src="<?php |
| 217 |
echo plugin_dir_url( __FILE__ ) . '../img/add-content.png' ; |
| 218 |
?>" width="640"> |
| 219 |
</td> |
| 220 |
</tr> |
| 221 |
|
| 222 |
|
| 223 |
<th scope="row"><label for="default_post_format">Create Page Content: </label></th> |
| 224 |
<td> |
| 225 |
Standard TinyMCE editor is being used for writing the content. It's the most advanced editor on the market. Supports shortcodes, oEmbed and many other features. <br>HTML content is made up of elements. Each element can have one unique <b>ID</b> and multiple <b>class</b>es.<br><br> |
| 226 |
<img src="<?php |
| 227 |
echo plugin_dir_url( __FILE__ ) . '../img/add-page-content.png' ; |
| 228 |
?>" width="640"> |
| 229 |
<br> |
| 230 |
<b>Class</b>es and <b>ID</b>'s are used as selectors for on scroll animation, details are described in paragraphs below. <br><br> |
| 231 |
</td> |
| 232 |
</tr> |
| 233 |
|
| 234 |
<th scope="row"><label for="default_post_format">Animate: </label></th> |
| 235 |
<td> |
| 236 |
Click on <i><strong>(6) Add Animation</strong></i>.The most basic is In/Out Animation.<br>Three basic parameters are required for each animated element. You can add more element animations with the little plus sign. <br> |
| 237 |
<img src="<?php |
| 238 |
echo plugin_dir_url( __FILE__ ) . '../img/animation.png' ; |
| 239 |
?>" width="640"> |
| 240 |
<br> |
| 241 |
<p>Selector example use: </p> |
| 242 |
|
| 243 |
<table class="widefat" style="width:640px;"> |
| 244 |
<thead> |
| 245 |
<tr> |
| 246 |
<th>Selector</th> |
| 247 |
<th>Description</th> |
| 248 |
|
| 249 |
</tr> |
| 250 |
</thead> |
| 251 |
<tbody> |
| 252 |
<tr> |
| 253 |
<td>#my-id</td> |
| 254 |
<td>Select a HTML element with id="my-id". Id's should be unique. This means that only one HTML element can have the same id. </td> |
| 255 |
</tr> |
| 256 |
</tbody> |
| 257 |
<tbody> |
| 258 |
<tr> |
| 259 |
<td>.my-class</td> |
| 260 |
<td>Select each HTML element with class="my-class". Multiple elements can have same class attribute. </td> |
| 261 |
</tr> |
| 262 |
</tbody> |
| 263 |
</table> |
| 264 |
<br> |
| 265 |
Start and End example use: |
| 266 |
<table class="widefat" style="width:640px;"> |
| 267 |
<thead> |
| 268 |
<tr> |
| 269 |
<th> |
| 270 |
<div style="width:70%"><p style="text-align:left;">Start<span style="float:right;">End</span></p><div> |
| 271 |
</th> |
| 272 |
<th>Description</th> |
| 273 |
</tr> |
| 274 |
</thead> |
| 275 |
<tbody> |
| 276 |
<tr> |
| 277 |
<td> |
| 278 |
<div style="width:70%"><p style="text-align:left;">0<span style="float:right;">15</span></p><div> |
| 279 |
</td> |
| 280 |
<td>Element is visible when page is loaded. Once user starts scrolling down, element is hidden once user reaches the fiteenth image.</td> |
| 281 |
</tr> |
| 282 |
</tbody> |
| 283 |
<tbody> |
| 284 |
<tr> |
| 285 |
<td> |
| 286 |
<div style="width:70%"><p style="text-align:left;">5<span style="float:right;">30</span></p><div> |
| 287 |
</td> |
| 288 |
<td>Element is hidden when page is loaded. Once user starts scrolling down, element is displayed from 5th to 30th image in the sequence. </td> |
| 289 |
</tr> |
| 290 |
</tbody> |
| 291 |
</table> |
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
</td> |
| 297 |
</tr> |
| 298 |
</tbody></table> |
| 299 |
|
| 300 |
<p style="padding-top: 45px;" class ="ssq-heading">Tips and Tricks </p> <br> |
| 301 |
|
| 302 |
<table class="form-table" > |
| 303 |
<tbody> |
| 304 |
<tr> |
| 305 |
<th scope="row"><label >Basic Use: </label></th> |
| 306 |
<td> |
| 307 |
<ul style=" list-style-type: circle; padding-left: 50px"> |
| 308 |
<li>Add another page to the sequence. Each page contains image sequence, content and setting like duration, alignment and scale. Pages can be re-ordered by drag and drop. If you wish you can make a copy of a similar page.</li> |
| 309 |
<li>Add "Classic content" after the sequence. This section will allow you to add information after the animated sequence.</li> |
| 310 |
<li>Change background. As a default the content has transparent background. You can pick your own background color if required.</li> |
| 311 |
|
| 312 |
</ul> |
| 313 |
</td> |
| 314 |
</tr> |
| 315 |
<tr> |
| 316 |
<th scope="row"><label >Advanced Use: </label></th> |
| 317 |
<td> |
| 318 |
<ul style=" list-style-type: circle; padding-left: 50px"> |
| 319 |
<li>Custom CSS is a great way how to add a magic touch to your design. Simply write or paste CSS code.</li> |
| 320 |
<li>Read our <a href="https://scrollsequence.com/documentation/" target="_blank">documentation</a>, learn the basics, have a look at some examples and get inspiration for your project. </li> |
| 321 |
<li>Debug mode gives you information when you fall into trouble. If you stumble upon an issue, don't hesitate and <a href="<?php |
| 322 |
echo admin_url( 'admin.php?page=scrollsequence-contact' ) ; |
| 323 |
?>">contact us</a>.</li> |
| 324 |
</ul> |
| 325 |
</td> |
| 326 |
</tr> |
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
</div> |
| 333 |
|
| 334 |
<div id="Settings" class="tabcontent"> |
| 335 |
<p>Settings</p> |
| 336 |
<p><strong>Show tips </strong></p> |
| 337 |
<p>Image optimisation (coming soon)</p> |
| 338 |
<p>Image sizing for desktop/mobile (coming soon)</p> |
| 339 |
<p>Custom CSS (coming soon)</p> |
| 340 |
<p>Custom Javascript (coming soon)</p> |
| 341 |
<p>Preloading options (coming soon)</p> |
| 342 |
<p>Animation settings (coming soon)</p> |
| 343 |
<p>Debug console</p> |
| 344 |
</div> |
| 345 |
|
| 346 |
<!-- <div id="GetPro" class="tabcontent"> |
| 347 |
<h3>GetPro</h3> |
| 348 |
<p>There is a Scrollsequence PRO version coming soon. It will become available as soon as Beta testing is over. Keep an eye on this section. </p> |
| 349 |
</div> --> |
| 350 |
|
| 351 |
<!-- <div id="Contact" class="tabcontent"> |
| 352 |
<h3>Contact</h3> |
| 353 |
<p>Get in touch, or swing by for a cup of coffee.</p> |
| 354 |
</div> --> |
| 355 |
|
| 356 |
<!-- <div id="About" class="tabcontent"> |
| 357 |
<h3>About</h3> |
| 358 |
<p>Who we are and what we do.</p> |
| 359 |
</div> --> |
| 360 |
|
| 361 |
|
| 362 |
<script> |
| 363 |
function openPage(pageName,elmnt,color) { |
| 364 |
var i, tabcontent, tablinks; |
| 365 |
tabcontent = document.getElementsByClassName("tabcontent"); |
| 366 |
for (i = 0; i < tabcontent.length; i++) { |
| 367 |
tabcontent[i].style.display = "none"; |
| 368 |
} |
| 369 |
tablinks = document.getElementsByClassName("tablink"); |
| 370 |
for (i = 0; i < tablinks.length; i++) { |
| 371 |
tablinks[i].style.backgroundColor = ""; |
| 372 |
} |
| 373 |
document.getElementById(pageName).style.display = "block"; |
| 374 |
elmnt.style.backgroundColor = color; |
| 375 |
} |
| 376 |
|
| 377 |
// Get the element with id="defaultOpen" and click on it |
| 378 |
document.getElementById("defaultOpen").click(); |
| 379 |
</script> |
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
</div> |
| 386 |
|