Hello everyone I love this cms and will try to help as you can.
First of all sorry for my English I'm learning.
This is my first contribution I hope will be useful is a snippet that converts images into links style, also add the Ligthbox extracted from the cms.
A template was tested in the bootstrap, in the other there will have to edit the css
More tomorrow.
<style>
#lightbox {
position: fixed;
top: 60px;
left: 0;
width: 100%;
height: 100%;
background: #444;
text-align: center;
z-index: 10000;
cursor:pointer;
}
#lightbox p {
text-align: center;
color: #DDD;
margin-right: 20px;
font-size: 14px;
background: #333;
width: 100%;
}
#lightbox img {
box-shadow:0 0 25px #111;
-webkit-box-shadow:0 0 25px #111;
-moz-box-shadow:0 0 25px #111;
max-width:940px;
}
.drop-shadow {
position:relative;
float:left;
width:40%;
padding:1em;
margin:2em 10px 4em;
background:#fff;
-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
}
.drop-shadow:before, .drop-shadow:after {
content:"";
position:absolute;
z-index:-2;
}
.drop-shadow p {
font-size:16px;
font-weight:bold;
}
.lifted {
-moz-border-radius:4px;
border-radius:4px;
}
.lifted:before, .lifted:after {
bottom:15px;
left:10px;
width:50%;
height:20%;
max-width:300px;
-webkit-box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
-moz-box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
-webkit-transform:rotate(-3deg);
-moz-transform:rotate(-3deg);
-ms-transform:rotate(-3deg);
-o-transform:rotate(-3deg);
transform:rotate(-3deg);
}
.lifted:after {
right:10px;
left:auto;
-webkit-transform:rotate(3deg);
-moz-transform:rotate(3deg);
-ms-transform:rotate(3deg);
-o-transform:rotate(3deg);
transform:rotate(3deg);
}
</style>
<script>
$('img').wrap('<a class="drop-shadow lifted lightbox_trigger" href="#" title="" target="_blanck"></a>');
$('img').each(function(n){
$(this).parent().addClass('fancybox img-' + n );
});
$('a img').each(function(){
var img = $(this);
var a = img.parent();
a.attr({href:img.attr('src'),title:img.attr('title')}) ;
});
jQuery(document).ready(function(a){
a(".lightbox_trigger").click(function(b){
b.preventDefault();var c=a(this).attr("href");
if(
a("#lightbox").length>0){
a("#content").html('<img src="'+c+'" />');
a("#lightbox").show()}
else{
var d='<div id="lightbox">'+"<p>Click to close</p>"+'<div id="content">'+'<img src="'+c+'" />'+"</div>"+"</div>";
a("body").append(d)}});
a("#lightbox").live("click",function(){
a("#lightbox").hide()})})
</script>
<div class="clearfix"></div>