summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-05-02 22:27:22 (GMT)
committer Stella Power2008-05-02 22:27:22 (GMT)
commitf2278a13faa4bec61aad6a62bfdb1141d4a2708f (patch)
treec7e6b970e4a28b5388254fa481138a6cc1af29a9
parentc060edffad66802fc3abc07c267d4d7db8738a21 (diff)
Updated filter tips help text.
-rw-r--r--lightbox2.module20
1 files changed, 19 insertions, 1 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 216c9f9..ad890b6 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -642,6 +642,20 @@ function lightbox2_filter_tips($delta, $format, $long = FALSE) {
return $output;
}
}
+ else if ($delta == 4) {
+ if (!$long) {
+ return t('Links to video content with \'rel="lightvideo"\' in the <a> tag will appear in a Lightbox when clicked on.');
+ }
+ else {
+ $output = '<p>'. t('It\'s possible to show video content in the lightbox. In this case the "rel" attribute should be set to <code>lightvideo</code>. It\'s not possible to group videos but it is possible to control the size of the lightbox by setting the "width" and "height" properties. The properties can be configured like <code>lightvideo[width:300px; height: 200px;]</code>. The properties should all be of the format "property: value;" - note the closing semi-colon. If no properties are set, then the default width and height of 400px will be used. See below for more detailed examples.') .'</p>';
+ $output .= '<p>'. t('Basic example:') .'<br />';
+ $output .= t('<code>&lt;a href=&quot;http://video.google.com/videoplay?docid=1811233136844420765&quot; rel=&quot;lightvideo&quot;&gt;Google video example - default size&lt;/a&gt;</code>') .'</p>';
+ $output .= '<p>'. t('Controlling lightbox size example:') .'<br />';
+ $output .= t('<code>&lt;a href=&quot;http://video.google.com/videoplay?docid=1811233136844420765&quot; rel=&quot;lightvideo[width:400px; height:300px;]&quot;&gt;Google video example - custom size&lt;/a&gt;</code>') .'</p>';
+ $output .= '<p>'. t('Supported video formats include asx, wmv, mov and swf. A number of online video providers are also supported, including YouTube and Google Video. For a full list of the current supported video providers please see the documentation on drupal.org.') .'</p>';
+ return $output;
+ }
+ }
}
/**
@@ -654,7 +668,8 @@ function lightbox2_filter($op, $delta = 0, $format = -1, $text = '') {
0 => t('Lightbox filter'),
1 => t('Lightbox G2 filter'),
2 => t('Lightbox slideshow filter'),
- 3 => t('Lightbox iframe filter')
+ 3 => t('Lightbox iframe filter'),
+ 4 => t('Lightbox video filter'),
);
case 'description':
@@ -670,6 +685,9 @@ function lightbox2_filter($op, $delta = 0, $format = -1, $text = '') {
else if ($delta == 3) {
return t('Links to HTML content with \'rel="lightframe"\' in the &lt;a&gt; tag will appear in a Lightbox when clicked on.');
}
+ else if ($delta == 4) {
+ return t('Links to video content with \'rel="lightvideo"\' in the &lt;a&gt; tag will appear in a Lightbox when clicked on.');
+ }
case 'process':
if ($delta == 1) {