web_master adlı üyeden alıntı:
mesajı görüntüle
manset.php nin kendi css sine margin-left verebilirsin. yani kısacası bildiğin css yöntemiyle bunu yapabilrsin manşetle alakası yok
341
●66.539
<?php
echo '<!-- Wordpress Manset Eklentisi NipHeLL Tarafindan Kodlanmistir. bozlak216@gmail.com -->';
$manset = mysql_query("SELECT * FROM ".$table_prefix."postmeta LEFT OUTER JOIN ".$table_prefix."posts ON ".$table_prefix."postmeta.post_id = ".$table_prefix."posts.id Where ".$table_prefix."postmeta.meta_key='manset' ORDER By ".$table_prefix."postmeta.post_id DESC Limit 8");
for ($j=0; $niphell=mysql_fetch_array($manset); $j++){
if ($j==0){ $durum = 'block'; }else{ $durum = 'none'; }
if ($j%2==0){ $back = 'e9eaef'; }else{ $back = 'ffffff'; }
$baslik .= '<div id=manset'.$j.'a style="DISPLAY: '.$durum.'"> '.$niphell[post_title].'</div>
';
$resim .= '<div id=manset'.$j.'c style="DISPLAY: '.$durum.'"><img width="190" height="150" alt="'.$niphell[post_title].'" style="padding:3px; border:1px solid #CACACA;" hspace="5" src="'.$niphell[meta_value].'"/></div>
';
$baslik2 .= '<tr><td><div class="haber10" style="background-color:#'.$back.'"><a href="'.get_permalink($niphell[post_id]).'" target="_blank" onmouseover=showManset('.$j.')> <b>'.$niphell[post_title].'</b></a></div></td></tr>
';
$icerik .= '<div id=manset'.$j.'b style="DISPLAY: '.$durum.'"><font face="Arial" style="font-size:12px; "></font><br>'.mb_substr($niphell[post_content],0,150).' ...</div>
';
$js .= "hide('manset".$j."a');hide('manset".$j."b');hide('manset".$j."c');
";
}
?>
<script type="text/javascript">
function showManset(divID)
{
//alert("aa");
<?php echo $js; ?>
document.getElementById('manset'+divID+'a').style.display = 'block';
document.getElementById('manset'+divID+'b').style.display = 'block';
document.getElementById('manset'+divID+'c').style.display = 'block';
}
function hide(divID)
{
document.getElementById(''+divID+'').style.display = 'none';
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="haber_anasayfa">
<tr>
<td colspan="2" class="haber_baslik" align="justify" style="padding:5px 5px 5px 10px;">
<?php echo $baslik; ?>
</td>
</tr>
<tr>
<td width="190" align="center" valign="top">
<?php echo $resim; ?>
</td>
<td width="330" rowspan="2" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="98%">
<?php echo $baslik2; ?>
</table>
</td>
</tr>
<tr>
<td background="<?php bloginfo('template_url'); ?>/images/tadaltbg.gif" />
<?php echo $icerik; ?>
</td>
</tr>
</table>
<?php get_header(); ?>
<title>Üniversiteli Ülkücüler Ve İstanbul Üniversitesi Ülkücüleri</title>
<META NAME="keywords" CONTENT="ülkücü,üniversite,,milliyetçi,türkçü,türkeş,İstanbul,">
<META NAME="description" CONTENT="Üniversiteli Ülkücüler Ve İstanbul Üniversitesi Ülkücüleri">
<META HTTP-EQUIV="Content-Language" CONTENT="TR">
<META NAME="author" CONTENT="Üniversiteli Ülkücüler Ve İstanbul Üniversitesi Ülkücüleri">
<META NAME="distribution" CONTENT="Global">
<META NAME="copyright" CONTENT="Üniversiteli Ülkücüler Ve İstanbul Üniversitesi Ülkücüleri">
<!-- BEGIN content -->
<div id="content">
<!-- begin featured news -->
<div class="featured">
<h2>KARIŞIK HABERLER </h2>
<div id="featured">
<?php
$tmp_query = $wp_query;
query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
if (have_posts()) :
while (have_posts()) : the_post();
?>
<!-- begin post -->
<div class="fpost">
<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="details"></p>
<p><?php echo dp_clean($post->post_content, 300); ?></p>
</div>
<!-- end post -->
<?php endwhile; endif; ?>
</div>
</div>
<!-- end featured news -->
<?php
$wp_query = $tmp_query;
if (have_posts()) :
$odd = false;
while (have_posts()) : the_post();
$odd = !$odd;
?>
<!-- begin post -->
<div class="<?php if ($odd) echo 'uneven '; ?>post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<a href="<?php the_permalink(); ?>"></a>
<?php $screen = get_post_meta($post->ID,'screen', true); ?>
<img src="<?php echo ($screen); ?>" width="181" height="100" alt="" />
<p><?php echo dp_clean($post->post_content, 150); ?></p>
<div class="postmeta">
<p class="category"><?php the_category(', '); ?></p>
<p class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
</div>
</div>
<!-- end post -->
<?php endwhile; ?>
<div class="postnav">
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Eski Haberler') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
</div>
<?php else : ?>
<div class="notfound">
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?>
</div>
<!-- END content -->
<?php get_sidebar(); get_footer(); ?>