Örnek I HTML vardır:
<div id="red-nav-warp">
<ul id="red-nav-logo">
<li><img class="sponsors" id="sponsorone" src="media/img/logosmall.png" /></li>
</ul>
<ul class="clearfix" id="red-nav-list-member" >
<li><?php $themeSys->Href('logout',$langSys->get('LOGOUT')); ?></li>
<li><?php $themeSys->Href('settings',$langSys->get('SETTINGS')); ?></li>
</ul>
<ul class="clearfix" id="red-nav-list" >
<li><?php $themeSys->Href('home',$langSys->get('HOME')); ?></li>
<li><?php $themeSys->Href('why',$langSys->get('WHY')); ?></li>
<li><?php $themeSys->Href('register',$langSys->get('REGISTER')); ?></a></li>
<li><?php $themeSys->Href('account',$langSys->get('MEMBER')); ?></a></li>
<li><?php $themeSys->Href('community',$langSys->get('COMMUNITY')); ?></a></li>
<li><?php $themeSys->Href('blog',$langSys->get('BLOG')); ?></a></li>
<li><?php $themeSys->Href('partners',$langSys->get('PARTNERS')); ?></a></li>
</ul>
<div class="clearfix"></div>
</div><!-- END red-nav-warp -->
O bir kullanıcı oturum açmış olup olmadığını ne ben sadece göstermek istiyorum HTML bir kısmıdır.
<div id="red-nav-warp">
<ul id="red-nav-logo">
<li><img class="sponsors" id="sponsorone" src="media/img/logosmall.png" /></li>
</ul>
<!-- hidden or no output -->
<ul class="clearfix" id="red-nav-list" >
<li><?php $themeSys->Href('home',$langSys->get('HOME')); ?></li>
<li><?php $themeSys->Href('why',$langSys->get('WHY')); ?></li>
<li><?php $themeSys->Href('register',$langSys->get('REGISTER')); ?></a></li>
<li><?php $themeSys->Href('account',$langSys->get('MEMBER')); ?></a></li>
<li><?php $themeSys->Href('community',$langSys->get('COMMUNITY')); ?></a></li>
<li><?php $themeSys->Href('blog',$langSys->get('BLOG')); ?></a></li>
<li><?php $themeSys->Href('partners',$langSys->get('PARTNERS')); ?></a></li>
</ul>
<div class="clearfix"></div>
</div><!-- END red-nav-warp -->
Herkes bir fikir ya da ben gibi yazmak, böylece şeyleri gizleyebilirsiniz bir örnek sınıf var (eğer mümkünse daha iyi bir sınıf.)
<div id="red-nav-warp">
<ul id="red-nav-logo">
<li><img class="sponsors" id="sponsorone" src="media/img/logosmall.png" /></li>
</ul>
<?php $hideSys->hiddenbelow(); ?> <!-- some hide class or some magic -->
<ul class="clearfix" id="red-nav-list-member" >
<li><?php $themeSys->Href('logout',$langSys->get('LOGOUT')); ?></li>
<li><?php $themeSys->Href('settings',$langSys->get('SETTINGS')); ?></li>
</ul>
<?php $hideSys->stop(); ?> <!-- end some hide class or some magic -->
<ul class="clearfix" id="red-nav-list" >
<li><?php $themeSys->Href('home',$langSys->get('HOME')); ?></li>
<li><?php $themeSys->Href('why',$langSys->get('WHY')); ?></li>
<li><?php $themeSys->Href('register',$langSys->get('REGISTER')); ?></a></li>
<li><?php $themeSys->Href('account',$langSys->get('MEMBER')); ?></a></li>
<li><?php $themeSys->Href('community',$langSys->get('COMMUNITY')); ?></a></li>
<li><?php $themeSys->Href('blog',$langSys->get('BLOG')); ?></a></li>
<li><?php $themeSys->Href('partners',$langSys->get('PARTNERS')); ?></a></li>
</ul>
<div class="clearfix"></div>
</div><!-- END red-nav-warp -->
Ben yaptım, ve evet ben başarısız bir epik nedir bilmek en azından deniyorum :)
<?php
/**
* TRYING TO HIDE SOME PART OF HTML
* useing if $_Session['login'] = true;
*/
class Hideing
{
function __construct()
{
}
function hiddenbelow()
{
return "if($_Session['login']){"; // epic fail
}
function stop()
{
return "}";
}
}
$hideSys = new Hideing;
?>
Seyir için teşekkürler,
Adam Ramazan