Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->pagetitle=sprintf($format,$title);
- if ($this->get( 'seo','keywords' )!=''&&$keywords!='')$keywords.=",";
- if ($this->get( 'seo','description' )!=''&&$descr!='')$descr.=" ";
- if (($descrln=200-iconv_strlen($descr, "utf-8"))>=(strpos($this->get( 'seo', 'description' ),' ')))
- $descr.=iconv_substr($this->get( 'seo', 'description' ), 0, $descrln, 'utf-8' );
- if ( $echo ) {
- echo "<title>".sprintf($format,$title)."</title>rn";
- echo '<meta name="Description" content="'.preg_replace('/['"]/', '',$descr)."" />rn";
- echo '<meta name="Keywords" content="'.$keywords.$this->get( 'seo', 'keywords' )."" />rn";
- } else {
- return sprintf($format,$title);
- }
- }
- }
- echo '<meta name="Description" content="'.preg_replace('/['"]/', '',$descr)."" />rn";
- echo '<meta name="Keywords" content="'.$keywords.$this->get( 'seo', 'keywords' )."" />rn";
- $this->pagetitle=sprintf($format,$title);
- if ($this->get( 'seo','keywords' )!=''&&$keywords!='')$keywords.=",";
- if ($this->get( 'seo','description' )!=''&&$descr!='')$descr.=" ";
- if (($descrln=200-iconv_strlen($descr, "utf-8"))>=(strpos($this->get( 'seo', 'description' ),' ')))
- $descr.=iconv_substr($this->get( 'seo', 'description' ), 0, $descrln, 'utf-8' );
- if ( $echo ) {
- echo "<title>".sprintf($format,$title)."</title>rn";
- } else {
- return sprintf($format,$title);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement