Revision 423f5e58
Added by Andreas Kohlbecker almost 7 years ago
modules/cdm_dataportal/settings.php | ||
---|---|---|
1873 | 1873 |
'#title' => t('Taxon tabs'), |
1874 | 1874 |
'#collapsible' => TRUE, |
1875 | 1875 |
'#collapsed' => TRUE, |
1876 |
'#description' => t('If tabbed taxon page is enabled the taxon profile will |
|
1877 |
be splitted in four diferent tabs; General, Synonymy, Images and |
|
1878 |
Specimens. If the taxon has no information for any of the tabs/sections |
|
1879 |
such tab will be not displayed.'), |
|
1876 |
'#description' => 'A taxon page consists of various sections, that is content blocks, each displaying a different kind of information.' |
|
1880 | 1877 |
); |
1881 | 1878 |
|
1882 | 1879 |
$form['taxon_tabs']['cdm_dataportal_taxonpage_tabs'] = array( |
1883 | 1880 |
'#type' => 'checkbox', |
1884 | 1881 |
'#title' => t('Tabbed taxon page'), |
1885 | 1882 |
'#default_value' => variable_get('cdm_dataportal_taxonpage_tabs', 1), |
1886 |
'#description' => t('If selected split the taxon page into individual |
|
1887 |
tabs for description, images, synonymy and specimens. If not the taxon |
|
1888 |
data is rendered as a long single page without tabs.'), |
|
1883 |
'#description' => t('If enabled the sections of a taxon page will be displayed as individual tabs'), |
|
1889 | 1884 |
); |
1890 | 1885 |
|
1891 | 1886 |
$form['taxon_tabs'][CDM_SYNONYMY_AS_TAB] = array( |
... | ... | |
1898 | 1893 |
|
1899 | 1894 |
$form['taxon_tabs']['cdm_taxonpage_tabs_visibility'] = array( |
1900 | 1895 |
'#type' => 'checkboxes', |
1901 |
'#title' => t('Tabs visibility options') . ':',
|
|
1896 |
'#title' => t('Section/Tab visibility') . ':',
|
|
1902 | 1897 |
'#default_value' => variable_get('cdm_taxonpage_tabs_visibility', get_taxon_options_list()), |
1903 |
'#options' => get_taxon_options_list(), |
|
1904 |
'#description' => t('Enable or disable Tabs in the Tabbed page display'), |
|
1898 |
'#options' => get_taxon_options_list() |
|
1905 | 1899 |
); |
1906 | 1900 |
|
1907 | 1901 |
// WEIGHT |
1908 | 1902 |
$taxon_tabs_weights = get_array_variable_merged(CDM_TAXONPAGE_TAB_WEIGHT, CDM_TAXONPAGE_TAB_WEIGHT_DEFAULT); |
1909 | 1903 |
$form['taxon_tabs'][CDM_TAXONPAGE_TAB_WEIGHT] = array( |
1910 |
'#title' => 'Tabs order',
|
|
1904 |
'#title' => 'Section/Tab order',
|
|
1911 | 1905 |
'#type' => 'fieldset', |
1912 | 1906 |
'#collapsible' => false, |
1913 | 1907 |
'#tree' => true, |
1914 |
'#description' => 'The weight value defines the order of the tabs or of the respective content block on the |
|
1915 |
taxon page when it is the tabless mode.' |
|
1908 |
'#description' => 'The weight value defines the order of the section/tab.' |
|
1916 | 1909 |
); |
1917 | 1910 |
// Weights range from -delta to +delta, so delta should be at least half |
1918 | 1911 |
// of the amount of tabs present. |
... | ... | |
1929 | 1922 |
|
1930 | 1923 |
$taxon_tabs_labels = get_array_variable_merged(CDM_TAXONPAGE_TAB_LABELS, CDM_TAXONPAGE_TAB_LABELS_DEFAULT); |
1931 | 1924 |
$form['taxon_tabs'][CDM_TAXONPAGE_TAB_LABELS] = array( |
1932 |
'#title' => 'Tab label override', |
|
1925 |
'#title' => 'Section/Tab label override',
|
|
1933 | 1926 |
'#type' => 'fieldset', |
1934 | 1927 |
'#collapsible' => false, |
1935 | 1928 |
'#tree' => true, |
1936 |
'#description' => 'Setting a label for a tab will override the default label. |
|
1929 |
'#description' => 'Setting a label for a section/tab will override the default label.
|
|
1937 | 1930 |
Please enter the label text in the default language of the portal.' |
1938 | 1931 |
); |
1939 | 1932 |
foreach (get_taxon_tabs_list() as $label) { |
Also available in: Unified diff
improving setting documentation of taxon layout tabs