Sunday, December 26, 2010

New Links


I present you hack transformation options for DataLife Engine. Powered by CSS2.0 support each browser. 
The trick is that when you hover on a link it is animated and the background turns to the left or right. Very nice to look at any design!



Installation?!
1. Open {THEME}/css/engine.css
add this code to your css.

/*  New Link by Ciorax & www.dlesupport.blogspot.com */
.newlink a {
    display: inline-block;
    padding: 4px;
    outline: 0;
    color: #587ed7;    
    -webkit-transition-duration: 0.25s;
    -moz-transition-duration: 0.25s;
    -o-transition-duration: 0.25s;
    transition-duration: 0.25s;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    -o-transition-property: -o-transform;
    transition-property: transform;
    -webkit-transform: scale(1) rotate(0);
    -moz-transform: scale(1) rotate(0);
    -o-transform: scale(1) rotate(0);
    transform: scale(1) rotate(0);
    }
.newlink a:hover {
    background: #587ed7;     
    text-decoration: none;
    color: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    -webkit-transform: scale(1.05) rotate(-1deg);
    -moz-transform: scale(1.05) rotate(-1deg);
    -o-transform: scale(1.05) rotate(-1deg);
    transform: scale(1.05) rotate(-1deg);
    }
.newlink a:nth-child(2n):hover {
    -webkit-transform: scale(1.05) rotate(1deg);
    -moz-transform: scale(1.05) rotate(1deg);
    -o-transform: scale(1.05) rotate(1deg);
    transform: scale(1.05) rotate(1deg);
    }

2. Open {THEME}/fullstory.tpl or {THEME}/shortstory.tpl
and add:
<div class="newlink">{fullstory}</div>
or
<div class="link">{short-story}</div>

That's all :)
 
 

Related Posts:

  • Add button in the WYSIWYG editor The buttons do the insertion into the body of news, anything. Doing for themselves, as they should be inserted into the short and full story frame with styles and so on.  Open: engine/editor/shortnews.php  Find:… Read More
  • How to insert PHP code in file main.tplmain.tpl file is a template file of DLE. There are cases when you need to insert PHP codes in It, but It is not allowed. So now I will show you a hack how to enable the insertion of PHP codes in main.tpl 1. Open file index.p… Read More
  • New Links I present you hack transformation options for DataLife Engine. Powered by CSS2.0 support each browser. The trick is that when you hover on a link it is animated and the background turns to the left or right. Very nice t… Read More
  • Datalife Engine Noindex Hack After 5 years I am back on using Datalife Engine CMS. And one of the problem I faced when trying to rank well for SEO was no index for tags, xfields or other pages I didn't want to. In wordpress it is simple, installing pl… Read More
  • How to add iframe in DLE post Adding iframe to Datalife Engine post is much easier than you may think. You don't need any modules. By default DLE allows iframe from only few domains because of security purposes. Let's say you want to embed a video or m… Read More

1 comment: