Changeset 95557 in spip-zone


Ignore:
Timestamp:
Feb 27, 2016, 8:07:08 PM (4 years ago)
Author:
p@…
Message:

Règles de codages

Location:
_plugins_/foundation_6/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/foundation_6/trunk/formulaires/configurer_foundation_6.php

    r93803 r95557  
    11<?php
     2
     3if (!defined('_ECRIRE_INC_VERSION')) {
     4        return;
     5}
     6
    27function formulaires_configurer_foundation_6_saisies() {
    38        // Lire le fichier YAML qui contient la structure du formulaire.
  • _plugins_/foundation_6/trunk/foundation_6_administrations.php

    r93762 r95557  
    88 * @licence    GNU/GPL
    99 */
    10 if (!defined('_ECRIRE_INC_VERSION')) return;
    11 
     10if (!defined('_ECRIRE_INC_VERSION')) {
     11        return;
     12}
    1213
    1314/*
  • _plugins_/foundation_6/trunk/foundation_6_options.php

    r93845 r95557  
    11<?php
    22
    3 if (!defined("_ECRIRE_INC_VERSION")) return;
     3if (!defined('_ECRIRE_INC_VERSION')) {
     4        return;
     5}
    46
    57// Utiliser la version SASS
  • _plugins_/foundation_6/trunk/foundation_6_pipelines.php

    r93773 r95557  
    1010 */
    1111
    12 if (!defined('_ECRIRE_INC_VERSION')) return;
    13 
    14 /*
    15 *   Pipeline Insert_head
    16 */
    17 function foundation_6_insert_head ($flux) {
    18 
    19   // Si on est en mode app, on revoie le bon squelette
    20   if (_FOUNDATION_SASS) {
    21     $flux .= recuperer_fond('inclure/head-foundation-app');
    22   }
    23   else {
    24     $flux .= recuperer_fond('inclure/head-foundation');
    25   }
    26 
    27   return $flux;
     12if (!defined('_ECRIRE_INC_VERSION')) {
     13    return;
    2814}
    2915
    3016/*
    31 *   Pipeline Insert_head_css
    32 */
    33 function foundation_6_insert_head_css ($flux) {
     17 *   Pipeline Insert_head
     18 */
     19function foundation_6_insert_head($flux) {
    3420
    3521    // Si on est en mode app, on revoie le bon squelette
    36   if (_FOUNDATION_SASS) {
    37       $flux .= recuperer_fond('inclure/css/head-foundation-app');
    38   }
    39   else {
    40     $flux .= recuperer_fond('inclure/css/head-foundation');
    41   }
     22    if (_FOUNDATION_SASS) {
     23        $flux .= recuperer_fond('inclure/head-foundation-app');
     24    } else {
     25        $flux .= recuperer_fond('inclure/head-foundation');
     26    }
    4227
    43   return $flux;
     28    return $flux;
    4429}
     30
     31/*
     32 *   Pipeline Insert_head_css
     33 */
     34function foundation_6_insert_head_css($flux) {
     35
     36    // Si on est en mode app, on revoie le bon squelette
     37    if (_FOUNDATION_SASS) {
     38        $flux .= recuperer_fond('inclure/css/head-foundation-app');
     39    } else {
     40        $flux .= recuperer_fond('inclure/css/head-foundation');
     41    }
     42
     43    return $flux;
     44}
  • _plugins_/foundation_6/trunk/inc/foundation.php

    r94442 r95557  
    11<?php
    2 if (!defined('_ECRIRE_INC_VERSION')) return;
     2
     3if (!defined('_ECRIRE_INC_VERSION')) {
     4        return;
     5}
    36
    47/**
     
    1316  if (strpos($matches[0], 'vimeo')) {
    1417          $vimeo = ' vimeo';
    15   }
    16   else {
     18  } else {
    1719          $vimeo = '';
    1820  }
     
    2224
    2325  // On revoie la bonne structure html d'iframe.
    24   return wrap($matches[0], '<div class="flex-video'.$vimeo.'">');;
     26  return wrap($matches[0], '<div class="flex-video'.$vimeo.'">');
    2527}
    2628
     
    4446        }
    4547        return $class;
    46     }
    47     else {
     48    } else {
    4849        return $type.'-'.$nombre_colonnes.' ';
    4950    }
Note: See TracChangeset for help on using the changeset viewer.