mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Added stylesheet to gallery
This commit is contained in:
parent
a4bc52b831
commit
c41b3e4b31
@ -33,6 +33,7 @@ if (!getperms("P") || !plugInstalled('gallery'))
|
||||
header('location:'.e_BASE.'index.php');
|
||||
exit;
|
||||
}
|
||||
e107::getJs()->pluginCSS('gallery', 'gallery_style.css');
|
||||
require_once(HEADERF);
|
||||
|
||||
|
||||
|
25
e107_plugins/gallery/gallery_style.css
Normal file
25
e107_plugins/gallery/gallery_style.css
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
|
||||
/* IMAGE LIST */
|
||||
|
||||
.gallery-list-start { clear:both; }
|
||||
|
||||
.gallery-list-item { width:190px; height:180px; float:left; margin:3px; border:1px solid #000000; background-color:#000000 }
|
||||
|
||||
.gallery-list-end { text-align:center; clear:both; padding-top:20px; }
|
||||
|
||||
.gallery-list-caption { display:block; text-align:center; color:#FFFFFF; }
|
||||
|
||||
|
||||
/* CATEGORY LIST */
|
||||
|
||||
.gallery-cat-start { clear:both; }
|
||||
|
||||
.gallery-cat-item { width:190px; height:180px; float:left; margin:3px; border:1px solid #000000; background-color:#000000; }
|
||||
|
||||
.gallery-cat-end { text-align:center; clear:both; }
|
||||
|
||||
.gallery-cat-title { text-align:center; }
|
||||
|
||||
|
@ -13,13 +13,19 @@ class gallery_shortcodes extends e_shortcode
|
||||
{
|
||||
function sc_gallery_caption($parm='')
|
||||
{
|
||||
return $this->eParserVars['media_caption'];
|
||||
$text = "<a href='".e107::getParser()->replaceConstants($this->eParserVars['media_url'])."' rel='external shadowbox' >";
|
||||
$text .= $this->eParserVars['media_caption'];
|
||||
$text .= "</a>";
|
||||
return $text;
|
||||
}
|
||||
|
||||
function sc_gallery_thumb($parm='')
|
||||
{
|
||||
$att = ($parm) ?$parm : 'aw=190&ah=150';
|
||||
return "<img src='".e107::getParser()->thumbUrl($this->eParserVars['media_url'],$att)."' alt='' />";
|
||||
$text = "<a href='".e107::getParser()->replaceConstants($this->eParserVars['media_url'])."' rel='external shadowbox' >";
|
||||
$text .= "<img src='".e107::getParser()->thumbUrl($this->eParserVars['media_url'],$att)."' alt='' />";
|
||||
$text .= "</a>";
|
||||
return $text;
|
||||
}
|
||||
|
||||
function sc_gallery_cat_title($parm='')
|
||||
|
@ -1,40 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012 e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id: e_shortcode.php 12438 2011-12-05 15:12:56Z secretr $
|
||||
*
|
||||
* Gallery Template
|
||||
*/
|
||||
|
||||
|
||||
$GALLERY_TEMPLATE['LIST_START'] =
|
||||
"<div class='gallery-list-start' style='clear:both'>";
|
||||
"<div class='gallery-list-start'>";
|
||||
|
||||
|
||||
$GALLERY_TEMPLATE['LIST_ITEM'] =
|
||||
"<div style='width:190px;height:180px;float:left;margin:3px;border:1px solid black;background-color:black'>
|
||||
"<div class='gallery-list-item'>
|
||||
<div>{GALLERY_THUMB}</div>
|
||||
<div style='display:block;text-align:center;color:white;'>{GALLERY_CAPTION}</div>
|
||||
<div class='gallery-list-caption'>{GALLERY_CAPTION}</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$GALLERY_TEMPLATE['LIST_END'] =
|
||||
"</div>
|
||||
<div class='gallery-list-end' style='text-align:center;clear:both'>
|
||||
<div class='gallery-list-end' >
|
||||
<a href='".e_SELF."'>Back to Categories</a>
|
||||
</div>
|
||||
";
|
||||
|
||||
|
||||
$GALLERY_TEMPLATE['CAT_START'] =
|
||||
"<div class='gallery-cat-start' style='clear:both'>";
|
||||
"<div class='gallery-cat-start'>";
|
||||
|
||||
|
||||
$GALLERY_TEMPLATE['CAT_ITEM'] =
|
||||
"<div style='width:190px;height:180px;float:left;margin:3px;border:1px solid black;background-color:black'>
|
||||
<div>{GALLERY_CAT_THUMB}</div>
|
||||
<div style='text-align:center'><h3>{GALLERY_CAT_TITLE}</h3></div>
|
||||
"<div class='gallery-cat-item'>
|
||||
<div class='gallery-cat-thumb'>{GALLERY_CAT_THUMB}</div>
|
||||
<div class='gallery-cat-title'><h3>{GALLERY_CAT_TITLE}</h3></div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$GALLERY_TEMPLATE['CAT_END'] =
|
||||
"</div>
|
||||
<div class='gallery-cat-end' style='text-align:center;clear:both'>
|
||||
<div class='gallery-cat-end'>
|
||||
</div>
|
||||
";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user