Advertisement
Guest User

Untitled

a guest
Apr 15th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. $this->pagetitle=sprintf($format,$title);
  2. if ($this->get( 'seo','keywords' )!=''&&$keywords!='')$keywords.=",";
  3. if ($this->get( 'seo','description' )!=''&&$descr!='')$descr.=" ";
  4. if (($descrln=200-iconv_strlen($descr, "utf-8"))>=(strpos($this->get( 'seo', 'description' ),' ')))
  5. $descr.=iconv_substr($this->get( 'seo', 'description' ), 0, $descrln, 'utf-8' );
  6. if ( $echo ) {
  7. echo "<title>".sprintf($format,$title)."</title>rn";
  8. echo '<meta name="Description" content="'.preg_replace('/['"]/', '',$descr)."" />rn";
  9. echo '<meta name="Keywords" content="'.$keywords.$this->get( 'seo', 'keywords' )."" />rn";
  10. } else {
  11. return sprintf($format,$title);
  12. }
  13. }
  14.  
  15. }
  16.  
  17. echo '<meta name="Description" content="'.preg_replace('/['"]/', '',$descr)."" />rn";
  18. echo '<meta name="Keywords" content="'.$keywords.$this->get( 'seo', 'keywords' )."" />rn";
  19.  
  20. $this->pagetitle=sprintf($format,$title);
  21. if ($this->get( 'seo','keywords' )!=''&&$keywords!='')$keywords.=",";
  22. if ($this->get( 'seo','description' )!=''&&$descr!='')$descr.=" ";
  23. if (($descrln=200-iconv_strlen($descr, "utf-8"))>=(strpos($this->get( 'seo', 'description' ),' ')))
  24. $descr.=iconv_substr($this->get( 'seo', 'description' ), 0, $descrln, 'utf-8' );
  25. if ( $echo ) {
  26. echo "<title>".sprintf($format,$title)."</title>rn";
  27. } else {
  28. return sprintf($format,$title);
  29. }
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement