PluginProbe
Scrollsequence – Cinematic Scroll Image Animation Plugin / 1.6.3
Scrollsequence – Cinematic Scroll Image Animation Plugin v1.6.3
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-media-tools.php

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

119 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 //$SCROLLSEQUENCEAPIROOT = "http://local___host/ssq1/wp-json/ssq-media-tools/v1";
3 $SCROLLSEQUENCEAPIROOT = "https://scrollsequence.com/wp-json/ssq-media-tools/v1";
4 ?>
5
6
7 <style>
8
9 .tabvertcontainer {
10 display:flex;
11 }
12
13 /* Style the tab */
14 .tabvert {
15 width: 250px;
16 height: 300px;
17 }
18
19 /* Style the buttons inside the tab */
20 .tabvert button {
21 display: block;
22 background-color: inherit;
23 color: #50575e;
24 padding: 22px 16px;
25 width: 100%;
26 border: none;
27 outline: none;
28 text-align: left;
29 cursor: pointer;
30 transition: 0.3s;
31 font-size: 14px;
32 }
33
34 /* Change background color of buttons on hover */
35 .tabvert button:hover {
36 background-color: #ddd;
37 }
38
39 /* Create an active/current "tab button" class */
40 .tabvert button.active {
41 background-color: #fff;
42 font-weight: bold;
43 color:black;
44 }
45
46 /* Style the tab content */
47 .tabvertcontent {
48
49 padding: 0px 24px;
50 border-left: 1px solid #cccccc66;
51 width: 100%;
52
53 }
54
55 @media only screen and (max-width: 800px) {
56 .hidemenowplease {
57 display: none;
58 }
59 .makemesmaller {
60 width: 50px;
61 }
62 }
63
64 </style>
65
66 <div class="tabvertcontainer" style="margin-left:-20px; margin-right:-20px; margin-bottom:-45px">
67 <div class="tabvert makemesmaller">
68 <button class="tablinks" onclick="openMediaToolTab(event, 'convert-tab')" id="defaultOpen" style="margin-top:25px">
69 <span class="dashicons dashicons-playlist-video"></span>
70 <span class="hidemenowplease">
71 <?php _e( 'Video Convert', 'scrollsequence' ); ?>
72 </span>
73 </button>
74 <button class="tablinks" onclick="openMediaToolTab(event, 'frame-former-tab')">
75 <span class="dashicons dashicons-images-alt"></span>
76 <span class="hidemenowplease">
77 <?php _e( 'Frame Former', 'scrollsequence' ); ?>
78 </span>
79 </button>
80 <button class="tablinks" onclick="openMediaToolTab(event, 'external-tab')" >
81 <span class="dashicons dashicons-hammer"></span>
82 <span class="hidemenowplease"><?php _e( 'External Tools', 'scrollsequence' ); ?></span>
83 </button>
84 </div>
85
86 <div id="convert-tab" class="tabvertcontent">
87 <?php require('update_notice.php') ?>
88 <?php require_once("scrollsequence-admin-display-media-tools-convert.php"); ?>
89 </div>
90
91 <div id="frame-former-tab" class="tabvertcontent">
92 <?php require('update_notice.php') ?>
93 <?php require_once("scrollsequence-admin-display-media-tools-frameformer.php"); ?>
94 </div>
95
96 <div id="external-tab" class="tabvertcontent">
97 <?php //require('update_notice.php') ?>
98 <?php require_once("scrollsequence-admin-display-media-tools-external.php"); ?>
99 </div>
100 </div>
101
102 <script>
103 function openMediaToolTab(evt, cityName) {
104 var i, tabcontent, tablinks;
105 tabcontent = document.getElementsByClassName("tabvertcontent");
106 for (i = 0; i < tabcontent.length; i++) {
107 tabcontent[i].style.display = "none";
108 }
109 tablinks = document.getElementsByClassName("tablinks");
110 for (i = 0; i < tablinks.length; i++) {
111 tablinks[i].className = tablinks[i].className.replace(" active", "");
112 }
113 document.getElementById(cityName).style.display = "block";
114 evt.currentTarget.className += " active";
115 }
116
117 // Get the element with id="defaultOpen" and click on it
118 document.getElementById("defaultOpen").click();
119 </script>