PluginProbe
Float menu – awesome floating side menu / 3.5.4
Float menu – awesome floating side menu v3.5.4
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
float-menu / admin / partials / add-new.php

add-new.php in Float menu – awesome floating side menu 3.5.4, at admin/partials/add-new.php

149 lines 5.4 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 Dmytro Lobov <d@dayes.dev>
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( 'include-data.php' );
19
20 // include the settings param
21 include_once( 'add-new/settings/add-new.php' );
22
23 $url_form = admin_url() . 'admin.php?page=' . esc_attr( $this->plugin['slug'] );
24
25 ?>
26 <form action="<?php echo esc_url( $url_form ); ?>" method="post" name="post" class="wow-plugin" id="wow-plugin">
27 <div id="poststuff">
28 <div id="post-body" class="metabox-holder columns-2">
29
30 <!-- Block with the Title and content-->
31 <div id="post-body-content" style="position: relative;">
32
33 <div id="titlediv">
34
35 <div id="titlewrap">
36 <label class="screen-reader-text" id="title-prompt-text" for="title">Enter title
37 here</label>
38 <input type="text" name="title" size="30" value="<?php echo esc_attr( $title ); ?>"
39 id="title"
40 placeholder="<?php esc_attr_e( 'Register an item name', $this->plugin['text'] ); ?>"
41 autocomplete="off">
42 </div>
43
44 </div>
45 </div>
46
47 <!-- Sidebar with the setting-->
48 <div id="postbox-container-1" class="postbox-container">
49
50 <?php include_once( 'add-new/targeting.php' ); // Include the targets ?>
51
52 <div id="submitdiv" class="postbox ">
53 <h2 class="hndle ui-sortable-handle">
54 <span><?php esc_html_e( 'Publish', $this->plugin['text'] ); ?></span>
55 <?php self::pro(); ?>
56 </h2>
57
58 <div class="inside">
59
60
61 <div class="container">
62 <div class="element">
63 <?php self::option( $show ); ?>
64
65 <span id="shortcode">
66 <code>[<?php echo esc_attr( $this->plugin['shortcode'] ); ?> id="<?php echo absint( $tool_id ); ?>"]</code>
67 </span>
68 </div>
69 </div>
70
71 <div class="submitbox" id="submitpost">
72
73 <div id="major-publishing-actions">
74
75 <div id="delete-action">
76 <?php if ( ! empty( $id ) ) {
77 echo '<a class="submitdelete deletion" href="admin.php?page=' . esc_attr( $this->plugin['slug'] ) .
78 '&info=delete&did=' . absint( $id ) . '">' . esc_attr__( 'Delete', $this->plugin['text'] ) . '</a>';
79 }; ?>
80 </div>
81
82 <div id="publishing-action">
83 <span class="saving"><?php esc_html_e( 'Saving', $this->plugin['text'] ); ?></span>
84 <input name="submit" id="submit" class="button button-primary button-large"
85 value="<?php echo esc_attr( $btn ); ?>" type="submit">
86 </div>
87
88 <div class="clear"></div>
89
90 </div>
91 </div>
92 </div>
93 </div>
94 </div>
95
96 <!-- Block for main settings pages-->
97 <div id="postbox-container-2" class="postbox-container">
98 <div id="postoptions" class="postbox ">
99 <div class="inside">
100
101 <div class="tab-box">
102 <ul class="tab-nav">
103 <?php
104 $tab_menu = array(
105 'main' => __( 'Settings', $this->plugin['text'] ),
106 'menu' => __( 'Menu', $this->plugin['text'] ),
107
108 );
109 $i = 1;
110 foreach ( $tab_menu as $menu => $val ) {
111 echo '<li><a href="#t' . absint( $i ) . '">' . esc_html( $val ) . '</a></li>';
112 $i ++;
113 }
114 ?>
115 </ul>
116 <div class="tab-panels">
117 <?php
118 $t = 1;
119 foreach ( $tab_menu as $menu => $val ) {
120 echo '<div id="t' . absint( $t ) . '">';
121 include_once( 'add-new/' . esc_attr( $menu ) . '.php' );
122 echo '</div>';
123 $t ++;
124 }
125 ?>
126 </div>
127 </div>
128
129 </div>
130 </div>
131 </div>
132
133 </div>
134 </div>
135
136 <!-- main param for adding in database-->
137 <input type="hidden" name="tool_id" value="<?php echo absint( $tool_id ); ?>" id="tool_id"/>
138 <input type="hidden" name="add" id="add_action" value="<?php echo absint( $add_action ); ?>"/>
139 <input type="hidden" name="prefix" value="<?php echo esc_attr( $this->plugin['prefix'] ); ?>" id="prefix"/>
140 <?php wp_nonce_field( $this->plugin['slug'] . '_action', $this->plugin['slug'] . '_nonce' ); ?>
141
142 </form>
143
144 <div id="clone" style="display: none;">
145 <?php include_once( 'add-new/clone.php' ); ?>
146 </div>
147
148 <?php
149