Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ne pas afficher le meta du site en mode article, static, categorie #40

Closed
pluxml opened this issue Dec 26, 2013 · 0 comments
Closed

Ne pas afficher le meta du site en mode article, static, categorie #40

pluxml opened this issue Dec 26, 2013 · 0 comments
Labels
changes new features

Comments

@pluxml
Copy link
Collaborator

pluxml commented Dec 26, 2013

S'il n'y a pas de meta description spécifique indiquée pour la page, ne rien mettre plutôt que la meta du site qui ne décrit pas la page à proprement parler

Exemple: remplacer

        if($this->plxMotor->mode == 'article') {
            if($meta=='author')
                echo '<meta name="author" content="'.$this->artAuthor(false).'" />'."\n";
            else {
                $meta_content=trim($this->plxMotor->plxRecord_arts->f('meta_'.$meta));
                if(!empty($meta_content))
                    echo '<meta name="'.$meta.'" content="'.plxUtils::strCheck($meta_content).'" />'."\n";
                elseif(!empty($this->plxMotor->aConf['meta_'.$meta]))
                    echo '<meta name="'.$meta.'" content="'.plxUtils::strCheck($this->plxMotor->aConf['meta_'.$meta]).'" />'."\n";
            }
            return;
        }

par

        if($this->plxMotor->mode == 'article') {
            if($meta=='author')
                echo '<meta name="author" content="'.$this->artAuthor(false).'" />'."\n";
            else {
                $meta_content=trim($this->plxMotor->plxRecord_arts->f('meta_'.$meta));
                if(!empty($meta_content))
                    echo '<meta name="'.$meta.'" content="'.plxUtils::strCheck($meta_content).'" />'."\n";
            }
            return;
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes new features
Projects
None yet
Development

No branches or pull requests

1 participant