PluginProbe
Floating Button – Easily Create Sticky, Fixed & Floating Buttons / 5.1.1
Floating Button – Easily Create Sticky, Fixed & Floating Buttons v5.1.1
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.1.1, at admin/page-settings.php

178 lines 7.9 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 class="ribbon">
98 UPGRADE PRO
99 <i></i>
100 <i></i>
101 <i></i>
102 <i></i>
103 </div>
104 <div class="upgrade-box">
105 <a class="button is-demo" href="https://wow-company.com/preview/wordpress-plugins/floating-button-pro/" target="_blank">Demo</a>
106 <a class="button is-upgrade" href="https://wow-estore.com/item/floating-button-pro/" target="_blank">Upgrade</a>
107
108 </div>
109 </div>
110
111 <!-- Block for main options pages-->
112 <div id="postbox-container-2" class="postbox-container">
113 <div id="postoptions" class="box">
114
115 <div class="columns">
116 <div class="column has-tabs">
117 <div class="tabs is-vertical" id="tab">
118 <ul>
119 <li class="is-active" data-tab="1">
120 <a><?php esc_html_e( 'Main', 'floating-button' ); ?></a>
121 </li>
122
123 <li data-tab="2">
124 <a><?php esc_html_e( 'Sub Buttons 1', 'floating-button' ); ?></a>
125 </li>
126
127 <li data-tab="3">
128 <a><?php esc_html_e( 'Sub Buttons 2', 'floating-button' ); ?></a>
129 </li>
130
131 <li data-tab="4">
132 <a><?php esc_html_e( 'Display', 'floating-button' ); ?></a>
133 </li>
134 </ul>
135 </div>
136 </div>
137 <div class="column has-border-left">
138
139 <div id="tab-content" class="inside">
140
141 <div class="tab-content" data-content="1">
142 <?php include_once( 'settings/main.php' ); ?>
143 </div>
144
145 <div class="tab-content is-hidden" data-content="2">
146 <?php include_once( 'settings/vertical.php' ); ?>
147 </div>
148
149 <div class="tab-content is-hidden" data-content="3">
150 <?php include_once( 'settings/horizontal.php' ); ?>
151 </div>
152
153 <div class="tab-content is-hidden is-zebra" data-content="4">
154 <?php include_once( 'settings/display.php' ); ?>
155 </div>
156 </div>
157 </div>
158 </div>
159
160
161 </div>
162 </div>
163
164 </div>
165 </div>
166
167 <!-- main param for adding in database-->
168 <input type="hidden" name="tool_id" value="<?php echo absint( $tool_id ); ?>" id="tool_id"/>
169 <input type="hidden" name="add" id="add_action" value="<?php echo absint( $add_action ); ?>"/>
170 <input type="hidden" name="prefix" value="<?php echo esc_attr( $this->plugin['prefix'] ); ?>" id="prefix"/>
171 <?php wp_nonce_field( $this->plugin['slug'] . '_action', $this->plugin['slug'] . '_nonce' ); ?>
172 </form>
173
174
175 <?php include_once( 'settings/clone.php' ); ?>
176
177 <?php
178