'; $form['#attached']['library'][] = 'rdm/theme-settings'; $form['rdm'] = [ '#type' => 'vertical_tabs', '#title' => '

' . t('Edu X Theme Settings') . '

', '#default_tab' => 'general', ]; /** * Main Tabs. */ $form['general'] = [ '#type' => 'details', '#title' => t('General'), '#description' => t('

Thank you for using EduX Theme

Edu X is a free Drupal 8, 9 theme designed and developed by Drupar.com'), '#group' => 'rdm', ]; $form['layout'] = [ '#type' => 'details', '#title' => t('Layout'), '#group' => 'rdm', ]; $form['slider'] = [ '#type' => 'details', '#title' => t('Homepage Slider'), '#description' => t('

Manage Homepage Slider

'), '#group' => 'rdm', ]; $form['header'] = [ '#type' => 'details', '#title' => t('Header'), '#group' => 'rdm', ]; $form['sidebar'] = [ '#type' => 'details', '#title' => t('Sidebar'), '#group' => 'rdm', ]; $form['content'] = [ '#type' => 'details', '#title' => t('Content'), '#group' => 'rdm', ]; $form['footer'] = [ '#type' => 'details', '#title' => t('Footer'), '#group' => 'rdm', ]; $form['comment'] = [ '#type' => 'details', '#title' => t('Comment'), '#group' => 'rdm', ]; $form['typography'] = [ '#type' => 'details', '#title' => t('Typography'), '#group' => 'rdm', ]; $form['elements'] = [ '#type' => 'details', '#title' => t('Elements'), '#group' => 'rdm', ]; $form['components'] = [ '#type' => 'details', '#title' => t('Components'), '#group' => 'rdm', ]; $form['color'] = [ '#type' => 'details', '#title' => t('Theme Color'), '#group' => 'rdm', ]; $form['insert_codes'] = [ '#type' => 'details', '#title' => t('Insert Codes'), '#group' => 'rdm', ]; $form['support'] = [ '#type' => 'details', '#title' => t('Support'), '#group' => 'rdm', ]; $form['upgrade'] = [ '#type' => 'details', '#title' => t('Upgrade To Edu-X-Pro'), '#description' => t('

Upgrade To Edu X Pro For $29 Only

'), '#group' => 'rdm', ]; /* * General */ $form['general']['general_info'] = [ '#type' => 'fieldset', '#title' => t('Theme Info'), '#description' => t('Theme Homepage || Theme Demo || Theme Documentation || Theme Support'), ]; $form['general']['general_info_upgrade'] = [ '#type' => 'fieldset', '#title' => t('Upgrade To Edu-X-Pro for $29 only'), '#description' => t('

Purchase Edu-X-Pro || Edu-X-Pro Demo

') . $rdmpro, ]; /* * Layout */ // Layout -> Container width $form['layout']['layout_container'] = [ '#type' => 'fieldset', '#title' => t('Container width (px)'), ]; $form['layout']['layout_container']['container_width'] = [ '#type' => 'number', '#default_value' => theme_get_setting('container_width'), '#description' => t('Set width of the container in px. Default width is 1170px.'), ]; // Layout -> Header Layout $form['layout']['layout_header'] = [ '#type' => 'fieldset', '#title' => t('Header Layout'), ]; $form['layout']['layout_header']['header_width'] = [ '#type' => 'select', '#options' => array( 'header_width_contained' => t('contained'), 'header_width_full' => t('Full Width'),), '#default_value' => theme_get_setting('header_width'), ]; // Layout -> Main Layout $form['layout']['layout_main'] = [ '#type' => 'fieldset', '#title' => t('Main Layout'), ]; $form['layout']['layout_main']['main_width'] = [ '#type' => 'select', '#options' => array( 'main_width_contained' => t('contained'), 'main_width_full' => t('Full Width'),), '#default_value' => theme_get_setting('main_width'), ]; // Layout -> Footer Layout $form['layout']['layout_footer'] = [ '#type' => 'fieldset', '#title' => t('Footer Layout'), ]; $form['layout']['layout_footer']['footer_width'] = [ '#type' => 'select', '#options' => array( 'footer_width_contained' => t('contained'), 'footer_width_full' => t('Full Width'),), '#default_value' => theme_get_setting('footer_width'), ]; /* * Homepage slider */ $form['slider']['slider_enable_option'] = [ '#type' => 'fieldset', '#title' => t('Enable Slider'), ]; $form['slider']['slider_enable_option']['slider_show'] = [ '#type' => 'checkbox', '#title' => t('Show Slider on Homepage'), '#default_value' => theme_get_setting('slider_show'), '#description' => t("Check this option to show slider on homepage. Uncheck to disable slider."), ]; // Slider -> Slider speed $form['slider']['slider_speed_option'] = [ '#type' => 'fieldset', '#title' => t('Slider Speed'), ]; $form['slider']['slider_speed_option']['slider_speed'] = [ '#type' => 'number', '#title' => t('Interval time between two slides'), '#default_value' => theme_get_setting('slider_speed'), '#description' => t("Time interval between two slides. Default value is 5000, this means 5 seconds."), ]; /* Slider Image upload */ $form['slider']['slider_image_section'] = [ '#type' => 'fieldset', '#title' => t('Slider Image'), ]; $form['slider']['slider_image_section']['slider_image_bg'] = [ '#type' => 'checkbox', '#title' => t('Slider Image Blob Background'), '#default_value' => theme_get_setting('slider_image_bg', 'rdm'), '#description' => t("Check this option to show the animated blob backgroung behind the slider image. Uncheck to hide."), ]; $form['slider']['slider_image_section']['slider_image'] = [ '#type' => 'managed_file', '#upload_location' => 'public://', '#upload_validators' => array( 'file_validate_extensions' => array('gif png jpg jpeg svg'), ), '#title' => t('

Upload Slider Image

'), '#default_value' => theme_get_setting('slider_image', 'rdm'), '#description' => t('Edux theme has limitation of single image for slider. Separate image for each slide is available in EduxPro. Buy Edu-X-Pro for $29 only.'), ]; $form['slider']['slider_code'] = [ '#type' => 'textarea', '#title' => t('Slider Code'), '#default_value' => theme_get_setting('slider_code'), '#description' => t('Please refer to this documentation page for slider code tutorial.'), ]; /* * Header */ $form['header']['header_tab'] = [ '#type' => 'vertical_tabs', ]; // Header -> Quick Links $form['header']['header_links'] = [ '#type' => 'details', '#title' => t('Header Links'), '#group' => 'header_tab', ]; $form['header']['header_links']['header_links_section'] = [ '#type' => 'fieldset', '#description' => t('Change Logo || Change Favicon Icon || Manage Main Menu || Sliding Search Form'), ]; // Header -> Login Links $form['header']['header_login'] = [ '#type' => 'details', '#title' => t('Header Login Links'), '#group' => 'header_tab', ]; $form['header']['header_login']['header_login_links'] = [ '#type' => 'checkbox', '#title' => t('Show login / logout links in header top region.'), '#default_value' => theme_get_setting('header_login_links'), '#description' => t('Check this option to show login links in header top region.
Guest will get links to login and register while authentic users will get link for my account and logout.'), ]; // Header -> Sticky header. $form['header']['sticky_header'] = [ '#type' => 'details', '#title' => t('Sticky Header'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#group' => 'header_tab', ]; // Header -> Header Presets $form['header']['header_presets'] = [ '#type' => 'details', '#title' => t('Header Presets / Styles'), '#description' => t('coming soon..'), '#group' => 'header_tab', ]; $form['header']['header_presets']['header_style'] = [ '#type' => 'radios', '#title' => t('Select A Style'), '#options' => array( 'header_style_one' => t('Classic'), 'header_style_two' => t('Inverted'), 'header_style_three' => t('Centerted'), 'header_style_four' => t('Spaced'), ), '#disabled' => TRUE, ]; // header -> Header main $form['header']['header_main'] = [ '#type' => 'details', '#title' => t('Header Main'), '#group' => 'header_tab', ]; $form['header']['header_main']['header_main_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default Header Padding'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['header']['header_main']['header_main_default_section']['header_main_default'] = [ '#type' => 'checkbox', '#title' => t('Use theme default header padding'), '#default_value' => theme_get_setting('header_main_default'), '#description' => t('Check this option to use theme default value of header padding. Uncheck this to set custom value below.'), ]; $form['header']['header_main']['header_main_info_section'] = [ '#type' => 'fieldset', '#title' => t('Header Main Region'), '#description' => t('This region contains logo and main menu.'), '#attributes' => array('class' => array('info-fieldset')), ]; $form['header']['header_main']['header_main_section'] = [ '#type' => 'fieldset', '#title' => t('Header Padding'), '#description' => t('

This header region contains logo and main menu.') ]; $form['header']['header_main']['header_main_section']['header_main_padding_top'] = [ '#type' => 'number', '#min' => 0, '#max' => 10, '#step' => 0.1, '#title' => t('Padding Top (rem)'), '#default_value' => theme_get_setting('header_main_padding_top'), '#description' => t("Default padding top is 1rem which is equivalent to 16px.



"), ]; $form['header']['header_main']['header_main_section']['header_main_padding_bottom'] = [ '#type' => 'number', '#min' => 0, '#max' => 10, '#step' => 0.1, '#title' => t('Padding Bottom (rem)'), '#default_value' => theme_get_setting('header_main_padding_bottom'), '#description' => t("Default padding bottom is 1rem which is equivalent to 16px."), ]; // header-> page header $form['header']['header_page'] = [ '#type' => 'details', '#title' => t('Page Header'), '#group' => 'header_tab', ]; $form['header']['header_page']['header_page_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default Settings'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['header']['header_page']['header_page_default_section']['header_page_default'] = [ '#type' => 'checkbox', '#title' => t('Use theme default page header settings'), '#default_value' => theme_get_setting('header_page_default'), '#description' => t('Check this option to use theme default value of sidebar width. Uncheck this to set custom value below.'), ]; $form['header']['header_page']['header_page_info_section'] = [ '#type' => 'fieldset', '#title' => t('Page Header Region'), '#description' => t('This region contains page tile and breadcrumb navigation.'), '#attributes' => array('class' => array('info-fieldset')), ]; $form['header']['header_page']['header_page_section'] = [ '#type' => 'fieldset', '#title' => t('Page Header Padding'), ]; $form['header']['header_page']['header_page_section']['header_page_padding_top'] = [ '#type' => 'number', '#min' => 0.1, '#max' => 10, '#step' => 0.1, '#title' => t('Padding Top (rem)'), '#default_value' => theme_get_setting('header_page_padding_top'), '#description' => t("Default padding top is 5rem


"), ]; $form['header']['header_page']['header_page_section']['header_page_padding_bottom'] = [ '#type' => 'number', '#min' => 0.1, '#max' => 10, '#step' => 0.1, '#title' => t('Padding Bottom (rem)'), '#default_value' => theme_get_setting('header_page_padding_bottom'), '#description' => t("Default padding bottom is 5rem."), ]; $form['header']['header_page']['header_page_position_section'] = [ '#type' => 'fieldset', '#title' => t('Content Position'), '#description' => t('

Position of content in Header Main region.') ]; $form['header']['header_page']['header_page_position_section']['header_page_content_position'] = [ '#type' => 'select', '#options' => array( 'flex-start' => t('Left'), 'flex-end' => t('Right'), 'center' => t('center'), ), '#default_value' => theme_get_setting('header_page_content_position'), '#description' => t("Default position is Center."), ]; /* * Sidebar */ $form['sidebar']['sidebar_tab'] = [ '#type' => 'vertical_tabs', ]; // Sidebar -> Frontpage sidebar $form['sidebar']['front_sidebars'] = [ '#type' => 'details', '#title' => t('Homepage Sidebar'), '#group' => 'sidebar_tab', ]; $form['sidebar']['front_sidebars']['front_sidebar_section'] = [ '#type' => 'fieldset', ]; $form['sidebar']['front_sidebars']['front_sidebar_section']['front_sidebar'] = [ '#type' => 'checkbox', '#title' => t('Show Sidebars On Homepage'), '#default_value' => theme_get_setting('front_sidebar'), '#description' => t('

Check this option to enable left and right sidebar on homepage.



Homepage Content Top and Homepage Content Bottom block regions will always be full width.'), ]; // Sidebar -> sidebar width $form['sidebar']['sidebar_width'] = [ '#type' => 'details', '#title' => t('Sidebar Width'), '#group' => 'sidebar_tab', ]; $form['sidebar']['sidebar_width']['sidebar_width_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default Sidebars Width'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['sidebar']['sidebar_width']['sidebar_width_default_section']['sidebar_width_default'] = [ '#type' => 'checkbox', '#title' => t('Use theme default sidebar width'), '#default_value' => theme_get_setting('sidebar_width_default'), '#description' => t('Check this option to use theme default sidebar width. Uncheck this to set custom width below.'), ]; $form['sidebar']['sidebar_width']['sidebar_width_section'] = [ '#type' => 'fieldset', '#title' => t('Sidebars Width'), ]; $form['sidebar']['sidebar_width']['sidebar_width_section']['sidebar_width_left'] = [ '#type' => 'number', '#title' => t('Left Sidebar Width (in percentage)'), '#default_value' => theme_get_setting('sidebar_width_left'), '#description' => t('Default width of left sidebar is 30%


'), ]; $form['sidebar']['sidebar_width']['sidebar_width_section']['sidebar_width_right'] = [ '#type' => 'number', '#title' => t('Right Sidebar Width (in percentage)'), '#default_value' => theme_get_setting('sidebar_width_right'), '#description' => t('Default width of right sidebar is 30%'), ]; // Sidebar -> Animated Sidebar $form['sidebar']['animated_sidebar'] = [ '#type' => 'details', '#title' => t('Animated Sliding Sidebar'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#group' => 'sidebar_tab', ]; // Sidebar -> Sidebar Block $form['sidebar']['sidebar_block'] = [ '#type' => 'details', '#title' => t('Sidebar Blocks'), '#group' => 'sidebar_tab', ]; $form['sidebar']['sidebar_block']['sidebar_block_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default Sidebars Block Settings'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['sidebar']['sidebar_block']['sidebar_block_default_section']['sidebar_block_default'] = [ '#type' => 'checkbox', '#title' => t('Use theme default sidebar block settings.'), '#default_value' => theme_get_setting('sidebar_block_default'), '#description' => t('Check this option to use theme default value of sidebar block. Uncheck this to set custom value below.'), ]; $form['sidebar']['sidebar_block']['sidebar_block_section'] = [ '#type' => 'fieldset', '#title' => t('Sidebar Block'), ]; $form['sidebar']['sidebar_block']['sidebar_block_section']['sidebar_padding'] = [ '#type' => 'number', '#min' => 0, '#max' => 50, '#step' => 1, '#title' => t('Sidebar Block Padding (px)'), '#default_value' => theme_get_setting('sidebar_padding'), '#description' => t("Default is 20px.


"), ]; $form['sidebar']['sidebar_block']['sidebar_block_section']['sidebar_radius'] = [ '#type' => 'number', '#min' => 0, '#max' => 50, '#step' => 1, '#title' => t('Sidebar Block Border Radius (px)'), '#default_value' => theme_get_setting('sidebar_radius'), '#description' => t("Default is 6px.


"), ]; $form['sidebar']['sidebar_block']['sidebar_block_section']['sidebar_margin'] = [ '#type' => 'number', '#min' => 0, '#max' => 50, '#step' => 1, '#title' => t('Sidebar Block Margin Bottom (rem)'), '#default_value' => theme_get_setting('sidebar_margin'), '#description' => t("Default value is 2rem which is equivalent to 32px.
1rem = 16px"), ]; $form['sidebar']['sidebar_block']['sidebar_title_section'] = [ '#type' => 'fieldset', '#title' => t('Sidebar Block Title'), ]; $form['sidebar']['sidebar_block']['sidebar_title_section']['sidebar_title_font_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 50, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('sidebar_title_font_size'), '#description' => t("Default value is 2.2rem
1rem = 16px


"), ]; $form['sidebar']['sidebar_block']['sidebar_title_section']['sidebar_title_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('sidebar_title_transform'), '#description' => t("Default value is None."), ]; $form['sidebar']['sidebar_block']['sidebar_block_color'] = [ '#type' => 'details', '#title' => t('Sidebar Block Background Color'), '#description' => t('Color option is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#open' => TRUE, ]; /* * Content */ $form['content']['content_tab'] = [ '#type' => 'vertical_tabs', ]; // content -> Shortcodes $form['content']['shortcodes'] = [ '#type' => 'details', '#title' => t('Shortcodes'), '#description' => t('

EduX theme has many custom shortcodes which you can use for creating contents.

Please visit this page for list of all available shortcodes and how to use these shortcodes.


More Shortcodes

Edu-X-Pro has more custom shortcodes like Tab, Accordion, icon box, card, Model etc.'), '#group' => 'content_tab', ]; // content -> RTL $form['content']['content_direction'] = [ '#type' => 'details', '#title' => t('Content Direction - RTL'), '#group' => 'content_tab', ]; $form['content']['content_direction']['rtl'] = [ '#type' => 'checkbox', '#title' => t('Enable RTL (Experimental)'), '#default_value' => theme_get_setting('rtl'), '#description' => t('Currently not available.'), '#disabled' => TRUE, //'#description' => t('rdm theme is Right-to-left (RTL) languages compatible. Check this option to enable RTL. This feature is currently under testing phase. So, this may not work perfectly.'), ]; // Content -> Animated Content. $form['content']['animated_content'] = [ '#type' => 'details', '#title' => t('Animated Page Content'), '#group' => 'content_tab', ]; $form['content']['animated_content']['animated_content_section'] = [ '#type' => 'fieldset', '#title' => t('Animated Page Content - Edu-X-Pro Feature'), '#description' => t('

With animated page content shortcodes, you can create contents with animation effects. These contents will appear with some animation effect when it will come in browser view.

This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.

'), ]; // Content-> Submitted Details $form['content']['submitted_details'] = [ '#type' => 'details', '#title' => t('Submitted Details'), '#group' => 'content_tab', ]; $form['content']['submitted_details']['node_author_pic_section'] = [ '#type' => 'fieldset', '#title' => t('Author Picture'), ]; $form['content']['submitted_details']['node_author_pic_section']['node_author_pic'] = [ '#type' => 'checkbox', '#title' => t('Show Node Author Picture in Submitted Details.'), '#default_value' => theme_get_setting('node_author_pic'), '#description' => t("Check this option to show node author picture in submitted details. Uncheck to hide."), ]; // Show tags in node submitted. $form['content']['submitted_details']['node_tags_section'] = [ '#type' => 'fieldset', '#title' => t('Show Node Tags'), ]; $form['content']['submitted_details']['node_tags_section']['node_tags'] = [ '#type' => 'checkbox', '#title' => t('Show Node Tags in Submitted Details.'), '#default_value' => theme_get_setting('node_tags'), '#description' => t("Check this option to show node tags (if any) in submitted details. Uncheck to hide."), ]; // Node author picture. // Show tags in node submitted. /* * Footer */ $form['footer']['footer_tab'] = [ '#type' => 'vertical_tabs', ]; // Footer -> Footer Presets $form['footer']['footer_presets'] = [ '#type' => 'details', '#title' => t('Footer Presets / Styles'), '#description' => t('coming soon..'), '#group' => 'footer_tab', ]; $form['footer']['footer_presets']['footer_style'] = [ '#type' => 'radios', '#title' => t('Select A Style'), '#options' => array( 'footer_style_one' => t('Classic'), 'footer_style_two' => t('Inverted'), 'footer_style_three' => t('Centerted'), 'footer_style_four' => t('Spaced'), ), '#disabled' => TRUE ]; // Footer -> Copyright. $form['footer']['copyright'] = [ '#type' => 'details', '#title' => t('Copyright Text'), '#group' => 'footer_tab', ]; $form['footer']['copyright']['copyright_text'] = [ '#type' => 'checkbox', '#title' => t('Show website copyright text in footer.'), '#default_value' => theme_get_setting('copyright_text'), '#description' => t("Check this option to show website copyright text in footer. Uncheck to hide.
Read more: Copyright Text in Footer"), ]; // Footer -> Copyright -> custom copyright text $form['footer']['copyright']['copyright_text_custom'] = [ '#type' => 'fieldset', '#title' => t('Custom copyright text'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), ]; /** * Settings under comment tab. */ // Show user picture in comment. $form['comment']['comment_photo'] = [ '#type' => 'fieldset', '#title' => t('Comment User Picture'), ]; $form['comment']['comment_photo']['comment_user_pic'] = [ '#type' => 'checkbox', '#title' => t('Show User Picture in comments'), '#default_value' => theme_get_setting('comment_user_pic'), '#description' => t("Check this option to show user picture in comment. Uncheck to hide."), ]; // Hightlight Node author comment. $form['comment']['comment_author'] = [ '#type' => 'fieldset', '#title' => t('Author Comment'), ]; $form['comment']['comment_author']['highlight_author_comment'] = [ '#type' => 'checkbox', '#title' => t('Highlight Author Comments'), '#default_value' => theme_get_setting('highlight_author_comment'), '#description' => t("Check this option to highlight node author comments."), ]; $form['comment']['comment_author']['highlight_author_color'] = [ '#type' => 'details', '#title' => t('Highlight Color'), '#description' => t('Color option is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#open' => TRUE, ]; /* * Typography */ $form['typography']['typography_tab'] = [ '#type' => 'vertical_tabs', ]; // Typography -> Body $form['typography']['body'] = [ '#type' => 'details', '#title' => t('Body'), '#group' => 'typography_tab', ]; $form['typography']['body']['body_font_size_section'] = [ '#type' => 'details', '#title' => t('Font Size'), '#open' => TRUE, '#description' => t("Value is in rem unit. 1 rem = 16px"), ]; $form['typography']['body']['body_font_size_section']['body_font_size'] = [ '#type' => 'number', '#min' => 0.5, '#max' => 3, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('body_font_size'), '#description' => t("Default size is 1rem which is equivalent to 16px."), ]; $form['typography']['body']['body_line_height_section'] = [ '#type' => 'details', '#title' => t('Line Height'), '#open' => TRUE, ]; $form['typography']['body']['body_line_height_section']['body_line_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#default_value' => theme_get_setting('body_line_height'), '#description' => t("Default value is 1.7"), ]; // Typography -> Paragraph $form['typography']['paragraph'] = [ '#type' => 'details', '#title' => t('Paragraph'), '#group' => 'typography_tab', ]; $form['typography']['paragraph']['paragraph_section'] = [ '#type' => 'details', '#title' => t('Paragraph Margin Bottom'), '#open' => TRUE, '#description' => t("Value is in rem unit. 1 rem = 16px"), ]; $form['typography']['paragraph']['paragraph_section']['paragraph_bottom'] = [ '#type' => 'number', '#min' => 0, '#max' => 3, '#step' => 0.1, '#default_value' => theme_get_setting('paragraph_bottom'), '#description' => t("Default size is 1.2rem."), ]; // Typography -> Headings $form['typography']['headings'] = [ '#type' => 'details', '#title' => t('Headings'), '#group' => 'typography_tab', ]; $form['typography']['headings']['headings_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default Heading Values'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['typography']['headings']['headings_default_section']['headings_default'] = [ '#type' => 'checkbox', '#title' => t('Use theme default heading values.'), '#default_value' => theme_get_setting('headings_default'), '#description' => t('Check this option to use theme default value for headings. Uncheck this to set custom value below.'), ]; $form['typography']['headings']['headings_section_info'] = [ '#type' => 'fieldset', '#title' => t('Please Note'), '#description' => t('

Below settings for heading will only apply to large screens (laptop and desktop).

If you want to modify headings for small devices (mobile and tablet), please use Custom Styling section.

'), '#attributes' => array('class' => array('info-fieldset')), ]; $form['typography']['headings']['h1'] = [ '#type' => 'details', '#title' => t('Heading 1 (H1)'), ]; $form['typography']['headings']['h1']['h1_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('h1_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 2.2rem.


"), ]; $form['typography']['headings']['h1']['h1_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('h1_weight'), '#description' => t("Default value is 700.


"), ]; $form['typography']['headings']['h1']['h1_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('h1_transform'), '#description' => t("Default value is None.


"), ]; $form['typography']['headings']['h1']['h1_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('h1_height'), '#description' => t("Default size is 1.7"), ]; $form['typography']['headings']['h2'] = [ '#type' => 'details', '#title' => t('Heading 2 (H2)'), ]; $form['typography']['headings']['h2']['h2_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('h2_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 1.9rem.


"), ]; $form['typography']['headings']['h2']['h2_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('h2_weight'), '#description' => t("Default value is 700.


"), ]; $form['typography']['headings']['h2']['h2_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('h2_transform'), '#description' => t("Default value is None.


"), ]; $form['typography']['headings']['h2']['h2_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('h2_height'), '#description' => t("Default size is 1.7"), ]; $form['typography']['headings']['h3'] = [ '#type' => 'details', '#title' => t('Heading 3 (H3)'), ]; $form['typography']['headings']['h3']['h3_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('h3_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 1.6rem.


"), ]; $form['typography']['headings']['h3']['h3_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('h3_weight'), '#description' => t("Default value is 700.


"), ]; $form['typography']['headings']['h3']['h3_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('h3_transform'), '#description' => t("Default value is None.


"), ]; $form['typography']['headings']['h3']['h3_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('h3_height'), '#description' => t("Default size is 1.7"), ]; $form['typography']['headings']['h4'] = [ '#type' => 'details', '#title' => t('Heading 4 (H4)'), ]; $form['typography']['headings']['h4']['h4_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('h4_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 1.3rem.


"), ]; $form['typography']['headings']['h4']['h4_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('h4_weight'), '#description' => t("Default value is 700.


"), ]; $form['typography']['headings']['h4']['h4_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('h4_transform'), '#description' => t("Default value is None.


"), ]; $form['typography']['headings']['h4']['h4_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('h4_height'), '#description' => t("Default size is 1.7"), ]; $form['typography']['headings']['h5'] = [ '#type' => 'details', '#title' => t('Heading 5 (H5)'), ]; $form['typography']['headings']['h5']['h5_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('h5_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 1.1rem.


"), ]; $form['typography']['headings']['h5']['h5_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('h5_weight'), '#description' => t("Default value is 700.


"), ]; $form['typography']['headings']['h5']['h5_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('h5_transform'), '#description' => t("Default value is None.


"), ]; $form['typography']['headings']['h5']['h5_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('h5_height'), '#description' => t("Default size is 1.7"), ]; $form['typography']['headings']['h6'] = [ '#type' => 'details', '#title' => t('Heading 6 (H6)'), ]; $form['typography']['headings']['h6']['h6_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('h6_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 1.1rem.


"), ]; $form['typography']['headings']['h6']['h6_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('h6_weight'), '#description' => t("Default value is 700.


"), ]; $form['typography']['headings']['h6']['h6_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('h6_transform'), '#description' => t("Default value is None.


"), ]; $form['typography']['headings']['h6']['h6_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('h6_height'), '#description' => t("Default size is 1.7"), ]; /* * Elements */ $form['elements']['elements_tab'] = [ '#type' => 'vertical_tabs', ]; // Elements -> Logo $form['elements']['logo'] = [ '#type' => 'details', '#title' => t('Logo'), '#group' => 'elements_tab', ]; $form['elements']['logo']['logo_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['elements']['logo']['logo_default_section']['logo_default'] = [ '#type' => 'checkbox', '#title' => t('Use Default Logo Settings'), '#default_value' => theme_get_setting('logo_default'), '#description' => t('Check this option to use default values for sitename and site slogan. Uncheck this to set custom values below.'), ]; $form['elements']['logo']['site_name'] = [ '#type' => 'details', '#title' => t('Site Name'), '#open' => TRUE, ]; $form['elements']['logo']['site_name']['site_name_size'] = [ '#type' => 'number', '#min' => 0.5, '#max' => 3, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('site_name_size'), '#description' => t("Default value is 1rem.
1 rem = 16px



"), ]; $form['elements']['logo']['site_name']['site_name_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('site_name_weight'), '#description' => t("Default value is 700.


"), ]; $form['elements']['logo']['site_name']['site_name_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('site_name_transform'), '#description' => t("Default value is None.


"), ]; $form['elements']['logo']['site_name']['site_name_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('site_name_height'), '#description' => t("Default size is 1.1"), ]; $form['elements']['logo']['slogan'] = [ '#type' => 'details', '#title' => t('Slogan'), '#open' => TRUE, ]; $form['elements']['logo']['slogan']['slogan_size'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('slogan_size'), '#description' => t("Value is in rem unit. 1 rem = 16px
Default size is 1rem.


"), ]; $form['elements']['logo']['slogan']['slogan_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('slogan_transform'), '#description' => t("Default value is None.


"), ]; $form['elements']['logo']['slogan']['slogan_height'] = [ '#type' => 'number', '#min' => 1, '#max' => 3, '#step' => 0.1, '#title' => t('Line Height'), '#default_value' => theme_get_setting('slogan_height'), '#description' => t("Default size is 1.7"), ]; $form['elements']['logo']['slogan']['slogan_style'] = [ '#type' => 'select', '#title' => t('Style'), '#options' => array( 'normal' => t('Normal'), 'italic' => t('Italic'), ), '#default_value' => theme_get_setting('slogan_style'), '#description' => t("Default value is Normal."), ]; // Elements -> Main menu $form['elements']['main_menu'] = [ '#type' => 'details', '#title' => t('Main Menu'), '#group' => 'elements_tab', ]; $form['elements']['main_menu']['main_menu_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['elements']['main_menu']['main_menu_default_section']['main_menu_default'] = [ '#type' => 'checkbox', '#title' => t('Use Default Main Menu Settings'), '#default_value' => theme_get_setting('main_menu_default'), '#description' => t('Check this option to use default main menu settings. Uncheck this to set custom values below.'), ]; $form['elements']['main_menu']['main_menu_top'] = [ '#type' => 'details', '#title' => t('Main Menu'), '#open' => TRUE, ]; $form['elements']['main_menu']['main_menu_top']['main_menu_top_size'] = [ '#type' => 'number', '#min' => 0.5, '#max' => 3, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('main_menu_top_size'), '#description' => t("Default value is 1rem.
1 rem = 16px


"), ]; $form['elements']['main_menu']['main_menu_top']['main_menu_top_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('main_menu_top_weight'), '#description' => t("Default value is 700.


"), ]; $form['elements']['main_menu']['main_menu_top']['main_menu_top_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('main_menu_top_transform'), '#description' => t("Default value is None."), ]; $form['elements']['main_menu']['main_menu_sub'] = [ '#type' => 'details', '#title' => t('Main Menu: Dropdowns'), '#open' => TRUE, ]; $form['elements']['main_menu']['main_menu_sub']['main_menu_sub_size'] = [ '#type' => 'number', '#min' => 0.5, '#max' => 3, '#step' => 0.1, '#title' => t('Font Size (rem)'), '#default_value' => theme_get_setting('main_menu_sub_size'), '#description' => t("Default value is 1rem.
1 rem = 16px


"), ]; $form['elements']['main_menu']['main_menu_sub']['main_menu_sub_weight'] = [ '#type' => 'select', '#title' => t('Font Weight'), '#options' => array( '400' => t('400'), '700' => t('700'), ), '#default_value' => theme_get_setting('main_menu_sub_weight'), '#description' => t("Default value is 700.


"), ]; $form['elements']['main_menu']['main_menu_sub']['main_menu_sub_transform'] = [ '#type' => 'select', '#title' => t('Transform'), '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('main_menu_sub_transform'), '#description' => t("Default value is None."), ]; $form['elements']['main_menu']['main_menu_color'] = [ '#type' => 'details', '#title' => t('Main Menu Color'), '#description' => t('Color option is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#open' => TRUE, ]; // Elements -> Page Title $form['elements']['page_title'] = [ '#type' => 'details', '#title' => t('Page Title'), '#group' => 'elements_tab', ]; $form['elements']['page_title']['page_title_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['elements']['page_title']['page_title_default_section']['page_title_default'] = [ '#type' => 'checkbox', '#title' => t('Use Default Page Title Settings'), '#default_value' => theme_get_setting('page_title_default'), '#description' => t('Check this option to use default values for page title. Uncheck this to set custom values below.'), ]; $form['elements']['page_title']['page_title_size_section'] = [ '#type' => 'details', '#title' => t('Font Size (rem)'), '#open' => TRUE, '#description' => t("Value is in rem unit. 1 rem = 16px"), ]; $form['elements']['page_title']['page_title_size_section']['page_title_size_desktop'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Desktop and Laptop (rem)'), '#default_value' => theme_get_setting('page_title_size_desktop'), '#description' => t("Default value is 2.6rem.


"), ]; $form['elements']['page_title']['page_title_size_section']['page_title_size_mobile'] = [ '#type' => 'number', '#min' => 1, '#max' => 5, '#step' => 0.1, '#title' => t('Mobile and Tablet (rem)'), '#default_value' => theme_get_setting('page_title_size_mobile'), '#description' => t("Default value is 2.2rem."), ]; $form['elements']['page_title']['page_title_transform_section'] = [ '#type' => 'details', '#title' => t('Text Transform'), '#open' => TRUE, ]; $form['elements']['page_title']['page_title_transform_section']['page_title_transform'] = [ '#type' => 'select', '#options' => array( 'none' => t('None'), 'capitalize' => t('Capitalize'), 'uppercase' => t('Uppercase'), 'lowercase' => t('Lowercase'), ), '#default_value' => theme_get_setting('page_title_transform'), '#description' => t("Default value is None."), ]; // Elements -> Breadcrumb. $form['elements']['breadcrumb'] = [ '#type' => 'details', '#title' => t('Breadcrumb'), '#group' => 'elements_tab', ]; $form['elements']['breadcrumb']['breadcrumb_icon'] = [ '#type' => 'details', '#title' => t('Breadcrumb Separator Icon'), '#open' => TRUE, ]; $form['elements']['breadcrumb']['breadcrumb_icon']['breadcrumb_icon_style'] = [ '#type' => 'radios', '#title' => t('Select Breadcrumb Separator Icon

'), '#options' => array( '❯' => t('

'), '⟶' => t('

'), '›' => t('

'), '➝' => t('

'), '/' => t('/

'), '/' => t('\

'), ), '#default_value' => theme_get_setting('breadcrumb_icon_style'), ]; // Elements -> Button $form['elements']['button'] = [ '#type' => 'details', '#title' => t('Button'), '#group' => 'elements_tab', ]; $form['elements']['button']['button_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['elements']['button']['button_default_section']['button_default'] = [ '#type' => 'checkbox', '#title' => t('Use Default Main Menu Settings'), '#default_value' => theme_get_setting('button_default'), '#description' => t('Check this option to use default main menu settings. Uncheck this to set custom values below.'), ]; $form['elements']['button']['button_section'] = [ '#type' => 'details', '#title' => t('Button Padding'), '#open' => TRUE, ]; $form['elements']['button']['button_section']['button_padding'] = [ '#type' => 'textfield', '#title' => t('Top Right Bottom Left'), '#default_value' => theme_get_setting('button_padding'), '#description' => t("Padding of button. Example: 5px 10px 5px 10px
Default value is: 8px 10px 8px 10px


"), ]; $form['elements']['button']['button_section']['button_radius'] = [ '#type' => 'number', '#min' => 0, '#step' => 1, '#title' => t('Border Radius (px)'), '#default_value' => theme_get_setting('button_radius'), '#description' => t("Border radius of buttons. Default value is 8px."), ]; /* * Components */ $form['components']['components_tab'] = [ '#type' => 'vertical_tabs', ]; // Components -> Google Fonts. $form['components']['fonts'] = [ '#type' => 'details', '#title' => t('Fonts'), '#group' => 'components_tab', ]; $form['components']['fonts']['fonts_section'] = [ '#type' => 'fieldset', ]; $form['components']['fonts']['fonts_section']['font_src'] = [ '#type' => 'select', '#title' => t('Select Google Fonts Location'), '#options' => array( 'local' => t('Local Self Hosted'), 'googlecdn' => t('Google CDN Server') ), '#default_value' => theme_get_setting('font_src'), '#description' => t('EduX theme uses following Google fonts: Noto Sans.
You can serve these fonts locally or from Google server.'), ]; // Components -> Social $form['components']['social'] = [ '#type' => 'details', '#title' => t('Social'), '#group' => 'components_tab', ]; $form['components']['social']['all_icons'] = [ '#type' => 'fieldset', '#title' => t('Show Social Icons'), ]; $form['components']['social']['all_icons']['all_icons_show'] = [ '#type' => 'checkbox', '#title' => t('Show social icons in footer'), '#default_value' => theme_get_setting('all_icons_show'), '#description' => t("Check this option to show social icons in footer. Uncheck to hide."), ]; $form['components']['social']['social_profile'] = [ '#type' => 'fieldset', '#title' => t('Social Profile'), ]; // Facebook. $form['components']['social']['social_profile']['facebook'] = [ '#type' => 'details', '#title' => t("Facebook"), ]; $form['components']['social']['social_profile']['facebook']['facebook_url'] = [ '#type' => 'textfield', '#title' => t('Facebook Url'), '#description' => t("Enter yours facebook profile or page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('facebook_url'), ]; // Twitter. $form['components']['social']['social_profile']['twitter'] = [ '#type' => 'details', '#title' => t("Twitter"), ]; $form['components']['social']['social_profile']['twitter']['twitter_url'] = [ '#type' => 'textfield', '#title' => t('Twitter Url'), '#description' => t("Enter yours twitter page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('twitter_url'), ]; // Instagram. $form['components']['social']['social_profile']['instagram'] = [ '#type' => 'details', '#title' => t("Instagram"), ]; $form['components']['social']['social_profile']['instagram']['instagram_url'] = [ '#type' => 'textfield', '#title' => t('Instagram Url'), '#description' => t("Enter yours instagram page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('instagram_url'), ]; // Linkedin. $form['components']['social']['social_profile']['linkedin'] = [ '#type' => 'details', '#title' => t("Linkedin"), ]; $form['components']['social']['social_profile']['linkedin']['linkedin_url'] = [ '#type' => 'textfield', '#title' => t('Linkedin Url'), '#description' => t("Enter yours linkedin page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('linkedin_url'), ]; // YouTube. $form['components']['social']['social_profile']['youtube'] = [ '#type' => 'details', '#title' => t("YouTube"), ]; $form['components']['social']['social_profile']['youtube']['youtube_url'] = [ '#type' => 'textfield', '#title' => t('YouTube Url'), '#description' => t("Enter yours youtube.com page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('youtube_url'), ]; // YouTube. $form['components']['social']['social_profile']['vimeo'] = [ '#type' => 'details', '#title' => t("vimeo"), ]; $form['components']['social']['social_profile']['vimeo']['vimeo_url'] = [ '#type' => 'textfield', '#title' => t('vimeo Url'), '#description' => t("Enter yours vimeo.com page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('vimeo_url'), ]; // telegram. $form['components']['social']['social_profile']['telegram'] = [ '#type' => 'details', '#title' => t("Telegram"), ]; $form['components']['social']['social_profile']['telegram']['telegram_url'] = [ '#type' => 'textfield', '#title' => t('Telegram Url'), '#description' => t("Enter yours Telegram profile or page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('telegram_url'), ]; // WhatsApp. $form['components']['social']['social_profile']['whatsapp'] = [ '#type' => 'details', '#title' => t("WhatsApp"), ]; $form['components']['social']['social_profile']['whatsapp']['whatsapp_url'] = [ '#type' => 'textfield', '#title' => t('WhatsApp Url'), '#description' => t("Enter yours whatsapp message url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('whatsapp_url'), ]; // Github. $form['components']['social']['social_profile']['github'] = [ '#type' => 'details', '#title' => t("GitHub"), ]; $form['components']['social']['social_profile']['github']['github_url'] = [ '#type' => 'textfield', '#title' => t('GitHub Url'), '#description' => t("Enter yours github page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('github_url'), ]; // Social -> vk.com url. $form['components']['social']['social_profile']['vk'] = [ '#type' => 'details', '#title' => t("vk.com"), ]; $form['components']['social']['social_profile']['vk']['vk_url'] = [ '#type' => 'textfield', '#title' => t('vk.com'), '#description' => t("Enter yours vk.com page url. Leave the url field blank to hide this icon."), '#default_value' => theme_get_setting('vk_url'), ]; $form['components']['social']['node_share'] = [ '#type' => 'details', '#title' => t('Share Page'), '#description' => t('

Share Page On Social networking websites

This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.

'), '#group' => 'components_tab', ]; // Components -> Font icons $form['components']['font_icons'] = [ '#type' => 'details', '#title' => t('Font Icons'), '#group' => 'components_tab', ]; $form['components']['font_icons']['fontawesome4'] = [ '#type' => 'fieldset', '#title' => t('FontAwesome 4'), ]; $form['components']['font_icons']['fontawesome4']['fontawesome_four'] = [ '#type' => 'checkbox', '#title' => t('Enable FontAwesome 4 Font Icons'), '#default_value' => theme_get_setting('fontawesome_four'), '#description' => t('Check this option to enable fontawesome version 4 font icons.'), ]; $form['components']['font_icons']['fontawesome5'] = [ '#type' => 'fieldset', '#title' => t('FontAwesome 5'), ]; $form['components']['font_icons']['fontawesome5']['fontawesome_five'] = [ '#type' => 'checkbox', '#title' => t('Enable FontAwesome 5 Font Icons'), '#default_value' => theme_get_setting('fontawesome_five'), '#description' => t('Check this option to enable fontawesome version 5 font icons.'), ]; $form['components']['font_icons']['materialicons'] = [ '#type' => 'fieldset', '#title' => t('Google Material Font Icons'), '#description' => t('This feature is available in the premium version of this theme. Purchase Edu-X-Pro for $29 only.'), ]; // Components -> Page loader. $form['components']['preloader'] = [ '#type' => 'details', '#title' => t('Pre Page Loader'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#group' => 'components_tab', ]; // Components -> Cookie message. $form['components']['cookie'] = [ '#type' => 'details', '#title' => t('Cookie Consent message'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#group' => 'components_tab', ]; $form['components']['cookie']['cookie_message'] = [ '#type' => 'fieldset', '#title' => t('Show Cookie Consent Message'), '#description' => t('Make your website EU Cookie Law Compliant. According to EU cookies law, websites need to get consent from visitors to store or retrieve cookies.'), ]; // Components -> Scroll to top. $form['components']['scrolltotop'] = [ '#type' => 'details', '#title' => t('Scroll To Top'), '#group' => 'components_tab', ]; $form['components']['scrolltotop']['scrolltotop_enable'] = [ '#type' => 'fieldset', '#title' => t('Enable Scroll To Top'), ]; $form['components']['scrolltotop']['scrolltotop_enable']['scrolltotop_on'] = [ '#type' => 'checkbox', '#title' => t('Enable scroll to top feature.'), '#default_value' => theme_get_setting('scrolltotop_on'), '#description' => t("Check this option to enable scroll to top feature. Uncheck to disable this fearure and hide scroll to top icon."), ]; $form['components']['scrolltotop']['scrolltotop_default_section'] = [ '#type' => 'fieldset', '#title' => t('Use Default Settings'), '#attributes' => array('class' => array('set-default-fieldset')), ]; $form['components']['scrolltotop']['scrolltotop_default_section']['scrolltotop_default'] = [ '#type' => 'checkbox', '#title' => t('Use theme default settings of Scroll To Top.'), '#default_value' => theme_get_setting('scrolltotop_default'), '#description' => t('Check this option to use theme default settings of scroll to top. Uncheck this to set custom value below.'), ]; $form['components']['scrolltotop']['scrolltotop_icon'] = [ '#type' => 'details', '#title' => t('Scroll To Top Icon'), '#open' => TRUE, ]; $form['components']['scrolltotop']['scrolltotop_icon']['scrolltotop_icon_style'] = [ '#type' => 'radios', '#title' => t('

Select Arrow Icon

'), '#options' => array( '🡡' => t('🡡

'), '⇡' => t('

'), '⮝' => t('

'), '🠑' => t('🠑

'), '▲' => t('

'), ), '#default_value' => theme_get_setting('scrolltotop_icon_style'), ]; $form['components']['scrolltotop']['scrolltotop_shape_section'] = [ '#type' => 'details', '#title' => t('Icon Shape'), '#open' => TRUE, ]; $form['components']['scrolltotop']['scrolltotop_shape_section']['scrolltotop_icon_size'] = [ '#type' => 'number', '#title' => t('Icon Size (px)'), '#default_value' => theme_get_setting('scrolltotop_icon_size'), '#description' => t('Default value is 20px.


'), ]; $form['components']['scrolltotop']['scrolltotop_shape_section']['scrolltotop_icon_radius'] = [ '#type' => 'textfield', '#title' => t('Background Border Radius'), '#default_value' => theme_get_setting('scrolltotop_icon_radius'), '#description' => t('Default value is 50%.
You can use px (example 10px) or percentage (example 50%) unit.


'), ]; $form['components']['scrolltotop']['scrolltotop_position_section'] = [ '#type' => 'details', '#title' => t('Icon Position'), '#open' => TRUE, ]; $form['components']['scrolltotop']['scrolltotop_position_section']['scrolltotop_position'] = [ '#type' => 'radios', '#title' => t('Left or Right Position'), '#options' => array( 'left' => t('LEFT'), 'right' => t('RIGHT'), ), '#default_value' => theme_get_setting('scrolltotop_position'), '#description' => t('Default value is Right.


'), ]; $form['components']['scrolltotop']['scrolltotop_position_section']['scrolltotop_bottom'] = [ '#type' => 'number', '#min' => 0, '#step' => 1, '#title' => t('Bottom Position (px)'), '#default_value' => theme_get_setting('scrolltotop_bottom'), '#description' => t('Default value is 10px'), ]; /** * Color Options */ $form['color']['theme_color'] = [ '#type' => 'details', '#title' => t('Theme Color'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#open' => TRUE, ]; /** * Insert Codes */ $form['insert_codes']['insert_codes_tab'] = [ '#type' => 'vertical_tabs', ]; // Insert Codes -> Head $form['insert_codes']['head'] = [ '#type' => 'details', '#title' => t('Head'), '#description' => t('

Insert Codes Before </HEAD>


This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), '#group' => 'insert_codes_tab', ]; // Insert Codes -> Body $form['insert_codes']['body'] = [ '#type' => 'details', '#title' => t('Body'), '#group' => 'insert_codes_tab', ]; // Insert Codes -> CSS $form['insert_codes']['css'] = [ '#type' => 'details', '#title' => t('CSS Codes'), '#group' => 'insert_codes_tab', ]; // Insert Codes -> Body -> Body start codes $form['insert_codes']['body']['insert_body_start_section'] = [ '#type' => 'fieldset', '#title' => t('Insert code after <BODY> tag'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), ]; // Insert Codes -> Body -> Body end codes $form['insert_codes']['body']['insert_body_end_section'] = [ '#type' => 'fieldset', '#title' => t('Insert code before </BODY> tag'), '#description' => t('This feature is available in the premium version of this theme. Buy Edu-X-Pro for $29 only.'), ]; // Insert Codes -> css $form['insert_codes']['css']['css_section'] = [ '#type' => 'fieldset', '#title' => t('Custom Styling'), ]; $form['insert_codes']['css']['css_section']['styling'] = [ '#type' => 'checkbox', '#title' => t('Enable Additional CSS'), '#default_value' => theme_get_setting('styling'), '#description' => t("Check this option to enable custom styling. Uncheck to disable this feature.
Please refer to this tutorial page. How To Use Custom Styling"), ]; $form['insert_codes']['css']['css_section']['styling_code'] = [ '#type' => 'textarea', '#rows' => 20, '#title' => t('Custom CSS Codes'), '#default_value' => theme_get_setting('styling_code'), '#description' => t('Please enter your custom css codes in this text box. You can use it to customize the appearance of your site.
Please refer to this tutorial for detail: Custom CSS'), ]; // Settings under support tab. $form['support']['info'] = [ '#type' => 'fieldset', '#title' => t('Documentation'), '#description' => t('

Edu-X Documentation

Please check our documentation for detailed information on how to use Edu-X theme.
Edu X Documentation.

The-X Documentation

Edu-X theme uses The-X theme as the base theme. So, many things are covered in The X Documentation.


Create Issue

If you need support that is beyond our theme documentation, please Create an issue at project page.


Contact Us

If you need some specific customizations in this theme or need custom Drupal theme development, please contact us
Drupar.com/contact

'), ]; // Settings under upgrade tab. $form['upgrade']['info'] = [ '#type' => 'fieldset', '#title' => t('

rdmPro Demo | Purchase rdmPro for $29 only

'), '#description' => t("$rdmpro"), ]; // End form. }