PluginProbe
Responsive Menu – Mobile Menu & Hamburger Menu Builder / 4.7.4
Responsive Menu – Mobile Menu & Hamburger Menu Builder v4.7.4
4.7.4 4.7.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 All 91 releases
responsive-menu / v4.0.0 / templates / menu-elements / title.php

title.php in Responsive Menu – Mobile Menu & Hamburger Menu Builder 4.7.4, at v4.0.0/templates/menu-elements/title.php

261 lines 9.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <li class="rmp-accordion-item rmp-order-item">
2 <div class="rmp-accordion-title rmp-order-item-title">
3 <span class="item-title"><?php esc_html_e( 'Title', 'responsive-menu' ); ?></span>
4 <span class="item-controls">
5 <input type='hidden' value='' name='menu[items_order][title]'/>
6 <input type="checkbox" value="on" data-toggle="title" class="no-updates toggle item-type" id="rmp-item-order-title" name="menu[items_order][title]"
7 <?php
8 if ( ! empty( $options['items_order']['title'] ) ) {
9 echo esc_attr( 'checked' );
10 }
11 ?>
12 >
13 <a class="item-edit open-item" aria-label="open Title options">
14 <span class="screen-reader-text">Open</span>
15 </a>
16 </span>
17 </div>
18
19 <div class="rmp-accordion-content tabs rmp-menu-controls">
20 <ul class="nav-tab-wrapper rmp-tab-items">
21 <li><a class="nav-tab nav-tab-active" href="#title-contents"><?php esc_html_e( 'Contents', 'responsive-menu' ); ?></a></li>
22 <li><a class="nav-tab" href="#title-styles"><?php esc_html_e( 'Styles', 'responsive-menu' ); ?></a></li>
23 </ul>
24 <div id="title-contents" class="title">
25 <?php
26
27 $control_manager->add_text_input_control(
28 array(
29 'label' => esc_html__( 'Title Text ', 'responsive-menu' ),
30 'group_classes' => 'full-size',
31 'type' => 'text',
32 'placeholder' => 'Enter Title',
33 'id' => 'rmp-menu-menu-title',
34 'class' => 'no-updates',
35 'name' => 'menu[menu_title]',
36 'value' => rmp_get_value( $options, 'menu_title' ),
37 )
38 );
39
40 $control_manager->add_text_input_control(
41 array(
42 'label' => esc_html__( 'Link ', 'responsive-menu' ),
43 'group_classes' => 'full-size',
44 'type' => 'text',
45 'class' => 'no-updates',
46 'placeholder' => 'Enter Link',
47 'id' => 'rmp-menu-title-link',
48 'name' => 'menu[menu_title_link]',
49 'value' => rmp_get_value( $options, 'menu_title_link' ),
50 )
51 );
52
53 $control_manager->add_select_control(
54 array(
55 'label' => esc_html__( 'Link Target', 'responsive-menu' ),
56 'id' => 'rmp-menu-title-link-location',
57 'class' => 'no-updates',
58 'name' => 'menu[menu_title_link_location]',
59 'options' => array(
60 '_blank' => 'New Tab',
61 '_self' => 'Same Page',
62 '_parent' => 'Parent Page',
63 '_top' => 'Full Window Body',
64 ),
65 'value' => rmp_get_value( $options, 'menu_title_link_location' ),
66 )
67 );
68
69 $ui_manager->accordion_divider();
70
71 $control_manager->add_image_control(
72 array(
73 'label' => esc_html__( 'Image', 'responsive-menu' ),
74 'group_classes' => 'full-size',
75 'id' => 'rmp-menu-title-image',
76 'picker_class' => 'rmp-menu-title-image-selector',
77 'picker_id' => 'rmp-menu-title-image-selector',
78 'name' => 'menu[menu_title_image]',
79 'value' => rmp_get_value( $options, 'menu_title_image' ),
80 )
81 );
82
83 $control_manager->add_icon_picker_control(
84 array(
85 'label' => esc_html__( 'Set Font Icon', 'responsive-menu' ),
86 'id' => 'rmp-button-title-icon',
87 'group_classes' => 'full-size',
88 'picker_class' => 'rmp-button-title-icon-picker-button',
89 'picker_id' => 'rmp-button-title-icon-selector',
90 'name' => 'menu[menu_title_font_icon]',
91 'value' => rmp_get_value( $options, 'menu_title_font_icon' ),
92 )
93 );
94
95 ?>
96 </div>
97
98 <div id="title-styles" class="title ">
99
100 <?php
101
102 $control_manager->add_group_text_control(
103 array(
104 'label' => esc_html__( 'Padding', 'responsive-menu' ),
105 'type' => 'text',
106 'class' => 'rmp-menu-title-section-padding',
107 'name' => 'menu[menu_title_section_padding]',
108 'input_options' => array( 'top', 'right', 'bottom', 'left' ),
109 'value_options' => ! empty( $options['menu_title_section_padding'] ) ? $options['menu_title_section_padding'] : '',
110 )
111 );
112
113 $ui_manager->start_group_controls();
114 $control_manager->add_color_control(
115 array(
116 'label' => esc_html__( 'Background', 'responsive-menu' ),
117 'id' => 'rmp-menu-title-background-colour',
118 'name' => 'menu[menu_title_background_colour]',
119 'value' => rmp_get_value( $options, 'menu_title_background_colour' ),
120
121 )
122 );
123 $control_manager->add_color_control(
124 array(
125 'label' => esc_html__( 'Background Hover', 'responsive-menu' ),
126 'id' => 'rmp-menu-title-background-hover-colour',
127 'name' => 'menu[menu_title_background_hover_colour]',
128 'value' => rmp_get_value( $options, 'menu_title_background_hover_colour' ),
129
130 )
131 );
132 $ui_manager->end_group_controls();
133
134 $ui_manager->accordion_divider();
135 $ui_manager->start_group_controls();
136 $control_manager->add_text_input_control(
137 array(
138 'label' => esc_html__( 'Font Size', 'responsive-menu' ),
139 'type' => 'number',
140 'class' => 'no-updates',
141 'id' => 'rmp-menu-title-font-size',
142 'name' => 'menu[menu_title_font_size]',
143 'value' => rmp_get_value( $options, 'menu_title_font_size' ),
144 'has_unit' => array(
145 'unit_type' => 'all',
146 'id' => 'rmp-menu-title-font-size-unit',
147 'name' => 'menu[menu_title_font_size_unit]',
148 'classes' => 'is-unit no-updates',
149 'default' => 'px',
150 'value' => rmp_get_value( $options, 'menu_title_font_size_unit' ),
151 ),
152 )
153 );
154
155 $control_manager->add_text_alignment_control(
156 array(
157 'label' => esc_html__( 'Text Alignment', 'responsive-menu' ),
158 'class' => 'rmp-menu-title-alignment',
159 'name' => 'menu[menu_title_alignment]',
160 'options' => array( 'left', 'center', 'right', 'justify' ),
161 'value' => rmp_get_value( $options, 'menu_title_alignment' ),
162
163 )
164 );
165 $ui_manager->end_group_controls();
166
167 // Font family and Font weight options.
168 $ui_manager->start_group_controls();
169 $control_manager->add_select_control(
170 array(
171 'label' => esc_html__( 'Font Weight', 'responsive-menu' ),
172 'id' => 'rmp-menu-title-font-weight',
173 'class' => 'no-updates',
174 'name' => 'menu[menu_title_font_weight]',
175 'options' => rmp_font_weight_options(),
176 'value' => rmp_get_value( $options, 'menu_title_font_weight' ),
177 'group_classes' => 'full-size',
178 )
179 );
180
181 $control_manager->add_text_input_control(
182 array(
183 'label' => esc_html__( 'Font Family', 'responsive-menu' ),
184 'type' => 'text',
185 'id' => 'rmp-menu-title-font-family',
186 'name' => 'menu[menu_title_font_family]',
187 'class' => 'no-updates',
188 'value' => rmp_get_value( $options, 'menu_title_font_family' ),
189 )
190 );
191 $ui_manager->end_group_controls();
192
193 $ui_manager->start_group_controls();
194 $control_manager->add_color_control(
195 array(
196 'label' => esc_html__( ' Text Color', 'responsive-menu' ),
197 'id' => 'rmp-menu-title-colour',
198 'name' => 'menu[menu_title_colour]',
199 'value' => rmp_get_value( $options, 'menu_title_colour' ),
200
201 )
202 );
203 $control_manager->add_color_control(
204 array(
205 'label' => esc_html__( ' Text Hover', 'responsive-menu' ),
206 'id' => 'rmp-menu-title-hover-colour',
207 'name' => 'menu[menu_title_hover_colour]',
208 'value' => rmp_get_value( $options, 'menu_title_hover_colour' ),
209
210 )
211 );
212 $ui_manager->end_group_controls();
213
214 $ui_manager->accordion_divider();
215
216 $ui_manager->start_group_controls();
217 $control_manager->add_text_input_control(
218 array(
219 'label' => esc_html__( 'Image Width', 'responsive-menu' ),
220 'type' => 'number',
221 'id' => 'rmp-menu-title-image-width',
222 'class' => 'no-updates',
223 'name' => 'menu[menu_title_image_width]',
224 'value' => rmp_get_value( $options, 'menu_title_image_width' ),
225 'placeholder' => esc_html__( 'Enter width', 'responsive-menu' ),
226 'has_unit' => array(
227 'unit_type' => 'all',
228 'id' => 'rmp-menu-title-image-width-unit',
229 'name' => 'menu[menu_title_image_width_unit]',
230 'classes' => 'is-unit',
231 'default' => '%',
232 'value' => rmp_get_value( $options, 'menu_title_image_width_unit' ),
233 ),
234 )
235 );
236
237 $control_manager->add_text_input_control(
238 array(
239 'label' => esc_html__( 'Image Height', 'responsive-menu' ),
240 'type' => 'number',
241 'id' => 'rmp-menu-title-image-height',
242 'class' => 'no-updates',
243 'name' => 'menu[menu_title_image_height]',
244 'value' => rmp_get_value( $options, 'menu_title_image_height' ),
245 'placeholder' => esc_html__( 'Enter height', 'responsive-menu' ),
246 'has_unit' => array(
247 'unit_type' => 'all',
248 'id' => 'rmp-menu-title-image-height-unit',
249 'name' => 'menu[menu_title_image_height_unit]',
250 'classes' => 'is-unit',
251 'default' => 'px',
252 'value' => rmp_get_value( $options, 'menu_title_image_height_unit' ),
253 ),
254 )
255 );
256 $ui_manager->end_group_controls();
257 ?>
258 </div>
259 </div>
260 </li>
261