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

188 lines
7.5 KiB
PHP
Raw Normal View History

2022-03-01 19:41:31 +01:00
<div id="socialContainer" class="tabContent">
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
2023-03-27 15:11:07 +02:00
<h4>
<?php echo helper::translate('Capture d\'écran Open Graph'); ?>
2022-10-03 19:01:42 +02:00
<!--<span id="specialeHelpButton" class="helpDisplayButton">
2022-09-29 08:45:59 +02:00
<a href="https://doc.zwiicms.fr/referencement" target="_blank" title="Cliquer pour consulter l'aide en ligne">
2022-10-03 19:01:42 +02:00
<?php //echo template::ico('help', ['margin' => 'left']); ?>
2021-11-04 18:49:15 +01:00
</a>
2022-10-03 19:01:42 +02:00
</span>-->
2021-11-03 16:49:35 +01:00
</h4>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col6">
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<?php echo template::file('seoOpenGraphImage', [
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
'label' => 'Image Open Graph',
'value' => $this->getData(['config', 'seo', 'openGraphImage']),
'type' => 1,
'help' => sprintf('%s : JPG - PNG<br />', helper::translate('Format')) .
sprintf('%s : 1200 x 630 pixels<br />', helper::translate('Dimensions minimales')) .
sprintf('%s : 1.91:1<br />', helper::translate('Ratio')) .
sprintf('%s : %s, %s<br />', helper::translate('Taille maximale du fichier'), helper::translate('5 Mo pour les images JPEG'), helper::translate('1 Mo pour les images PNG'))
2021-10-30 12:31:24 +02:00
]); ?>
</div>
2021-10-29 18:34:01 +02:00
</div>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col10 textAlignCenter">
<?php if( $module::$imageOpenGraph['type']): ?>
<p>
<?php echo sprintf('%s : %s ', helper::translate('Format'), $module::$imageOpenGraph['type']); ?>
</p>
<p>
<?php echo sprintf('%s : %s x %s pixels', helper::translate('Dimensions minimales'), $module::$imageOpenGraph['wide'], $module::$imageOpenGraph['height'] ); ?>
</p>
<p>
<?php echo sprintf('%s : %s' , helper::translate('Ratio'), round($module::$imageOpenGraph['ratio'], 2)); ?>
</p>
<p>
<?php echo sprintf('%s : %s', helper::translate('Taille'), $module::$imageOpenGraph['size']); ?>
</p>
<?php endif; ?>
2021-10-29 18:34:01 +02:00
</div>
2021-10-30 12:31:24 +02:00
</div>
</div>
<div class="col6">
<?php if (
$this->getData(['config', 'seo', 'openGraphImage']) &&
file_exists(self::FILE_DIR . 'source/' . $this->getData(['config', 'seo', 'openGraphImage']))
): ?>
<img
src="<?php echo self::FILE_DIR . 'source/' . $this->getData(['config', 'seo', 'openGraphImage']); ?>" />
2022-09-29 08:45:59 +02:00
<?php endif; ?>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
</div>
</div>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col12">
<div class="block">
2023-03-27 15:11:07 +02:00
<h4>
<?php echo helper::translate('Référencement'); ?>
</h4>
<div class="row">
<div class="col4 offset1">
<?php echo template::button('socialSiteMap', [
2022-11-07 08:37:14 +01:00
'href' => helper::baseUrl() . 'config/sitemap',
'value' => 'Générer sitemap.xml et robots.txt'
]); ?>
</div>
<div class="col4 offset1">
<?php echo template::checkbox('seoRobots', true, 'Autoriser les robots à référencer le site', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['config', 'seo', 'robots'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2023-03-27 15:11:07 +02:00
<h4>
<?php echo helper::translate('Réseaux sociaux'); ?>
2022-10-03 19:01:42 +02:00
<!--<span id="specialeHelpButton" class="helpDisplayButton">
2022-09-29 08:45:59 +02:00
<a href="https://doc.zwiicms.fr/reseaux-sociaux" target="_blank" title="Cliquer pour consulter l'aide en ligne">
2022-10-03 19:01:42 +02:00
<?php //echo template::ico('help', ['margin' => 'left']); ?>
2021-11-04 18:49:15 +01:00
</a>
2022-10-03 19:01:42 +02:00
</span>-->
2021-11-03 16:49:35 +01:00
</h4>
2021-10-30 12:31:24 +02:00
<div class="row">
<div class="col3">
2021-10-30 18:59:58 +02:00
<?php echo template::text('socialFacebookId', [
2021-10-30 12:31:24 +02:00
'help' => 'Saisissez votre ID : https://www.facebook.com/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('facebook', ['margin' => 'right']) . 'Facebook',
2021-10-30 12:31:24 +02:00
'value' => $this->getData(['config', 'social', 'facebookId'])
]); ?>
</div>
<div class="col3">
2021-10-30 18:59:58 +02:00
<?php echo template::text('socialInstagramId', [
2021-10-30 12:31:24 +02:00
'help' => 'Saisissez votre ID : https://www.instagram.com/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('instagram', ['margin' => 'right']) . 'Instagram',
2021-10-30 12:31:24 +02:00
'value' => $this->getData(['config', 'social', 'instagramId'])
]); ?>
</div>
2023-03-27 15:11:07 +02:00
<div class="col3">
<?php echo template::text('socialTwitterId', [
'help' => 'Saisissez votre ID : https://twitter.com/[ID].',
'label' => template::ico('twitter', ['margin' => 'right']) . 'Twitter',
'value' => $this->getData(['config', 'social', 'twitterId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialRedditId', [
'help' => 'Saisissez votre ID Reddit : https://www.reddit.com/user/[ID].',
'label' => template::ico('reddit', ['margin' => 'right']) . 'Reddit',
'value' => $this->getData(['config', 'social', 'redditId'])
]); ?>
</div>
</div>
<div class="row">
2021-10-30 12:31:24 +02:00
<div class="col3">
2021-10-30 18:59:58 +02:00
<?php echo template::text('socialYoutubeId', [
2021-10-30 12:31:24 +02:00
'help' => 'ID de la chaîne : https://www.youtube.com/channel/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('youtube', ['margin' => 'right']) . 'Chaîne Youtube',
2021-10-30 12:31:24 +02:00
'value' => $this->getData(['config', 'social', 'youtubeId'])
]); ?>
</div>
<div class="col3">
2021-10-30 18:59:58 +02:00
<?php echo template::text('socialYoutubeUserId', [
2021-10-30 12:31:24 +02:00
'help' => 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('youtube', ['margin' => 'right']) . 'Youtube',
2021-10-30 12:31:24 +02:00
'value' => $this->getData(['config', 'social', 'youtubeUserId'])
]); ?>
</div>
<div class="col3">
2023-03-27 15:11:07 +02:00
<?php echo template::text('socialVimeoId', [
'help' => 'Saisissez votre ID Viemo : https://vimeo.com/[ID].',
'label' => template::ico('vimeo', ['margin' => 'right']) . 'Vimeo',
'value' => $this->getData(['config', 'social', 'vimeoId'])
2021-10-29 18:34:01 +02:00
]); ?>
2021-10-30 12:31:24 +02:00
</div>
<div class="col3">
2021-10-30 18:59:58 +02:00
<?php echo template::text('socialPinterestId', [
2021-10-30 12:31:24 +02:00
'help' => 'Saisissez votre ID : https://pinterest.com/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('pinterest', ['margin' => 'right']) . 'Pinterest',
2021-10-30 12:31:24 +02:00
'value' => $this->getData(['config', 'social', 'pinterestId'])
]); ?>
</div>
2023-03-27 15:11:07 +02:00
</div>
<div class="row">
2021-10-30 12:31:24 +02:00
<div class="col3">
2021-10-30 18:59:58 +02:00
<?php echo template::text('socialLinkedinId', [
2021-10-30 12:31:24 +02:00
'help' => 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('linkedin', ['margin' => 'right']) . 'Linkedin',
2021-10-30 12:31:24 +02:00
'value' => $this->getData(['config', 'social', 'linkedinId'])
]); ?>
</div>
<div class="col3">
2022-09-29 08:45:59 +02:00
<?php echo template::text('socialGithubId', [
'help' => 'Saisissez votre ID Github : https://github.com/[ID].',
2023-03-27 15:11:07 +02:00
'label' => template::ico('github', ['margin' => 'right']) . 'Github',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['config', 'social', 'githubId'])
]); ?>
2021-10-30 12:31:24 +02:00
</div>
2023-03-27 15:11:07 +02:00
<div class="col3">
<?php echo template::text('socialTwitchId', [
'help' => 'Saisissez votre ID Twitch : https://www.twitch.tv/[ID].',
'label' => template::ico('twitch', ['margin' => 'right']) . 'Twitch',
'value' => $this->getData(['config', 'social', 'twitchId'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('socialSteamId', [
'help' => 'Saisissez votre ID Viemo : https://steamcommunity.com/id/[ID].',
'label' => template::ico('steam', ['margin' => 'right']) . 'Steam',
'value' => $this->getData(['config', 'social', 'steamId'])
]); ?>
</div>
2021-10-29 16:14:51 +02:00
</div>
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
</div>