Deltacms/core/module/config/view/social/social.php

139 lines
4.7 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php
// Lexique
2022-09-11 09:42:42 +02:00
include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php');
2022-03-06 13:35:21 +01:00
?>
2022-01-31 09:10:49 +01:00
<div id="socialContainer">
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['social'][0]; ?>
2022-01-31 09:10:49 +01:00
<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">
2022-05-11 08:58:38 +02:00
<?php
2022-09-11 09:42:42 +02:00
$texte = $text['core_config_view']['social'][2];
if( isset($_SESSION['screenshot'])) $texte = $_SESSION['screenshot'] === 'on' ? $text['core_config_view']['social'][1]: $text['core_config_view']['social'][2];
2022-01-31 09:10:49 +01:00
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',
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['social'][3]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('seoRobots', true, $text['core_config_view']['social'][4], [
2022-01-31 09:10:49 +01:00
'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">
2022-09-11 09:42:42 +02:00
<img src="<?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.jpg'.'?n='.uniqid();?>" data-tippy-content="<?php echo $text['core_config_view']['social'][5]; ?>" />
2022-01-31 09:10:49 +01:00
</div>
</div>
<?php } else{?>
<div class="row">
<div class="col8 offset2 textAlignCenter">
2022-09-11 09:42:42 +02:00
<?php echo $text['core_config_view']['social'][6]; ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['social'][7]; ?>
2022-01-31 09:10:49 +01:00
<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', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][8],
2022-01-31 09:10:49 +01:00
'label' => 'Facebook',
'value' => $this->getData(['config', 'social', 'facebookId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialInstagramId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][9],
2022-01-31 09:10:49 +01:00
'label' => 'Instagram',
'value' => $this->getData(['config', 'social', 'instagramId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialYoutubeId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][10],
2022-01-31 09:10:49 +01:00
'label' => 'Chaîne Youtube',
'value' => $this->getData(['config', 'social', 'youtubeId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialYoutubeUserId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][11],
2022-01-31 09:10:49 +01:00
'label' => 'Youtube',
'value' => $this->getData(['config', 'social', 'youtubeUserId'])
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::text('socialTwitterId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][12],
2022-01-31 09:10:49 +01:00
'label' => 'Twitter',
'value' => $this->getData(['config', 'social', 'twitterId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialPinterestId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][13],
2022-01-31 09:10:49 +01:00
'label' => 'Pinterest',
'value' => $this->getData(['config', 'social', 'pinterestId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialLinkedinId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][14],
2022-01-31 09:10:49 +01:00
'label' => 'Linkedin',
'value' => $this->getData(['config', 'social', 'linkedinId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialGithubId', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['social'][15],
2022-01-31 09:10:49 +01:00
'label' => 'Github',
'value' => $this->getData(['config', 'social', 'githubId'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>