refinerycms-pods 2.0.3 → 2.1.0
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/{public → app/assets}/images/bx_next_gal.png +0 -0
- data/{public → app/assets}/images/bx_prev_gal.png +0 -0
- data/{public → app/assets}/images/colorbox/border.png +0 -0
- data/{public → app/assets}/images/colorbox/controls.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderBottomCenter.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderBottomLeft.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderBottomRight.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderMiddleLeft.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderMiddleRight.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderTopCenter.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderTopLeft.png +0 -0
- data/{public → app/assets}/images/colorbox/ie6/borderTopRight.png +0 -0
- data/{public → app/assets}/images/colorbox/loading.gif +0 -0
- data/{public → app/assets}/images/colorbox/loading_background.png +0 -0
- data/{public → app/assets}/images/colorbox/overlay.png +0 -0
- data/app/assets/images/playbtn_01.png +0 -0
- data/app/assets/images/playbtn_02.png +0 -0
- data/app/assets/images/playbtn_03.png +0 -0
- data/app/assets/images/playbtn_04.png +0 -0
- data/{public → app/assets}/javascripts/jquery-1.5.2.min.js +0 -0
- data/{public → app/assets}/javascripts/jquery.bxSlider.min.js +0 -0
- data/{public → app/assets}/javascripts/jquery.colorbox-min.js +0 -0
- data/{public → app/assets}/javascripts/refinerycms-pods.js +8 -6
- data/{public → app/assets}/stylesheets/colorbox.css +0 -0
- data/app/assets/stylesheets/refinerycms-pods.scss +33 -0
- data/app/assets/stylesheets/variables.scss +17 -0
- data/app/views/refinery/pods/shared/_banner_pod.html.erb +3 -3
- data/app/views/refinery/pods/shared/_content_pod.html.erb +1 -1
- data/app/views/refinery/pods/shared/_gallery_pod.html.erb +1 -1
- data/app/views/refinery/pods/shared/_video_pod.html.erb +1 -1
- data/readme.md +5 -8
- metadata +28 -23
- data/public/stylesheets/refinerycms-pods.css +0 -4
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,11 +1,13 @@
|
|
1
1
|
$(document).ready(function() {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
$(".gallery_slider").each(function(){
|
4
|
+
$(this).bxSlider({
|
5
|
+
auto: true,
|
6
|
+
autoDelay: Math.floor(Math.random()*5000),
|
7
|
+
pause: 6000,
|
8
|
+
controls: true
|
9
|
+
});
|
10
|
+
});
|
9
11
|
|
10
12
|
$(".video_pod .video a").each(function(index) {
|
11
13
|
var str = $(this).attr("href");
|
File without changes
|
@@ -0,0 +1,33 @@
|
|
1
|
+
@import "variables";
|
2
|
+
|
3
|
+
/*** GALLERY POD ***/
|
4
|
+
|
5
|
+
.gallery_pod { @if $use_rounded_corners == true { @include rounded-corners; } }
|
6
|
+
.gallery_pod { width:280px; background:$side_pod_background_color; padding:9px 9px 0px 9px; z-index:1; border:1px solid $side_pod_border_color; margin:15px 0 0 0;}
|
7
|
+
.gallery_pod ul { list-style:none !important; margin:0px !important; padding:0px !important; }
|
8
|
+
.gallery_pod li { margin:0px !important; }
|
9
|
+
.gallery_pod .bx-prev { position:absolute; top:0px; display:block; text-indent:-9999em; width:20px; height:180px; background:image-url("bx_prev_gal.png"); }
|
10
|
+
.gallery_pod .bx-next { position:absolute; top:0px; right:0px; display:block; text-indent:-9999em; width:20px; height:180px; background:image-url("bx_next_gal.png"); }
|
11
|
+
.gallery_pod .pager { display:inline; margin:0px; padding:0px; list-style:none; text-align:center; }
|
12
|
+
.gallery_pod .pager a { display:inline-block; padding:0px; background:none; border:0px; }
|
13
|
+
.gallery_pod .pager a:hover { background:none; }
|
14
|
+
|
15
|
+
/*** VIDEO POD ***/
|
16
|
+
|
17
|
+
.video_pod { @if $use_rounded_corners == true { @include rounded-corners; } }
|
18
|
+
.video_pod { position:relative; width:280px; background:$side_pod_background_color; padding:9px 9px 0px 9px; z-index:1; border:1px solid $side_pod_border_color; margin:15px 0 0 0;}
|
19
|
+
.video_pod .video_img { width:280px; height:150px; overflow:hidden; display:block; background:#000000;}
|
20
|
+
.video_pod .video_img img { width:280px; display:block; margin-top:-30px; }
|
21
|
+
.video_pod .video_play {
|
22
|
+
@if $video_play_btn == 1 { background:image-url("playbtn_01.png") no-repeat; }
|
23
|
+
@else if $video_play_btn == 2 { background:image-url("playbtn_02.png") no-repeat; }
|
24
|
+
@else if $video_play_btn == 3 { background:image-url("playbtn_03.png") no-repeat; }
|
25
|
+
@else { background:image-url("playbtn_04.png") no-repeat; } width:60px; height:60px; position:absolute; top:50px; left:120px;}
|
26
|
+
|
27
|
+
/*** BANNER POD ***/
|
28
|
+
|
29
|
+
.banner_pod { padding:10px; margin:15px 0 0 0; }
|
30
|
+
|
31
|
+
/*** CONTENT POD ***/
|
32
|
+
|
33
|
+
.content_pod { margin:15px 0 0 0; }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*
|
2
|
+
* Here we define our color variables to be used accross the site
|
3
|
+
*/
|
4
|
+
|
5
|
+
/*** OPTIONS ***/
|
6
|
+
|
7
|
+
$use_rounded_corners: true; /* true / false */
|
8
|
+
$video_play_btn: 3; /* 1 / 2 / 3 / 4 */
|
9
|
+
|
10
|
+
/*** MIX INS ***/
|
11
|
+
|
12
|
+
@mixin rounded-corners { -moz-border-radius:6px; -webkit-border-radius:6px; -khtml-border-radius:6px; border-radius:6px; }
|
13
|
+
|
14
|
+
/*** POD ENGINE ***/
|
15
|
+
|
16
|
+
$side_pod_border_color: #dddddd;
|
17
|
+
$side_pod_background_color: #eef0f1;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% if pod.image.present? %>
|
2
|
-
<div class="side_pod
|
2
|
+
<div class="side_pod banner_pod">
|
3
3
|
<% if pod.url.present? %>
|
4
|
-
<%= link_to(image_tag(pod.image.image.thumb('
|
4
|
+
<%= link_to(image_tag(pod.image.image.thumb('280x200#c').url), pod.url) %>
|
5
5
|
<% else %>
|
6
|
-
<%= image_tag(pod.image.image.thumb('
|
6
|
+
<%= image_tag(pod.image.image.thumb('280x200#c').url) %>
|
7
7
|
<% end %>
|
8
8
|
<div class="clear"></div>
|
9
9
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<ul class="gallery_slider">
|
3
3
|
<% pod.portfolio_entry.items.each do |item| %>
|
4
4
|
<li>
|
5
|
-
|
5
|
+
<%= link_to(image_fu(item.image, '280x180#c'), item.image.url, :class => "cboxElement") %>
|
6
6
|
</li>
|
7
7
|
<% end if pod.portfolio_entry.present? and pod.portfolio_entry.items.present? %>
|
8
8
|
</ul>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% if pod.video.present? %>
|
2
2
|
<div class="side_pod video_pod">
|
3
3
|
<div class="video" targeturl="<%= pod.video.youtube_url %>">
|
4
|
-
<h1><%= pod.video.name %></h1>
|
5
4
|
<%= link_to('', pod.video.youtube_url, :class => "ytlink") %>
|
6
5
|
<%= raw(pod.video.body) %>
|
6
|
+
<p><%= pod.video.name %></p>
|
7
7
|
</div>
|
8
8
|
</div>
|
9
9
|
<% end %>
|
data/readme.md
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Manageable little side-pods for your [Refinery CMS](http://refinerycms.com) website. Depends on the following engines:
|
4
4
|
|
5
|
-
+ Portfolios - https://github.com/resolve/refinerycms-portfolio (branch rails-3-1)
|
6
|
-
+ Videos - https://github.com/julesce/refinerycms-videos (2.0.
|
5
|
+
+ Portfolios - https://github.com/resolve/refinerycms-portfolio (branch rails-3-1 or whichever the stable 2.0 branch is)
|
6
|
+
+ Videos - https://github.com/julesce/refinerycms-videos (2.0.x)
|
7
7
|
|
8
|
-
This version of `refinerycms-pods` supports Rails 3.
|
8
|
+
This version of `refinerycms-pods` supports Rails 3.2.x. and upwards. Designed to work with the asset pipeline.
|
9
9
|
|
10
10
|
## Requirements
|
11
11
|
|
@@ -15,7 +15,7 @@ Refinery CMS version 2.0.x.
|
|
15
15
|
|
16
16
|
Open up your ``Gemfile`` and add the following:
|
17
17
|
|
18
|
-
gem 'refinerycms-pods', '~> 2.0
|
18
|
+
gem 'refinerycms-pods', '~> 2.1.0'
|
19
19
|
|
20
20
|
Now, run:
|
21
21
|
|
@@ -35,10 +35,7 @@ And hook up the seed data:
|
|
35
35
|
|
36
36
|
## Usage
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
<%= stylesheet_include_tag 'colorbox', 'refinerycms-pods' %>
|
41
|
-
<%= javascript_include_tag 'jquery-1.5.2.min', 'jquery.bxSlider.min', 'jquery.colorbox-min', 'refinerycms-pods' %>
|
38
|
+
Take a look at the /app/assets/stylesheets/variables.scss file to set a couple of variables.
|
42
39
|
|
43
40
|
The following will render any pods assigned to your current @page:
|
44
41
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-pods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-25 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: refinerycms-core
|
@@ -61,6 +61,32 @@ files:
|
|
61
61
|
- config/locales/nb.yml
|
62
62
|
- config/locales/nl.yml
|
63
63
|
- config/routes.rb
|
64
|
+
- app/assets/images/bx_next_gal.png
|
65
|
+
- app/assets/images/bx_prev_gal.png
|
66
|
+
- app/assets/images/colorbox/border.png
|
67
|
+
- app/assets/images/colorbox/controls.png
|
68
|
+
- app/assets/images/colorbox/ie6/borderBottomCenter.png
|
69
|
+
- app/assets/images/colorbox/ie6/borderBottomLeft.png
|
70
|
+
- app/assets/images/colorbox/ie6/borderBottomRight.png
|
71
|
+
- app/assets/images/colorbox/ie6/borderMiddleLeft.png
|
72
|
+
- app/assets/images/colorbox/ie6/borderMiddleRight.png
|
73
|
+
- app/assets/images/colorbox/ie6/borderTopCenter.png
|
74
|
+
- app/assets/images/colorbox/ie6/borderTopLeft.png
|
75
|
+
- app/assets/images/colorbox/ie6/borderTopRight.png
|
76
|
+
- app/assets/images/colorbox/loading.gif
|
77
|
+
- app/assets/images/colorbox/loading_background.png
|
78
|
+
- app/assets/images/colorbox/overlay.png
|
79
|
+
- app/assets/images/playbtn_01.png
|
80
|
+
- app/assets/images/playbtn_02.png
|
81
|
+
- app/assets/images/playbtn_03.png
|
82
|
+
- app/assets/images/playbtn_04.png
|
83
|
+
- app/assets/javascripts/jquery-1.5.2.min.js
|
84
|
+
- app/assets/javascripts/jquery.bxSlider.min.js
|
85
|
+
- app/assets/javascripts/jquery.colorbox-min.js
|
86
|
+
- app/assets/javascripts/refinerycms-pods.js
|
87
|
+
- app/assets/stylesheets/colorbox.css
|
88
|
+
- app/assets/stylesheets/refinerycms-pods.scss
|
89
|
+
- app/assets/stylesheets/variables.scss
|
64
90
|
- app/controllers/refinery/pods/admin/pods_controller.rb
|
65
91
|
- app/controllers/refinery/pods/pods_controller.rb
|
66
92
|
- app/models/refinery/pods/pod.rb
|
@@ -81,27 +107,6 @@ files:
|
|
81
107
|
- db/migrate/1_create_pods_pods.rb
|
82
108
|
- db/migrate/2_create_pods_pages_pods.rb
|
83
109
|
- db/seeds.rb
|
84
|
-
- public/images/bx_next_gal.png
|
85
|
-
- public/images/bx_prev_gal.png
|
86
|
-
- public/images/colorbox/border.png
|
87
|
-
- public/images/colorbox/controls.png
|
88
|
-
- public/images/colorbox/ie6/borderBottomCenter.png
|
89
|
-
- public/images/colorbox/ie6/borderBottomLeft.png
|
90
|
-
- public/images/colorbox/ie6/borderBottomRight.png
|
91
|
-
- public/images/colorbox/ie6/borderMiddleLeft.png
|
92
|
-
- public/images/colorbox/ie6/borderMiddleRight.png
|
93
|
-
- public/images/colorbox/ie6/borderTopCenter.png
|
94
|
-
- public/images/colorbox/ie6/borderTopLeft.png
|
95
|
-
- public/images/colorbox/ie6/borderTopRight.png
|
96
|
-
- public/images/colorbox/loading.gif
|
97
|
-
- public/images/colorbox/loading_background.png
|
98
|
-
- public/images/colorbox/overlay.png
|
99
|
-
- public/javascripts/jquery-1.5.2.min.js
|
100
|
-
- public/javascripts/jquery.bxSlider.min.js
|
101
|
-
- public/javascripts/jquery.colorbox-min.js
|
102
|
-
- public/javascripts/refinerycms-pods.js
|
103
|
-
- public/stylesheets/colorbox.css
|
104
|
-
- public/stylesheets/refinerycms-pods.css
|
105
110
|
- readme.md
|
106
111
|
homepage: https://github.com/julesce/refinerycms-pods
|
107
112
|
licenses: []
|
@@ -1,4 +0,0 @@
|
|
1
|
-
.gallery_pod { width:280px; background:#eeeadf; padding:10px; z-index:1; border:1px solid #beb6a8;}
|
2
|
-
.gallery_pod ul { list-style:none; margin:0px; padding:0px; }
|
3
|
-
.gallery_pod .bx-prev { position:absolute; top:0px; display:block; text-indent:-9999em; width:20px; height:180px; background:url(../images/bx_prev_gal.png); }
|
4
|
-
.gallery_pod .bx-next { position:absolute; top:0px; right:0px; display:block; text-indent:-9999em; width:20px; height:180px; background:url(../images/bx_next_gal.png); }
|