optimacms 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13e485e5b7f4c1d834240a738c0de523621fb25d
|
4
|
+
data.tar.gz: 5234d954c777b4079f26116f28f1749f072e9d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54d548c81500ba0a6cfc26cd4e35c98a5ea3ca8e62e44f8c261091ab5962237480b982e024b37c67cd5c86649856b16eb9a16aa1d5c6aa8f9e0c43faa5d9bca
|
7
|
+
data.tar.gz: 5608442eeca49eb360b4bbdf56a28b402128b0bf697f909b3f11a67d8ba879469ffac3dc360a98afbb05fa1cf0280bdfecd6be302d7a8ed5f175b821dc560bc0
|
@@ -15,10 +15,21 @@ module Optimacms
|
|
15
15
|
'<pre>{{block:name:sub}}</pre>'
|
16
16
|
end
|
17
17
|
|
18
|
+
def eval_meta_string(s)
|
19
|
+
eval('"'+s+'"')
|
20
|
+
end
|
21
|
+
|
22
|
+
def fix_quotes(s)
|
23
|
+
s.gsub /"/, '\"'
|
24
|
+
end
|
25
|
+
|
18
26
|
def meta_tags(title=nil, keywords=nil, desc=nil)
|
19
|
-
|
20
|
-
|
21
|
-
|
27
|
+
s = 'news "11"'
|
28
|
+
s1 = s.gsub /"/, '\"'
|
29
|
+
s2 = eval('"'+s1+'"')
|
30
|
+
title ||= eval_meta_string(fix_quotes(@optimacms_meta_title))
|
31
|
+
keywords ||= eval_meta_string(@optimacms_meta_keywords)
|
32
|
+
desc ||= eval_meta_string(@optimacms_meta_description)
|
22
33
|
|
23
34
|
|
24
35
|
return %(<title>#{title}</title>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
%li=link_to 'Pages', pages_path
|
15
15
|
%li=link_to 'Templates', templates_path
|
16
16
|
-#%li=link_to 'Layouts', layouts_path
|
17
|
-
|
17
|
+
-#%li=link_to 'Data Blocks - NOT WORK', 'datablocks_path'
|
18
18
|
%li=link_to 'Media', mediafiles_path
|
19
19
|
|
20
20
|
%li
|
data/lib/optimacms/version.rb
CHANGED