✨ Add source link
This commit is contained in:
parent
a64916d022
commit
1a9d858e70
4 changed files with 24 additions and 0 deletions
|
@ -156,6 +156,15 @@ echo Bootstrap::formInputHidden(array(
|
|||
'rows' => 5,
|
||||
'placeholder' => $L->get('this-field-can-help-describe-the-content')
|
||||
));
|
||||
|
||||
// Source Link
|
||||
echo Bootstrap::formInputTextBlock(array(
|
||||
'name' => 'sourceLink',
|
||||
'label' => $L->g('Source Link'),
|
||||
'placeholder' => '',
|
||||
'tip' => $L->g('The external link you refer to in the post'),
|
||||
'value' => $page->sourceLink()
|
||||
));
|
||||
?>
|
||||
|
||||
<!-- Cover Image -->
|
||||
|
|
|
@ -145,6 +145,15 @@ echo Bootstrap::formInputHidden(array(
|
|||
'rows' => 5,
|
||||
'placeholder' => $L->get('this-field-can-help-describe-the-content')
|
||||
));
|
||||
|
||||
// Source Link
|
||||
echo Bootstrap::formInputTextBlock(array(
|
||||
'name' => 'sourceLink',
|
||||
'label' => $L->g('Source Link'),
|
||||
'placeholder' => '',
|
||||
'tip' => $L->g('The external link you refer to in the post'),
|
||||
'value' => ''
|
||||
));
|
||||
?>
|
||||
|
||||
<!-- Cover Image -->
|
||||
|
|
|
@ -22,6 +22,7 @@ class Pages extends dbJSON
|
|||
'noindex' => false,
|
||||
'nofollow' => false,
|
||||
'noarchive' => false,
|
||||
'sourceLink'=>'',
|
||||
'custom' => array()
|
||||
);
|
||||
|
||||
|
|
|
@ -435,6 +435,11 @@ class Page
|
|||
return $this->getValue('noarchive');
|
||||
}
|
||||
|
||||
// retour the source link
|
||||
public function sourceLink() {
|
||||
return $this->getValue('sourceLink');
|
||||
}
|
||||
|
||||
// Returns the page slug
|
||||
public function slug()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue