| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function BackLinkHTMLList() { |
||
| 25 | $html = '<em>' . _t('SiteTreeFileExtension.BACKLINK_LIST_DESCRIPTION', 'This list shows all pages where the file has been added through a WYSIWYG editor.') . '</em>'; |
||
| 26 | $html .= '<ul>'; |
||
| 27 | |||
| 28 | foreach ($this->owner->BackLinkTracking() as $backLink) { |
||
| 29 | $listItem = '<li>'; |
||
| 30 | |||
| 31 | // Add the page link |
||
| 32 | $listItem .= '<a href="' . $backLink->Link() . '" target="_blank">' . Convert::raw2xml($backLink->MenuTitle) . '</a> – '; |
||
| 33 | |||
| 34 | // Add the CMS link |
||
| 35 | $listItem .= '<a href="' . $backLink->CMSEditLink() . '">' . _t('SiteTreeFileExtension.EDIT', 'Edit') . '</a>'; |
||
| 36 | |||
| 37 | $html .= $listItem . '</li>'; |
||
| 38 | } |
||
| 39 | |||
| 40 | return $html .= '</ul>'; |
||
| 41 | } |
||
| 44 |