csf-customizer.php (11525B)
1 <?php 2 3 /* 4 * Theme Customize Options 5 * @package appside 6 * @since 1.0.0 7 * */ 8 9 if ( !defined('ABSPATH') ){ 10 exit(); // exit if access directly 11 } 12 13 if (class_exists('CSF') ){ 14 $prefix = 'appside'; 15 16 CSF::createCustomizeOptions($prefix.'_customize_options'); 17 /*------------------------------------- 18 ** Theme Main panel 19 -------------------------------------*/ 20 CSF::createSection($prefix.'_customize_options',array( 21 'title' => esc_html__('Appside Options','aapside'), 22 'id' => 'appside_main_panel', 23 'priority' => 11, 24 )); 25 26 27 /*------------------------------------- 28 ** Theme Main Color 29 -------------------------------------*/ 30 CSF::createSection($prefix.'_customize_options',array( 31 'title' => esc_html__('01. Main Color','aapside'), 32 'priority' => 10, 33 'parent' => 'appside_main_panel', 34 'fields' => array( 35 array( 36 'id' => 'main_color', 37 'type' => 'color', 38 'title' => esc_html__('Theme Main Color','aapside'), 39 'default' => '#500ade', 40 'desc' => esc_html__('This is theme primary color, means it\'ll affect most of elements that have default color of our theme primary color','aapside') 41 ), 42 array( 43 'id' => 'secondary_color', 44 'type' => 'color', 45 'title' => esc_html__('Theme Secondary Color','aapside'), 46 'default' => '#111d5c', 47 'desc' => esc_html__('This is theme secondary color, means it\'ll affect most of elements that have default color of our theme secondary color','aapside') 48 ), 49 array( 50 'id' => 'heading_color', 51 'type' => 'color', 52 'title' => esc_html__('Theme Heading Color','aapside'), 53 'default' => '#1c144e', 54 'desc' => esc_html__('This is theme heading color, means it\'ll affect all of heading tag like, h1,h2,h3,h4,h5,h6','aapside') 55 ), 56 array( 57 'id' => 'paragraph_color', 58 'type' => 'color', 59 'title' => esc_html__('Theme Paragraph Color','aapside'), 60 'default' => '#878a95', 61 'desc' => esc_html__('This is theme paragraph color, means it\'ll affect all of body/paragraph tag like, p,li,a etc','aapside') 62 ), 63 ) 64 )); 65 /*------------------------------------- 66 ** Theme Header Options 67 -------------------------------------*/ 68 69 CSF::createSection( $prefix.'_customize_options', array( 70 'title' => esc_html__('02. Header One Options','aapside'), 71 'parent' => 'appside_main_panel', 72 'priority' => 11, 73 'fields' => array( 74 array( 75 'type' => 'subheading', 76 'content' =>'<h3>'.esc_html__('Nav Bar Options','aapside').'</h3>' 77 ), 78 array( 79 'id' => 'header_01_nav_bar_bg_color', 80 'type' => 'color', 81 'title' => esc_html__('Nav Bar Background Color','aapside'), 82 'default' => '#fff' 83 ), 84 array( 85 'id' => 'header_01_nav_bar_color', 86 'type' => 'color', 87 'title' => esc_html__('Nav Bar Text Color','aapside'), 88 'default' => '#878a95' 89 ), 90 array( 91 'type' => 'subheading', 92 'content' =>'<h3>'.esc_html__('Dropdown Options','aapside').'</h3>' 93 ), 94 array( 95 'id' => 'header_01_dropdown_bg_color', 96 'type' => 'color', 97 'title' => esc_html__('Dropdown Background Color','aapside'), 98 'default' => '#ffffff' 99 ), 100 array( 101 'id' => 'header_01_dropdown_color', 102 'type' => 'color', 103 'title' => esc_html__('Dropdown Text Color','aapside'), 104 'default' => '#878a95' 105 ) 106 ) 107 )); 108 CSF::createSection( $prefix.'_customize_options', array( 109 'title' => esc_html__('03. Header Two Options','aapside'), 110 'parent' => 'appside_main_panel', 111 'priority' => 11, 112 'fields' => array( 113 array( 114 'type' => 'subheading', 115 'content' =>'<h3>'.esc_html__('Nav Bar Options','aapside').'</h3>' 116 ), 117 array( 118 'id' => 'header_02_nav_bar_bg_color', 119 'type' => 'color', 120 'title' => esc_html__('Nav Bar Background Color','aapside'), 121 'default' => 'transparent' 122 ), 123 array( 124 'id' => 'header_02_nav_bar_color', 125 'type' => 'color', 126 'title' => esc_html__('Nav Bar Text Color','aapside'), 127 'default' => 'rgba(255, 255, 255, 0.8)' 128 ), 129 array( 130 'type' => 'subheading', 131 'content' =>'<h3>'.esc_html__('Dropdown Options','aapside').'</h3>' 132 ), 133 array( 134 'id' => 'header_02_dropdown_bg_color', 135 'type' => 'color', 136 'title' => esc_html__('Dropdown Background Color','aapside'), 137 'default' => '#ffffff' 138 ), 139 array( 140 'id' => 'header_02_dropdown_color', 141 'type' => 'color', 142 'title' => esc_html__('Dropdown Text Color','aapside'), 143 'default' => '#878a95' 144 ) 145 ) 146 )); 147 148 CSF::createSection( $prefix.'_customize_options', array( 149 'title' => esc_html__('04. Header Three Options','aapside'), 150 'parent' => 'appside_main_panel', 151 'priority' => 11, 152 'fields' => array( 153 array( 154 'type' => 'subheading', 155 'content' =>'<h3>'.esc_html__('Nav Bar Options','aapside').'</h3>' 156 ), 157 array( 158 'id' => 'header_03_nav_bar_bg_color', 159 'type' => 'color', 160 'title' => esc_html__('Nav Bar Background Color','aapside'), 161 'default' => 'transparent' 162 ), 163 array( 164 'id' => 'header_03_nav_bar_color', 165 'type' => 'color', 166 'title' => esc_html__('Nav Bar Text Color','aapside'), 167 'default' => 'rgba(255, 255, 255, 0.8)' 168 ), 169 array( 170 'type' => 'subheading', 171 'content' =>'<h3>'.esc_html__('Dropdown Options','aapside').'</h3>' 172 ), 173 array( 174 'id' => 'header_03_dropdown_bg_color', 175 'type' => 'color', 176 'title' => esc_html__('Dropdown Background Color','aapside'), 177 'default' => '#ffffff' 178 ), 179 array( 180 'id' => 'header_03_dropdown_color', 181 'type' => 'color', 182 'title' => esc_html__('Dropdown Text Color','aapside'), 183 'default' => '#878a95' 184 ), 185 array( 186 'type' => 'subheading', 187 'content' =>'<h3>'.esc_html__('Button One Options','aapside').'</h3>' 188 ), 189 array( 190 'id' => 'header_03_btn_one_border_color', 191 'type' => 'color', 192 'title' => esc_html__('Button One Border Color','aapside'), 193 'default' => 'rgba(255,255,255,.8)' 194 ), 195 array( 196 'id' => 'header_03_btn_one_color', 197 'type' => 'color', 198 'title' => esc_html__('Button One Color','aapside'), 199 'default' => 'rgba(255,255,255,.8)' 200 ), 201 array( 202 'id' => 'header_03_btn_one_hover_border_color', 203 'type' => 'color', 204 'title' => esc_html__('Button One Hover Border Color','aapside'), 205 'default' => '#500ade' 206 ), 207 array( 208 'id' => 'header_03_btn_one_hover_color', 209 'type' => 'color', 210 'title' => esc_html__('Button One Hover Color','aapside'), 211 'default' => '#fff' 212 ), 213 array( 214 'id' => 'header_03_btn_one_hover_bg_color', 215 'type' => 'color', 216 'title' => esc_html__('Button One Hover Background Color','aapside'), 217 'default' => '#500ade' 218 ), 219 array( 220 'type' => 'subheading', 221 'content' =>'<h3>'.esc_html__('Button Two Options','aapside').'</h3>' 222 ), 223 array( 224 'id' => 'header_03_btn_two_background_color', 225 'type' => 'color', 226 'title' => esc_html__('Button Two Background Color','aapside'), 227 'default' => '#500ade' 228 ), 229 array( 230 'id' => 'header_03_btn_two_color', 231 'type' => 'color', 232 'title' => esc_html__('Button Two Color','aapside'), 233 'default' => 'rgba(255,255,255,.8)' 234 ), 235 ) 236 )); 237 238 CSF::createSection( $prefix.'_customize_options', array( 239 'title' => esc_html__('05. Header Four Options','aapside'), 240 'parent' => 'appside_main_panel', 241 'priority' => 11, 242 'fields' => array( 243 array( 244 'type' => 'subheading', 245 'content' =>'<h3>'.esc_html__('Nav Bar Options','aapside').'</h3>' 246 ), 247 array( 248 'id' => 'header_04_nav_bar_bg_color', 249 'type' => 'color', 250 'title' => esc_html__('Nav Bar Background Color','aapside'), 251 'default' => '#fff' 252 ), 253 array( 254 'id' => 'header_04_nav_bar_color', 255 'type' => 'color', 256 'title' => esc_html__('Nav Bar Text Color','aapside'), 257 'default' => '#878a95' 258 ), 259 array( 260 'type' => 'subheading', 261 'content' =>'<h3>'.esc_html__('Dropdown Options','aapside').'</h3>' 262 ), 263 array( 264 'id' => 'header_04_dropdown_bg_color', 265 'type' => 'color', 266 'title' => esc_html__('Dropdown Background Color','aapside'), 267 'default' => '#ffffff' 268 ), 269 array( 270 'id' => 'header_04_dropdown_color', 271 'type' => 'color', 272 'title' => esc_html__('Dropdown Text Color','aapside'), 273 'default' => '#878a95' 274 ), 275 array( 276 'type' => 'subheading', 277 'content' =>'<h3>'.esc_html__('Button Options','aapside').'</h3>' 278 ), 279 array( 280 'id' => 'header_04_btn_background_color', 281 'type' => 'color', 282 'title' => esc_html__('Button Background Color','aapside'), 283 'default' => '#500ade' 284 ), 285 array( 286 'id' => 'header_04_btn_color', 287 'type' => 'color', 288 'title' => esc_html__('Button Color','aapside'), 289 'default' => 'rgba(255,255,255,.8)' 290 ), 291 ) 292 )); 293 294 /*------------------------------------- 295 ** Theme Sidebar Options 296 -------------------------------------*/ 297 CSF::createSection($prefix.'_customize_options',array( 298 'title' => esc_html__('06. Sidebar','aapside'), 299 'priority' => 13, 300 'parent' => 'appside_main_panel', 301 'fields' => array( 302 array( 303 'type' => 'subheading', 304 'content' =>'<h3>'.esc_html__('Sidebar Options','aapside').'</h3>' 305 ), 306 array( 307 'id' => 'sidebar_widget_border_color', 308 'type' => 'color', 309 'title' => esc_html__('Sidebar Widget Border Color','aapside'), 310 'default' => '#fafafa' 311 ), 312 array( 313 'id' => 'sidebar_widget_title_color', 314 'type' => 'color', 315 'title' => esc_html__('Sidebar Widget Title Color','aapside'), 316 'default' => '#242424' 317 ), 318 array( 319 'id' => 'sidebar_widget_text_color', 320 'type' => 'color', 321 'title' => esc_html__('Sidebar Widget Text Color','aapside'), 322 'default' => '#777777' 323 ), 324 ) 325 )); 326 /*------------------------------------- 327 ** Theme Footer Options 328 -------------------------------------*/ 329 CSF::createSection($prefix.'_customize_options',array( 330 'title' => esc_html__('07. Footer','aapside'), 331 'priority' => 14, 332 'parent' => 'appside_main_panel', 333 'fields' => array( 334 array( 335 'type' => 'subheading', 336 'content' =>'<h3>'.esc_html__('Footer Options','aapside').'</h3>' 337 ), 338 array( 339 'id' => 'footer_area_bg_color', 340 'type' => 'color', 341 'title' => esc_html__('Footer Background Color','aapside'), 342 'default' => '#0d2753', 343 344 ), 345 array( 346 'type' => 'subheading', 347 'content' =>'<h3>'.esc_html__('Footer Widget Options','aapside').'</h3>' 348 ), 349 array( 350 'id' => 'footer_widget_title_color', 351 'type' => 'color', 352 'title' => esc_html__('Footer Widget Title Color','aapside'), 353 'default' => '#ffffff' 354 ), 355 array( 356 'id' => 'footer_widget_text_color', 357 'type' => 'color', 358 'title' => esc_html__('Footer Widget Text Color','aapside'), 359 'default' => 'rgba(255, 255, 255, 0.7)' 360 ), 361 array( 362 'type' => 'subheading', 363 'content' =>'<h3>'.esc_html__('Copyright Area Options','aapside').'</h3>' 364 ), 365 array( 366 'id' => 'copyright_area_border_top_color', 367 'type' => 'color', 368 'title' => esc_html__('Copyright Area Border Top Color','aapside'), 369 'default' => 'rgba(255, 255, 255, 0.2)' 370 ), 371 array( 372 'id' => 'copyright_area_text_color', 373 'type' => 'color', 374 'title' => esc_html__('Copyright Area Text Color','aapside'), 375 'default' => 'rgba(255, 255, 255, 0.6)' 376 ), 377 ) 378 )); 379 380 }//endif