function test_auto_discovery_link_tag() { $this->assertEqual('<link rel="alternate" title="RSS" type="application/rss+xml" href="mocked_rss2_url"/>', auto_discovery_link_tag()); $this->assertEqual('<link rel="alternate" title="RSS" type="application/rss+xml" href="source"/>', auto_discovery_link_tag("source")); $this->assertEqual('<link rel="alternate" title="ATOM" type="application/atom+xml" href="source"/>', auto_discovery_link_tag("source", "atom")); }
<?php echo auto_discovery_link_tag('rss', $content->getRoute() . '?sf_format=rss'); ?> <?php echo get_sympal_breadcrumbs($menuItem); ?> <h2><?php echo get_sympal_content_slot($content, 'title'); ?> </h2> <?php echo get_sympal_content_slot($content, 'header', 'Markdown'); ?> <?php $pagerNav = $dataGrid->getPagerNavigation($content->getRoute()); ?> <?php echo $dataGrid->getPagerHeader(); ?> <?php echo $pagerNav; ?> <?php
<?php if (sfConfig::get('app_sfSimpleForum_include_breadcrumb', true)) { slot('forum_navigation'); ?> <?php echo forum_breadcrumb(array(array(sfConfig::get('app_sfSimpleForumPlugin_forum_name', 'Forums'), 'sfSimpleForum/forumList'), array($topic->getsfSimpleForumForum()->getName(), 'sfSimpleForum/forum?forum_name=' . $topic->getsfSimpleForumForum()->getStrippedName()), $topic->getTitle())); end_slot(); } ?> <?php if (sfConfig::get('app_sfSimpleForumPlugin_use_feeds', true)) { slot('auto_discovery_link_tag'); ?> <?php echo auto_discovery_link_tag('rss', 'sfSimpleForum/topicFeed?id=' . $topic->getId() . '&stripped_title=' . $topic->getStrippedTitle(), array('title' => $feed_title)); end_slot(); } ?> <div class="sfSimpleForum"> <h1><?php echo $topic->getTitle(); ?> </h1> <ul class="forum_actions"> <?php if ($sf_user->hasCredential('moderator')) { ?>
<?php slot('feeds'); $rss['rel'] = "meta"; $rss['title'] = 'Get RDF'; echo auto_discovery_link_tag('rdf', '@rdf_schema_prop?id=' . $schema_property->getId(), $rss); ?> <?php echo auto_discovery_link_tag('rdf', $schema_property->getUri() . ".rdf", $rss); ?> <?php end_slot();
<?php slot('feeds'); $rss['link'] = "@schema_history_feed_rss?IdType=" . $sf_params->get('IdType') . "&id=" . $sf_params->get('id'); $rdf['link'] = "@schema_history_feed_rdf?IdType=" . $sf_params->get('IdType') . "&id=" . $sf_params->get('id'); $atom['link'] = "@schema_history_feed_atom?IdType=" . $sf_params->get('IdType') . "&id=" . $sf_params->get('id'); $rss['title'] = "RSS 2.01 History Feed"; $rdf['title'] = "RSS 1.0 (RDF) History Feed"; $atom['title'] = "Atom 1.0 History Feed"; echo auto_discovery_link_tag('rss', $rss['link'], $rss); echo auto_discovery_link_tag('rdf', $rdf['link'], $rdf); echo auto_discovery_link_tag('rss', $atom['link'], $atom); end_slot(); // auto-generated by sfPropelAdmin // date: 2009/06/26 23:03:12 ?> <ul class="sf_admin_actions"> <li> <?php echo link_to('rss2', $rss['link'], array("rel" => "alternate", "type" => "application/rss+xml", "title" => $rss['title'])); ?> </li> <li> <?php echo link_to('rss1', $rdf['link'], array("rel" => "alternate", "type" => "application/rdf+xml", "title" => $rdf['title'])); ?> </li> <li> <?php echo link_to('atom', $atom['link'], array("rel" => "alternate", "type" => "application/atom+xml", "title" => $atom['title'])); ?>
<?php slot('feeds'); $rss['rel'] = "meta"; $rss['title'] = 'Get RDF'; echo auto_discovery_link_tag('rdf', '@rdf_vocabulary?id=' . $vocabulary->getId(), $rss); ?> <?php echo auto_discovery_link_tag('rdf', $vocabulary->getUri() . ".rdf", $rss); ?> <?php end_slot();
<?php if (sfConfig::get('app_sfSimpleForumPlugin_use_feeds', true)) { ?> <?php slot('auto_discovery_link_tag'); ?> <?php echo auto_discovery_link_tag('rss', $feed_rule, array('title' => $feed_title)); ?> <?php end_slot(); } ?> <div class="forum_figures"> <?php echo link_to_if($display_topic_link, format_number_choice('[0]No topic yet|[1]One topic|(1,+Inf]%topics% topics', array('%topics%' => $nb_topics), $nb_topics), $topic_rule); ?> , <?php echo link_to_if($display_post_link, format_number_choice('[0]No message|[1]One message|(1,+Inf]%posts% messages', array('%posts%' => $nb_posts), $nb_posts), $post_rule); ?> <?php if (sfConfig::get('app_sfSimpleForumPlugin_use_feeds', true)) { ?> <?php echo link_to(image_tag('/sfSimpleForumPlugin/images/feed-icon.png', 'align=top'), $feed_rule, 'title=' . $feed_title);
<?php use_helper('I18N', 'Date'); $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?')); ?> <?php if (sfConfig::get('app_sfSimpleBlog_use_feeds', true)) { ?> <?php slot('auto_discovery_link_tag'); ?> <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsForTagFeed?tag=' . $sf_params->get('tag'), array('title' => __('Posts tagged "%1%" from %2%', array('%1%' => $sf_params->get('tag'), '%2%' => sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?'))))); ?> <?php end_slot(); } ?> <h3><?php echo __('Posts tagged "%1%"', array('%1%' => $sf_params->get('tag'))); ?> </h3> <span class="sfSimpleBlog"> <?php foreach ($post_pager->getResults() as $post) { ?> <?php include_partial('sfSimpleBlog/post' . (sfConfig::get('app_sfSimpleBlog_use_post_extract', true) ? '_short' : ''), array('post' => $post, 'in_list' => true)); }
<?php use_helper('I18N', 'sfSimpleBlog') ?> <?php slot('title') ?> <?php echo sfConfig::get('app_sfSimpleBlog_title', 'sfSimpleBlog').' | '.$post->getTitle() ?> <?php end_slot() ?> <?php if(sfConfig::get('app_sfSimpleBlog_use_feeds', true)): ?> <?php slot('auto_discovery_link_tag') ?> <?php echo auto_discovery_link_tag('rss', sfSimpleBlogTools::generateFeedUri($post, null, 'commentsForPostFeed').'&format=rss', array('title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('app_sfSimpleBlog_title', 'sfSimpleBlog'))))) ?> <?php end_slot() ?> <?php endif; ?> <span class="sfSimpleBlog"> <?php include_partial('sfSimpleBlog/post', array('post' => $post, 'in_list' => false)) ?> <?php include_component('sfNestedComment', 'showComments', array('object' => $post)) ?> </span> <?php $link_prev = link_to_previous_post($post) ?> <?php $link_next = link_to_next_post($post) ?> <?php if ($link_prev || $link_next): ?> <div id="nav-below" class="navigation"> <?php if($link_prev): ?> <div class="nav-previous"> <span class="meta-nav">←</span><?php echo $link_prev ?> </div> <?php endif; ?> <?php if($link_next): ?> <div class="nav-next"> <?php echo $link_next ?><span class="meta-nav">→</span> </div> <?php endif; ?> </div>
$response->getParameterHolder()->remove('title', 'helper/asset/auto/meta'); echo include_metas(); minify_include_main_stylesheets($combine, $debug); minify_include_custom_stylesheets($combine, $debug); /* here go portal specific css, and maps css (which are not present on every page) */ ?> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="<?php echo minify_get_combined_files_url('/static/css/ie7.css', $debug); ?> " /><![endif]--> <!--[if lt IE 9]><script src="<?php echo minify_get_combined_files_url(array('/static/js/html5shiv.js', '/static/js/autofocus.js', '/static/js/indexof.js'), $debug); ?> "></script><![endif]--> <?php echo auto_discovery_link_tag('rss', $rss); echo include_meta_links(); echo '<link rel="canonical" href="http://' . $_SERVER['HTTP_HOST'] . ($_SERVER['REQUEST_URI'] != '/' ? $_SERVER['REQUEST_URI'] : '') . '" />'; ?> <link rel="search" type="application/opensearchdescription+xml" href="<?php echo $static_base_url; ?> /static/opensearch/description.xml" title="Camptocamp.org" /> <meta name="msapplication-TileColor" content="#2d89ef"> <meta name="msapplication-TileImage" content="<?php echo $static_base_url; ?> /mstile-144x144.png"> </head> <body itemscope itemtype="http://schema.org/WebPage"> <?php
if (sfConfig::get('app_sfSimpleBlog_use_ajax', true)) { ?> <?php use_javascript(sfConfig::get('sf_prototype_web_dir') . '/js/prototype.js'); } $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?') . ' > ' . $post->getTitle()); ?> <?php if (sfConfig::get('app_sfSimpleBlog_use_feeds', true)) { ?> <?php slot('auto_discovery_link_tag'); ?> <?php echo auto_discovery_link_tag('rss', sfSimpleBlogTools::generatePostUri($post, null, 'commentsForPostFeed'), array('title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?'))))); ?> <?php end_slot(); } ?> <span class="sfSimpleBlog"> <?php include_partial('sfSimpleBlog/post', array('post' => $post, 'in_list' => false)); ?> <div class="comments" id="comments"> <?php
<?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();
?> <!-- // Render Style Tags --> <?php include_javascripts(); ?> <!-- // Render JavaScript Tags --> <!------ Include PNG corrections when Internet Explorer 7 or lower is used --> <!--[if lt IE 7 ]> <script src="/rtUserPlugin/js/dd_belatedpng.js"></script> <script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script> <![endif]--> <!------ Feed Tag --> <?php echo auto_discovery_link_tag('rss', '@rt_blog_page_feed?format=rss'); ?> <!------ Favicon --> <link rel="shortcut icon" href="/rtUserPlugin/img/favicon.ico"> <link rel="apple-touch-icon" href="/rtUserPlugin/img/apple-touch-icon.png"> </head> <body> <div id="rt-container"> <div id="rt-header"> <?php echo link_to(sfConfig::get('app_rt_title', ''), 'homepage', array(), array('class' => 'logo')); ?>
<?php use_helper('I18N', 'Date'); $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?')); ?> <?php if (sfConfig::get('app_sfSimpleBlog_use_feeds', true)) { slot('auto_discovery_link_tag'); ?> <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsFeed', array('title' => __('Posts from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?'))))); end_slot(); } ?> <span class="sfSimpleBlog"> <?php foreach ($post_pager->getResults() as $post) { ?> <?php include_partial('sfSimpleBlog/post' . (sfConfig::get('app_sfSimpleBlog_use_post_extract', true) ? '_short' : ''), array('post' => $post, 'in_list' => true, 'sf_cache_key' => $post->getId())); } ?> </span> <?php if ($post_pager->haveToPaginate()) { ?> <?php if ($post_pager->getPage() != 1) {
<?php slot('feeds'); $rss['rel'] = "meta"; $rss['title'] = 'Get RDF'; echo auto_discovery_link_tag('rdf', '@rdf_concept?id=' . $concept->getId(), $rss); ?> <?php echo auto_discovery_link_tag('rdf', $concept->getUri() . ".rdf", $rss); ?> <?php end_slot();
<?php use_helper('I18N', 'Date') ?> <?php if(sfConfig::get('app_sfSimpleBlog_use_feeds', true)): ?> <?php slot('auto_discovery_link_tag') ?> <?php echo auto_discovery_link_tag('rss', '@sf_simple_blog_posts_tag_feed?tag='.$sf_params->get('tag').'&format=rss', array('title' => __('Posts tagged "%1%" from %2%', array('%1%' => $sf_params->get('tag'), '%2%' => sfConfig::get('app_sfSimpleBlog_title', 'How is life on earth?'))))) ?> <?php end_slot() ?> <?php endif; ?> <?php $title = __('Posts tagged "%1%"', array('%1%' => $sf_params->get('tag'))) ?> <?php slot('title') ?> <?php echo sfConfig::get('app_sfSimpleBlog_title', 'sfSimpleBlog').' | '.$title ?> <?php end_slot() ?> <h3><?php echo $title ?></h3> <span class="sfSimpleBlog"> <?php foreach($post_pager->getResults() as $post): ?> <?php include_partial('sfSimpleBlog/post' . (sfConfig::get('app_sfSimpleBlog_use_post_extract', true) ? '_short' : ''), array('post' => $post, 'in_list' => true)) ?> <?php endforeach; ?> </span> <?php if($post_pager->haveToPaginate()): ?> <div id="nav-below" class="navigation"> <?php if($post_pager->getPage() != 1): ?> <div class="nav-next"> <?php echo link_to(__('earlier posts'), '@sf_simple_blog_show_by_tag?tag='.$sf_params->get('tag').'&page='.$post_pager->getPreviousPage()) ?><span class="meta-nav">→</span> </div> <?php elseif($post_pager->getPage() != $post_pager->getLastPage()): ?> <div class="nav-previous"> <span class="meta-nav">←</span><?php echo link_to(__('older posts'), '@sf_simple_blog_show_by_tag?tag='.$sf_params->get('tag').'&page='.$post_pager->getNextPage()) ?> </div> <?php endif; ?>
<?php echo include_http_metas(); echo include_metas(); ?> <?php echo include_title(); ?> <?php echo auto_discovery_link_tag('rss', 'feed/popular'); echo auto_discovery_link_tag('rss', 'feed/recentQuestions'); echo auto_discovery_link_tag('rss', 'feed/recentAnswers'); ?> <link rel="shortcut icon" href="/favicon.ico"> </head> <body> <?php use_helper('Javascript'); ?> <div id="indicator" style="display: none"></div> <div id="header"> <ul>
<?php use_helper('I18N', 'Date', 'sfSimpleBlogPagination') ?> <?php if(sfConfig::get('app_sfSimpleBlog_use_feeds', true)): ?> <?php slot('auto_discovery_link_tag') ?> <?php echo auto_discovery_link_tag('rss', '@sf_simple_blog_posts_feed?format=rss', array('title' => __('Posts from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_title', 'sfSimpleBlog'))))) ?> <?php end_slot() ?> <?php endif; ?> <?php foreach($post_pager->getResults() as $post): ?> <?php if (sfConfig::get('app_sfSimpleBlog_use_post_extract', true)): ?> <?php include_partial('sfSimpleBlog/post_short', array('post' => $post, 'in_list' => true)) ?> <?php else: ?> <?php include_partial('sfSimpleBlog/post', array('post' => $post, 'in_list' => true)) ?> <?php endif; ?> <div class="article-separator"></div> <?php endforeach; ?> <?php echo page_pagination($post_pager, '@homepage', $sf_request->getParameterHolder(), 'Older Posts', 'Earlier Posts') ?>