| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/business/sites/all/themes/creative/ |
Upload File : |
<?php
/**
* Implements hook_form_FORM_ID_alter().
*
* @param $form
* The form.
* @param $form_state
* The form state.
*/
function creative_form_system_theme_settings_alter(&$form, &$form_state) {
$form['creative_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Creative Theme Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['creative_settings']['breadcrumbs'] = array(
'#type' => 'checkbox',
'#title' => t('Show breadcrumbs in a page'),
'#default_value' => theme_get_setting('breadcrumbs','creative'),
'#description' => t("Check this option to show breadcrumbs in page. Uncheck to hide."),
);
$form['creative_settings']['slideshow'] = array(
'#type' => 'fieldset',
'#title' => t('Front Page Slideshow'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['creative_settings']['slideshow']['slideshow_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show slideshow'),
'#default_value' => theme_get_setting('slideshow_display','creative'),
'#description' => t("Check this option to show Slideshow in front page. Uncheck to hide."),
);
$form['creative_settings']['slideshow']['slide'] = array(
'#markup' => t('You can change the description and URL of each slide in the following Slide Setting fieldsets.'),
);
$form['creative_settings']['slideshow']['slide1'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 1'),
);
$form['creative_settings']['slideshow']['slide1']['slide1_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide1_desc','creative'),
);
$form['creative_settings']['slideshow']['slide2'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 2'),
);
$form['creative_settings']['slideshow']['slide2']['slide2_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide2_desc','creative'),
);
$form['creative_settings']['slideshow']['slide3'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 3'),
);
$form['creative_settings']['slideshow']['slide3']['slide3_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide3_desc','creative'),
);
$form['creative_settings']['slideshow']['slideimage'] = array(
'#markup' => t('To change the Slide Images, Replace the slide-image-1.jpg, slide-image-2.jpg and slide-image-3.jpg in the images folder of the theme folder.'),
);
$form['creative_settings']['socialicon'] = array(
'#type' => 'fieldset',
'#title' => t('Social Icon'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['creative_settings']['socialicon']['socialicon_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show Social Icon'),
'#default_value' => theme_get_setting('socialicon_display','creative'),
'#description' => t("Check this option to show Social Icon. Uncheck to hide."),
);
$form['creative_settings']['socialicon']['twitter_url'] = array(
'#type' => 'textfield',
'#title' => t('Twitter Profile URL'),
'#default_value' => theme_get_setting('twitter_url', 'creative'),
'#description' => t("Enter your Twitter Profile URL. Leave blank to hide."),
);
$form['creative_settings']['socialicon']['facebook_url'] = array(
'#type' => 'textfield',
'#title' => t('Facebook Profile URL'),
'#default_value' => theme_get_setting('facebook_url', 'creative'),
'#description' => t("Enter your Facebook Profile URL. Leave blank to hide."),
);
$form['creative_settings']['socialicon']['google_plus_url'] = array(
'#type' => 'textfield',
'#title' => t('Google Plus Address'),
'#default_value' => theme_get_setting('google_plus_url', 'creative'),
'#description' => t("Enter your Google Plus URL. Leave blank to hide."),
);
$form['creative_settings']['socialicon']['pinterest_url'] = array(
'#type' => 'textfield',
'#title' => t('Pinterest Address'),
'#default_value' => theme_get_setting('pinterest_url', 'creative'),
'#description' => t("Enter your Pinterest URL. Leave blank to hide."),
);
}