<?php if ($podcast->getImageUrl()) { ?> <?php echo link_to(image_tag($podcast->getImageUrl(), array('class' => 'cover')), 'podcast/edit?id=' . $podcast->getId()); ?> <?php } else { ?> <img class="cover" /> <?php } ?> <h3> <?php echo link_to($podcast->getTitle(), 'podcast/edit?id=' . $podcast->getId()); ?> </h3> <?php echo link_to_with_icon('Add episode', "add", 'episode/add?podcast_id=' . $podcast->getId()); ?> </div> <?php } ?> <p><?php echo link_to_with_icon('New podcast', "add", 'podcast/add'); ?> </p>
<?php } ?> <h2>Episodes</h2> <?php if ($episodes) { ?> <ul> <?php foreach ($episodes as $episode) { ?> <li> <?php echo link_to_with_icon($episode->getCreatedAt('Y M d') . ' - ' . $episode->getTitle(), 'episode', $episode->getUri()); ?> </li> <?php } ?> </ul> <?php } slot('feed'); foreach ($feeds as $feed) { foreach ($feed->getUris() as $format => $uri) { echo auto_discovery_link_tag('rss', $uri, array('title' => ($feed->getTitle() == 'default' ? '' : $feed->getTitle() . ' ') . 'via ' . $format)); } } end_slot();
echo url_for('account/logout'); ?> " method="POST"> <?php echo $logout_form['_csrf_token']; ?> </form> <script type="text/javascript"> $$('.signup a').first().observe('click', function(event) { Event.stop(event); $('logout_form').submit(); }); </script> <?php } else { echo link_to_with_icon('Login', 'user', 'account/login'); } ?> </li> </ul> </div> </div> </div> <div id="body_wrapper"> <?php if ($sf_user->hasFlash('notice')) { ?> <div id="notice"><?php
<?php } ?> </div> <h2>Episodes</h2> <ul> <?php if ($episodes) { ?> <?php foreach ($episodes as $episode) { ?> <li> <?php echo link_to_with_icon($episode->getCreatedAt('Y M d') . ' - ' . $episode->getTitle(), 'episode', 'episode/edit?id=' . $episode->getId()); ?> </li> <?php } ?> <?php } ?> <?php if (true) { echo '<li>', link_to_with_icon('Add episode', 'add', 'episode/add?podcast_id=' . $podcast->getId()), '</li>'; } ?> </ul>