Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
working-hours
/
dashboard
/
admin
/
File Content:
working-hours-options.php
<?php if ( ! function_exists( 'hiroshi_core_add_working_hours_options' ) ) { /** * Function that add general options for this module */ function hiroshi_core_add_working_hours_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => HIROSHI_CORE_OPTIONS_NAME, 'type' => 'admin', 'slug' => 'working-hours', 'icon' => 'fa fa-book', 'title' => esc_html__( 'Working Hours', 'hiroshi-core' ), 'description' => esc_html__( 'Global Working Hours Options', 'hiroshi-core' ), ) ); if ( $page ) { $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_monday', 'title' => esc_html__( 'Working Hours For Monday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_tuesday', 'title' => esc_html__( 'Working Hours For Tuesday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_wednesday', 'title' => esc_html__( 'Working Hours For Wednesday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_thursday', 'title' => esc_html__( 'Working Hours For Thursday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_friday', 'title' => esc_html__( 'Working Hours For Friday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_saturday', 'title' => esc_html__( 'Working Hours For Saturday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_sunday', 'title' => esc_html__( 'Working Hours For Sunday', 'hiroshi-core' ), ) ); $page->add_field_element( array( 'field_type' => 'checkbox', 'name' => 'qodef_working_hours_special_days', 'title' => esc_html__( 'Special Days', 'hiroshi-core' ), 'options' => array( 'monday' => esc_html__( 'Monday', 'hiroshi-core' ), 'tuesday' => esc_html__( 'Tuesday', 'hiroshi-core' ), 'wednesday' => esc_html__( 'Wednesday', 'hiroshi-core' ), 'thursday' => esc_html__( 'Thursday', 'hiroshi-core' ), 'friday' => esc_html__( 'Friday', 'hiroshi-core' ), 'saturday' => esc_html__( 'Saturday', 'hiroshi-core' ), 'sunday' => esc_html__( 'Sunday', 'hiroshi-core' ), ), ) ); $page->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_working_hours_special_text', 'title' => esc_html__( 'Featured Text For Special Days', 'hiroshi-core' ), ) ); // Hook to include additional options after module options do_action( 'hiroshi_core_action_after_working_hours_options_map', $page ); } } add_action( 'hiroshi_core_action_default_options_init', 'hiroshi_core_add_working_hours_options', hiroshi_core_get_admin_options_map_position( 'working-hours' ) ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
working-hours-options.php
3358 bytes
0644
N4ST4R_ID | Naxtarrr