Dotclear

Vous n'êtes pas identifié(e).

Annonce

#201 2015-07-31 10:03:09

Jen
Membre
Inscription : 2009-09-25
Site Web

Re : Theme freshy2 à beta-tester

Voici la 181e ligne :

<?php $attach_i = 0; ?><?php while ($_ctx->attachments->fetch()) : ?><?php $GLOBALS['attach_i'] = $attach_i; $attach_f = $_ctx->attachments; $GLOBALS['attach_f'] = $attach_f;$_ctx->file_url = $attach_f->file_url; ?>

Hors ligne

#202 2015-07-31 10:09:43

pierrevg
Membre
Inscription : 2005-04-13
Site Web

Re : Theme freshy2 à beta-tester

Tu nous mets la totalité du fichier, c'est mieux quand même. Au mini ce qui précède et suit parce que là...

Version de dc ? Liste (avec version) des plugins additionnels ? Tous sont à jour ?

Hors ligne

#203 2015-07-31 10:14:22

Jen
Membre
Inscription : 2009-09-25
Site Web

Re : Theme freshy2 à beta-tester

ah ok :D

Dotclear 2.7.5
Plugins tous à jour :

about:config - 0.5
Accessible Captcha - 1.2
Akismet - 1.1
antiflood - 0.5.2
Antispam - 1.4.1
attachments - 1.1
Blowup Config - 1.2
Colorbox - 3
Contactez-moi - 1.5
DL Manager - 1.1.5
dotajax - 1.1
externalLinks - 3.3.1
Fair Trackbacks - 1.1
Import / Export - 3.2
Include Subcats - 2.4
Liste des liens - 1.3.1
Maintenance - 1.2
Média externe - 1
Menu - 1.8.7
My Favicon - 0.8.1
Notification par e-mail - 1.1
Outils pour Webmaster - 0.5.2
Pages - 1.3
Pictures Show - 1.0.3
Pictures Show Add-on - Freshy 2 - 1
Signalements (pings) - 1.2
simpleMenu - 1.1.1
Sitemaps - 1.2
Tags - 1.2
themeEditor - 1
user:preferences - 0.3
Widgets - 3.1

Et le fichier :

<!DOCTYPE html>
<html lang="<?php echo context::global_filter($core->blog->settings->system->lang,0,0,0,0,0,0,'BlogLanguage'); ?>">
<head>
  <meta charset="UTF-8" />
  <meta name="ROBOTS" content="<?php echo context::robotsPolicy($core->blog->settings->system->robots_policy,''); ?>" />

  <title><?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?> - <?php echo context::global_filter($core->blog->name,1,0,0,0,0,0,'BlogName'); ?></title>
  <meta name="description" lang="<?php if ($_ctx->posts->post_lang) { echo context::global_filter($_ctx->posts->post_lang,0,0,0,0,0,0,'EntryLang'); } else {echo context::global_filter($core->blog->settings->system->lang,0,0,0,0,0,0,'EntryLang'); } ?>" content="<?php echo context::global_filter($_ctx->posts->getExcerpt(0)." ".$_ctx->posts->getContent(0),1,1,180,0,0,0,'EntryContent'); ?>" />
  <meta name="copyright" content="<?php echo context::global_filter($core->blog->settings->system->copyright_notice,1,0,0,0,0,0,'BlogCopyrightNotice'); ?>" />
  <meta name="author" content="<?php echo context::global_filter($_ctx->posts->getAuthorCN(),1,0,0,0,0,0,'EntryAuthorCommonName'); ?>" />
  <meta name="date" content="<?php echo context::global_filter($_ctx->posts->getISO8601Date(''),0,0,0,0,0,0,'EntryDate'); ?>" />

  <meta property="dc.title" content="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" />
  <meta property="dc.description" lang="<?php if ($_ctx->posts->post_lang) { echo context::global_filter($_ctx->posts->post_lang,0,0,0,0,0,0,'EntryLang'); } else {echo context::global_filter($core->blog->settings->system->lang,0,0,0,0,0,0,'EntryLang'); } ?>" content="<?php echo context::global_filter($_ctx->posts->getExcerpt(0)." ".$_ctx->posts->getContent(0),1,1,180,0,0,0,'EntryContent'); ?>" />
  <meta property="dc.creator" content="<?php echo context::global_filter($_ctx->posts->getAuthorCN(),1,0,0,0,0,0,'EntryAuthorCommonName'); ?>" />
  <meta property="dc.language" content="<?php if ($_ctx->posts->post_lang) { echo context::global_filter($_ctx->posts->post_lang,0,0,0,0,0,0,'EntryLang'); } else {echo context::global_filter($core->blog->settings->system->lang,0,0,0,0,0,0,'EntryLang'); } ?>" />
  <meta property="dc.publisher" content="<?php echo context::global_filter($core->blog->settings->system->editor,1,0,0,0,0,0,'BlogEditor'); ?>" />
  <meta property="dc.rights" content="<?php echo context::global_filter($core->blog->settings->system->copyright_notice,1,0,0,0,0,0,'BlogCopyrightNotice'); ?>" />
  <meta property="dc.date" content="<?php echo context::global_filter($_ctx->posts->getISO8601Date(''),0,0,0,0,0,0,'EntryDate'); ?>" />
  <meta property="dc.type" content="text" />
  <meta property="dc.format" content="text/html" />

  <link rel="contents" href="<?php echo context::global_filter($core->blog->url.$core->url->getURLFor("archive"),0,0,0,0,0,0,'BlogArchiveURL'); ?>" title="<?php echo __('Archives'); ?>" />
  <?php if($_ctx->posts->trackbacksActive()) : ?><link rel="pingback" href="<?php echo context::global_filter($core->blog->url.$core->url->getURLFor('xmlrpc',$core->blog->id),0,0,0,0,0,0,'BlogXMLRPCURL'); ?>" /><?php endif; ?>

  <?php $next_post = $core->blog->getNextPost($_ctx->posts,1,0,0); ?>
<?php if ($next_post !== null) : ?><?php $_ctx->posts = $next_post; unset($next_post);
while ($_ctx->posts->fetch()) : ?><link rel="next" href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>"
  title="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" /><?php endwhile; $_ctx->posts = null; ?><?php endif; ?>


  <?php $prev_post = $core->blog->getNextPost($_ctx->posts,-1,0,0); ?>
<?php if ($prev_post !== null) : ?><?php $_ctx->posts = $prev_post; unset($prev_post);
while ($_ctx->posts->fetch()) : ?><link rel="prev" href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>"
  title="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" /><?php endwhile; $_ctx->posts = null; ?><?php endif; ?>


  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php echo context::global_filter($core->blog->url.$core->url->getURLFor("feed","atom"),0,0,0,0,0,0,'BlogFeedURL'); ?>" />

  <?php try { echo $core->tpl->getData('_head.html'); } catch (Exception $e) {} ?>


  <script type="text/javascript" src="<?php echo context::global_filter($core->blog->getQmarkURL(),0,0,0,0,0,0,'BlogQmarkURL'); ?>pf=post.js"></script>
  <script type="text/javascript">
  //<![CDATA[
  var post_remember_str = '<?php echo __('Remember me on this blog'); ?>';
  //]]>
  </script>
</head>

<body class="dc-post">
  <div id="body">
    <?php if ($_ctx->posts->trackbacksActive()) { echo $_ctx->posts->getTrackbackData(); } ?>


    <?php try { echo $core->tpl->getData('_top.html'); } catch (Exception $e) {} ?>

    <div id="page" class="<?php 
if (tplFreshy2Theme::$config->right_sidebar != "none")
  echo "sidebar_right ";
if (tplFreshy2Theme::$config->left_sidebar != "none")
  echo "sidebar_left";
?>
">
      <div class="container">
	<div id="main" role="main">
	  <div id="content">

	    <div id="p<?php echo context::global_filter($_ctx->posts->post_id,0,0,0,0,0,0,'EntryID'); ?>" class="post" role="article">
	      <h2 class="post-title"><?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?></h2>

	    <?php if ($core->hasBehavior('publicEntryBeforeContent')) { $core->callBehavior('publicEntryBeforeContent',$core,$_ctx);} ?>

	      <?php if($_ctx->posts->isExtended()) : ?>
		<div class="post-excerpt"><?php echo context::global_filter($_ctx->posts->getExcerpt(0),0,0,0,0,0,0,'EntryExcerpt'); ?></div>
	      <?php endif; ?>

	      <div class="post-content"><?php echo context::global_filter($_ctx->posts->getContent(0),0,0,0,0,0,0,'EntryContent'); ?></div>

	    <?php if ($core->hasBehavior('publicEntryAfterContent')) { $core->callBehavior('publicEntryAfterContent',$core,$_ctx);} ?>
      
      <div class="meta">
        <ul>

          <li><?php echo __('By'); ?> <span class="author"><?php echo context::global_filter($_ctx->posts->getAuthorLink(),0,0,0,0,0,0,'EntryAuthorLink'); ?></span> | <?php echo context::global_filter($_ctx->posts->getDate('',''),0,0,0,0,0,0,'EntryDate'); ?> | <?php echo context::global_filter($_ctx->posts->getTime('',''),0,0,0,0,0,0,'EntryTime'); ?><?php try { echo $core->tpl->getData('user_share.html'); } catch (Exception $e) {} ?>
</li>

	        <li>
	
      		<?php
				if (psConf::getIfActif()) {
					try {
						$obj_meta = new dcMeta($GLOBALS["core"]);
						$rep_picture = $obj_meta->getMetaStr($_ctx->posts->post_meta,psConf::getMetaRepName());
		
						if (psPicturesGallery::isGallery($rep_picture,psConf::getGalPicturesFormatId(),psConf::getGalThumbnailsFormatId()) ) {
							// si les parametres de l admin sont les bons
							if ( psConf::getDisplayName() != "none"
								&& psConf::getGalPlace() == psConf::$post_gallery_place_specific )
							{
								// si le theme courant est un theme natif
								// OU si theme courant n a pas d extention et le theme par defaut est un theme natif
								if (	psThemeSpy::isNativeTheme()
									||
									(	!psThemeSpy::haveExtention()
										&& psThemeSpy::isNativeTheme(psConf::getDefaultTheme())
									))
								{
								
								echo "
				  <div id=\"pictures\">
				    <h3>".__("The gallery")."</h3>";
						
								try { echo $core->tpl->getData("ps_".psConf::getPostGalleryTheme().".html"); } catch (Exception $e) {}
					
								echo "
				  </div>";
								}
							}
						}
					}
					catch (Exception $e) {
						// on ne fait rien
					}
				}
				?><?php if(($_ctx->posts->hasComments() || $_ctx->posts->commentsActive())) : ?><?php echo __('Comments'); ?><span class="item"><a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>#comments" class="comment_count"><?php if ($_ctx->posts->nb_comment == 0) {
  printf(__('no comments'),$_ctx->posts->nb_comment);
} elseif ($_ctx->posts->nb_comment == 1) {
  printf(__('one comment'),$_ctx->posts->nb_comment);
} else {
  printf(__('%d comments'),$_ctx->posts->nb_comment);
} ?></a></span><?php endif; ?> 
	
      		<?php if($_ctx->posts->cat_id) : ?><?php echo __('Category'); ?><span class="item"><?php
$_ctx->categories = $core->blog->getCategoryParents($_ctx->posts->cat_id);
while ($_ctx->categories->fetch()) : ?><a href="<?php echo context::global_filter($core->blog->url.$core->url->getURLFor("category",$_ctx->categories->cat_url),0,0,0,0,0,0,'CategoryURL'); ?>"><?php echo context::global_filter($_ctx->categories->cat_title,1,0,0,0,0,0,'CategoryTitle'); ?></a> &rsaquo; <?php endwhile; $_ctx->categories = null; ?><a href="<?php echo context::global_filter($_ctx->posts->getCategoryURL(),0,0,0,0,0,0,'EntryCategoryURL'); ?>"><?php echo context::global_filter($_ctx->posts->cat_title,1,0,0,0,0,0,'EntryCategory'); ?></a></span><?php endif; ?> 

          <?php
$_ctx->meta = $core->meta->getMetaRecordset($_ctx->posts->post_meta,'tag'); $_ctx->meta->sort('meta_id_lower','asc'); ?><?php while ($_ctx->meta->fetch()) : ?>
		      <?php if ($_ctx->meta->isStart()) : ?><?php echo __('Tags'); ?><span class="item"><?php endif; ?><a href="<?php echo context::global_filter($core->blog->url.$core->url->getURLFor("tag",rawurlencode($_ctx->meta->meta_id)),0,0,0,0,0,0,'TagURL'); ?>" rel="tag"><?php echo context::global_filter($_ctx->meta->meta_id,0,0,0,0,0,0,'TagID'); ?></a><?php if ($_ctx->loopPosition(0,-1,null,null)) : ?>, <?php endif; ?>
		      <?php if ($_ctx->meta->isEnd()) : ?></span><?php endif; ?>
		      <?php endwhile; $_ctx->meta = null; ?>
          </li>

          <?php if($_ctx->posts->commentsActive() || $_ctx->posts->trackbacksActive() || $_ctx->posts->countMedia()) : ?>
          <li>
          <?php endif; ?>
          <?php if($_ctx->posts->commentsActive()) : ?>
					<img alt="<?php echo __('This post\'s comments Atom feed'); ?>" src="<?php echo context::global_filter($core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme,0,0,0,0,0,0,'BlogThemeURL'); ?>/images/icons/feed-icon-16x16.gif" /><span class="flux"><a href="<?php echo context::global_filter($core->blog->url.$core->url->getURLFor("feed","atom"),0,0,0,0,0,0,'BlogFeedURL'); ?>/comments/<?php echo context::global_filter($_ctx->posts->post_id,0,0,0,0,0,0,'EntryID'); ?>" title="<?php echo __('This post\'s comments Atom feed'); ?>"><?php echo __('This post\'s comments feed'); ?></a></span>
          <?php endif; ?>
          <?php if($_ctx->posts->trackbacksActive()) : ?>
		      <img alt="<?php echo __('Trackback'); ?>" src="<?php echo context::global_filter($core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme,0,0,0,0,0,0,'BlogThemeURL'); ?>/images/icons/trackback-icon-16x16.gif" /><span class="flux"><a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>#pings" rel="trackback" title="<?php echo __('Trackback'); ?>"><?php if ($_ctx->posts->nb_trackback == 0) {
  printf(__('no trackbacks'),$_ctx->posts->nb_trackback);
} elseif ($_ctx->posts->nb_trackback == 1) {
  printf(__('one trackback'),$_ctx->posts->nb_trackback);
} else {
  printf(__('%d trackbacks'),$_ctx->posts->nb_trackback);
} ?></a></span>
          <?php endif; ?>
		    	<?php if($_ctx->posts->countMedia()) : ?>
          <img alt="<?php echo __('Attachments'); ?>" src="<?php echo context::global_filter($core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme,0,0,0,0,0,0,'BlogThemeURL'); ?>/images/icons/download-icon-16x16.gif" /><span class="flux"><a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>#attachments"><?php if ($_ctx->posts->countMedia() == 0) {
  printf(__('no attachment'),(integer) $_ctx->posts->countMedia());
} elseif ($_ctx->posts->countMedia() == 1) {
  printf(__('one attachment'),(integer) $_ctx->posts->countMedia());
} else {
  printf(__('%d attachments'),(integer) $_ctx->posts->countMedia());
} ?></a></span>
          <?php endif; ?>
          <?php if($_ctx->posts->commentsActive() || $_ctx->posts->trackbacksActive() || $_ctx->posts->countMedia()) : ?>
          </li>
          <?php endif; ?>	
        </ul>
      </div>
    
	    </div> <!-- End #post -->

	    <?php
if ($_ctx->posts !== null && $core->media) {
$_ctx->attachments = $core->media->getPostMedia($_ctx->posts->post_id, null, true);
?>
<?php $attach_i = 0; ?><?php while ($_ctx->attachments->fetch()) : ?><?php $GLOBALS['attach_i'] = $attach_i; $attach_f = $_ctx->attachments; $GLOBALS['attach_f'] = $attach_f;$_ctx->file_url = $attach_f->file_url; ?>
	      <?php if ($_ctx->attachments->isStart()) : ?>
		<div class="download">
		  <h3><?php echo __('Attachments'); ?></h3>
		<ul>
	      <?php endif; ?>
	      <li class="<?php echo context::global_filter($_ctx->attachments->media_type,0,0,0,0,0,0,'AttachmentType'); ?>">
		<?php if($_ctx->attachments->type == "audio/mpeg3") : ?>
		  <?php try { echo $core->tpl->getData('_mp3_player.html'); } catch (Exception $e) {} ?>
<span class="download-mp3"> - </span>
		<?php endif; ?>
		<?php if(($_ctx->attachments->type == "video/x-flv" || $_ctx->attachments->type == "video/mp4" || $_ctx->attachments->type == "video/x-m4v")) : ?>
		  <?php try { echo $core->tpl->getData('_flv_player.html'); } catch (Exception $e) {} ?>

		<?php endif; ?>
		<?php if(!($_ctx->attachments->type == "video/x-flv" || $_ctx->attachments->type == "video/mp4" || $_ctx->attachments->type == "video/x-m4v")) : ?>
		  <span class="download-mp3"><a href="<?php echo($core->blog->url.$core->url->getBase('download').'/'.context::global_filter($attach_f->media_id,0,0,0,0,0,0,'AttachmentURL')); ?>"
		  title="<?php echo context::global_filter($_ctx->attachments->basename,0,0,0,0,0,0,'AttachmentFileName'); ?> (<?php echo context::global_filter(files::size($_ctx->attachments->size),0,0,0,0,0,0,'AttachmentSize'); ?>)"><?php echo context::global_filter($_ctx->attachments->media_title,0,0,0,0,0,0,'AttachmentTitle'); ?></a></span>
		<?php endif; ?>
	      </li>
	      <?php if ($_ctx->attachments->isEnd()) : ?>
		  </ul>
		</div>
	      <?php endif; ?>
	    <?php $attach_i++; ?><?php endwhile; $_ctx->attachments = null; ?><?php } ?>
<?php
				$mod_ps = $core->plugins->getModules("picturesShow");
				if (psfreshy2Spy::canBeUse()) {
					try {
						$obj_meta = new dcMeta($GLOBALS["core"]);
						$rep_picture = $obj_meta->getMetaStr($_ctx->posts->post_meta,psConf::getMetaRepName());
		
						if (psPicturesGallery::isGallery($rep_picture,psConf::getGalPicturesFormatId(),psConf::getGalThumbnailsFormatId()) ) {
				
							if (psConf::getDisplayName() != "none"
								&& psConf::getGalPlace() == psConf::$post_gallery_place_specific
								&& (	psThemeSpy::getCurrentTheme() == "freshy2"
									||
									(	!psThemeSpy::haveExtention()
										&& psConf::getDefaultTheme() == "freshy2"
									)
								)
							) {
								echo "
  <div class=\"comment\">
  <div id=\"pictures\">
	<h3>".__("The gallery")."</h3>";
								try { echo $core->tpl->getData("ps_".psConf::getPostGalleryTheme().".html"); } catch (Exception $e) {}
								echo "
  </div>
  <p style=\"clear: both; height: 1px;\">&nbsp;</p>
  </div>";
							}
						}
					}
					catch (Exception $e) {
						// on ne fait rien
					}
				}
				?>

	    <p id="navigation">

        <?php $prev_post = $core->blog->getNextPost($_ctx->posts,-1,1,0); ?>
<?php if ($prev_post !== null) : ?><?php $_ctx->posts = $prev_post; unset($prev_post);
while ($_ctx->posts->fetch()) : ?><span class="alignleft">&#171; <a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>" title="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" class="prev"><?php echo context::global_filter($_ctx->posts->post_title,1,0,50,0,0,0,'EntryTitle'); ?></a></span><?php endwhile; $_ctx->posts = null; ?><?php endif; ?>

	      <?php $next_post = $core->blog->getNextPost($_ctx->posts,1,1,0); ?>
<?php if ($next_post !== null) : ?><?php $_ctx->posts = $next_post; unset($next_post);
while ($_ctx->posts->fetch()) : ?> <span class="alignright"><a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>" title="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" class="next"><?php echo context::global_filter($_ctx->posts->post_title,1,0,50,0,0,0,'EntryTitle'); ?></a> &#187;</span><?php endwhile; $_ctx->posts = null; ?><?php endif; ?>


        <!--<?php $prev_post = $core->blog->getNextPost($_ctx->posts,-1,0,0); ?>
<?php if ($prev_post !== null) : ?><?php $_ctx->posts = $prev_post; unset($prev_post);
while ($_ctx->posts->fetch()) : ?><a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>"
	      title="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" class="prev"><?php echo context::global_filter($_ctx->posts->post_title,1,0,50,0,0,0,'EntryTitle'); ?></a><?php endwhile; $_ctx->posts = null; ?><?php endif; ?>

	      <?php $next_post = $core->blog->getNextPost($_ctx->posts,1,0,0); ?>
<?php if ($next_post !== null) : ?><?php $_ctx->posts = $next_post; unset($next_post);
while ($_ctx->posts->fetch()) : ?><a href="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>"
	      title="<?php echo context::global_filter($_ctx->posts->post_title,1,0,0,0,0,0,'EntryTitle'); ?>" class="next"><?php echo context::global_filter($_ctx->posts->post_title,1,0,50,0,0,0,'EntryTitle'); ?></a><?php endwhile; $_ctx->posts = null; ?><?php endif; ?>
-->
	      <br style="clear:both" />
	    </p>

	    <?php
				if (psConf::getIfActif()) {
					try {
						$obj_meta = new dcMeta($GLOBALS["core"]);
						$rep_picture = $obj_meta->getMetaStr($_ctx->posts->post_meta,psConf::getMetaRepName());
		
						if (psPicturesGallery::isGallery($rep_picture,psConf::getGalPicturesFormatId(),psConf::getGalThumbnailsFormatId()) ) {
							// si les parametres de l admin sont les bons
							if ( psConf::getDisplayName() != "none"
								&& psConf::getGalPlace() == psConf::$post_gallery_place_specific )
							{
								// si le theme courant est un theme natif
								// OU si theme courant n a pas d extention et le theme par defaut est un theme natif
								if (	psThemeSpy::isNativeTheme()
									||
									(	!psThemeSpy::haveExtention()
										&& psThemeSpy::isNativeTheme(psConf::getDefaultTheme())
									))
								{
								
								echo "
				  <div id=\"pictures\">
				    <h3>".__("The gallery")."</h3>";
						
								try { echo $core->tpl->getData("ps_".psConf::getPostGalleryTheme().".html"); } catch (Exception $e) {}
					
								echo "
				  </div>";
								}
							}
						}
					}
					catch (Exception $e) {
						// on ne fait rien
					}
				}
				?><?php if(($_ctx->posts->hasComments() || $_ctx->posts->commentsActive())) : ?>
	      <h3 id="comments"><!--<?php if ($_ctx->posts->nb_comment == 0) {
  printf(__('no comments'),$_ctx->posts->nb_comment);
} elseif ($_ctx->posts->nb_comment == 1) {
  printf(__('one comment'),$_ctx->posts->nb_comment);
} else {
  printf(__('%d comments'),$_ctx->posts->nb_comment);
} ?>--></h3>
	      <div class="commentlist">
		<?php if ($_ctx->exists("meta") && ($_ctx->meta->meta_type == "tag")) { if (!isset($params)) { $params = array(); }
if (!isset($params['from'])) { $params['from'] = ''; }
if (!isset($params['sql'])) { $params['sql'] = ''; }
$params['from'] .= ', '.$core->prefix.'meta META ';
$params['sql'] .= 'AND META.post_id = P.post_id ';
$params['sql'] .= "AND META.meta_type = 'tag' ";
$params['sql'] .= "AND META.meta_id = '".$core->con->escape($_ctx->meta->meta_id)."' ";
} ?>
<?php
$params['comment_trackback'] = false;
if ($_ctx->nb_comment_per_page !== null) { $params['limit'] = $_ctx->nb_comment_per_page; }
if ($_ctx->posts !== null) { $params['post_id'] = $_ctx->posts->post_id; $core->blog->withoutPassword(false);
}
if ($_ctx->exists("categories")) { $params['cat_id'] = $_ctx->categories->cat_id; }
if ($_ctx->exists("langs")) { $params['sql'] = "AND P.post_lang = '".$core->blog->con->escape($_ctx->langs->post_lang)."' "; }
$params['order'] = 'comment_dt asc';
$_ctx->comments = $core->blog->getComments($params); unset($params);
if ($_ctx->posts !== null) { $core->blog->withoutPassword(true);}
?>
<?php while ($_ctx->comments->fetch()) : ?>
		  <div class="comment <?php if ($_ctx->comments->isMe()) { echo 'comment_author'; } ?> <?php if (($_ctx->comments->index()+1)%2) { echo 'odd'; } ?> <?php if ($_ctx->comments->index() == 0) { echo 'first'; } ?>" id="c<?php echo $_ctx->comments->comment_id; ?>">
			<?php echo '<img src="http://www.gravatar.com/avatar.php?gravatar_id='.md5(strtolower($_ctx->comments->getEmail(false))).'&amp;default=&amp;size=40" class="avatar" alt="Gravatar de '.$_ctx->comments->comment_author.'" />'; ?> <h4><?php echo context::global_filter($_ctx->comments->getContent(0),0,1,50,0,0,0,'CommentContent'); ?></h4>
			<small><span class="author"><?php echo context::global_filter($_ctx->comments->getAuthorLink(),0,0,0,0,0,0,'CommentAuthorLink'); ?></span> | <?php echo context::global_filter($_ctx->comments->getDate('',''),0,0,0,0,0,0,'CommentDate'); ?> | <?php echo context::global_filter($_ctx->comments->getTime('',''),0,0,0,0,0,0,'CommentTime'); ?></small>
			<div class="comment_content">

      <?php if ($core->hasBehavior('publicCommentBeforeContent')) { $core->callBehavior('publicCommentBeforeContent',$core,$_ctx);} ?>
			<?php echo context::global_filter($_ctx->comments->getContent(0),0,0,0,0,0,0,'CommentContent'); ?>

      <?php if ($core->hasBehavior('publicCommentAfterContent')) { $core->callBehavior('publicCommentAfterContent',$core,$_ctx);} ?>
			</div>
      
		  </div>
		<?php endwhile; $_ctx->comments = null; ?>
	      </div>
	    <?php endif; ?>

	    <?php if($_ctx->posts->commentsActive()) : ?>    
	      <?php if ($_ctx->form_error !== null) : ?>
		<small class="important" id="pr"><?php if ($_ctx->form_error !== null) { echo $_ctx->form_error; } ?></small>
	      <?php endif; ?>

	      <?php if (!empty($_GET['pub'])) : ?>
		<small id="pr"><?php echo __('Your comment has been published.'); ?></small>
	      <?php endif; ?>

	      <?php if (isset($_GET['pub']) && $_GET['pub'] == 0) : ?>
		<small id="pr"><?php echo __('Your comment has been submitted and will be reviewed for publication.'); ?></small>
	      <?php endif; ?>

	      <form action="<?php echo context::global_filter($_ctx->posts->getURL(),0,0,0,0,0,0,'EntryURL'); ?>#pr" method="post" id="comment-form" role="form">
		<?php if ($_ctx->comment_preview !== null && $_ctx->comment_preview["preview"]) : ?>
		  <div id="pr">
		    <h3><?php echo __('Your comment'); ?></h3>
		    <dl>
		      <dd class="comment-preview"><?php echo context::global_filter($_ctx->comment_preview["content"],0,0,0,0,0,0,'CommentPreviewContent'); ?></dd>
		    </dl>
		    <p class="buttons"><input type="submit" class="submit" value="<?php echo __('send'); ?>" /></p>
		  </div>
		<?php endif; ?>

		<h3><?php echo __('Add a comment'); ?></h3>
      <fieldset>

        <?php if ($core->hasBehavior('publicCommentFormBeforeContent')) { $core->callBehavior('publicCommentFormBeforeContent',$core,$_ctx);} ?>
        
		  <p class="field">
		    <label for="c_name"><?php echo __('Name or nickname'); ?>&nbsp;:</label>
		    <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
		    value="<?php echo context::global_filter($_ctx->comment_preview["name"],1,0,0,0,0,0,'CommentPreviewName'); ?>" />
		  </p>

		  <p class="field">
		    <label for="c_mail"><?php echo __('Email address'); ?>&nbsp;:</label>
		    <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
		    value="<?php echo context::global_filter($_ctx->comment_preview["mail"],1,0,0,0,0,0,'CommentPreviewEmail'); ?>" />
		  </p>

		  <p class="field"><label for="c_site"><?php echo __('Website'); ?>
		    (<?php echo __('optional'); ?>)&nbsp;:</label>
		    <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
		    value="<?php echo context::global_filter($_ctx->comment_preview["site"],1,0,0,0,0,0,'CommentPreviewSite'); ?>" />
		  </p>

		  <p style="display:none"><input name="f_mail" type="text" size="30"
		  maxlength="255" value="" /></p>

		  <p class="field"><label for="c_content"><?php echo __('Comment'); ?>&nbsp;:</label>
		    <textarea name="c_content" id="c_content" cols="35"
		    rows="7"><?php echo context::global_filter($_ctx->comment_preview["rawcontent"],1,0,0,0,0,0,'CommentPreviewContent'); ?></textarea>
		  </p>

		<p class="form-help"><?php if ($core->blog->settings->system->wiki_comments) {
  echo __('Comments can be formatted using a simple wiki syntax.');
} else {
  echo __('HTML code is displayed as text and web addresses are automatically converted.');
} ?></p>

        <?php if ($core->hasBehavior('publicCommentFormAfterContent')) { $core->callBehavior('publicCommentFormAfterContent',$core,$_ctx);} ?>

		  <p class="buttons"><input type="submit" class="preview" name="preview" value="<?php echo __('preview'); ?>" />
        <?php if ($core->blog->settings->system->comment_preview_optional || ($_ctx->comment_preview !== null && $_ctx->comment_preview["preview"])) : ?><input type="submit" class="submit" value="<?php echo __('send'); ?>" /><?php endif; ?></p>
	    </fieldset>
        </form>
	    <?php endif; ?>

	    <?php if(($_ctx->posts->hasTrackbacks() || $_ctx->posts->trackbacksActive())) : ?>
	      <div id="pings">
		<h3><?php echo __('They posted on the same topic'); ?></h3>
		<?php
if ($_ctx->posts !== null) { $params['post_id'] = $_ctx->posts->post_id; $core->blog->withoutPassword(false);
}
$params['comment_trackback'] = true;
if ($_ctx->nb_comment_per_page !== null) { $params['limit'] = $_ctx->nb_comment_per_page; }
if ($_ctx->exists("categories")) { $params['cat_id'] = $_ctx->categories->cat_id; }
if ($_ctx->exists("langs")) { $params['sql'] = "AND P.post_lang = '".$core->blog->con->escape($_ctx->langs->post_lang)."' "; }
$params['order'] = 'comment_dt asc';
$_ctx->pings = $core->blog->getComments($params); unset($params);
if ($_ctx->posts !== null) { $core->blog->withoutPassword(true);}
?>
<?php while ($_ctx->pings->fetch()) : ?>
		  <?php if ($_ctx->pings->isStart()) : ?>
		    <div class="ping">
        <dl>
		  <?php endif; ?>
		  <dt id="c<?php echo $_ctx->pings->comment_id; ?>" class="<?php if (($_ctx->pings->index()+1)%2) { echo 'odd'; } ?> <?php if ($_ctx->pings->index() == 0) { echo 'first'; } ?>"> 
      <small><span class="author"><?php echo context::global_filter($_ctx->pings->comment_author,1,0,0,0,0,0,'PingBlogName'); ?></span> | <?php echo context::global_filter($_ctx->pings->getDate('',''),0,0,0,0,0,0,'PingDate'); ?> | <?php echo context::global_filter($_ctx->pings->getTime('',''),0,0,0,0,0,0,'PingTime'); ?></small></dt>

		  <dd class="<?php if (($_ctx->pings->index()+1)%2) { echo 'odd'; } ?> <?php if ($_ctx->pings->index() == 0) { echo 'first'; } ?>"><p><a href="<?php echo context::global_filter($_ctx->pings->getAuthorURL(),0,0,0,0,0,0,'PingAuthorURL'); ?>"
		    <?php if($core->blog->settings->system->comments_nofollow) { echo ' rel="nofollow"';} ?>><?php echo context::global_filter($_ctx->pings->getTrackbackTitle(),1,0,0,0,0,0,'PingTitle'); ?></a></p>

        <?php if ($core->hasBehavior('publicPingBeforeContent')) { $core->callBehavior('publicPingBeforeContent',$core,$_ctx);} ?>
        
		    <?php echo context::global_filter($_ctx->pings->getTrackbackContent(),0,0,0,0,0,0,'PingContent'); ?>

        <?php if ($core->hasBehavior('publicPingAfterContent')) { $core->callBehavior('publicPingAfterContent',$core,$_ctx);} ?>
	    </dd>
		  <?php if ($_ctx->pings->isEnd()) : ?>
		    </dl>
		    </div>
		  <?php endif; ?>
		<?php endwhile; $_ctx->pings = null; ?>
	      </div>
	    <?php endif; ?>

	    <?php if($_ctx->posts->trackbacksActive()) : ?>
	      <p id="ping-url"><?php echo __('Trackback URL'); ?>&nbsp;: <?php if ($_ctx->posts->trackbacksActive()) { echo $_ctx->posts->getTrackbackLink(); } ?>
</p>
	    <?php endif; ?>
	    
	  </div> <!-- End #content -->

	  <?php try { echo $core->tpl->getData('_sidebar.html'); } catch (Exception $e) {} ?>

	</div> <!-- End #main -->
      </div> <!-- End #container -->
    </div> <!-- End #page -->

    <?php try { echo $core->tpl->getData('_footer.html'); } catch (Exception $e) {} ?>

  </div> <!-- End #body -->
</body>
</html>

Dernière modification par Jen (2015-07-31 10:14:49)

Hors ligne

#204 2015-07-31 10:26:55

pierrevg
Membre
Inscription : 2005-04-13
Site Web

Re : Theme freshy2 à beta-tester

Désactive pictureshow pour voir... Vide le cache de dc (éventuellement via FTP), le cache de ton navigateur puis teste à nouveau.
Tu peux supprimer includesubcat, il est intégré à dc2.7

Tu utilises dl manager ?
C'est quoi : Pictures Show Add-on - Freshy 2 - 1 ? On peut le trouver où ?

Dernière modification par pierrevg (2015-07-31 10:38:06)

Hors ligne

#205 2015-07-31 10:37:04

i_love_dc
Membre
Inscription : 2007-07-13

Re : Theme freshy2 à beta-tester

Certainement rien à voir avec le problème du message d'erreur mais ...
Firebug détecte un image qui devrait s'afficher mais ne s'affiche pas.

"NetworkError: 404 Not Found - http://roulonsavelo.free.fr/themes/freshy2/images/background/none.gif"

A propos de ton "problème", peut être une piste, qd je regarde le cache de google sur  cette adresse
"http://webcache.googleusercontent.com/s … clnk&gl=fr"

Je constate que tes commentaires étaient activés, et également un plugin captcha (antispam commentaire)
Peut être un bug de ce coté la (plugin captcha non mis à jour ou manquant ou obsolète et à désactiver  ?

Hors ligne

#206 2015-07-31 10:44:16

pierrevg
Membre
Inscription : 2005-04-13
Site Web

Re : Theme freshy2 à beta-tester

Non, le fichier none.gif n'a aucune importance. Ça veut juste dire que son fichier css n'est pas à jour. Ce fichier a été dégagé je sais plus quand.

Par contre, passer à jquery 1.11 (params du blog) pourrait être aussi une bonne chose.

Dernière modification par pierrevg (2015-07-31 10:48:29)

Hors ligne

#207 2015-07-31 11:54:17

i_love_dc
Membre
Inscription : 2007-07-13

Re : Theme freshy2 à beta-tester

pierrevg a écrit :

Par contre, passer à jquery 1.11 (params du blog) pourrait être aussi une bonne chose.

pas bête l'animal :-)

Hors ligne

#208 2015-07-31 12:15:17

Jen
Membre
Inscription : 2009-09-25
Site Web

Re : Theme freshy2 à beta-tester

Alors j'ai :
- désactivé picture show et son add-on pour Freshy (téléchargeable ici). Je ne m'en sers plus.
- idem pour dlmanager
- supprimé includesubcats
- passé le blog en jquery 1.11.1
- vidé le cache dotclear
- rafraichi la page avec un CTRL+F5

pourtant j'ai toujours l'erreur... :/
D'autres idées ?

@i_love_dc : effectivement j'utilise Accessible Captcha, mais il est bien à jour.

Ah et oui mon css n'est pas à jour. En fait il est customisé, donc la flemme de refaire/retrouver les custos à partir d'un fichier à jour :)

Merci pour votre aide !
--------------------------------

EDIT : AH ! Je crois que j'ai trouvé ! J'ai désactivé "attachments" et tout rentre dans l'ordre. Pourtant c'est un plugin "officiel" et à jour. Je vais essayer de le reuploader.
EDIT 2 : pas d'erreur après ré-upload. Peut-être que le transfert avait merdé... Tout à l'air OK maintenant.

Dernière modification par Jen (2015-07-31 12:52:35)

Hors ligne

#209 2018-02-13 02:37:21

pierrevg
Membre
Inscription : 2005-04-13
Site Web

Re : Theme freshy2 à beta-tester

v2.0 à récupérer chez moi.

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map