refinerycms 0.9.6.31 → 0.9.6.32
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.
- data/VERSION +1 -1
- data/bin/refinery-update-core +1 -1
- data/config/application.rb +1 -1
- data/db/seeds.rb +17 -16
- data/public/images/refinery/icons/zoom.png +0 -0
- data/public/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/public/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/public/images/wymeditor/skins/refinery/eye.png +0 -0
- data/public/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/public/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/public/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/public/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/public/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/public/images/wymeditor/skins/refinery/style.png +0 -0
- data/public/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/public/images/wymeditor/skins/refinery/{center.png → text_align_center.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{justify.png → text_align_justify.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{left.png → text_align_left.png} +0 -0
- data/public/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/public/images/wymeditor/skins/refinery/{h1.png → text_heading_1.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h2.png → text_heading_2.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h3.png → text_heading_3.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h4.png → text_heading_4.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h5.png → text_heading_5.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h6.png → text_heading_6.png} +0 -0
- data/public/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/public/images/wymeditor/skins/refinery/{paragraph.png → text_paragraph.png} +0 -0
- data/public/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/public/javascripts/jquery/jquery.corner.js +239 -0
- data/public/javascripts/refinery/admin.js +5 -2
- data/public/javascripts/refinery/boot_wym.js +1 -1
- data/public/stylesheets/refinery/refinery.css +30 -116
- data/public/stylesheets/refinery/ui.css +86 -0
- data/public/stylesheets/wymeditor/skins/refinery/skin.css +26 -26
- data/readme.md +2 -2
- data/test/unit/inquiry_test.rb +0 -8
- data/vendor/plugins/acts_as_indexed/CHANGELOG +4 -0
- data/vendor/plugins/acts_as_indexed/README.rdoc +1 -1
- data/vendor/plugins/acts_as_indexed/lib/search_atom.rb +3 -1
- data/vendor/plugins/acts_as_indexed/lib/search_index.rb +1 -1
- data/vendor/plugins/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +1 -1
- data/vendor/plugins/inquiries/app/controllers/admin/inquiries_controller.rb +10 -15
- data/vendor/plugins/inquiries/app/models/inquiry.rb +0 -3
- data/vendor/plugins/inquiries/app/views/admin/inquiries/_inquiry.html.erb +4 -6
- data/vendor/plugins/inquiries/app/views/admin/inquiries/index.html.erb +7 -15
- data/vendor/plugins/inquiries/app/views/admin/inquiries/show.html.erb +0 -1
- data/vendor/plugins/pages/app/controllers/pages_controller.rb +1 -1
- data/vendor/plugins/pages/app/views/admin/pages/_form.html.erb +6 -92
- data/vendor/plugins/pages/app/views/admin/pages/_form_advanced_options.html.erb +56 -0
- data/vendor/plugins/pages/app/views/admin/pages/_form_advanced_options_seo.html.erb +22 -0
- data/vendor/plugins/pages/app/views/admin/pages/_form_new_page_parts.html.erb +13 -0
- data/vendor/plugins/refinery/app/views/admin/_head.html.erb +2 -1
- data/vendor/plugins/refinery/app/views/shared/_menu.html.erb +2 -2
- data/vendor/plugins/refinery/lib/refinery/application_controller.rb +1 -0
- data/vendor/plugins/refinery/lib/refinery/application_helper.rb +44 -15
- data/vendor/plugins/refinery/lib/refinery/html_truncation_helper.rb +19 -17
- metadata +38 -18
- data/contributors.md +0 -20
- data/public/images/wymeditor/skins/refinery/blockquote.png +0 -0
- data/public/images/wymeditor/skins/refinery/css.png +0 -0
- data/public/images/wymeditor/skins/refinery/icons.png +0 -0
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.6.
|
|
1
|
+
0.9.6.32
|
data/bin/refinery-update-core
CHANGED
|
@@ -9,7 +9,7 @@ unless rails_root.nil? or rails_root.length == 0
|
|
|
9
9
|
FileUtils::makedirs dirs.map {|dir| File.join(rails_root, dir) }
|
|
10
10
|
|
|
11
11
|
# copy in the new assets.
|
|
12
|
-
assets = [%w(public stylesheets refinery), %w(public javascripts refinery), %w(public javascripts wymeditor), %w(VERSION)]
|
|
12
|
+
assets = [%w(public stylesheets refinery), %w(public javascripts refinery), %w(public javascripts wymeditor), %w(VERSION), %w(public images wymeditor skins refinery), %w(public images refinery), %w(public stylesheets wymeditor skins refinery), %w(public javascripts jquery)]
|
|
13
13
|
assets.each do |asset|
|
|
14
14
|
FileUtils::rm_rf File.join(rails_root, asset), :secure => true # ensure the destination is clear.
|
|
15
15
|
FileUtils::cp_r File.join(refinery_root, asset), File.join(rails_root, asset) # copy the new assets into the project.
|
data/config/application.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
|
|
3
3
|
|
|
4
4
|
# Specified gem version of Refinery to use when vendor/plugins/refinery/lib/refinery.rb is not present.
|
|
5
|
-
REFINERY_GEM_VERSION = '0.9.6.
|
|
5
|
+
REFINERY_GEM_VERSION = '0.9.6.32' unless defined? REFINERY_GEM_VERSION
|
|
6
6
|
|
|
7
7
|
# Boot Rails
|
|
8
8
|
require File.join(File.dirname(__FILE__), 'boot')
|
data/db/seeds.rb
CHANGED
|
@@ -66,12 +66,28 @@ contact_us_page.parts.create({
|
|
|
66
66
|
:body => "<p>163 Evergreen Terrace<br/>Happyville<br/>USA.<br/>Phone: 1-800 CALLUSNOW</p>",
|
|
67
67
|
:position => 1
|
|
68
68
|
})
|
|
69
|
+
contact_us_page_position = -1
|
|
70
|
+
privacy_policy_page = Page.create(:title => "Privacy Policy",
|
|
71
|
+
:deletable => true,
|
|
72
|
+
:show_in_menu => false,
|
|
73
|
+
:position => (contact_us_page_position += 1),
|
|
74
|
+
:parent_id => contact_us_page.id)
|
|
75
|
+
privacy_policy_page.parts.create({
|
|
76
|
+
:title => "Body",
|
|
77
|
+
:body => "<p><strong>We respect your privacy. We do not market, rent or sell our email list to any outside parties.</p><p>We need your e-mail address so that we can ensure that the people using our forms are bona fide. It also allows us to send you e-mail newsletters and other communications, if you opt-in. Your postal address is required in order to send you information and pricing, if you request it.</p><p>Please call us at 123 456 7890 if you have any questions or concerns.</p>",
|
|
78
|
+
:position => 0
|
|
79
|
+
})
|
|
80
|
+
privacy_policy_page.parts.create({
|
|
81
|
+
:title => "Side Body",
|
|
82
|
+
:body => "",
|
|
83
|
+
:position => 1
|
|
84
|
+
})
|
|
69
85
|
|
|
70
86
|
thank_you_page = Page.create(:title => "Thank You",
|
|
71
87
|
:menu_match => "^/inquiries/thank_you$",
|
|
72
88
|
:show_in_menu => false,
|
|
73
89
|
:deletable => false,
|
|
74
|
-
:position =>
|
|
90
|
+
:position => (contact_us_page_position += 1),
|
|
75
91
|
:parent_id => contact_us_page.id)
|
|
76
92
|
thank_you_page.parts.create({
|
|
77
93
|
:title => "Body",
|
|
@@ -90,21 +106,6 @@ page_not_found_page.parts.create({
|
|
|
90
106
|
:position => 0
|
|
91
107
|
})
|
|
92
108
|
|
|
93
|
-
privacy_policy_page = Page.create(:title => "Privacy Policy",
|
|
94
|
-
:deletable => true,
|
|
95
|
-
:show_in_menu => false,
|
|
96
|
-
:position => (page_position += 1))
|
|
97
|
-
privacy_policy_page.parts.create({
|
|
98
|
-
:title => "Body",
|
|
99
|
-
:body => "<p><strong>We respect your privacy. We do not market, rent or sell our email list to any outside parties.</p><p>We need your e-mail address so that we can ensure that the people using our forms are bona fide. It also allows us to send you e-mail newsletters and other communications, if you opt-in. Your postal address is required in order to send you information and pricing, if you request it.</p><p>Please call us at 123 456 7890 if you have any questions or concerns.</p>",
|
|
100
|
-
:position => 0
|
|
101
|
-
})
|
|
102
|
-
privacy_policy_page.parts.create({
|
|
103
|
-
:title => "Side Body",
|
|
104
|
-
:body => "",
|
|
105
|
-
:position => 1
|
|
106
|
-
})
|
|
107
|
-
|
|
108
109
|
down_for_maintenance_page = Page.create(:title => "Down for maintenance",
|
|
109
110
|
:menu_match => "^/maintenance$",
|
|
110
111
|
:show_in_menu => false,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jQuery corner plugin: simple corner rounding
|
|
3
|
+
* Examples and documentation at: http://jquery.malsup.com/corner/
|
|
4
|
+
* version 2.09 (11-MAR-2010)
|
|
5
|
+
* Requires jQuery v1.3.2 or later
|
|
6
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
7
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
8
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
9
|
+
* Authors: Dave Methvin and Mike Alsup
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* corner() takes a single string argument: $('#myDiv').corner("effect corners width")
|
|
14
|
+
*
|
|
15
|
+
* effect: name of the effect to apply, such as round, bevel, notch, bite, etc (default is round).
|
|
16
|
+
* corners: one or more of: top, bottom, tr, tl, br, or bl. (default is all corners)
|
|
17
|
+
* width: width of the effect; in the case of rounded corners this is the radius.
|
|
18
|
+
* specify this value using the px suffix such as 10px (yes, it must be pixels).
|
|
19
|
+
*/
|
|
20
|
+
;(function($) {
|
|
21
|
+
|
|
22
|
+
var style = document.createElement('div').style;
|
|
23
|
+
var moz = style['MozBorderRadius'] !== undefined;
|
|
24
|
+
var webkit = style['WebkitBorderRadius'] !== undefined;
|
|
25
|
+
var radius = style['borderRadius'] !== undefined || style['BorderRadius'] !== undefined;
|
|
26
|
+
var mode = document.documentMode || 0;
|
|
27
|
+
var noBottomFold = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
|
|
28
|
+
|
|
29
|
+
var expr = $.browser.msie && (function() {
|
|
30
|
+
var div = document.createElement('div');
|
|
31
|
+
try { div.style.setExpression('width','0+0'); div.style.removeExpression('width'); }
|
|
32
|
+
catch(e) { return false; }
|
|
33
|
+
return true;
|
|
34
|
+
})();
|
|
35
|
+
|
|
36
|
+
function sz(el, p) {
|
|
37
|
+
return parseInt($.css(el,p))||0;
|
|
38
|
+
};
|
|
39
|
+
function hex2(s) {
|
|
40
|
+
var s = parseInt(s).toString(16);
|
|
41
|
+
return ( s.length < 2 ) ? '0'+s : s;
|
|
42
|
+
};
|
|
43
|
+
function gpc(node) {
|
|
44
|
+
while(node) {
|
|
45
|
+
var v = $.css(node,'backgroundColor');
|
|
46
|
+
if (v && v != 'transparent' && v != 'rgba(0, 0, 0, 0)') {
|
|
47
|
+
if (v.indexOf('rgb') >= 0) {
|
|
48
|
+
var rgb = v.match(/\d+/g);
|
|
49
|
+
return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]);
|
|
50
|
+
}
|
|
51
|
+
return v;
|
|
52
|
+
}
|
|
53
|
+
node = node.parentNode; // keep walking if transparent
|
|
54
|
+
}
|
|
55
|
+
return '#ffffff';
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
function getWidth(fx, i, width) {
|
|
59
|
+
switch(fx) {
|
|
60
|
+
case 'round': return Math.round(width*(1-Math.cos(Math.asin(i/width))));
|
|
61
|
+
case 'cool': return Math.round(width*(1+Math.cos(Math.asin(i/width))));
|
|
62
|
+
case 'sharp': return Math.round(width*(1-Math.cos(Math.acos(i/width))));
|
|
63
|
+
case 'bite': return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));
|
|
64
|
+
case 'slide': return Math.round(width*(Math.atan2(i,width/i)));
|
|
65
|
+
case 'jut': return Math.round(width*(Math.atan2(width,(width-i-1))));
|
|
66
|
+
case 'curl': return Math.round(width*(Math.atan(i)));
|
|
67
|
+
case 'tear': return Math.round(width*(Math.cos(i)));
|
|
68
|
+
case 'wicked': return Math.round(width*(Math.tan(i)));
|
|
69
|
+
case 'long': return Math.round(width*(Math.sqrt(i)));
|
|
70
|
+
case 'sculpt': return Math.round(width*(Math.log((width-i-1),width)));
|
|
71
|
+
case 'dogfold':
|
|
72
|
+
case 'dog': return (i&1) ? (i+1) : width;
|
|
73
|
+
case 'dog2': return (i&2) ? (i+1) : width;
|
|
74
|
+
case 'dog3': return (i&3) ? (i+1) : width;
|
|
75
|
+
case 'fray': return (i%2)*width;
|
|
76
|
+
case 'notch': return width;
|
|
77
|
+
case 'bevelfold':
|
|
78
|
+
case 'bevel': return i+1;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
$.fn.corner = function(options) {
|
|
83
|
+
// in 1.3+ we can fix mistakes with the ready state
|
|
84
|
+
if (this.length == 0) {
|
|
85
|
+
if (!$.isReady && this.selector) {
|
|
86
|
+
var s = this.selector, c = this.context;
|
|
87
|
+
$(function() {
|
|
88
|
+
$(s,c).corner(options);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return this.each(function(index){
|
|
95
|
+
var $this = $(this);
|
|
96
|
+
// meta values override options
|
|
97
|
+
var o = [$this.attr($.fn.corner.defaults.metaAttr) || '', options || ''].join(' ').toLowerCase();
|
|
98
|
+
var keep = /keep/.test(o); // keep borders?
|
|
99
|
+
var cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]); // corner color
|
|
100
|
+
var sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]); // strip color
|
|
101
|
+
var width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10; // corner width
|
|
102
|
+
var re = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/;
|
|
103
|
+
var fx = ((o.match(re)||['round'])[0]);
|
|
104
|
+
var fold = /dogfold|bevelfold/.test(o);
|
|
105
|
+
var edges = { T:0, B:1 };
|
|
106
|
+
var opts = {
|
|
107
|
+
TL: /top|tl|left/.test(o), TR: /top|tr|right/.test(o),
|
|
108
|
+
BL: /bottom|bl|left/.test(o), BR: /bottom|br|right/.test(o)
|
|
109
|
+
};
|
|
110
|
+
if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR )
|
|
111
|
+
opts = { TL:1, TR:1, BL:1, BR:1 };
|
|
112
|
+
|
|
113
|
+
// support native rounding
|
|
114
|
+
if ($.fn.corner.defaults.useNative && fx == 'round' && (radius || moz || webkit) && !cc && !sc) {
|
|
115
|
+
if (opts.TL)
|
|
116
|
+
$this.css(radius ? 'border-top-left-radius' : moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px');
|
|
117
|
+
if (opts.TR)
|
|
118
|
+
$this.css(radius ? 'border-top-right-radius' : moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px');
|
|
119
|
+
if (opts.BL)
|
|
120
|
+
$this.css(radius ? 'border-bottom-left-radius' : moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px');
|
|
121
|
+
if (opts.BR)
|
|
122
|
+
$this.css(radius ? 'border-bottom-right-radius' : moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px');
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
var strip = document.createElement('div');
|
|
127
|
+
$(strip).css({
|
|
128
|
+
overflow: 'hidden',
|
|
129
|
+
height: '1px',
|
|
130
|
+
minHeight: '1px',
|
|
131
|
+
fontSize: '1px',
|
|
132
|
+
backgroundColor: sc || 'transparent',
|
|
133
|
+
borderStyle: 'solid'
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
var pad = {
|
|
137
|
+
T: parseInt($.css(this,'paddingTop'))||0, R: parseInt($.css(this,'paddingRight'))||0,
|
|
138
|
+
B: parseInt($.css(this,'paddingBottom'))||0, L: parseInt($.css(this,'paddingLeft'))||0
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE
|
|
142
|
+
if (!keep) this.style.border = 'none';
|
|
143
|
+
strip.style.borderColor = cc || gpc(this.parentNode);
|
|
144
|
+
var cssHeight = $(this).outerHeight();
|
|
145
|
+
|
|
146
|
+
for (var j in edges) {
|
|
147
|
+
var bot = edges[j];
|
|
148
|
+
// only add stips if needed
|
|
149
|
+
if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) {
|
|
150
|
+
strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');
|
|
151
|
+
var d = document.createElement('div');
|
|
152
|
+
$(d).addClass('jquery-corner');
|
|
153
|
+
var ds = d.style;
|
|
154
|
+
|
|
155
|
+
bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);
|
|
156
|
+
|
|
157
|
+
if (bot && cssHeight != 'auto') {
|
|
158
|
+
if ($.css(this,'position') == 'static')
|
|
159
|
+
this.style.position = 'relative';
|
|
160
|
+
ds.position = 'absolute';
|
|
161
|
+
ds.bottom = ds.left = ds.padding = ds.margin = '0';
|
|
162
|
+
if (expr)
|
|
163
|
+
ds.setExpression('width', 'this.parentNode.offsetWidth');
|
|
164
|
+
else
|
|
165
|
+
ds.width = '100%';
|
|
166
|
+
}
|
|
167
|
+
else if (!bot && $.browser.msie) {
|
|
168
|
+
if ($.css(this,'position') == 'static')
|
|
169
|
+
this.style.position = 'relative';
|
|
170
|
+
ds.position = 'absolute';
|
|
171
|
+
ds.top = ds.left = ds.right = ds.padding = ds.margin = '0';
|
|
172
|
+
|
|
173
|
+
// fix ie6 problem when blocked element has a border width
|
|
174
|
+
if (expr) {
|
|
175
|
+
var bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth');
|
|
176
|
+
ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"');
|
|
177
|
+
}
|
|
178
|
+
else
|
|
179
|
+
ds.width = '100%';
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
ds.position = 'relative';
|
|
183
|
+
ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' :
|
|
184
|
+
(pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
for (var i=0; i < width; i++) {
|
|
188
|
+
var w = Math.max(0,getWidth(fx,i, width));
|
|
189
|
+
var e = strip.cloneNode(false);
|
|
190
|
+
e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';
|
|
191
|
+
bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (fold && $.support.boxModel) {
|
|
195
|
+
if (bot && noBottomFold) continue;
|
|
196
|
+
for (var c in opts) {
|
|
197
|
+
if (!opts[c]) continue;
|
|
198
|
+
if (bot && (c == 'TL' || c == 'TR')) continue;
|
|
199
|
+
if (!bot && (c == 'BL' || c == 'BR')) continue;
|
|
200
|
+
|
|
201
|
+
var common = { position: 'absolute', border: 'none', margin: 0, padding: 0, overflow: 'hidden', backgroundColor: strip.style.borderColor };
|
|
202
|
+
var $horz = $('<div/>').css(common).css({ width: width + 'px', height: '1px' });
|
|
203
|
+
switch(c) {
|
|
204
|
+
case 'TL': $horz.css({ bottom: 0, left: 0 }); break;
|
|
205
|
+
case 'TR': $horz.css({ bottom: 0, right: 0 }); break;
|
|
206
|
+
case 'BL': $horz.css({ top: 0, left: 0 }); break;
|
|
207
|
+
case 'BR': $horz.css({ top: 0, right: 0 }); break;
|
|
208
|
+
}
|
|
209
|
+
d.appendChild($horz[0]);
|
|
210
|
+
|
|
211
|
+
var $vert = $('<div/>').css(common).css({ top: 0, bottom: 0, width: '1px', height: width + 'px' });
|
|
212
|
+
switch(c) {
|
|
213
|
+
case 'TL': $vert.css({ left: width }); break;
|
|
214
|
+
case 'TR': $vert.css({ right: width }); break;
|
|
215
|
+
case 'BL': $vert.css({ left: width }); break;
|
|
216
|
+
case 'BR': $vert.css({ right: width }); break;
|
|
217
|
+
}
|
|
218
|
+
d.appendChild($vert[0]);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
$.fn.uncorner = function() {
|
|
227
|
+
if (radius || moz || webkit)
|
|
228
|
+
this.css(radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius', 0);
|
|
229
|
+
$('div.jquery-corner', this).remove();
|
|
230
|
+
return this;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
// expose options
|
|
234
|
+
$.fn.corner.defaults = {
|
|
235
|
+
useNative: true, // true if plugin should attempt to use native browser support for border radius rounding
|
|
236
|
+
metaAttr: 'data-corner' // name of meta attribute to use for options
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
})(jQuery);
|
|
@@ -94,6 +94,8 @@ init_sortable_menu = function(){
|
|
|
94
94
|
|
|
95
95
|
$menu.sortable('disable');
|
|
96
96
|
});
|
|
97
|
+
|
|
98
|
+
$menu.find('> li a').corner('top 5px');
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
init_submit_continue = function(){
|
|
@@ -340,7 +342,7 @@ var page_options = {
|
|
|
340
342
|
// set the page tabs up, but ensure that all tabs are shown so that when wymeditor loads it has a proper height.
|
|
341
343
|
// also disable page overflow so that scrollbars don't appear while the page is loading.
|
|
342
344
|
$(document.body).addClass('hide-overflow');
|
|
343
|
-
page_options.tabs = $('#page-tabs').tabs({tabTemplate: '<li><a href="#{href}">#{label}</a></li>'});
|
|
345
|
+
page_options.tabs = $('#page-tabs').tabs({tabTemplate: '<li><a href="#{href}">#{label}</a></li>'}).find(' > ul li a').corner('top 5px');
|
|
344
346
|
part_shown = $('#page-tabs .page_part.field').not('.ui-tabs-hide');
|
|
345
347
|
$('#page-tabs .page_part.field').removeClass('ui-tabs-hide');
|
|
346
348
|
|
|
@@ -355,6 +357,7 @@ var page_options = {
|
|
|
355
357
|
// hide the tabs that are supposed to be hidden and re-enable overflow.
|
|
356
358
|
$(document.body).removeClass('hide-overflow');
|
|
357
359
|
$('#page-tabs .page_part.field').not(part_shown).addClass('ui-tabs-hide');
|
|
360
|
+
$('#page-tabs > ul li a').corner('top 5px');
|
|
358
361
|
}
|
|
359
362
|
|
|
360
363
|
if(this.enable_parts){
|
|
@@ -418,7 +421,7 @@ var page_options = {
|
|
|
418
421
|
$('#new_page_part_index').val(parseInt($('#new_page_part_index').val()) + 1);
|
|
419
422
|
$('#new_page_part_title').val('');
|
|
420
423
|
|
|
421
|
-
$('#page-tabs').tabs();
|
|
424
|
+
$('#page-tabs').tabs().find('> ul li a').corner('top 5px');
|
|
422
425
|
}
|
|
423
426
|
);
|
|
424
427
|
}else{
|
|
@@ -18,8 +18,8 @@ var wymeditor_boot_options = $.extend({
|
|
|
18
18
|
,{'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'}
|
|
19
19
|
,{'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'}
|
|
20
20
|
,{'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'}
|
|
21
|
-
,{'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}
|
|
22
21
|
,{'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}
|
|
22
|
+
,{'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}
|
|
23
23
|
,{'name': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'}
|
|
24
24
|
]
|
|
25
25
|
|
|
@@ -220,6 +220,12 @@ a:hover {
|
|
|
220
220
|
float: right;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
#header #menu.ui-sortable li a {
|
|
224
|
+
cursor: move;
|
|
225
|
+
}
|
|
226
|
+
#header #menu.ui-sortable-disabled li a {
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
}
|
|
223
229
|
#header li {
|
|
224
230
|
float: left;
|
|
225
231
|
margin-right: 2px;
|
|
@@ -228,10 +234,10 @@ a:hover {
|
|
|
228
234
|
|
|
229
235
|
#header li a {
|
|
230
236
|
display: block;
|
|
231
|
-
padding: 9px;
|
|
237
|
+
padding: 9px 13px;
|
|
232
238
|
font-size: 14px;
|
|
233
239
|
background-color: #c2c2b3;
|
|
234
|
-
margin-top:
|
|
240
|
+
margin-top:4px;
|
|
235
241
|
}
|
|
236
242
|
|
|
237
243
|
#header li a:hover {
|
|
@@ -240,10 +246,31 @@ a:hover {
|
|
|
240
246
|
|
|
241
247
|
#header li a.active {
|
|
242
248
|
background-color: #f6f5f4;
|
|
243
|
-
padding:
|
|
249
|
+
padding: 11px 13px;
|
|
244
250
|
margin-top: 0px;
|
|
245
251
|
}
|
|
246
252
|
|
|
253
|
+
#header #menu li a#menu_reorder, #header #menu li a#menu_reorder_done {
|
|
254
|
+
height: 10px;
|
|
255
|
+
margin-top: 11px;
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
background-color: #8a8a72;
|
|
258
|
+
background-repeat: no-repeat;
|
|
259
|
+
background-position: 7px;
|
|
260
|
+
width: 4px;
|
|
261
|
+
_margin-top: 8px;
|
|
262
|
+
padding: 8px 12px;
|
|
263
|
+
}
|
|
264
|
+
#header #menu li a#menu_reorder:hover, #header #menu li a#menu_reorder_done:hover {
|
|
265
|
+
background-color: #a1a18b;
|
|
266
|
+
}
|
|
267
|
+
#header #menu li a#menu_reorder {
|
|
268
|
+
background-image: url('/images/refinery/icons/arrow_switch.png');
|
|
269
|
+
}
|
|
270
|
+
#header #menu li a#menu_reorder_done {
|
|
271
|
+
background-image: url('/images/refinery/icons/tick.png');
|
|
272
|
+
}
|
|
273
|
+
|
|
247
274
|
#content {
|
|
248
275
|
padding: 15px;
|
|
249
276
|
}
|
|
@@ -895,27 +922,6 @@ ul#menu.reordering_menu li a {
|
|
|
895
922
|
cursor: move;
|
|
896
923
|
}
|
|
897
924
|
|
|
898
|
-
#header #menu li a#menu_reorder, #header #menu li a#menu_reorder_done {
|
|
899
|
-
height: 10px;
|
|
900
|
-
margin-top: 11px;
|
|
901
|
-
cursor: pointer !important;
|
|
902
|
-
background-color: #8a8a72;
|
|
903
|
-
background-repeat: no-repeat;
|
|
904
|
-
background-position: 7px;
|
|
905
|
-
width: 4px;
|
|
906
|
-
_margin-top: 6px;
|
|
907
|
-
padding: 9px 12px;
|
|
908
|
-
}
|
|
909
|
-
#header #menu li a#menu_reorder:hover, #header #menu li a#menu_reorder_done:hover {
|
|
910
|
-
background-color: #a1a18b;
|
|
911
|
-
}
|
|
912
|
-
#header #menu li a#menu_reorder {
|
|
913
|
-
background-image: url('/images/refinery/icons/arrow_switch.png');
|
|
914
|
-
}
|
|
915
|
-
#header #menu li a#menu_reorder_done {
|
|
916
|
-
background-image: url('/images/refinery/icons/tick.png');
|
|
917
|
-
}
|
|
918
|
-
|
|
919
925
|
.clearfix:after {
|
|
920
926
|
content:".";
|
|
921
927
|
display:block;
|
|
@@ -987,19 +993,6 @@ ul#page_parts, ul#page_parts_controls {
|
|
|
987
993
|
padding: 0;
|
|
988
994
|
}
|
|
989
995
|
|
|
990
|
-
ul#page_parts li {
|
|
991
|
-
float: left;
|
|
992
|
-
list-style: none;
|
|
993
|
-
margin-right: 2px;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
ul#page_parts li a {
|
|
997
|
-
display: block;
|
|
998
|
-
padding: 0px 8px;
|
|
999
|
-
border-bottom: none;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
ul#page_parts li.active a, ul#page_parts li a.active {}
|
|
1003
996
|
ul#page_parts_controls {
|
|
1004
997
|
float: right;
|
|
1005
998
|
width: 5%;
|
|
@@ -1100,15 +1093,6 @@ textarea.wymeditor {
|
|
|
1100
1093
|
padding: 10px;
|
|
1101
1094
|
}
|
|
1102
1095
|
|
|
1103
|
-
.ui-dialog #dialog_loading {
|
|
1104
|
-
position: fixed;
|
|
1105
|
-
top: 50%;
|
|
1106
|
-
left: 50%;
|
|
1107
|
-
width: 208px;
|
|
1108
|
-
height: 13px;
|
|
1109
|
-
margin: -6px 0 0 -104px;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
1096
|
ul#image_grid {
|
|
1113
1097
|
width: 580px;
|
|
1114
1098
|
padding: 0px;
|
|
@@ -1166,80 +1150,10 @@ ul#plugins li {
|
|
|
1166
1150
|
width:auto;
|
|
1167
1151
|
}
|
|
1168
1152
|
|
|
1169
|
-
.ui-widget-overlay {
|
|
1170
|
-
position: absolute;
|
|
1171
|
-
top: 0px;
|
|
1172
|
-
left: 0px;
|
|
1173
|
-
right: 0px;
|
|
1174
|
-
bottom: 0px;
|
|
1175
|
-
width: auto !important;
|
|
1176
|
-
opacity: .75;
|
|
1177
|
-
filter:Alpha(Opacity=75);
|
|
1178
|
-
background: #000;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
.ui-dialog {
|
|
1182
|
-
position: relative;
|
|
1183
|
-
background-color: #fff;
|
|
1184
|
-
color: #000;
|
|
1185
|
-
border: 4px solid #525252;
|
|
1186
|
-
width: auto;
|
|
1187
|
-
}
|
|
1188
|
-
.ui-dialog .ui-dialog-titlebar {
|
|
1189
|
-
float: left;
|
|
1190
|
-
position: relative;
|
|
1191
|
-
width: 100%;
|
|
1192
|
-
background-color: #e8e8e8;
|
|
1193
|
-
}
|
|
1194
|
-
.ui-dialog .ui-dialog-title {
|
|
1195
|
-
float: left;
|
|
1196
|
-
height: 33px;
|
|
1197
|
-
line-height: 33px;
|
|
1198
|
-
font-size: 16px;
|
|
1199
|
-
padding-left: 10px;
|
|
1200
|
-
}
|
|
1201
|
-
.ui-dialog .ui-dialog-titlebar-close {
|
|
1202
|
-
position: absolute;
|
|
1203
|
-
right: 10px;
|
|
1204
|
-
top: 5px;
|
|
1205
|
-
width: 19px;
|
|
1206
|
-
border: none;
|
|
1207
|
-
}
|
|
1208
|
-
.ui-dialog .ui-dialog-titlebar-close span {
|
|
1209
|
-
display: block;
|
|
1210
|
-
margin: 1px;
|
|
1211
|
-
background: transparent url('/images/thickbox/cross.png') top left no-repeat;
|
|
1212
|
-
text-indent:-10000px;
|
|
1213
|
-
}
|
|
1214
|
-
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus {
|
|
1215
|
-
padding: 0;
|
|
1216
|
-
}
|
|
1217
1153
|
#new_page_part_dialog .field {
|
|
1218
1154
|
padding: 30px 10px;
|
|
1219
1155
|
}
|
|
1220
1156
|
|
|
1221
|
-
.ui-tabs-hide {
|
|
1222
|
-
display:none;
|
|
1223
|
-
}
|
|
1224
|
-
.ui-tabs .ui-state-default, .ui-tabs .ui-state-default a {
|
|
1225
|
-
background-color: #c2c3b3;
|
|
1226
|
-
line-height: 27px;
|
|
1227
|
-
margin-top: 3px;
|
|
1228
|
-
}
|
|
1229
|
-
.ui-tabs .ui-state-active, .ui-tabs .ui-state-active a {
|
|
1230
|
-
background-color: #808080;
|
|
1231
|
-
color: #fff;
|
|
1232
|
-
line-height: 33px;
|
|
1233
|
-
margin-top: 0px;
|
|
1234
|
-
}
|
|
1235
|
-
.ui-dialog iframe {
|
|
1236
|
-
clear:both;
|
|
1237
|
-
border: 0px none;
|
|
1238
|
-
margin-bottom:-1px;
|
|
1239
|
-
margin-top:1px;
|
|
1240
|
-
width: 100% !important;
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
1157
|
.hide-overflow {
|
|
1244
1158
|
overflow: hidden;
|
|
1245
1159
|
}
|