Visualizzare una parte della pagina ai soli registrati

Salve a tutti Vorrei riuscire a Nascondere o Visualizzare una parte di un post a chi non e registrato.
il Codice php della pagina in questione e
<!-- Movie Player Options -->

        <?php if($player OR $trailer){ ?>
           <div class="dooplay_player">
            <?php if($player_wht == 'regular'){ ?>
            <div id="playcontainer" class="play">
                <?php if($player_ads) echo "<div class='asgdc'>".stripslashes($player_ads)."</div>"; ?>
                <div id="dooplay_player_response"></div>
                             </div>

           <?php } ?>
            <h2><?php _d('Video Source'); ?> <span id="playernotice" data-text="<?php echo $tviews; ?>"><?php echo $tviews; ?></span></h2>
            <div id="playeroptions" class="<?php echo (!wp_is_mobile()) ? 'options scrolling' : 'options'; ?>">
                <ul>
                    <?php if($trailer){ ?>
                    <li id="player-option-trailer" class="dooplay_player_option jump on" data-post="<?=$post->ID;?>" data-nume="trailer">
                        <i class="icon-play3"></i>
                        <span class="title"><?php _d('Trailer'); ?></span>
                        <span class="flag"><i class="yt icon-youtube2"></i></span>
                        <span class="loader"></span>
                    </li>
                <?php } $num = 1; if($player){ foreach($player as $play){ ?>
                    <li id="player-option-<?=$num;?>" class="dooplay_player_option <?php if(!$trailer && $num == 1) echo 'jump on'; ?>" data-post="<?=$post->ID;?>" data-nume="<?=$num;?>">
                        <i class="icon-play3"></i>
                 <span class="title"><?=$play['name']; ?><?php _d(' & Download'); ?></span
                        <span class="server"></span>
                        <?php if(doo_isset($play,'idioma')) { echo "<span class='flag'><img src='".DOO_URI."/assets/img/flags/{$play['idioma']}.png'></span>"; } ?>
                                <span class="loader"></span>
                    </li>
                    <?php $num++; } } ?>
                </ul>
            </div>
        </div>
        <?php } ?>

inviato 16 giorni fa
Filmsit
X 0 X
Effettua l'accesso o registrati per rispondere a questa domanda