PluginProbe
Scrollsequence – Cinematic Scroll Image Animation Plugin / 1.4.6
Scrollsequence – Cinematic Scroll Image Animation Plugin v1.4.6
1.4.3 1.4.4 1.4.5 1.4.6 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 trunk 0.9.92 0.9.93 0.9.94 0.9.96 1.0.072 1.0.073 All 61 releases
scrollsequence / admin / partials / scrollsequence-admin-display.php

scrollsequence-admin-display.php in Scrollsequence – Cinematic Scroll Image Animation Plugin 1.4.6, at admin/partials/scrollsequence-admin-display.php

192 lines 6.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 <style>
16 .ssq-heading{
17 font-size:23px;
18 font-weight: 400;
19 padding: 9px 0 4px 0;
20 line-height: 1.3;
21 }
22 .nav-tab-active{
23 background-color:white;
24 }
25 .nav-tab-active, .nav-tab-active:focus, .nav-tab-active:focus:active, .nav-tab-active:hover{
26 border-bottom:1px solid white;
27 }
28 .nodeco {
29 text-decoration: none;
30 }
31 </style>
32 <!-- Create the default WordPress 'wrap' container -->
33 <div class="wrap scrollsequence-admin-wrap">
34 <!-- Admin Notices Display -->
35 <?php
36 settings_errors();
37 ?><h2></h2>
38
39 <div class="ssq-welcome" style="height:225px" >
40 <div style=" padding: 30px; width: 150px; float:left; ">
41 <svg width="128" height="128" viewBox="-150 -150 1300 1300">
42 <defs>
43 <linearGradient id="ssq-logo-gradient" x1="0%" y1="50%" x2="100%" y2="0%">
44 <stop offset="0%" style="stop-color:rgb(23,48,66);stop-opacity:1" />
45 <stop offset="100%" style="stop-color:rgb(35,110,119);stop-opacity:1" />
46 </linearGradient>
47 </defs>
48 <!-- Background -->
49 <rect x="-150" y="-150" rx="225" ry="225" width="1300" height="1300"
50 style=" fill:url(#ssq-logo-gradient);" />
51 <!-- Mid Left -->
52 <polyline points="162,322 500,500 340,575 0,400 162,322"
53 style="fill:rgb(40,183,107);stroke:rgb(40,183,107);stroke-width:5;" />
54 <polyline points="500,500 500,650 340,575"
55 style="fill:rgb(74,108,47);stroke:rgb(74,108,47);stroke-width:5;"/>
56 <!-- Mid Right -->
57 <polyline points="845,675 500,500, 650,425 1000,600 845,675"
58 style="fill:rgb(40,183,107);stroke:rgb(40,183,107);stroke-width:5;" />
59 <polyline points="500,500, 500,350 650,425"
60 style="fill:rgb(74,108,47);stroke:rgb(74,108,47);stroke-width:5; "/>
61 <!-- TOP TOP CHEVRON TOP TOP -->
62 <polyline points="500,0 1000,250, 1000,400 500,150 0,400 0,250 500,0"
63 style="fill:rgb(207,223,218);stroke:rgb(207,223,218);stroke-width:5;"/>
64 <!-- BOTTOM BOTTOM CHEVRON BOTTOM -->
65 <polyline points="0,600 500,850 1000,600 1000,750 500,1000 0,750 0,600"
66 style="fill:rgb(207,223,218);stroke:rgb(207,223,218);stroke-width:5;"/>
67 </svg>
68 </div>
69 <div style="position:relative">
70
71 <p class ="ssq-heading" style="padding-top: 60px;"><b>Scroll</b>sequence
72 <?php
73 echo 'Free' ;
74 ?>
75 </p>
76 <p><?php
77 /*_e( 'You are working with Beta version. Use with caution. Backup your work before updating.', 'scrollsequence' ); */
78 ?></p>
79 <div style="position:absolute;right:20px;top:20px;">
80 <span style="margin-right:20px"><?php
81 echo SCROLLSEQUENCE_VERSION ;
82 ?> </span>
83 <a href="https://www.youtube.com/channel/UCfS4p0R5ZYr4GTQ9DIBbEgg"><span class="nodeco dashicons dashicons-youtube" style="color:#FF0000;"></span></a>
84 <a href="https://www.facebook.com/scrollsequence"><span class="nodeco dashicons dashicons-facebook" style="color:#4267B2;"></span></a>
85 <a href="https://twitter.com/scrollsequence"><span class="nodeco dashicons dashicons-twitter" style="color:#1DA1F2;"></span></a>
86 <a href="https://www.instagram.com/scrollsequence/"><span class="nodeco dashicons dashicons-instagram" style="color:#fb3958;"></span></a>
87 <!-- <a href="https://www.facebook.com/scrollsequence"><span class="nodeco dashicons dashicons-facebook"></span></a> -->
88 </div>
89 </div>
90 </div><!-- /.ssq-welcome -->
91
92
93
94 <?php
95 /*
96 Inspiration taken from:
97 https://code.tutsplus.com/tutorials/the-wordpress-settings-api-part-5-tabbed-navigation-for-settings--wp-24971
98 */
99 ?>
100
101 <!-- Create Tabs Menu -->
102
103
104 <?php
105 $active_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'get_started' );
106 // set the default tab here
107 if ( isset( $_GET['tab'] ) ) {
108 $active_tab = $_GET['tab'];
109 }
110 // end if
111 ?>
112
113 <h2 class="nav-tab-wrapper" style="position:relative; top:-45px">
114 <!-- Internal Links -->
115 <a href="?page=scrollsequence-dashboard&tab=get_started" class="nav-tab <?php
116 echo ( $active_tab == 'get_started' ? 'nav-tab-active' : '' ) ;
117 ?>">
118 <i aria-hidden="true" class="dashicons dashicons-welcome-learn-more" ></i>
119 <?php
120 _e( 'Get Started', 'scrollsequence' );
121 ?>
122 </a>
123 <a href="?page=scrollsequence-dashboard&tab=options" class="nav-tab <?php
124 echo ( $active_tab == 'options' ? 'nav-tab-active' : '' ) ;
125 ?>">
126 <i aria-hidden="true" class="dashicons dashicons-admin-generic" ></i>
127 <?php
128 _e( 'Options', 'scrollsequence' );
129 ?>
130 </a>
131
132 <!-- Upgrade Link (shown only on Free) -->
133 <?php
134 ?>
135 <a href="<?php
136 echo admin_url( 'admin.php?page=scrollsequence-pricing' ) ;
137 ?>" class="nav-tab">
138 <i aria-hidden="true" class="dashicons dashicons-cart" style="color:rgb(40,183,107);"></i>
139 <?php
140 _e( 'Upgrade', 'scrollsequence' );
141 ?>
142 </a>
143 <?php
144 // end of else
145 ?>
146 <!-- External Links -->
147 <a href="https://scrollsequence.com/examples/?utm_source=plugin&utm_medium=<?php
148 echo getenv( 'HTTP_HOST' ) ;
149 ?>&utm_campaign=dashboard" class="nav-tab" target="_blank">
150 <i aria-hidden="true" class="dashicons dashicons-external" ></i>
151 <?php
152 _e( 'Examples', 'scrollsequence' );
153 ?>
154 </a>
155 <a href="https://scrollsequence.com/documentation/?utm_source=plugin&utm_medium=<?php
156 echo getenv( 'HTTP_HOST' ) ;
157 ?>&utm_campaign=dashboard" class="nav-tab" target="_blank">
158 <i aria-hidden="true" class="dashicons dashicons-external"></i>
159 <?php
160 _e( 'Docs', 'scrollsequence' );
161 ?>
162 </a>
163
164 <a href="https://help.scrollsequence.com/?utm_source=plugin&utm_medium=<?php
165 echo getenv( 'HTTP_HOST' ) ;
166 ?>&utm_campaign=dashboard" class="nav-tab" target="_blank">
167 <i aria-hidden="true" class="dashicons dashicons-external"></i>
168 <?php
169 _e( 'Knowledge Base', 'scrollsequence' );
170 ?>
171 </a>
172
173
174 </h2>
175
176 <!-- TAB CONTENTS ARE CREATED HERE -->
177 <div id="GettingStarted" style="padding: 100px 20px; height: 100%; border: 1px solid #ccd0d4; border-top:0; margin-top:-45px; background-color:white">
178 <?php
179
180 if ( $active_tab == 'get_started' ) {
181 require_once "scrollsequence-admin-display-get-started.php";
182 } elseif ( $active_tab == 'options' ) {
183 require_once "scrollsequence-admin-display-options.php";
184 } else {
185 echo '<h1>Error: Tab does not exist.</h1>' ;
186 }
187
188 // end if/else
189 ?>
190 </div>
191
192 </div><!-- /.wrap -->