diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-17 14:04:47 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-17 14:04:47 +0000 |
commit | 29f443761f4dec428e7d98dafe6095f86ec89880 (patch) | |
tree | 815147f8d5c6a92e220eebee09f67a4668fc25c4 | |
parent | 81ecb970bc638951b3fc468da2268803b54968a4 (diff) | |
download | brdo-29f443761f4dec428e7d98dafe6095f86ec89880.tar.gz brdo-29f443761f4dec428e7d98dafe6095f86ec89880.tar.bz2 |
#197425 by mooffie, slightly modified: add blockquote support by default and blockquote theming to Garland and Bluemarine (other themes have it already)
-rw-r--r-- | modules/filter/filter.module | 6 | ||||
-rw-r--r-- | themes/bluemarine/style-rtl.css | 7 | ||||
-rw-r--r-- | themes/bluemarine/style.css | 8 | ||||
-rw-r--r-- | themes/garland/style-rtl.css | 8 | ||||
-rw-r--r-- | themes/garland/style.css | 10 |
5 files changed, 36 insertions, 3 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 4cb5eecc4..a3fd7e913 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -167,7 +167,7 @@ function filter_filter_tips($delta, $format, $long = FALSE) { switch ($delta) { case 0: if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) { - if ($allowed_html = variable_get("allowed_html_$format", '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>')) { + if ($allowed_html = variable_get("allowed_html_$format", '<a> <em> <strong> <blockquote> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>')) { switch ($long) { case 0: return t('Allowed HTML tags: @tags', array('@tags' => $allowed_html)); @@ -662,7 +662,7 @@ function _filter_html_settings($format) { $form['filter_html']["allowed_html_$format"] = array( '#type' => 'textfield', '#title' => t('Allowed HTML tags'), - '#default_value' => variable_get("allowed_html_$format", '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>'), + '#default_value' => variable_get("allowed_html_$format", '<a> <em> <strong> <blockquote> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>'), '#size' => 64, '#maxlength' => 255, '#description' => t('If "Strip disallowed tags" is selected, optionally specify tags which should not be stripped. JavaScript event attributes are always stripped.'), @@ -687,7 +687,7 @@ function _filter_html_settings($format) { */ function _filter_html($text, $format) { if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) { - $allowed_tags = preg_split('/\s+|<|>/', variable_get("allowed_html_$format", '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>'), -1, PREG_SPLIT_NO_EMPTY); + $allowed_tags = preg_split('/\s+|<|>/', variable_get("allowed_html_$format", '<a> <em> <strong> <blockquote> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>'), -1, PREG_SPLIT_NO_EMPTY); $text = filter_xss($text, $allowed_tags); } diff --git a/themes/bluemarine/style-rtl.css b/themes/bluemarine/style-rtl.css index ef3c46905..9c63297cd 100644 --- a/themes/bluemarine/style-rtl.css +++ b/themes/bluemarine/style-rtl.css @@ -2,6 +2,13 @@ body { direction: rtl; } +blockquote { + padding: 0 15px 0 0; + margin: 1.1em 35px 1.1em 40px; + border-left-style: none; + border-right-style: solid; + border-right-width: 4px; +} #logo img { float: right; } diff --git a/themes/bluemarine/style.css b/themes/bluemarine/style.css index c88def143..9db6519af 100644 --- a/themes/bluemarine/style.css +++ b/themes/bluemarine/style.css @@ -29,6 +29,14 @@ p { margin-top: 0.5em; margin-bottom: 0.9em; } +blockquote { + padding: 0 0 0 15px; /* LTR */ + margin: 1.1em 40px 1.1em 35px; /* LTR */ + border-left-style: solid; /* LTR */ + border-left-width: 4px; /* LTR */ + border-color: #69c; + font-style: italic; +} a { text-decoration: none; font-weight: bold; diff --git a/themes/garland/style-rtl.css b/themes/garland/style-rtl.css index 791abf243..f772ad6cf 100644 --- a/themes/garland/style-rtl.css +++ b/themes/garland/style-rtl.css @@ -11,6 +11,14 @@ body { direction: rtl; } +blockquote { + padding: 0 15px 0 0; + margin: 1.1em 35px 1.1em 40px; + border-left-style: none; + border-right-style: solid; + border-right-width: 4px; +} + ol li, ul li { margin: 0.4em .5em 0.4em 0; } diff --git a/themes/garland/style.css b/themes/garland/style.css index cc882fca8..396eafbb2 100644 --- a/themes/garland/style.css +++ b/themes/garland/style.css @@ -71,6 +71,16 @@ p { padding: 0; } +blockquote { + padding: 0 0 0 15px; /* LTR */ + margin: 1.1em 40px 1.1em 35px; /* LTR */ + border-left-style: solid; /* LTR */ + border-left-width: 4px; /* LTR */ + /* Same as link color, keeps this colorable. */ + border-color: #027AC6; + font-style: italic; +} + a:link, a:visited { color: #027AC6; text-decoration: none; |