src/Extensions/CwpSiteTreeFileExtension.php
public function BackLinkHTMLList()
    {
        $html = '<em>' . _t(
            __CLASS__ . '.BACKLINK_LIST_DESCRIPTION',
            'This list shows all pages where the file has been added through a WYSIWYG editor.'
        ) . '</em>';
        $html .= '<ul>';

        foreach ($this->owner->BackLinkTracking() as $backLink) {
            $listItem = '<li>';

            // Add the page link
            $listItem .= '<a href="' . $backLink->Link() . '" target="_blank">'
                . Convert::raw2xml($backLink->MenuTitle) . '</a> &ndash; ';

            // Add the CMS link
            $listItem .= '<a href="' . $backLink->CMSEditLink() . '">'
                . _t(__CLASS__ . '.EDIT', 'Edit') . '</a>';

            $html .= $listItem . '</li>';
        }

        $html .= '</ul>';

        return $html;
    }
public function BackLinkHTMLList()
    {
        $html = '<em>' . _t(
            __CLASS__ . '.BACKLINK_LIST_DESCRIPTION',
            'This list shows all pages where the file has been added through a WYSIWYG editor.'
        ) . '</em>';
        $html .= '<ul>';

        foreach ($this->owner->BackLinkTracking() as $backLink) {
            $listItem = '<li>';

            // Add the page link
            $listItem .= '<a href="' . $backLink->Link() . '" target="_blank">'
                . Convert::raw2xml($backLink->MenuTitle) . '</a> &ndash; ';

            // Add the CMS link
            $listItem .= '<a href="' . $backLink->CMSEditLink() . '">'
                . _t(__CLASS__ . '.EDIT', 'Edit') . '</a>';

            $html .= $listItem . '</li>';
        }

        $html .= '</ul>';

        return $html;
    }
public function BackLinkHTMLList ( ) { $ html = '<em>' . _t ( __CLASS__ . '.BACKLINK_LIST_DESCRIPTION' , 'This list shows all pages where the file has been added through a WYSIWYG editor.' ) . '</em>' ; $ html .= '<ul>' ; foreach ( $ this -> owner -> BackLinkTracking ( ) as $ backLink ) { $ listItem = '<li>' ; // Add the page link $ listItem .= '<a href="' . $ backLink -> Link ( ) . '" target="_blank">' . Convert :: raw2xml ( $ backLink -> MenuTitle ) . '</a> &ndash; ' ; // Add the CMS link $ listItem .= '<a href="' . $ backLink -> CMSEditLink ( ) . '">' . _t ( __CLASS__ . '.EDIT' , 'Edit' ) . '</a>' ; $ html .= $ listItem . '</li>' ; } $ html .= '</ul>' ; return $ html ; }
Generate an HTML list which provides links to where a file is used.

@return string
Generate an HTML list which provides links to where a file is used .