[geeklog-hg] geeklog: Modern Curve theme ETag now also based on language dire...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Fri Jul 26 22:52:17 EDT 2013
changeset 9228:1843d7a703b6
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/1843d7a703b6
user: Tom <websitemaster at cogeco.net>
date: Fri Jul 26 22:52:15 2013 -0400
description:
Modern Curve theme ETag now also based on language direction since user may change language while using theme.
diffstat:
public_html/layout/modern_curve/style.css.php | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diffs (41 lines):
diff -r d1f86bebc8a0 -r 1843d7a703b6 public_html/layout/modern_curve/style.css.php
--- a/public_html/layout/modern_curve/style.css.php Mon Jul 22 21:36:27 2013 -0400
+++ b/public_html/layout/modern_curve/style.css.php Fri Jul 26 22:52:15 2013 -0400
@@ -41,9 +41,20 @@
}
$css_path = $path_themes . $theme . '/css/';
+// Create directions for RTL support
+$left = 'left';
+$right = 'right';
+$dir = 'ltr';
+
+if ($_GET['dir'] === 'rtl') {
+ $left = 'right';
+ $right = 'left';
+ $dir = 'rtl';
+}
+
// We assume /data directory is right under $_CONF['path'] directory. If you
// have moved or renamed /data directory, please change the following line accordingly.
-$etag_filename = $_CONF['path'] . 'data/' . $theme . '_etag.cache';
+$etag_filename = $_CONF['path'] . 'data/' . $theme . '_' . $dir . '_etag.cache';
if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
if (is_readable($etag_filename)) {
@@ -107,15 +118,6 @@
'custom.css'
);
-// Create directions for RTL support
-$left = 'left';
-$right = 'right';
-
-if ($_GET['dir'] === 'rtl') {
- $left = 'right';
- $right = 'left';
-}
-
// Output the contents of each file
foreach ($files as $file) {
$full_filepath = '';
More information about the geeklog-cvs
mailing list