~
Advanced Hosters -

m_Stasuk
: 23.12.2007
: 5967
Contest (: 2)
# : 12, 2011 9:38 pm
!
. txt .

. ?
WP

--

Codd
: 13.01.2011
: 186
# : 13, 2011 8:08 am
functions.php
:

function get_teasers($num){
    $teasers = parse_ini_file('info.ini', true);

    shuffle($teasers); //

    foreach($teasers as $key => $value){
        echo '<div class="teaser"><a href="' .$value['link']. '"><span class="teaser_title">' .$value['title']. '</span><img src ="/teasers_img/' .$value['img']. '" alt=""/></a></div>';
       
        $key++;
        if($num == $key) break;
    }
}



teasers_img, .
info.ini,

:

[t1]
img = teaser1.png
title =
link = http://www.armadaboard.com/

[t2]
img = teas33er212.png
title =
link = http://www.armadaboard.com/



, ,

:
<?php get_teasers(2); ?>



2 - .

.

m_Stasuk
: 23.12.2007
: 5967
Contest (: 2)
# : 13, 2011 10:19 am
Smile

--
    ~