PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 5.0
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v5.0
trunk 2.0.2 3.0 4.0 4.1.2 4.3 5.0 5.0.1 5.1 5.1.1 5.2 5.3 5.3.1 6.0 6.0.1 6.0.10 6.0.11 6.0.12 6.0.13 6.0.2 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 All 31 releases
floating-button / admin / page-settings.php

page-settings.php in Floating Button – Easily Create Sticky, Fixed & Floating Buttons 5.0, at admin/page-settings.php

166 lines 7.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Add new Element
4 *
5 * @package Wow_Plugin
6 * @subpackage Admin/Add_Item
7 * @author Wow-Company <helper@wow-company.com>
8 * @copyright 2019 Wow-Company
9 * @license GNU Public License
10 * @version 1.0
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 // include the database params for item
18 include_once( 'settings/database.php' );
19
20 // include the options param
21 include_once( 'settings/options/general.php' );
22
23 $url_form = admin_url() . 'admin.php?page=' . $this->plugin['slug'];
24 ?>
25 <form action="<?php echo esc_url( $url_form ); ?>" method="post" name="post" class="wow-plugin" id="wow-plugin">
26 <div id="poststuff">
27 <div id="post-body" class="metabox-holder columns-2">
28 <div id="post-body-content" style="position: relative;">
29
30 <div id="titlediv">
31
32 <div id="titlewrap">
33 <label class="screen-reader-text" id="title-prompt-text" for="title">Enter title
34 here</label>
35 <input type="text" class="input" name="title" size="30"
36 value="<?php echo esc_attr( $title ); ?>" id="title"
37 placeholder="<?php esc_attr_e( 'Register an menu name', 'floating-button' ); ?>"
38 autocomplete="off">
39 </div>
40
41 </div>
42 </div>
43
44 <!-- Sidebar with the setting-->
45 <div id="postbox-container-1" class="postbox-container">
46
47 <div id="submitdiv" class="box">
48 <h2 class="has-border-bottom">
49 <?php esc_html_e( 'Publish', 'floating-button' ); ?>
50 </h2>
51
52 <div class="inside">
53 <div class="columns is-multiline">
54 <div class="column is-12">
55 <div class="field">
56 <label class="checkbox label">
57 <?php self::option( $menu_status ); ?><?php esc_attr_e( "Activated", 'floating-button' ); ?><?php self::tooltip( $menu_status_help ); ?>
58 </label>
59 </div>
60 <div class="field">
61 <label class="checkbox label">
62 <?php self::option( $test_mode ); ?><?php esc_attr_e( "Test mode", 'floating-button' ); ?><?php self::tooltip( $test_mode_help ); ?>
63 </label>
64 </div>
65
66 </div>
67 <div class="column is-12">
68 <div class="field">
69 <?php self::option( $show ); ?>
70 </div>
71 <span id="shortcode">
72 <code>[<?php echo $this->plugin['shortcode']; ?> id="<?php echo $tool_id; ?>"]</code>
73 </span>
74 </div>
75 </div>
76
77 <div class="submitbox has-border-top" id="submitpost">
78 <div id="delete-action">
79 <?php if ( ! empty( $id ) ) : ?><?php $delete_url = admin_url() . 'admin.php?page=' . $this->plugin['slug'] . '&info=delete&did=' . absint( $id ); ?>
80 <a class="submitdelete deletion"
81 href="<?php echo esc_url( $delete_url ); ?>"><?php esc_attr_e( 'Delete', 'floating-button' ); ?></a>
82 <?php endif; ?>
83 </div>
84
85 <div id="publishing-action">
86 <span class="saving"><?php esc_html_e( 'Saving', 'floating-button' ); ?></span>
87 <input name="submit" id="submit" class="button button-primary button-large"
88 value="<?php echo esc_attr( $btn ); ?>" type="submit">
89 </div>
90
91 <div class="clear"></div>
92
93
94 </div>
95 </div>
96 </div>
97 </div>
98
99 <!-- Block for main options pages-->
100 <div id="postbox-container-2" class="postbox-container">
101 <div id="postoptions" class="box">
102
103 <div class="columns">
104 <div class="column has-tabs">
105 <div class="tabs is-vertical" id="tab">
106 <ul>
107 <li class="is-active" data-tab="1">
108 <a><?php esc_html_e( 'Main', 'floating-button' ); ?></a>
109 </li>
110
111 <li data-tab="2">
112 <a><?php esc_html_e( 'Sub Buttons 1', 'floating-button' ); ?></a>
113 </li>
114
115 <li data-tab="3">
116 <a><?php esc_html_e( 'Sub Buttons 2', 'floating-button' ); ?></a>
117 </li>
118
119 <li data-tab="4">
120 <a><?php esc_html_e( 'Display', 'floating-button' ); ?></a>
121 </li>
122 </ul>
123 </div>
124 </div>
125 <div class="column has-border-left">
126
127 <div id="tab-content" class="inside">
128
129 <div class="tab-content" data-content="1">
130 <?php include_once( 'settings/main.php' ); ?>
131 </div>
132
133 <div class="tab-content is-hidden" data-content="2">
134 <?php include_once( 'settings/vertical.php' ); ?>
135 </div>
136
137 <div class="tab-content is-hidden" data-content="3">
138 <?php include_once( 'settings/horizontal.php' ); ?>
139 </div>
140
141 <div class="tab-content is-hidden is-zebra" data-content="4">
142 <?php include_once( 'settings/display.php' ); ?>
143 </div>
144 </div>
145 </div>
146 </div>
147
148
149 </div>
150 </div>
151
152 </div>
153 </div>
154
155 <!-- main param for adding in database-->
156 <input type="hidden" name="tool_id" value="<?php echo absint( $tool_id ); ?>" id="tool_id"/>
157 <input type="hidden" name="add" id="add_action" value="<?php echo absint( $add_action ); ?>"/>
158 <input type="hidden" name="prefix" value="<?php echo esc_attr( $this->plugin['prefix'] ); ?>" id="prefix"/>
159 <?php wp_nonce_field( $this->plugin['slug'] . '_action', $this->plugin['slug'] . '_nonce' ); ?>
160 </form>
161
162
163 <?php include_once( 'settings/clone.php' ); ?>
164
165 <?php
166