/php/component/link_viewer/link_publication_list_renderer.class.php
https://bitbucket.org/chamilo/chamilo-app-weblcms-link/ · PHP · 24 lines · 16 code · 4 blank · 4 comment · 0 complexity · 3d3b537aca23d2e0e5b5ea00c13af91f MD5 · raw file
- <?php
- namespace application\weblcms\tool\link;
-
- use application\weblcms\ListContentObjectPublicationListRenderer;
-
- /**
- * $Id: link_publication_list_renderer.class.php 216 2009-11-13 14:08:06Z kariboe $
- * @package application.lib.weblcms.tool.link.component.link_viewer
- */
- class LinkPublicationListRenderer extends ListContentObjectPublicationListRenderer
- {
-
- function __construct($browser)
- {
- parent :: __construct($browser);
- }
-
- function render_title($publication)
- {
- $url = $publication->get_content_object()->get_url();
- return '<a target="about:blank" href="' . htmlentities($url) . '">' . parent :: render_title($publication) . '</a>';
- }
- }
- ?>