浏览代码

correctif bug

cedric 3 年之前
父节点
当前提交
c5d9142ad1
共有 28 个文件被更改,包括 109 次插入118 次删除
  1. 17 6
      chcreateur.php
  2. 4 4
      classes/chcreapost.php
  3. 3 3
      controllers/front/archive.php
  4. 1 1
      controllers/front/single.php
  5. 二进制
      img/2/gallery_default-noscreateursillustration2.jpg
  6. 二进制
      img/2/gallery_medium-noscreateursillustration2.jpg
  7. 二进制
      img/2/gallery_small-noscreateursillustration2.jpg
  8. 二进制
      img/2/noscreateursillustration2.jpg
  9. 二进制
      img/2/post_default-noscreateursillustration2.jpg
  10. 二进制
      img/3/gallery_default-noscreateursillustration1.jpg
  11. 二进制
      img/3/gallery_default-noscreateursillustration2.jpg
  12. 二进制
      img/3/gallery_medium-noscreateursillustration1.jpg
  13. 二进制
      img/3/gallery_medium-noscreateursillustration2.jpg
  14. 二进制
      img/3/gallery_small-noscreateursillustration1.jpg
  15. 二进制
      img/3/gallery_small-noscreateursillustration2.jpg
  16. 二进制
      img/3/noscreateursillustration1.jpg
  17. 二进制
      img/3/noscreateursillustration2.jpg
  18. 二进制
      img/3/post_default-noscreateursillustration1.jpg
  19. 二进制
      img/4/gallery_default-noscreateursillustration1.jpg
  20. 二进制
      img/4/gallery_medium-noscreateursillustration1.jpg
  21. 二进制
      img/4/gallery_small-noscreateursillustration1.jpg
  22. 二进制
      img/4/noscreateursillustration1.jpg
  23. 二进制
      img/4/post_default-noscreateursillustration1.jpg
  24. 二进制
      img/tpcimgentetepagecreateurs.jpg
  25. 47 55
      views/templates/front/archive.tpl
  26. 25 25
      views/templates/front/post-gallery.tpl
  27. 10 22
      views/templates/front/single.tpl
  28. 2 2
      views/templates/front/vignette.tpl

+ 17 - 6
chcreateur.php

@@ -45,12 +45,13 @@ class Chcreateur extends Module implements WidgetInterface
 
 
 		return (
 		return (
 			parent::install()
 			parent::install()
-			&& $this->registerHook('displayBlockPosition2')
+			//&& $this->registerHook('displayBlockPosition2')
 			&& $this->registerHook('displayHeader')
 			&& $this->registerHook('displayHeader')
 			&& $this->registerHook('ModuleRoutes')
 			&& $this->registerHook('ModuleRoutes')
 			&& $this->Register_SQL()
 			&& $this->Register_SQL()
 			&& $this->_installTab()
 			&& $this->_installTab()
 			&& Configuration::updateValue('CHCREATEUR_TITLE', 'Nos createurs')
 			&& Configuration::updateValue('CHCREATEUR_TITLE', 'Nos createurs')
+			&& Configuration::updateValue('CHCREATEUR_URL', 'nos-createurs')
 			&& Configuration::updateValue('CHCREATEUR_DESCRIPTION', 'Une description', true)
 			&& Configuration::updateValue('CHCREATEUR_DESCRIPTION', 'Une description', true)
 		);
 		);
 	}
 	}
@@ -140,7 +141,7 @@ class Chcreateur extends Module implements WidgetInterface
 		$chcreateurroutes = array(
 		$chcreateurroutes = array(
 			'chcreateur-archive-module' => [
 			'chcreateur-archive-module' => [
 				'controller' => 'archive',
 				'controller' => 'archive',
-				'rule' => 'noscreateurs',
+				'rule' => Configuration::get('CHCREATEUR_URL'),
 				'keywords' => [],
 				'keywords' => [],
 				'params' => [
 				'params' => [
 					'fc' => 'module',
 					'fc' => 'module',
@@ -149,7 +150,7 @@ class Chcreateur extends Module implements WidgetInterface
 			],
 			],
 			'chcreateur-single-module' => [
 			'chcreateur-single-module' => [
 				'controller' => 'single',
 				'controller' => 'single',
-				'rule' => 'noscreateurs/{id}_{rewrite}',
+				'rule' => Configuration::get('CHCREATEUR_URL').'/{id}_{rewrite}',
 				'keywords' => [
 				'keywords' => [
 					'id' =>   array('regexp' => '[0-9]+','param' => 'id'),
 					'id' =>   array('regexp' => '[0-9]+','param' => 'id'),
                     'rewrite' =>   array('regexp' => '[_a-zA-Z0-9-\pL]*','param' => 'rewrite'),
                     'rewrite' =>   array('regexp' => '[_a-zA-Z0-9-\pL]*','param' => 'rewrite'),
@@ -177,6 +178,7 @@ class Chcreateur extends Module implements WidgetInterface
 		if (Tools::isSubmit('submit' . $this->name)) {
 		if (Tools::isSubmit('submit' . $this->name)) {
 			// retrieve the value set by the user
 			// retrieve the value set by the user
 			$config_TITLE = (string) Tools::getValue('CHCREATEUR_TITLE');
 			$config_TITLE = (string) Tools::getValue('CHCREATEUR_TITLE');
+			$config_URL = (string) Tools::getValue('CHCREATEUR_URL');
 			$config_DESCRIPTION = (string) Tools::getValue('CHCREATEUR_DESCRIPTION');
 			$config_DESCRIPTION = (string) Tools::getValue('CHCREATEUR_DESCRIPTION');
 
 
 
 
@@ -187,6 +189,7 @@ class Chcreateur extends Module implements WidgetInterface
 			} else {
 			} else {
 				// value is ok, update it and display a confirmation message
 				// value is ok, update it and display a confirmation message
 				Configuration::updateValue('CHCREATEUR_TITLE', $config_TITLE);
 				Configuration::updateValue('CHCREATEUR_TITLE', $config_TITLE);
+				Configuration::updateValue('CHCREATEUR_URL', $config_URL);
 				Configuration::updateValue('CHCREATEUR_DESCRIPTION', $config_DESCRIPTION, true);
 				Configuration::updateValue('CHCREATEUR_DESCRIPTION', $config_DESCRIPTION, true);
 
 
 				$output = $this->displayConfirmation($this->l('Settings updated'));
 				$output = $this->displayConfirmation($this->l('Settings updated'));
@@ -380,7 +383,14 @@ class Chcreateur extends Module implements WidgetInterface
 						'name' => 'CHCREATEUR_DESCRIPTION',
 						'name' => 'CHCREATEUR_DESCRIPTION',
 						'size' => 800,
 						'size' => 800,
 						'required' => true,
 						'required' => true,
-						],
+					],
+					[
+						'type' => 'text',
+						'label' => $this->l('Base URL'),
+						'name' => 'CHCREATEUR_URL',
+						'size' => 128,
+						'required' => true,
+					],
 				],
 				],
 				'submit' => [
 				'submit' => [
 					'title' => $this->l('Save'),
 					'title' => $this->l('Save'),
@@ -405,6 +415,7 @@ class Chcreateur extends Module implements WidgetInterface
 		// Load current value into the form
 		// Load current value into the form
 		$helper->fields_value['CHCREATEUR_TITLE'] = Tools::getValue('CHCREATEUR_TITLE', Configuration::get('CHCREATEUR_TITLE'));
 		$helper->fields_value['CHCREATEUR_TITLE'] = Tools::getValue('CHCREATEUR_TITLE', Configuration::get('CHCREATEUR_TITLE'));
 		$helper->fields_value['CHCREATEUR_DESCRIPTION'] = Tools::getValue('CHCREATEUR_DESCRIPTION', Configuration::get('CHCREATEUR_DESCRIPTION'));
 		$helper->fields_value['CHCREATEUR_DESCRIPTION'] = Tools::getValue('CHCREATEUR_DESCRIPTION', Configuration::get('CHCREATEUR_DESCRIPTION'));
+		$helper->fields_value['CHCREATEUR_URL'] = Tools::getValue('CHCREATEUR_URL', Configuration::get('CHCREATEUR_URL'));
 
 
 		return $helper->generateForm([$form]);
 		return $helper->generateForm([$form]);
 	}
 	}
@@ -530,7 +541,7 @@ class Chcreateur extends Module implements WidgetInterface
 
 
 		//Media::addJsDef(array('xipbdp_numcolumn'=>$xipbdp_numcolumn));
 		//Media::addJsDef(array('xipbdp_numcolumn'=>$xipbdp_numcolumn));
 		$chcreaposts = array();
 		$chcreaposts = array();
-		$chcreaposts = Chcreapost::getAllcreateurs(6);
+		$chcreaposts = Chcreapost::getAllSelections(6);
 		
 		
 		// print('<Pre>'.print_r($chcreaposts,true).'</pre>');
 		// print('<Pre>'.print_r($chcreaposts,true).'</pre>');
 		// exit();
 		// exit();
@@ -542,7 +553,7 @@ class Chcreateur extends Module implements WidgetInterface
 			'chcrea_title'      => Configuration::get('CHCREATEUR_TITLE'),
 			'chcrea_title'      => Configuration::get('CHCREATEUR_TITLE'),
 			'chcrea_desc'       => Configuration::get('CHCREATEUR_DESCRIPTION'),
 			'chcrea_desc'       => Configuration::get('CHCREATEUR_DESCRIPTION'),
 			'hookName'         => $hookName,
 			'hookName'         => $hookName,
-			'chcreaposts'       => $chcreaposts,
+			'chposts'       => $chcreaposts,
 			'vignettes_nbr' => count($chcreaposts),
 			'vignettes_nbr' => count($chcreaposts),
 		);
 		);
 	}
 	}

+ 4 - 4
classes/chcreapost.php

@@ -240,7 +240,7 @@ class Chcreapost extends ObjectModel
 							$results[$i]['post_author_arr']['firstname'] = $post_author_arr->firstname;
 							$results[$i]['post_author_arr']['firstname'] = $post_author_arr->firstname;
 						}
 						}
 						// TODO
 						// TODO
-						$results[$i]['link'] = self::getBaseLink($id_shop) . 'noscreateurs/' . $qlvalue['id_chcreaposts'] . '_' . $qlvalue['link_rewrite'];
+						$results[$i]['link'] = self::getBaseLink($id_shop) . Configuration::get('CHCREATEUR_URL') . '/' . $qlvalue['id_chcreaposts'] . '_' . $qlvalue['link_rewrite'];
 						//$results[$i]['post_tags'] = self::GetPostTagsResults($qlvalue['id_xipposts'], 'tag');
 						//$results[$i]['post_tags'] = self::GetPostTagsResults($qlvalue['id_xipposts'], 'tag');
 						if (isset($qlvalue['audio']) && !empty($qlvalue['audio'])) {
 						if (isset($qlvalue['audio']) && !empty($qlvalue['audio'])) {
 							$results[$i]['audio'] = self::getSrcFromIframe($qlvalue['audio']);
 							$results[$i]['audio'] = self::getSrcFromIframe($qlvalue['audio']);
@@ -291,7 +291,7 @@ class Chcreapost extends ObjectModel
 				}
 				}
 				// end Image
 				// end Image
 				if ( 'link_rewrite' == $qkey ) {
 				if ( 'link_rewrite' == $qkey ) {
-					$results['link'] = self::getBaseLink($id_shop) . 'createur/' . $id_chcreaposts . '_' . $qvalue;
+					$results['link'] = self::getBaseLink($id_shop) . Configuration::get('CHCREATEUR_URL').'/' . $id_chcreaposts . '_' . $qvalue;
 				}
 				}
 				if ('post_author' == $qkey) {
 				if ('post_author' == $qkey) {
 					$post_author_arr = new Employee((int) $qvalue);
 					$post_author_arr = new Employee((int) $qvalue);
@@ -440,7 +440,7 @@ class Chcreapost extends ObjectModel
 		if (empty($rslt)) {
 		if (empty($rslt)) {
 			return null;
 			return null;
 		}
 		}
-		$rslt['link'] = '/createur/'.$rslt['id_chcreaposts'].'_'.$rslt['link_rewrite'];
+		$rslt['link'] = '/'.Configuration::get('CHCREATEUR_URL').'/'.$rslt['id_chcreaposts'].'_'.$rslt['link_rewrite'];
 
 
 		return $rslt;
 		return $rslt;
 	}
 	}
@@ -463,7 +463,7 @@ class Chcreapost extends ObjectModel
 		if (empty($rslt)) {
 		if (empty($rslt)) {
 			return null;
 			return null;
 		}
 		}
-		$rslt['link'] = '/createur/'.$rslt['id_chcreaposts'].'_'.$rslt['link_rewrite'];
+		$rslt['link'] = '/'.Configuration::get('CHCREATEUR_URL').'/'.$rslt['id_chcreaposts'].'_'.$rslt['link_rewrite'];
 
 
 		return $rslt;
 		return $rslt;
 	}
 	}

+ 3 - 3
controllers/front/archive.php

@@ -32,8 +32,8 @@ class ChcreateurArchiveModuleFrontController extends ModuleFrontController
 		$id_lang = (int)Context::getContext()->language->id;
 		$id_lang = (int)Context::getContext()->language->id;
 
 
 		$chcreavars = [];
 		$chcreavars = [];
-		$chcreavars['name'] = configuration::get('CHSELECTION_TITLE');
-		$chcreavars['description'] = configuration::get('CHSELECTION_DESCRIPTION');
+		$chcreavars['name'] = configuration::get('CHCREATEUR_TITLE');
+		$chcreavars['description'] = configuration::get('CHCREATEUR_DESCRIPTION');
 		
 		
 		$this->context->smarty->assign('chvars', $chcreavars);
 		$this->context->smarty->assign('chvars', $chcreavars);
 		$this->context->smarty->assign('chposts', Chcreapost::getAllSelections());
 		$this->context->smarty->assign('chposts', Chcreapost::getAllSelections());
@@ -46,7 +46,7 @@ class ChcreateurArchiveModuleFrontController extends ModuleFrontController
         $breadcrumb = parent::getBreadcrumbLinks();
         $breadcrumb = parent::getBreadcrumbLinks();
         $breadcrumb['links'][] = [
         $breadcrumb['links'][] = [
             'title' => Configuration::get(strtoupper($this->module->name).'_TITLE'),
             'title' => Configuration::get(strtoupper($this->module->name).'_TITLE'),
-            'url' => '/noscreateurs',
+            'url' => '/'.Configuration::get('CHCREATEUR_URL'),
         ];
         ];
 
 
         return $breadcrumb;
         return $breadcrumb;

+ 1 - 1
controllers/front/single.php

@@ -62,7 +62,7 @@ class ChcreateursingleModuleFrontController extends ModuleFrontController
         $breadcrumb = parent::getBreadcrumbLinks();
         $breadcrumb = parent::getBreadcrumbLinks();
         $breadcrumb['links'][] = [
         $breadcrumb['links'][] = [
             'title' => Configuration::get(strtoupper($this->module->name).'_TITLE'),
             'title' => Configuration::get(strtoupper($this->module->name).'_TITLE'),
-            'url' => '/noscreateurs',
+            'url' => '/'.Configuration::get('CHCREATEUR_URL'),
         ];
         ];
         $breadcrumb['links'][] = [
         $breadcrumb['links'][] = [
             'title' => $this->chcreapost['post_title'],
             'title' => $this->chcreapost['post_title'],

二进制
img/2/gallery_default-noscreateursillustration2.jpg


二进制
img/2/gallery_medium-noscreateursillustration2.jpg


二进制
img/2/gallery_small-noscreateursillustration2.jpg


二进制
img/2/noscreateursillustration2.jpg


二进制
img/2/post_default-noscreateursillustration2.jpg


二进制
img/3/gallery_default-noscreateursillustration1.jpg


二进制
img/3/gallery_default-noscreateursillustration2.jpg


二进制
img/3/gallery_medium-noscreateursillustration1.jpg


二进制
img/3/gallery_medium-noscreateursillustration2.jpg


二进制
img/3/gallery_small-noscreateursillustration1.jpg


二进制
img/3/gallery_small-noscreateursillustration2.jpg


二进制
img/3/noscreateursillustration1.jpg


二进制
img/3/noscreateursillustration2.jpg


二进制
img/3/post_default-noscreateursillustration1.jpg


二进制
img/4/gallery_default-noscreateursillustration1.jpg


二进制
img/4/gallery_medium-noscreateursillustration1.jpg


二进制
img/4/gallery_small-noscreateursillustration1.jpg


二进制
img/4/noscreateursillustration1.jpg


二进制
img/4/post_default-noscreateursillustration1.jpg


二进制
img/tpcimgentetepagecreateurs.jpg


+ 47 - 55
views/templates/front/archive.tpl

@@ -3,70 +3,62 @@
 {block name='page_header_container'}{/block}
 {block name='page_header_container'}{/block}
 
 
 {block name="page_content_container"}
 {block name="page_content_container"}
-	<section id="content" class="page-content">
-    {if isset($chposts) && !empty($chposts)}
-        <div class="chselection_post">
-            <div class="chselection_post_inner">
-                {foreach from=$chposts item=chselection}
-                    <article id="blog_post" class="blog_post blog_post_{$chselection.post_format} clearfix">
-                        <div class="blog_post_content">
-                            <div class="blog_post_content_top col-lg-12 col-md-12 col-xs-12">
-                                <div class="post_thumbnail">
+    <section id="content" class="page-content">
+        {if isset($chposts) && !empty($chposts)}
+            <div class="chcreateur_post">
+                <div class="chcreateur_post_inner">
+                    {foreach from=$chposts item=chselection name=chposts}
+                        <article id="blog_post" class="blog_post blog_post_{$chselection.post_format} clearfix">
+                            <div class="blog_post_content">
+                                <div class="blog_post_content_top col-lg-12 col-md-12 col-xs-12">
+                                    <div class="post_thumbnail">
 
 
-                                    {if isset($chselection.video) & !empty($chselection.video) }
-                                        {if $chselection.video|@count > 1 }
-                                            {assign var="class" value='newSlide owl-carousel'}
+                                        {if isset($chselection.video) & !empty($chselection.video) }
+                                            {if $chselection.video|@count > 1 }
+                                                {assign var="class" value='newSlide owl-carousel'}
+                                            {else}
+                                                {assign var="class" value=''}
+                                            {/if}
+                                            {include file="module:chcreateur/views/templates/front/post-video.tpl" postvideos=$chselection.video width='870' height="482" class=$class arrow="0"}
+                                        {elseif isset($chselection.audio) & !empty($chselection.audio) }
+                                            {if $chselection.audio|@count > 1 }
+                                                {assign var="class" value='newSlide owl-carousel'}
+                                            {else}
+                                                {assign var="class" value=''}
+                                            {/if}
+                                            {include file="module:chcreateur/views/templates/front/post-audio.tpl" postaudio=$chselection.audio class=$class arrow="0"}
+                                        {elseif  isset($chselection.gallery_lists) & !empty($chselection.gallery_lists) }
+                                            {if $chselection.gallery_lists|@count > 1 }
+                                                {assign var="class" value=''}
+                                            {else}
+                                                {assign var="class" value='responsive'}
+                                            {/if}
+                                            {include file="module:chcreateur/views/templates/front/post-gallery.tpl" gallery_lists=$chselection.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
                                         {else}
                                         {else}
-                                            {assign var="class" value=''}
+                                            <img class="img-responsive" src="{$chselection.post_img.post_default}"
+                                                alt="{$chselection.post_title}">
                                         {/if}
                                         {/if}
-                                        {include file="module:chselection/views/templates/front/post-video.tpl" postvideos=$chselection.video width='870' height="482" class=$class arrow="0"}
-                                    {elseif isset($chselection.audio) & !empty($chselection.audio) }
-                                        {if $chselection.audio|@count > 1 }
-                                            {assign var="class" value='newSlide owl-carousel'}
-                                        {else}
-                                            {assign var="class" value=''}
-                                        {/if}
-                                        {include file="module:chselection/views/templates/front/post-audio.tpl" postaudio=$chselection.audio class=$class arrow="0"}
-                                    {elseif  isset($chselection.gallery_lists) & !empty($chselection.gallery_lists) }
-                                        {if $chselection.gallery_lists|@count > 1 }
-                                            {assign var="class" value='carousel'}
-                                        {else}
-                                            {assign var="class" value=''}
-                                        {/if}
-                                        {include file="module:chselection/views/templates/front/post-gallery.tpl" gallery_lists=$chselection.gallery_lists imagesize="gallery_default" class=$class arrow="0"}
-                                    {else}
-                                        <img class="img-responsive" src="{$chselection.post_img.post_default}" alt="{$chselection.post_title}">
-                                    {/if}
 
 
+                                    </div>
                                 </div>
                                 </div>
-                            </div>
-    
-                            <div class="blog_post_content_bottom col-lg-12 col-md-12 col-xs-12">
 
 
-                           
-                            <h3 class="post_title"><a href="{$chselection.link}">{$chselection.post_title}</a></h3>
-    
-
-                      
-              
-
-                                <div class="post_content">
-                                    {if isset($chselection.post_excerpt) && !empty($chselection.post_excerpt)}
-                                        {$chselection.post_excerpt|truncate:500:'...'|escape:'html':'UTF-8'}
-                                    {else}
-                                        {$chselection.post_content|truncate:400:'...'|escape:'html':'UTF-8'}
-                                    {/if}
-                                </div>
-                                <div class="readmorenoir">
-                                    <a class="read_more" href="{$chselection.link}">{l s='Continue' mod='xipblog'}</a>
+                                <div class="blog_post_content_bottom col-lg-12 col-md-12 col-xs-12">
+                                    <h3 class="post_title"><a href="{$chselection.link}">{$chselection.post_title}</a></h3>
+                                    <p class="excerpt">{$chselection.post_excerpt}</p>
+                                    <div class="post_content">
+                                        {$chselection.post_content|strip_tags|truncate:400:"...":true}
+                                    </div>
+                                    <div class="readmorenoir">
+                                        <a class="read_more" href="{$chselection.link}">{l s='Continue' mod='xipblog'}</a>
+                                    </div>
+                                    <div class="trait {if $smarty.foreach.chposts.last} dernier {/if}"></div>
                                 </div>
                                 </div>
+
                             </div>
                             </div>
-    
-                        </div>
-                    </article>
-                {/foreach}
+                        </article>
+                    {/foreach}
+                </div>
             </div>
             </div>
-        </div>
         {/if}
         {/if}
     </section>
     </section>
 
 

+ 25 - 25
views/templates/front/post-gallery.tpl

@@ -2,32 +2,32 @@
 
 
 <!-- <div class="post_gallery_content"> -->
 <!-- <div class="post_gallery_content"> -->
 
 
-<div class="post_gallery post_format_items {if isset($class) && $class}{$class}{/if}"
-data-items="1"
-data-speed="1500"
-data-autoplay="1"
-data-loop="1"
-data-time="3000"
-data-arrow="{$arrow}"
-data-pagination="1"
-data-move="1"
-data-pausehover="1"
-data-md="1"
-data-sm="1"
-data-xs="1"
-data-xxs="1">
+<div class="post_gallery{if isset($class) && $class}{$class}{/if} post_format_items" 
+	data-items="1"
+	data-speed="1500"
+	data-autoplay="1"
+	data-loop="1"
+	data-time="3000"
+	data-arrow="{$arrow}"
+	data-pagination="1"
+	data-move="1"
+	data-pausehover="1"
+	data-md="1"
+	data-sm="1"
+	data-xs="1"
+	data-xxs="1">
 
 
-{if isset($gallery_lists) && $gallery_lists}
-	<div class="newSlide owl-carousel">
-		{foreach from=$gallery_lists  key=num item=galleryimg} {*  item=galleryimg*}
-			<div class="post_gallery_img item">
-			{*<a href="{$xpblgpst.link}">*}
-				<img class="xipblog_img responsive-{$num}" src="{$galleryimg.$imagesize}" alt="">
-			{*</a>*}
-			</div>
-		{/foreach}
-	</div>
-{/if}
+	{if isset($gallery_lists) && $gallery_lists}
+		<div class="newSlide owl-carousel{if isset($class) && $class}{$class}{/if}">
+			{foreach from=$gallery_lists  key=num item=galleryimg} {*  item=galleryimg*}
+				<div class="post_gallery_img item">
+				{*<a href="{$xpblgpst.link}">*}
+					<img class="img-{if isset($class) && $class}{$class}{/if}" src="{$galleryimg.$imagesize}" alt="">
+				{*</a>*}
+				</div>
+			{/foreach}
+		</div>
+	{/if}
 </div>
 </div>
 
 
 <!-- </div> -->
 <!-- </div> -->

+ 10 - 22
views/templates/front/single.tpl

@@ -19,8 +19,8 @@
 
 
 {block name="page_content_container"}
 {block name="page_content_container"}
 	<section id="content" class="page-content">
 	<section id="content" class="page-content">
-		<div class="{$chvars.class}_area single">
-			<div class="{$chvars.class}_inner">
+		<div class="chcreateur_post single">
+			<div class="chcreateur_post_inner">
 				<article id="blog_post" class="blog_post">
 				<article id="blog_post" class="blog_post">
 					<div class="blog_post_content">
 					<div class="blog_post_content">
 						<div class="blog_post_content_top">
 						<div class="blog_post_content_top">
@@ -32,21 +32,21 @@
 									{else}
 									{else}
 										{assign var="class" value=''}
 										{assign var="class" value=''}
 									{/if}
 									{/if}
-									{include file="module:chselection/views/templates/front/post-video.tpl" postvideos=$chpost.video width='870' height="482" class=$class arrow="1"}
+									{include file="module:chcreateur/views/templates/front/post-video.tpl" postvideos=$chpost.video width='870' height="482" class=$class arrow="1"}
 								{elseif isset($chpost.audio) & !empty($chpost.audio) }
 								{elseif isset($chpost.audio) & !empty($chpost.audio) }
 									{if $chpost.audio|@count > 1 }
 									{if $chpost.audio|@count > 1 }
 										{assign var="class" value='newSlide owl-carousel'}
 										{assign var="class" value='newSlide owl-carousel'}
 									{else}
 									{else}
 										{assign var="class" value=''}
 										{assign var="class" value=''}
 									{/if}
 									{/if}
-									{include file="module:chselection/views/templates/front/post-audio.tpl" postaudio=$chpost.audio width='870' height="482" class=$class arrow="1"}
+									{include file="module:chcreateur/views/templates/front/post-audio.tpl" postaudio=$chpost.audio width='870' height="482" class=$class arrow="1"}
 								{elseif isset($chpost.gallery_lists) & !empty($chpost.gallery_lists) }
 								{elseif isset($chpost.gallery_lists) & !empty($chpost.gallery_lists) }
 									{if $chpost.gallery_lists|@count > 1 }
 									{if $chpost.gallery_lists|@count > 1 }
-										{assign var="class" value='carousel'}
-									{else}
 										{assign var="class" value=''}
 										{assign var="class" value=''}
+									{else}
+										{assign var="class" value='responsive'}
 									{/if}
 									{/if}
-									{include file="module:chselection/views/templates/front/post-gallery.tpl" gallery_lists=$chpost.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
+									{include file="module:chcreateur/views/templates/front/post-gallery.tpl" gallery_lists=$chpost.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
 								{else}
 								{else}
 									<img class="chselection_img img-responsive" src="{$chpost.post_img.post_default}" alt="{$chpost.post_title}">
 									<img class="chselection_img img-responsive" src="{$chpost.post_img.post_default}" alt="{$chpost.post_title}">
 								{/if}
 								{/if}
@@ -56,20 +56,8 @@
 
 
 						<div class="blog_post_content_bottom">
 						<div class="blog_post_content_bottom">
 							<h1 class="post_title">{$chpost.post_title}</h1>
 							<h1 class="post_title">{$chpost.post_title}</h1>
-							<div class="post_meta clearfix">
-								<div class="meta_author">
-									{* <i class="icon-user"></i> *}
-									<span>{l s='By' mod='chselection'} {$chpost.post_author_arr.firstname} {$chpost.post_author_arr.lastname}</span>
-								</div>
-								<div class="post_meta_date">
-									{* <i class="icon-calendar"></i> *}
-									{$chpost.post_date|date_format:"%b %dTH, %Y"}
-								</div>
-								<div class="meta_comment">
-									{* <i class="icon-eye"></i> *}
-									<span>{l s='Views' mod='chselection'} ({$chpost.comment_count})</span>
-								</div>
-							</div>
+							<p class="excerpt">{$chpost.post_excerpt}</p>
+	
 							<div class="post_content">
 							<div class="post_content">
 								{$chpost.post_content nofilter}
 								{$chpost.post_content nofilter}
 							</div>
 							</div>
@@ -89,7 +77,7 @@
 								</div>
 								</div>
 							</section>
 							</section>
 						{/if}
 						{/if}
-
+					<div class="trait dernier"></div>
 					</div>
 					</div>
 				</article>
 				</article>
 			</div>
 			</div>

+ 2 - 2
views/templates/front/vignette.tpl

@@ -2,7 +2,7 @@
 <div id="chcmsvignette_block_home" class="block">
 <div id="chcmsvignette_block_home" class="block">
 <div class="block-content clearfix">
 <div class="block-content clearfix">
     {*$chselposts|print_r*}
     {*$chselposts|print_r*}
-    {foreach from=$chselposts item=vignette name=vignloop}
+    {foreach from=$chposts item=vignette name=vignloop}
       {if isset($vignette.post_img.post_default) }
       {if isset($vignette.post_img.post_default) }
         {assign var="counter" value=$smarty.foreach.vignloop.iteration}
         {assign var="counter" value=$smarty.foreach.vignloop.iteration}
 
 
@@ -22,7 +22,7 @@
         <div class="block_content vignette_content col1 col-lg-{$larg} col-md-{$larg} col-xs-12">
         <div class="block_content vignette_content col1 col-lg-{$larg} col-md-{$larg} col-xs-12">
           <div class="vignette_cadre">
           <div class="vignette_cadre">
           <section class="vignette_section">
           <section class="vignette_section">
-            <a href="/selection/{$vignette.id_chselposts}_{$vignette.link_rewrite}">
+            <a href="/selection/{$vignette.id_chcreaposts}_{$vignette.link_rewrite}">
             <div class="titre">
             <div class="titre">
               <h3>{$vignette.post_title}</h3>
               <h3>{$vignette.post_title}</h3>
             </div>
             </div>