Project

General

Profile

Revision bfb52287

Added by Assos Assos over 9 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/themes/mayo/theme-settings.php
6 6
 * Custom theme settings
7 7
 */
8 8
function mayo_form_system_theme_settings_alter(&$form, &$form_state) {
9

  
9
    global $base_url;
10 10
  drupal_add_js(drupal_get_path('theme', 'mayo') . '/js/mayo.js');
11 11
    // Get our plugin system functions.
12 12
  require_once(drupal_get_path('theme', 'mayo') . '/inc/plugins.inc');
13 13

  
14 14
  // We need some getters.
15 15
  require_once(drupal_get_path('theme', 'mayo') . '/inc/get.inc');
16
  $path_to_mayo = drupal_get_path('theme', 'mayo');
17 16

  
18 17
  // General "alters" use a form id. Settings should not be set here. The only
19 18
  // thing useful about this is if you need to alter the form for the running
......
127 126
    '#size' => 12,
128 127
    '#maxlength' => 8,
129 128
    '#description' => t('Specify the base vertical (top/bottom) margin which is vertical spaces between page edge and browser screen in px.'),
130
    '#prefix' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/base-layout.png" /><br />',
129
    '#prefix' => '<img src="' . url(drupal_get_path('theme', 'mayo') . '/images/base-layout.png') . '" /><br />',
131 130
  );
132 131
  $form['layout']['page_margin'] = array(
133 132
    '#type' => 'textfield',
......
145 144
      1 => t('1. Apply page margin to all (header, footer and main contents).'),
146 145
      2 => t('2. Apply page margin to main contents only.'),
147 146
    ),
148
    '#description' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/page-layout.png" /><br />' . t('When the layout 2 is selected, or header background image is selected, header borders are not drawn to make it look better.'),
147
    '#description' => '<img src="' . url(drupal_get_path('theme', 'mayo') . '/images/page-layout.png') . '" /><br />' . t('When the layout 2 is selected, or header background image is selected, header borders are not drawn to make it look better.'),
149 148
  );
150 149

  
151 150
  /* --------------- Responsive sidebar layout settings -------------- */
......
764 763
      'rc-2' => t('Node only'),
765 764
      'rc-3' => t('Both sidebar block and node'),
766 765
    ),
767
    '#suffix' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/round-corners.png" /><br />',
766
    '#suffix' => '<img src="' . url(drupal_get_path('theme', 'mayo') . '/images/round-corners.png') . '" /><br />',
768 767
  );
769 768

  
770 769
  $form['style']['menubar_style'] = array(
......
775 774
      1 => t('1. Normal (based on the colors specified by the color set)'),
776 775
      2 => t('2. Gloss black image background.'),
777 776
    ),
778
    '#suffix' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/menubar-type.png" />',
777
    '#suffix' => '<img src="' . url(drupal_get_path('theme', 'mayo') . '/images/menubar-type.png') . '" />',
779 778
  );
780 779
  $form['style']['note'] = array(
781 780
    '#type' => 'item',
......
825 824
    '#size' => 12,
826 825
    '#maxlength' => 8,
827 826
    '#description' => t('Specify the header height in px.'),
828
    '#prefix' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/header-layout.png" /><br />',
827
    '#prefix' => '<img src="' . url(drupal_get_path('theme', 'mayo') . '/images/header-layout.png') . '" /><br />',
829 828
  );
830 829
  $form['adv_header']['header_border_width'] = array(
831 830
    '#type' => 'textfield',
......
938 937
      5 => t('Star'),
939 938
      6 => t('Metal'),
940 939
    ),
941
    '#suffix' => '<img src="/' . drupal_get_path('theme', 'mayo') . '/images/watermark-sample.png" /><br />',
940
    '#suffix' => '<img src="' . url(drupal_get_path('theme', 'mayo') . '/images/watermark-sample.png') . '" /><br />',
942 941
  );
943 942

  
944 943
  /* --------------- Misellanenous settings -------------- */

Also available in: Unified diff