csf-options.php (31602B)
1 <?php 2 /** 3 * Theme Options 4 * @Packange Appside 5 * @since 1.0.0 6 */ 7 if ( ! defined( 'ABSPATH' ) ) { 8 exit(); // exit if access directly 9 } 10 // Control core classes for avoid errors 11 if ( class_exists( 'CSF' ) ) { 12 13 $allowed_html = Appside()->kses_allowed_html( array( 'mark' ) ); 14 $prefix = 'appside'; 15 // Create options 16 CSF::createOptions( $prefix . '_theme_options', array( 17 'menu_title' => esc_html__( 'Theme Options', 'aapside' ), 18 'menu_slug' => 'appside-theme-options', 19 'menu_parent' => 'appside_theme_options', 20 'menu_type' => 'submenu', 21 'footer_credit' => ' ', 22 'menu_icon' => 'fa fa-filter', 23 'show_footer' => false, 24 'enqueue_webfont' => false, 25 'show_search' => false, 26 'show_reset_all' => true, 27 'show_reset_section' => false, 28 'show_all_options' => false, 29 'theme' => 'dark', 30 'framework_title' => Appside()->get_theme_info( 'name' ) . '<a href="' . Appside()->get_theme_info( 'author_uri' ) . '" class="author_link">' . '<span>' . esc_html__( 'Author - ', 'aapside' ) . ' </span>' . Appside()->get_theme_info( 'author' ) . '</a> <span class="irtech-theme-version">' . esc_html__( 'V-', 'aapside' ) . Appside()->get_theme_info( 'version' ) . '</span>' 31 ) ); 32 33 /*------------------------------------------------------- 34 ** General Options 35 --------------------------------------------------------*/ 36 CSF::createSection( $prefix . '_theme_options', array( 37 'title' => esc_html__( 'General', 'aapside' ), 38 'id' => 'general_options', 39 'icon' => 'fa fa-wrench', 40 'fields' => array( 41 array( 42 'type' => 'subheading', 43 'content' => '<h3>' . esc_html__( 'Preloader Options', 'aapside' ) . '</h3>' 44 ), 45 array( 46 'id' => 'preloader_enable', 47 'title' => esc_html__( 'Preloader', 'aapside' ), 48 'type' => 'switcher', 49 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to enable/disable preloader', 'aapside' ), $allowed_html ), 50 'default' => true, 51 ), 52 array( 53 'id' => 'preloader_bg_color', 54 'title' => esc_html__( 'Background Color', 'aapside' ), 55 'type' => 'color', 56 'default' => '#ffffff', 57 'desc' => wp_kses( __( 'you can set <mark>overlay color</mark> for breadcrumb background image', 'aapside' ), $allowed_html ), 58 'dependency' => array( 'preloader_enable', '==', 'true' ) 59 ), 60 array( 61 'type' => 'subheading', 62 'content' => '<h3>' . esc_html__( 'Back Top Options', 'aapside' ) . '</h3>' 63 ), 64 array( 65 'id' => 'back_top_enable', 66 'title' => esc_html__( 'Back Top', 'aapside' ), 67 'type' => 'switcher', 68 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to show/hide back to top', 'aapside' ), $allowed_html ), 69 'default' => true, 70 ), 71 array( 72 'id' => 'back_top_icon', 73 'title' => esc_html__( 'Back Top Icon', 'aapside' ), 74 'type' => 'icon', 75 'default' => 'fa fa-angle-up', 76 'desc' => wp_kses( __( 'you can set <mark>icon</mark> for back to top.', 'aapside' ), $allowed_html ), 77 'dependency' => array( 'back_top_enable', '==', 'true' ) 78 ), 79 ) 80 ) ); 81 /*------------------------------------------------------- 82 ** Entire Site Header Options 83 --------------------------------------------------------*/ 84 85 CSF::createSection( $prefix . '_theme_options', array( 86 'title' => esc_html__( 'Header & Footer Style', 'aapside' ), 87 'id' => 'theme_header_one_options', 88 'icon' => 'fa fa-id-card-o', 89 'fields' => array( 90 array( 91 'type' => 'subheading', 92 'content' => '<h3>' . esc_html__( 'Global Header Style', 'aapside' ) . '</h3>' 93 ), 94 array( 95 'id' => 'global_navbar_build_type', 96 'title' => esc_html__( 'Header Type', 'aapside' ), 97 'type' => 'select', 98 'options' => [ 99 'default' => esc_html__( 'Default', 'aapside' ), 100 'header_builder' => esc_html__( 'Header Builder', 'aapside' ), 101 ], 102 'default' => 'default', 103 'desc' => wp_kses( __( 'you can set <mark>header type</mark> default or use header builder design.', 'aapside' ), $allowed_html ), 104 ), 105 array( 106 'id' => 'global_header_style', 107 'title' => esc_html__( 'Header Style', 'aapside' ), 108 'type' => 'image_select', 109 'options' => array( 110 'default' => APPSIDE_THEME_SETTINGS_IMAGES . '/header/02.jpg', 111 'style-01' => APPSIDE_THEME_SETTINGS_IMAGES . '/header/01.jpg', 112 'style-02' => APPSIDE_THEME_SETTINGS_IMAGES . '/header/03.png', 113 'style-03' => APPSIDE_THEME_SETTINGS_IMAGES . '/header/04.png', 114 ), 115 'default' => 'default', 116 'desc' => wp_kses( __( 'you can set <mark>header style</mark> from available design', 'aapside' ), $allowed_html ), 117 'dependency' => [ 'global_navbar_build_type', '==', 'default' ] 118 ), 119 array( 120 'id' => 'global_header_builder_style', 121 'title' => esc_html__( 'Header Builder Style', 'aapside' ), 122 'type' => 'select', 123 'options' => Appside()->get_post_list_by_post_type( 'apside-hebuilder' ), 124 'desc' => wp_kses( __( 'you can set <mark>header builder style</mark> for this page.', 'aapside' ), $allowed_html ), 125 'dependency' => [ 'global_navbar_build_type', '==', 'header_builder' ] 126 ), 127 array( 128 'type' => 'subheading', 129 'content' => '<h3>' . esc_html__( 'Global Footer Style', 'aapside' ) . '</h3>' 130 ), 131 array( 132 'id' => 'global_footer_build_type', 133 'title' => esc_html__( 'Footer Type', 'aapside' ), 134 'type' => 'select', 135 'options' => [ 136 'default' => esc_html__( 'Default', 'aapside' ), 137 'footer_builder' => esc_html__( 'Footer Builder', 'aapside' ), 138 ], 139 'default' => 'default', 140 'desc' => wp_kses( __( 'you can set <mark>footer type</mark> default or use header builder design.', 'aapside' ), $allowed_html ), 141 ), 142 array( 143 'id' => 'global_footer_builder_style', 144 'title' => esc_html__( 'Footer Builder Style', 'aapside' ), 145 'type' => 'select', 146 'options' => Appside()->get_post_list_by_post_type( 'apside-foobuilder' ), 147 'desc' => wp_kses( __( 'you can set <mark>footer builder style</mark> for this page.', 'aapside' ), $allowed_html ), 148 'dependency' => [ 'global_footer_build_type', '==', 'footer_builder' ] 149 ), 150 ) 151 ) ); 152 /*------------------------------------- 153 Header Settings 154 -------------------------------------*/ 155 CSF::createSection( $prefix . '_theme_options', array( 156 'title' => esc_html__( 'Header Settings', 'aapside' ), 157 'id' => 'header_style_settings_options', 158 'icon' => 'fa fa-header', 159 ) ); 160 161 /* header style 01 */ 162 CSF::createSection( $prefix . '_theme_options', array( 163 'title' => esc_html__( 'Header One', 'aapside' ), 164 'id' => 'theme_header_one_settings', 165 'icon' => 'fa fa-image', 166 'parent' => 'header_style_settings_options', 167 'fields' => array( 168 array( 169 'type' => 'subheading', 170 'content' => '<h3>' . esc_html__( 'Header Style One Settings', 'aapside' ) . '</h3>' 171 ), 172 array( 173 'id' => 'header_one_logo', 174 'type' => 'media', 175 'title' => esc_html__( 'Logo', 'aapside' ), 176 'library' => 'image', 177 'desc' => wp_kses( __( 'you can upload <mark> logo</mark> here it will overwrite customizer uploaded logo', 'aapside' ), $allowed_html ), 178 ), 179 array( 180 'type' => 'subheading', 181 'content' => '<h3>' . esc_html__( 'Navbar Options', 'aapside' ) . '</h3>' 182 ), 183 array( 184 'id' => 'header_one_navbar_btn', 185 'title' => esc_html__( 'Navbar Button', 'aapside' ), 186 'type' => 'switcher', 187 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to enable/disable navbar button', 'aapside' ), $allowed_html ), 188 'default' => true, 189 ), 190 array( 191 'id' => 'header_one_navbar_btn_text', 192 'title' => esc_html__( 'Navbar Button Text', 'aapside' ), 193 'type' => 'text', 194 'desc' => wp_kses( __( 'you can set <mark>button text</mark> for navbar button', 'aapside' ), $allowed_html ), 195 'default' => esc_html__( 'Download', 'aapside' ), 196 ), 197 array( 198 'id' => 'header_one_navbar_btn_url', 199 'title' => esc_html__( 'Navbar Button URL', 'aapside' ), 200 'type' => 'text', 201 'desc' => wp_kses( __( 'you can set <mark>button url</mark> for navbar button', 'aapside' ), $allowed_html ), 202 'default' => '#', 203 ), 204 ) 205 ) ); 206 207 /* header style 02 */ 208 CSF::createSection( $prefix . '_theme_options', array( 209 'title' => esc_html__( 'Header Two', 'aapside' ), 210 'id' => 'theme_header_two_settings', 211 'icon' => 'fa fa-image', 212 'parent' => 'header_style_settings_options', 213 'fields' => array( 214 array( 215 'type' => 'subheading', 216 'content' => '<h3>' . esc_html__( 'Header Style Two Settings', 'aapside' ) . '</h3>' 217 ), 218 array( 219 'id' => 'header_two_logo', 220 'type' => 'media', 221 'title' => esc_html__( 'Logo', 'aapside' ), 222 'library' => 'image', 223 'desc' => wp_kses( __( 'you can upload <mark> logo</mark> here it will overwrite customizer uploaded logo', 'aapside' ), $allowed_html ), 224 ), 225 array( 226 'type' => 'subheading', 227 'content' => '<h3>' . esc_html__( 'Navbar Options', 'aapside' ) . '</h3>' 228 ), 229 array( 230 'id' => 'header_two_navbar_btn', 231 'title' => esc_html__( 'Navbar Button', 'aapside' ), 232 'type' => 'switcher', 233 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to enable/disable navbar button', 'aapside' ), $allowed_html ), 234 'default' => true, 235 ), 236 array( 237 'id' => 'header_two_navbar_btn_text', 238 'title' => esc_html__( 'Navbar Button Text', 'aapside' ), 239 'type' => 'text', 240 'desc' => wp_kses( __( 'you can set <mark>button text</mark> for navbar button', 'aapside' ), $allowed_html ), 241 'default' => esc_html__( 'Download', 'aapside' ), 242 ), 243 array( 244 'id' => 'header_two_navbar_btn_url', 245 'title' => esc_html__( 'Navbar Button URL', 'aapside' ), 246 'type' => 'text', 247 'desc' => wp_kses( __( 'you can set <mark>button url</mark> for navbar button', 'aapside' ), $allowed_html ), 248 'default' => '#', 249 ), 250 ) 251 ) ); 252 253 /* header style 03 */ 254 CSF::createSection( $prefix . '_theme_options', array( 255 'title' => esc_html__( 'Header Three', 'aapside' ), 256 'id' => 'theme_header_three_settings', 257 'icon' => 'fa fa-image', 258 'parent' => 'header_style_settings_options', 259 'fields' => array( 260 array( 261 'type' => 'subheading', 262 'content' => '<h3>' . esc_html__( 'Header Style Three Settings', 'aapside' ) . '</h3>' 263 ), 264 array( 265 'id' => 'header_three_logo', 266 'type' => 'media', 267 'title' => esc_html__( 'Logo', 'aapside' ), 268 'library' => 'image', 269 'desc' => wp_kses( __( 'you can upload <mark> logo</mark> here it will overwrite customizer uploaded logo', 'aapside' ), $allowed_html ), 270 ), 271 array( 272 'type' => 'subheading', 273 'content' => '<h3>' . esc_html__( 'Navbar Options', 'aapside' ) . '</h3>' 274 ), 275 array( 276 'id' => 'header_three_navbar_btn', 277 'title' => esc_html__( 'Navbar Button One', 'aapside' ), 278 'type' => 'switcher', 279 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to enable/disable navbar button', 'aapside' ), $allowed_html ), 280 'default' => true, 281 ), 282 array( 283 'id' => 'header_three_navbar_btn_text', 284 'title' => esc_html__( 'Navbar Button One Text', 'aapside' ), 285 'type' => 'text', 286 'desc' => wp_kses( __( 'you can set <mark>button text</mark> for navbar button', 'aapside' ), $allowed_html ), 287 'default' => esc_html__( 'Login', 'aapside' ), 288 ), 289 array( 290 'id' => 'header_three_navbar_btn_url', 291 'title' => esc_html__( 'Navbar Button One URL', 'aapside' ), 292 'type' => 'text', 293 'desc' => wp_kses( __( 'you can set <mark>button url</mark> for navbar button', 'aapside' ), $allowed_html ), 294 'default' => '#', 295 ), 296 array( 297 'id' => 'header_three_navbar_btn_two', 298 'title' => esc_html__( 'Navbar Button Two', 'aapside' ), 299 'type' => 'switcher', 300 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to enable/disable navbar button', 'aapside' ), $allowed_html ), 301 'default' => true, 302 ), 303 array( 304 'id' => 'header_three_navbar_btn_two_text', 305 'title' => esc_html__( 'Navbar Button Two Text', 'aapside' ), 306 'type' => 'text', 307 'desc' => wp_kses( __( 'you can set <mark>button text</mark> for navbar button', 'aapside' ), $allowed_html ), 308 'default' => esc_html__( 'Signup', 'aapside' ), 309 ), 310 array( 311 'id' => 'header_three_navbar_btn_two_url', 312 'title' => esc_html__( 'Navbar Button Two URL', 'aapside' ), 313 'type' => 'text', 314 'desc' => wp_kses( __( 'you can set <mark>button url</mark> for navbar button', 'aapside' ), $allowed_html ), 315 'default' => '#', 316 ), 317 ) 318 ) ); 319 /* header style 04 */ 320 CSF::createSection( $prefix . '_theme_options', array( 321 'title' => esc_html__( 'Header Four', 'aapside' ), 322 'id' => 'theme_header_four_settings', 323 'icon' => 'fa fa-image', 324 'parent' => 'header_style_settings_options', 325 'fields' => array( 326 array( 327 'type' => 'subheading', 328 'content' => '<h3>' . esc_html__( 'Header Style Four Settings', 'aapside' ) . '</h3>' 329 ), 330 array( 331 'id' => 'header_four_logo', 332 'type' => 'media', 333 'title' => esc_html__( 'Logo', 'aapside' ), 334 'library' => 'image', 335 'desc' => wp_kses( __( 'you can upload <mark> logo</mark> here it will overwrite customizer uploaded logo', 'aapside' ), $allowed_html ), 336 ), 337 array( 338 'type' => 'subheading', 339 'content' => '<h3>' . esc_html__( 'Navbar Options', 'aapside' ) . '</h3>' 340 ), 341 array( 342 'id' => 'header_four_navbar_btn', 343 'title' => esc_html__( 'Navbar Button', 'aapside' ), 344 'type' => 'switcher', 345 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to enable/disable navbar button', 'aapside' ), $allowed_html ), 346 'default' => true, 347 ), 348 array( 349 'id' => 'header_four_navbar_btn_text', 350 'title' => esc_html__( 'Navbar Button Text', 'aapside' ), 351 'type' => 'text', 352 'desc' => wp_kses( __( 'you can set <mark>button text</mark> for navbar button', 'aapside' ), $allowed_html ), 353 'default' => esc_html__( 'Download', 'aapside' ), 354 ), 355 array( 356 'id' => 'header_four_navbar_btn_url', 357 'title' => esc_html__( 'Navbar Button URL', 'aapside' ), 358 'type' => 'text', 359 'desc' => wp_kses( __( 'you can set <mark>button url</mark> for navbar button', 'aapside' ), $allowed_html ), 360 'default' => '#', 361 ), 362 ) 363 ) ); 364 365 366 /* Breadcrumb */ 367 CSF::createSection( $prefix . '_theme_options', array( 368 'title' => esc_html__( 'Breadcrumb', 'aapside' ), 369 'id' => 'breadcrumb_options', 370 'icon' => 'fa fa-ellipsis-h', 371 'fields' => array( 372 array( 373 'type' => 'subheading', 374 'content' => '<h3>' . esc_html__( 'Breadcrumb Options', 'aapside' ) . '</h3>' 375 ), 376 array( 377 'id' => 'breadcrumb_enable', 378 'title' => esc_html__( 'Breadcrumb', 'aapside' ), 379 'type' => 'switcher', 380 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to show/hide breadcrumb', 'aapside' ), $allowed_html ), 381 'default' => true, 382 ), 383 array( 384 'id' => 'breadcrumb_bg', 385 'title' => esc_html__( 'Background Image', 'aapside' ), 386 'type' => 'background', 387 'desc' => wp_kses( __( 'you can set <mark>background</mark> for breadcrumb', 'aapside' ), $allowed_html ), 388 'default' => array( 389 'background-size' => 'cover', 390 'background-position' => 'center bottom', 391 'background-repeat' => 'no-repeat', 392 ), 393 'background_color' => false, 394 'dependency' => array( 'breadcrumb_enable', '==', 'true' ) 395 ) 396 ) 397 ) ); 398 399 400 /*------------------------------------------------------- 401 ** Footer Options 402 --------------------------------------------------------*/ 403 CSF::createSection( $prefix . '_theme_options', array( 404 'title' => esc_html__( 'Footer', 'aapside' ), 405 'id' => 'footer_options', 406 'icon' => 'fa fa-copyright', 407 'fields' => array( 408 array( 409 'type' => 'subheading', 410 'content' => '<h3>' . esc_html__( 'Footer Options', 'aapside' ) . '</h3>' 411 ), 412 array( 413 'id' => 'footer_spacing', 414 'title' => esc_html__( 'Footer Spacing', 'aapside' ), 415 'type' => 'switcher', 416 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to set footer spacing', 'aapside' ), $allowed_html ), 417 'default' => true, 418 ), 419 array( 420 'id' => 'footer_top_spacing', 421 'title' => esc_html__( 'Footer Top Spacing', 'aapside' ), 422 'type' => 'slider', 423 'desc' => wp_kses( __( 'you can set <mark>padding</mark> for footer top', 'aapside' ), $allowed_html ), 424 'min' => 0, 425 'max' => 500, 426 'step' => 1, 427 'unit' => 'px', 428 'default' => 100, 429 'dependency' => array( 'footer_spacing', '==', 'true' ) 430 ), 431 array( 432 'id' => 'footer_bottom_spacing', 433 'title' => esc_html__( 'Footer Bottom Spacing', 'aapside' ), 434 'type' => 'slider', 435 'desc' => wp_kses( __( 'you can set <mark>padding</mark> for footer bottom', 'aapside' ), $allowed_html ), 436 'min' => 0, 437 'max' => 500, 438 'step' => 1, 439 'unit' => 'px', 440 'default' => 65, 441 'dependency' => array( 'footer_spacing', '==', 'true' ) 442 ), 443 array( 444 'type' => 'subheading', 445 'content' => '<h3>' . esc_html__( 'Footer Copyright Area Options', 'aapside' ) . '</h3>' 446 ), 447 array( 448 'id' => 'copyright_area_spacing', 449 'title' => esc_html__( 'Copyright Area Spacing', 'aapside' ), 450 'type' => 'switcher', 451 'desc' => wp_kses( __( 'you can set <mark>Yes / No</mark> to set copyright area spacing', 'aapside' ), $allowed_html ), 452 'default' => true, 453 ), 454 array( 455 'id' => 'copyright_text', 456 'title' => esc_html__( 'Copyright Area Text', 'aapside' ), 457 'type' => 'text', 458 'desc' => wp_kses( __( 'use <mark>{copy}</mark> for copyright symbol, use <mark>{year}</mark> for current year, ', 'aapside' ), $allowed_html ) 459 ), 460 array( 461 'id' => 'copyright_area_top_spacing', 462 'title' => esc_html__( 'Copyright Area Top Spacing', 'aapside' ), 463 'type' => 'slider', 464 'desc' => wp_kses( __( 'you can set <mark>padding</mark> for copyright area top', 'aapside' ), $allowed_html ), 465 'min' => 0, 466 'max' => 500, 467 'step' => 1, 468 'unit' => 'px', 469 'default' => 20, 470 'dependency' => array( 'copyright_area_spacing', '==', 'true' ) 471 ), 472 array( 473 'id' => 'copyright_area_bottom_spacing', 474 'title' => esc_html__( 'Copyright Area Bottom Spacing', 'aapside' ), 475 'type' => 'slider', 476 'desc' => wp_kses( __( 'you can set <mark>padding</mark> for copyright area bottom', 'aapside' ), $allowed_html ), 477 'min' => 0, 478 'max' => 500, 479 'step' => 1, 480 'unit' => 'px', 481 'default' => 20, 482 'dependency' => array( 'copyright_area_spacing', '==', 'true' ) 483 ), 484 ) 485 ) ); 486 /*------------------------------------------------------- 487 ** Blog Options 488 --------------------------------------------------------*/ 489 CSF::createSection( $prefix . '_theme_options', array( 490 'id' => 'blog_settings', 491 'title' => esc_html__( 'Blog Settings', 'aapside' ), 492 'icon' => 'fa fa-rss' 493 ) ); 494 CSF::createSection( $prefix . '_theme_options', array( 495 'parent' => 'blog_settings', 496 'id' => 'blog_post_options', 497 'title' => esc_html__( 'Blog Post', 'aapside' ), 498 'icon' => 'fa fa-list-ul', 499 'fields' => Appside_Group_Fields::post_meta( 'blog_post', esc_html__( 'Blog Page', 'aapside' ) ) 500 ) ); 501 CSF::createSection( $prefix . '_theme_options', array( 502 'parent' => 'blog_settings', 503 'id' => 'blog_single_post_options', 504 'title' => esc_html__( 'Single Post', 'aapside' ), 505 'icon' => 'fa fa-list-alt', 506 'fields' => Appside_Group_Fields::post_meta( 'blog_single_post', esc_html__( 'Blog Single Page', 'aapside' ) ) 507 ) ); 508 /*------------------------------------------------------- 509 ** Pages & templates Options 510 --------------------------------------------------------*/ 511 CSF::createSection( $prefix . '_theme_options', array( 512 'id' => 'pages_and_template', 513 'title' => esc_html__( 'Default Pages Settings', 'aapside' ), 514 'icon' => 'fa fa-files-o' 515 ) ); 516 /* 404 page options */ 517 CSF::createSection( $prefix . '_theme_options', array( 518 'id' => '404_page', 519 'title' => esc_html__( '404 Page', 'aapside' ), 520 'parent' => 'pages_and_template', 521 'icon' => 'fa fa-exclamation-triangle', 522 'fields' => array( 523 array( 524 'type' => 'subheading', 525 'content' => '<h3>' . esc_html__( '404 Page Options', 'aapside' ) . '</h3>', 526 ), 527 array( 528 'id' => '404_bg_color', 529 'type' => 'color', 530 'title' => esc_html__( 'Page Background Color', 'aapside' ), 531 'default' => '#ffffff' 532 ), 533 array( 534 'id' => '404_title', 535 'title' => esc_html__( 'Title', 'aapside' ), 536 'type' => 'text', 537 'info' => wp_kses( __( 'you can change <mark>title</mark> of 404 page', 'aapside' ), $allowed_html ), 538 'attributes' => array( 'placeholder' => esc_html__( '404', 'aapside' ) ) 539 ), 540 array( 541 'id' => '404_subtitle', 542 'title' => esc_html__( 'Sub Title', 'aapside' ), 543 'type' => 'text', 544 'info' => wp_kses( __( 'you can change <mark>sub title</mark> of 404 page', 'aapside' ), $allowed_html ), 545 'attributes' => array( 'placeholder' => esc_html__( 'Oops! That page can not be found.', 'aapside' ) ) 546 ), 547 array( 548 'id' => '404_paragraph', 549 'title' => esc_html__( 'Paragraph', 'aapside' ), 550 'type' => 'textarea', 551 'info' => wp_kses( __( 'you can change <mark>paragraph</mark> of 404 page', 'aapside' ), $allowed_html ), 552 'attributes' => array( 'placeholder' => esc_html__( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'aapside' ) ) 553 ), 554 array( 555 'id' => '404_button_text', 556 'title' => esc_html__( 'Button Text', 'aapside' ), 557 'type' => 'text', 558 'info' => wp_kses( __( 'you can change <mark>button text</mark> of 404 page', 'aapside' ), $allowed_html ), 559 'attributes' => array( 'placeholder' => esc_html__( 'back to home', 'aapside' ) ) 560 ), 561 array( 562 'id' => '404_spacing_top', 563 'title' => esc_html__( 'Page Spacing Top', 'aapside' ), 564 'type' => 'slider', 565 'desc' => wp_kses( __( 'you can set <mark>Padding Top</mark> for page content area.', 'aapside' ), $allowed_html ), 566 'min' => 0, 567 'max' => 500, 568 'step' => 1, 569 'unit' => 'px', 570 'default' => 120, 571 ), 572 array( 573 'id' => '404_spacing_bottom', 574 'title' => esc_html__( 'Page Spacing Bottom', 'aapside' ), 575 'type' => 'slider', 576 'desc' => wp_kses( __( 'you can set <mark>Padding Bottom</mark> for page content area.', 'aapside' ), $allowed_html ), 577 'min' => 0, 578 'max' => 500, 579 'step' => 1, 580 'unit' => 'px', 581 'default' => 120, 582 ), 583 ) 584 ) ); 585 /* blog page options */ 586 CSF::createSection( $prefix . '_theme_options', array( 587 'id' => 'blog_page', 588 'title' => esc_html__( 'Blog Page', 'aapside' ), 589 'parent' => 'pages_and_template', 590 'icon' => 'fa fa-indent', 591 'fields' => Appside_Group_Fields::page_layout_options( esc_html__( 'Blog', 'aapside' ), 'blog' ) 592 ) ); 593 /* blog single page options */ 594 CSF::createSection( $prefix . '_theme_options', array( 595 'id' => 'blog_single_page', 596 'title' => esc_html__( 'Blog Single Page', 'aapside' ), 597 'parent' => 'pages_and_template', 598 'icon' => 'fa fa-indent', 599 'fields' => Appside_Group_Fields::page_layout_options( esc_html__( 'Blog Single', 'aapside' ), 'blog_single' ) 600 ) ); 601 /* archive page options */ 602 CSF::createSection( $prefix . '_theme_options', array( 603 'id' => 'archive_page', 604 'title' => esc_html__( 'Archive Page', 'aapside' ), 605 'parent' => 'pages_and_template', 606 'icon' => 'fa fa-archive', 607 'fields' => Appside_Group_Fields::page_layout_options( esc_html__( 'Archive', 'aapside' ), 'archive' ) 608 ) ); 609 /* search page options */ 610 CSF::createSection( $prefix . '_theme_options', array( 611 'id' => 'search_page', 612 'title' => esc_html__( 'Search Page', 'aapside' ), 613 'parent' => 'pages_and_template', 614 'icon' => 'fa fa-search', 615 'fields' => Appside_Group_Fields::page_layout_options( esc_html__( 'Search', 'aapside' ), 'search' ) 616 ) ); 617 618 /* portfolio options */ 619 CSF::createSection( $prefix . '_theme_options', array( 620 'id' => 'portfolio_single_page', 621 'title' => esc_html__( 'Portfolio Single Page', 'aapside' ), 622 'parent' => 'pages_and_template', 623 'icon' => 'fa fa-th-large', 624 'fields' => array( 625 array( 626 'type' => 'subheading', 627 'content' => '<h3>' . esc_html__( 'Portfolio Single Page Options', 'aapside' ) . '</h3>', 628 ), 629 array( 630 'id' => 'portfolio_bg_color', 631 'type' => 'color', 632 'title' => esc_html__( 'Page Background Color', 'aapside' ), 633 'default' => '#ffffff' 634 ), 635 array( 636 'id' => 'portfolio_spacing_top', 637 'title' => esc_html__( 'Page Spacing Top', 'aapside' ), 638 'type' => 'slider', 639 'desc' => wp_kses( __( 'you can set <mark>Padding Top</mark> for page content area.', 'aapside' ), $allowed_html ), 640 'min' => 0, 641 'max' => 500, 642 'step' => 1, 643 'unit' => 'px', 644 'default' => 120, 645 ), 646 array( 647 'id' => 'portfolio_spacing_bottom', 648 'title' => esc_html__( 'Page Spacing Bottom', 'aapside' ), 649 'type' => 'slider', 650 'desc' => wp_kses( __( 'you can set <mark>Padding Bottom</mark> for page content area.', 'aapside' ), $allowed_html ), 651 'min' => 0, 652 'max' => 500, 653 'step' => 1, 654 'unit' => 'px', 655 'default' => 120, 656 ), 657 array( 658 'id' => 'portfolio_sidebar_title', 659 'type' => 'text', 660 'title' => esc_html__( 'Sidebar Title', 'aapside' ), 661 'default' => esc_html__( 'Information', 'aapside' ) 662 ), 663 array( 664 'id' => 'portfolio_sidebar_clients', 665 'type' => 'text', 666 'title' => esc_html__( 'Client Title', 'aapside' ), 667 'default' => esc_html__( 'Client', 'aapside' ) 668 ), 669 array( 670 'id' => 'portfolio_sidebar_company', 671 'type' => 'text', 672 'title' => esc_html__( 'Company Title', 'aapside' ), 673 'default' => esc_html__( 'Company', 'aapside' ) 674 ), 675 array( 676 'id' => 'portfolio_sidebar_website', 677 'type' => 'text', 678 'title' => esc_html__( 'Website Title', 'aapside' ), 679 'default' => esc_html__( 'Website', 'aapside' ) 680 ), 681 array( 682 'id' => 'portfolio_sidebar_category', 683 'type' => 'text', 684 'title' => esc_html__( 'Category Title', 'aapside' ), 685 'default' => esc_html__( 'Category', 'aapside' ) 686 ), 687 array( 688 'id' => 'portfolio_sidebar_start_date', 689 'type' => 'text', 690 'title' => esc_html__( 'Start Date Title', 'aapside' ), 691 'default' => esc_html__( 'Start Date', 'aapside' ) 692 ), 693 array( 694 'id' => 'portfolio_sidebar_end_date', 695 'type' => 'text', 696 'title' => esc_html__( 'End Date Title', 'aapside' ), 697 'default' => esc_html__( 'End Date', 'aapside' ) 698 ) 699 ) 700 ) ); 701 702 /*------------------------------------------------------- 703 ** Typography Options 704 --------------------------------------------------------*/ 705 CSF::createSection( $prefix . '_theme_options', array( 706 'id' => 'typography', 707 'title' => esc_html__( 'Typography', 'aapside' ), 708 'icon' => 'fa fa-text-width', 709 'fields' => array( 710 array( 711 'type' => 'subheading', 712 'content' => '<h3>' . esc_html__( 'Body Font Options', 'aapside' ) . '</h3>', 713 ), 714 array( 715 'type' => 'typography', 716 'title' => esc_html__( 'Typography', 'aapside' ), 717 'id' => '_body_font', 718 'default' => array( 719 'font-family' => 'Poppins', 720 'font-size' => '16', 721 // 'line-height' => '1.3', 722 'unit' => '%', 723 'type' => 'google', 724 ), 725 'color' => false, 726 'subset' => false, 727 'text_align' => false, 728 'text_transform' => false, 729 'letter_spacing' => false, 730 'line_height' => false, 731 'desc' => wp_kses( __( 'you can set <mark>font</mark> for all html tags (if not use different heading font)', 'aapside' ), $allowed_html ), 732 ), 733 array( 734 'id' => 'body_font_variant', 735 'type' => 'select', 736 'title' => esc_html__( 'Load Font Variant', 'aapside' ), 737 'multiple' => true, 738 'chosen' => true, 739 'options' => array( 740 '300' => esc_html__( 'Light 300', 'aapside' ), 741 '400' => esc_html__( 'Regular 400', 'aapside' ), 742 '500' => esc_html__( 'Medium 500', 'aapside' ), 743 '600' => esc_html__( 'Semi Bold 600', 'aapside' ), 744 '700' => esc_html__( 'Bold 700', 'aapside' ), 745 '800' => esc_html__( 'Extra Bold 800', 'aapside' ), 746 ), 747 'default' => array( '400', '700' ) 748 ), 749 array( 750 'type' => 'subheading', 751 'content' => '<h3>' . esc_html__( 'Heading Font Options', 'aapside' ) . '</h3>', 752 ), 753 array( 754 'type' => 'switcher', 755 'id' => 'heading_font_enable', 756 'title' => esc_html__( 'Heading Font', 'aapside' ), 757 'desc' => wp_kses( __( 'you can set <mark>yes</mark> to select different heading font', 'aapside' ), $allowed_html ), 758 'default' => false 759 ), 760 array( 761 'type' => 'typography', 762 'title' => esc_html__( 'Typography', 'aapside' ), 763 'id' => 'heading_font', 764 'default' => array( 765 'font-family' => 'Poppins', 766 'type' => 'google', 767 ), 768 'color' => false, 769 'subset' => false, 770 'text_align' => false, 771 'text_transform' => false, 772 'letter_spacing' => false, 773 'font_size' => false, 774 'line_height' => false, 775 'desc' => wp_kses( __( 'you can set <mark>font</mark> for for heading tag .eg: h1,h2mh3,h4,h5,h6', 'aapside' ), $allowed_html ), 776 'dependency' => array( 'heading_font_enable', '==', 'true' ) 777 ), 778 array( 779 'id' => 'heading_font_variant', 780 'type' => 'select', 781 'title' => esc_html__( 'Load Font Variant', 'aapside' ), 782 'multiple' => true, 783 'chosen' => true, 784 'options' => array( 785 '300' => esc_html__( 'Light 300', 'aapside' ), 786 '400' => esc_html__( 'Regular 400', 'aapside' ), 787 '500' => esc_html__( 'Medium 500', 'aapside' ), 788 '600' => esc_html__( 'Semi Bold 600', 'aapside' ), 789 '700' => esc_html__( 'Bold 700', 'aapside' ), 790 '800' => esc_html__( 'Extra Bold 800', 'aapside' ), 791 ), 792 'default' => array( '400', '500', '600', '700', '800' ), 793 'dependency' => array( 'heading_font_enable', '==', 'true' ) 794 ), 795 ) 796 ) ); 797 798 /*------------------------------------------------------- 799 ** Backup Options 800 --------------------------------------------------------*/ 801 CSF::createSection( $prefix . '_theme_options', array( 802 'id' => 'backup', 803 'title' => esc_html__( 'Import / Export', 'aapside' ), 804 'icon' => 'fa fa-upload', 805 'fields' => array( 806 array( 807 'type' => 'notice', 808 'style' => 'warning', 809 'content' => esc_html__( 'You can save your current options. Download a Backup and Import.', 'aapside' ), 810 ), 811 array( 812 'type' => 'backup', 813 'title' => esc_html__( 'Backup & Import', 'aapside' ) 814 ) 815 ) 816 ) ); 817 }