133 lines
4.8 KiB
PHP
133 lines
4.8 KiB
PHP
|
<div id="socialContainer">
|
||
|
<div class="row">
|
||
|
<div class="col12">
|
||
|
<div class="block">
|
||
|
<h4>Paramètres
|
||
|
<span id="specialeHelpButton" class="helpDisplayButton">
|
||
|
<a href="https://doc.deltacms.fr/referencement" target="_blank">
|
||
|
<?php echo template::ico('help', 'left');?>
|
||
|
</a>
|
||
|
</span>
|
||
|
</h4>
|
||
|
<div class="row">
|
||
|
<div class="col4 offset1">
|
||
|
<div class="row">
|
||
|
<div class="col12" id="take_screenshoot">
|
||
|
<?php $texte = $_SESSION['screenshot'] === 'on' ? 'Désactiver le mode de capture Open Graph': 'Activer le mode de capture Open Graph';
|
||
|
echo template::button('socialMetaImage', [
|
||
|
'href' => helper::baseUrl() . 'config/configOpenGraph',
|
||
|
'value' => $texte
|
||
|
|
||
|
]); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col12">
|
||
|
<?php echo template::button('socialSiteMap', [
|
||
|
'href' => helper::baseUrl() . 'config/generateFiles',
|
||
|
'value' => 'Générer sitemap.xml et robots.txt'
|
||
|
]); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col12">
|
||
|
<?php echo template::checkbox('seoRobots', true, 'Autoriser les robots à référencer le site', [
|
||
|
'checked' => $this->getData(['config', 'seo','robots'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col6 offset1">
|
||
|
<?php if (file_exists(self::FILE_DIR.'source/screenshot.jpg')){ ?>
|
||
|
<div class="row">
|
||
|
<div class="col8 offset2 textAlignCenter">
|
||
|
<img src="<?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.jpg';?>" data-tippy-content="Cette capture d'écran est nécessaire aux partages sur les réseaux sociaux. Pour la régénérer activer le mode de capture Open Graph et cliquer sur l'appareil photo en bas à droite." />
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php } else{?>
|
||
|
<div class="row">
|
||
|
<div class="col8 offset2 textAlignCenter">
|
||
|
<h4>Image screenshot.jpg absente</h4><p>L'activation du mode de capture Open Graph fait apparaître un appareil photo en bas de page. Un clic dessus génère une image screenshot.jpg à partir de la page active.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php }?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col12">
|
||
|
<div class="block">
|
||
|
<h4>Réseaux sociaux
|
||
|
<span id="specialeHelpButton" class="helpDisplayButton">
|
||
|
<a href="https://doc.deltacms.fr/referencement#reseaux-sociaux" target="_blank">
|
||
|
<?php echo template::ico('help', 'left');?>
|
||
|
</a>
|
||
|
</span>
|
||
|
</h4>
|
||
|
<div class="row">
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialFacebookId', [
|
||
|
'help' => 'Saisissez votre ID : https://www.facebook.com/[ID].',
|
||
|
'label' => 'Facebook',
|
||
|
'value' => $this->getData(['config', 'social', 'facebookId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialInstagramId', [
|
||
|
'help' => 'Saisissez votre ID : https://www.instagram.com/[ID].',
|
||
|
'label' => 'Instagram',
|
||
|
'value' => $this->getData(['config', 'social', 'instagramId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialYoutubeId', [
|
||
|
'help' => 'ID de la chaîne : https://www.youtube.com/channel/[ID].',
|
||
|
'label' => 'Chaîne Youtube',
|
||
|
'value' => $this->getData(['config', 'social', 'youtubeId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialYoutubeUserId', [
|
||
|
'help' => 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].',
|
||
|
'label' => 'Youtube',
|
||
|
'value' => $this->getData(['config', 'social', 'youtubeUserId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialTwitterId', [
|
||
|
'help' => 'Saisissez votre ID : https://twitter.com/[ID].',
|
||
|
'label' => 'Twitter',
|
||
|
'value' => $this->getData(['config', 'social', 'twitterId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialPinterestId', [
|
||
|
'help' => 'Saisissez votre ID : https://pinterest.com/[ID].',
|
||
|
'label' => 'Pinterest',
|
||
|
'value' => $this->getData(['config', 'social', 'pinterestId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialLinkedinId', [
|
||
|
'help' => 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].',
|
||
|
'label' => 'Linkedin',
|
||
|
'value' => $this->getData(['config', 'social', 'linkedinId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
<div class="col3">
|
||
|
<?php echo template::text('socialGithubId', [
|
||
|
'help' => 'Saisissez votre ID Github : https://github.com/[ID].',
|
||
|
'label' => 'Github',
|
||
|
'value' => $this->getData(['config', 'social', 'githubId'])
|
||
|
]); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|