public function configure() { $this->widgetSchema['contact_from'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['contact_from']->setDefault(peanutConfig::get('contact_from')); $this->widgetSchema['contact_from']->setLabel('Your email'); $this->widgetSchema['webmaster_name'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['webmaster_name']->setDefault(peanutConfig::get('webmaster_name')); $this->widgetSchema['webmaster_name']->setLabel('The webmaster name'); $this->widgetSchema['webmaster_mail'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['webmaster_mail']->setDefault(peanutConfig::get('webmaster_mail')); $this->widgetSchema['webmaster_mail']->setLabel('The webmaster email'); $this->widgetSchema['subject'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['subject']->setDefault(peanutConfig::get('subject')); $this->widgetSchema['subject']->setLabel('Subject'); $this->widgetSchema['map_name'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['map_name']->setDefault(peanutConfig::get('map_name')); $this->widgetSchema['map_name']->setLabel('Google map name'); $this->widgetSchema['map_center'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['map_center']->setDefault(peanutConfig::get('map_center')); $this->widgetSchema['map_center']->setLabel('Google map center'); $this->widgetSchema['map_address'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['map_address']->setDefault(peanutConfig::get('map_address')); $this->widgetSchema['map_address']->setLabel('Google map address'); $this->widgetSchema['map_zoom'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['map_zoom']->setDefault(peanutConfig::get('map_zoom')); $this->widgetSchema['map_zoom']->setLabel('Google map zoom'); $this->widgetSchema['map_size'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['map_size']->setDefault(peanutConfig::get('map_size')); $this->widgetSchema['map_size']->setLabel('Google map size'); }
public function configure() { $this->widgetSchema['site_name'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['site_name']->setDefault(peanutConfig::get('site_name')); $this->widgetSchema['site_name']->setLabel('Site name'); $this->widgetSchema['meteo'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meteo']->setDefault(peanutConfig::get('meteo')); $this->widgetSchema['news_feed'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['news_feed']->setDefault(peanutConfig::get('news_feed')); $this->widgetSchema['facebook_box'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['facebook_box']->setDefault(peanutConfig::get('facebook_box')); $this->widgetSchema['facebook_box']->setLabel('Facebook Box'); $this->widgetSchema['twitter_box'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['twitter_box']->setDefault(peanutConfig::get('twitter_box')); $this->widgetSchema['twitter_box']->setLabel('Twitter Box'); $this->widgetSchema['left_footer'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['left_footer']->setDefault(peanutConfig::get('left_footer')); $this->widgetSchema['left_footer']->setLabel('Left Footer'); $this->widgetSchema['right_footer'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['right_footer']->setDefault(peanutConfig::get('right_footer')); $this->widgetSchema['right_footer']->setLabel('Right Footer'); $this->widgetSchema['baseline'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['baseline']->setDefault(peanutConfig::get('baseline')); $this->widgetSchema['baseline']->setLabel('Baseline Blog'); $this->widgetSchema['header_message'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['header_message']->setDefault(peanutConfig::get('header_message')); $this->widgetSchema['header_message']->setLabel('Header Message'); $this->widgetSchema['breakout_1_message'] = new sfWidgetFormCKEditor(array('jsoptions' => array('customConfig' => '/lib/ckeditor/config.js', 'filebrowserBrowseUrl' => '/lib/elfinder-1.1/elfinder.php.html', 'filebrowserImageBrowseUrl' => '/lib/elfinder-1.1/elfinder.php.html'))); $this->widgetSchema['breakout_1_message']->setDefault(peanutConfig::get('breakout_1_message')); $this->widgetSchema['breakout_1_message']->setLabel('Bloc Texte (Accueil 1)'); $this->widgetSchema['breakout_2_message'] = new sfWidgetFormCKEditor(array('jsoptions' => array('customConfig' => '/lib/ckeditor/config.js', 'filebrowserBrowseUrl' => '/lib/elfinder-1.1/elfinder.php.html', 'filebrowserImageBrowseUrl' => '/lib/elfinder-1.1/elfinder.php.html'))); $this->widgetSchema['breakout_2_message']->setDefault(peanutConfig::get('breakout_2_message')); $this->widgetSchema['breakout_2_message']->setLabel('Bloc Texte (Accueil 2)'); }
public function configure() { $interface = unserialize(peanutConfig::get('interface')); //echo "<pre>"; print_r($interface); echo "</pre>"; die(); $this->widgetSchema['title'] = new sfWidgetFormHtml5InputText(); if ($interface['title']) { $this->widgetSchema['title']->setDefault($interface['title']); } $this->widgetSchema['title']->setLabel('Interface title'); $this->widgetSchema['color'] = new sfWidgetFormHtml5InputText(); if ($interface['color']) { $this->widgetSchema['color']->setDefault($interface['color']); } $this->widgetSchema['color']->setLabel('Interface color'); if (isset($interface['logo'])) { $dir_logo = '/uploads/admin/'; $file_logo = $interface['logo']; } else { $dir_logo = '/images/'; $file_logo = 'default_logo.png'; } $this->widgetSchema['logo'] = new sfWidgetFormInputFileEditable(array('label' => 'Logo', 'file_src' => $dir_logo . $file_logo, 'is_image' => true, 'edit_mode' => !$this->isNew(), 'template' => $this->_getImageUrl($file_logo))); $this->validatorSchema['logo'] = new sfValidatorFile(array('required' => false, 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir') . '/admin', 'validated_file_class' => 'peanutValidatedFile')); if (isset($interface['background'])) { $dir_background = '/uploads/admin/'; $file_background = $interface['background']; } else { $dir_background = '/images/'; $file_background = 'default_background.png'; } $this->widgetSchema['background'] = new sfWidgetFormInputFileEditable(array('label' => 'Background', 'file_src' => $dir_background . $file_background, 'is_image' => true, 'edit_mode' => !$this->isNew(), 'template' => $this->_getImageUrl($file_background))); $this->validatorSchema['background'] = new sfValidatorFile(array('required' => false, 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir') . '/admin', 'validated_file_class' => 'peanutValidatedFile')); }
public function executeInterface(sfWebRequest $request) { $this->form = new interfaceSettingsForm(); if ($request->isMethod('post')) { $this->form->bind($request->getParameter($this->form->getName()), $request->getFiles($this->form->getName())); if ($this->form->isValid()) { $interface = array(); $bdd = unserialize(peanutConfig::get('interface')); foreach ($this->form->getValues() as $name => $value) { if ($name == 'logo' || $name == 'background') { if ($value) { $extension = $value->getExtension($value->getOriginalExtension()); $value->save(sfConfig::get('sf_upload_dir') . '/admin/' . $value->getOriginalName()); $interface[$name] = $value->getOriginalName(); } else { $interface[$name] = $bdd[$name]; } } else { $interface[$name] = $value; } } peanutConfig::set('interface', serialize($interface)); } } }
public function executeAds(sfWebRequest $request) { $this->form = new adsSettingsForm(); if ($request->isMethod('post')) { $this->form->bind($request->getParameter($this->form->getName()), $request->getFiles($this->form->getName())); if ($this->form->isValid()) { $ads = array(); $bdd = unserialize(peanutConfig::get('ads')); foreach ($this->form->getValues() as $name => $value) { if ($name == 'logo') { if ($value) { $extension = $value->getExtension($value->getOriginalExtension()); $value->save(sfConfig::get('sf_upload_dir') . '/ads/' . $value->getOriginalName()); $ads[$name] = $value->getOriginalName(); } else { $ads[$name] = $bdd[$name]; } } else { $ads[$name] = $value; } } peanutConfig::set('ads', serialize($ads)); } } }
public function configure() { $this->widgetSchema['site_name'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['site_name']->setDefault(peanutConfig::get('site_name')); $this->widgetSchema['site_name']->setLabel('Site name'); $this->widgetSchema['meteo'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meteo']->setDefault(peanutConfig::get('meteo')); }
public function executeFeed(sfWebRequest $request) { if (peanutConfig::get('news_feed')) { $items = simplexml_load_file(peanutConfig::get('news_feed')); $this->items = $items; } else { return sfView::NONE; } }
public function executeIndex(sfWebRequest $request) { $weather = new GoogleWeatherAPI(peanutConfig::get('meteo'), substr($this->getUser()->getCulture(), 0, 2)); if ($weather->isFound()) { $weather = $weather->getCurrent(); } else { $weather = null; } $this->weather = $weather; }
protected function _getSelectedLang() { $lang = unserialize(peanutConfig::get('lang')); if ($lang['lang']) { foreach ($lang['lang'] as $key => $value) { $selectedLang[$value] = $value; } } else { $selectedLang['0'] = 'FR'; } return $selectedLang; }
public function configure() { $this->widgetSchema['site_name'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['site_name']->setDefault(peanutConfig::get('site_name')); $this->widgetSchema['site_name']->setLabel('Site name'); $this->widgetSchema['meteo'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meteo']->setDefault(peanutConfig::get('meteo')); $this->widgetSchema['project_per_page'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['project_per_page']->setDefault(peanutConfig::get('project_per_page')); $this->widgetSchema['project_per_page']->setLabel('Project per page'); $this->widgetSchema['news_feed'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['news_feed']->setDefault(peanutConfig::get('news_feed')); }
public function isFirstRequest($boolean = null) { if (is_null($boolean)) { return $this->getAttribute('first_request', true); } $this->setAttribute('first_request', $boolean); if (peanutConfig::get('firstlang')) { $lang = strtolower(peanutConfig::get('firstlang')); } else { $lang = 'fr'; } $this->setCulture($lang); }
public function configure() { $this->widgetSchema['google_mail'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_mail']->setDefault(peanutConfig::get('google_mail')); $this->widgetSchema['google_password'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_password']->setDefault(peanutConfig::get('google_password')); $this->widgetSchema['google_tracking'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_tracking']->setDefault(peanutConfig::get('google_tracking')); $this->widgetSchema['google_guid'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_guid']->setDefault(peanutConfig::get('google_guid')); $this->widgetSchema['google_guid']->setLabel('Your GUID (google analytics)'); $this->widgetSchema->setHelps(array('google_tracking' => 'The id of the site you want to track (webmaster tools)', 'google_guid' => 'The guid of your site (Google Analytics)')); }
public function executeLanguage(sfWebRequest $request) { $lang = unserialize(peanutConfig::get('lang')); if ($lang['lang']) { foreach ($lang['lang'] as $key => $value) { $tabLang[] = strtolower($value); $tabTrad[] = $lang['trad'][$key]; } } else { $tabLang = array('fr'); $tabTrad = array('Français'); } $this->language = array('lang' => $tabLang, 'trad' => $tabTrad); }
public function configure() { $lang = unserialize(peanutConfig::get('lang')); $default = array(); $user = self::getValidUser(); /* Pour connaitre l'iso639-2 des différentes langues : http://hapax.qc.ca/iso639-2.fr.htm */ /* Pour l'ISO 3166 : http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ $this->widgetSchema['lang'] = new sfWidgetFormChoice(array('multiple' => true, 'expanded' => true, 'choices' => array('SK' => 'Albanais', 'DE' => 'Allemand', 'EN' => 'Anglais', 'AR' => 'Arabe', 'HY' => 'Arménien', 'BE' => 'Biélorusse', 'MY' => 'Birman', 'BR' => 'Breton', 'BG' => 'Bulgare', 'CA' => 'Catalan', 'ZH' => 'Chinois', 'KO' => 'Coréen', 'CO' => 'Corse', 'HR' => 'Croate', 'DA' => 'Danois', 'ES' => 'Espagnol', 'FI' => 'Finnois', 'FR' => 'Français', 'CY' => 'Gallois', 'KA' => 'Géorgien', 'GR' => 'Grec', 'KL' => 'Groenlandais', 'HU' => 'Hongrois', 'ID' => 'Indonésien', 'GA' => 'Irlandais', 'IS' => 'Islandais', 'IT' => 'Italien', 'JA' => 'Japonais', 'KK' => 'Kazakh', 'LV' => 'Letton', 'LT' => 'Lituanien', 'LU' => 'Luxembourgeois', 'MK' => 'Macédonien', 'MG' => 'Malgache', 'MT' => 'Maltais', 'MO' => 'Moldave', 'MN' => 'Mongol', 'NL' => 'Néerlandais', 'NE' => 'Népalais', 'NO' => 'Norvégien', 'PL' => 'Polonais', 'PT' => 'Portugais', 'RO' => 'Roumain', 'RU' => 'Russe', 'SL' => 'Slovène', 'SU' => 'Soundanais', 'SV' => 'Suédois', 'TY' => 'Tahitien', 'CS' => 'Tchèque', 'TR' => 'Turc', 'UK' => 'Ukrainien', 'VI' => 'Vietnamien'))); if ($lang['lang']) { foreach ($lang['lang'] as $key => $value) { $default[$key] = $value; } } $this->widgetSchema['lang']->setDefault($default); }
public function configure() { $ads = unserialize(peanutConfig::get('ads')); $this->widgetSchema['title'] = new sfWidgetFormHtml5InputText(); if ($ads['title']) { $this->widgetSchema['title']->setDefault($ads['title']); } $this->widgetSchema['title']->setLabel('Ads title'); $this->widgetSchema['logo'] = new sfWidgetFormInputFile(array('label' => 'Special Ads (Width: 270px)')); $this->widgetSchema['url'] = new sfWidgetFormHtml5InputText(); if ($ads['url']) { $this->widgetSchema['url']->setDefault($ads['url']); } $this->widgetSchema['url']->setLabel('URL to click'); $this->validatorSchema['logo'] = new sfValidatorFile(array('required' => false, 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir') . '/ads', 'validated_file_class' => 'peanutValidatedFile')); }
public function executeList(sfWebRequest $request) { /* Chargement des variables */ $tagsTab = null; $this->url = null; $this->category_url = $request->getParameter('category') ? $request->getParameter('category') : null; if ($request->getParameter('tag')) { /* S'il y a TAG dans l'URL : on recherche des projets par tags */ echo "Tags Request"; $this->url = 'tag'; $projects = Doctrine_Core::getTable('ndPortfolio')->getProjectsByTag($request->getParameter('tag')); } elseif ($request->getParameter('subcategory')) { /* S'il y a SUBCATEGORY dans l'URL : on recherche des projets d'une sous-categorie */ echo "SubCateg. Request"; $projects = Doctrine_Core::getTable('ndPortfolio')->getProjectsBySubCategory($request->getParameter('subcategory')); } elseif ($request->getParameter('category')) { /* S'il y a CATEGORY dans l'URL : on recherche des projets d'une catégorie (inclus les sous-categ.) */ echo "Categ. Request"; $root_id = Doctrine_Core::getTable('ndCategories')->getRootId($request->getParameter('category')); $this->root_id = $root_id->fetchOne(array(), Doctrine_Core::HYDRATE_ARRAY); $projects = Doctrine_Core::getTable('ndPortfolio')->getProjectsByCategory($this->root_id['root_id']); } else { /* Sinon, ni de TAG ni de CATEGORY donc on recup. tous les projets */ echo "Default Request"; $projects = Doctrine_Core::getTable('ndPortfolio')->getProjects(); } $items = $this->_processing($request, $projects); #Récupération des tags foreach ($items as $item) { $tags = Doctrine::getTable('ndPortfolio')->find($item['id']); $actuTag[$item['id']] = $tags->getTags(); foreach ($actuTag as $tag) { $tagsTab[$item['id']] = explode(', ', $tag); } } $this->projects = $items; $nbProjects = peanutConfig::get('project_per_page'); $numPage = $request->getParameter('page', 1); $this->pager = new sfDoctrinePager('ndPortfolio', $nbProjects); $this->pager->setQuery($projects); $this->pager->setPage($numPage); $this->pager->init(); $this->actuTag = $tagsTab; //echo "<pre>"; print_r($this->projects); echo "</pre>"; die(); }
public function configure() { $this->widgetSchema['meta_title'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meta_title']->setDefault(peanutConfig::get('meta_title')); $this->widgetSchema['meta_title']->setLabel('Your meta title'); $this->widgetSchema['meta_description'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meta_description']->setDefault(peanutConfig::get('meta_description')); $this->widgetSchema['meta_description']->setLabel('Your meta description'); $this->widgetSchema['meta_keywords'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meta_keywords']->setDefault(peanutConfig::get('meta_keywords')); $this->widgetSchema['meta_keywords']->setLabel('Your meta keywords'); $this->widgetSchema['meta_robots'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meta_robots']->setDefault(peanutConfig::get('meta_robots')); $this->widgetSchema['meta_robots']->setLabel('Your meta robots'); $this->widgetSchema['meta_language'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['meta_language']->setDefault(peanutConfig::get('meta_language')); $this->widgetSchema['meta_language']->setLabel('Your meta language'); }
public function configure() { $interface = unserialize(peanutConfig::get('interface')); //echo "<pre>"; print_r($interface); echo "</pre>"; die(); $this->widgetSchema['title'] = new sfWidgetFormHtml5InputText(); if ($interface['title']) { $this->widgetSchema['title']->setDefault($interface['title']); } $this->widgetSchema['title']->setLabel('Interface title'); $this->widgetSchema['color'] = new sfWidgetFormHtml5InputColor(array('template.html' => '')); if ($interface['color']) { $this->widgetSchema['color']->setDefault($interface['color']); } $this->widgetSchema['color']->setLabel('Interface color'); $this->widgetSchema['logo'] = new sfWidgetFormInputFile(array('label' => 'Logo')); $this->validatorSchema['logo'] = new sfValidatorFile(array('required' => false, 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir') . '/admin', 'validated_file_class' => 'peanutValidatedFile')); $this->widgetSchema['background'] = new sfWidgetFormInputFile(array('label' => 'Background')); $this->validatorSchema['background'] = new sfValidatorFile(array('required' => false, 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir') . '/admin', 'validated_file_class' => 'peanutValidatedFile')); }
public function configure() { $this->widgetSchema['google_mail'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_mail']->setDefault(peanutConfig::get('google_mail')); $this->widgetSchema['google_password'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_password']->setDefault(peanutConfig::get('google_password')); $this->widgetSchema['google_tracking'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_tracking']->setDefault(peanutConfig::get('google_tracking')); $this->widgetSchema['google_guid_wt'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_guid_wt']->setDefault(peanutConfig::get('google_guid_wt')); $this->widgetSchema['google_guid_wt']->setLabel('Your GUID (Google Webmaster Tools)'); $this->widgetSchema['google_guid_ga'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['google_guid_ga']->setDefault(peanutConfig::get('google_guid_ga')); $this->widgetSchema['google_guid_ga']->setLabel('Your GUID (Google Analytics)'); $this->widgetSchema['domain_name'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['domain_name']->setDefault(peanutConfig::get('domain_name')); $this->widgetSchema['domain_name']->setLabel('Your domain name (without www)'); $this->widgetSchema->setHelps(array('google_tracking' => 'The id of the site you want to track (webmaster tools)', 'google_guid_wt' => 'The guid of your site (Google Webmaster Tools)', 'google_guid_ga' => 'The guid of your site (Google Analytics)', 'domain_name' => 'The name of your domain without the www')); }
public function configure() { $adr = unserialize(peanutConfig::get('adr')); $user = self::getValidUser(); $this->widgetSchema['society'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['society']->setDefault(peanutConfig::get('society')); $this->widgetSchema['url'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['url']->setDefault(peanutConfig::get('url')); $this->widgetSchema['street-address'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['street-address']->setDefault($adr['street-address']); $this->widgetSchema['locality'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['locality']->setDefault($adr['locality']); $this->widgetSchema['region'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['region']->setDefault($adr['region']); $this->widgetSchema['postal-code'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['postal-code']->setDefault($adr['postal-code']); $this->widgetSchema['country-name'] = new sfWidgetFormI18nChoiceCountry(array('culture' => $user->getCulture())); $this->widgetSchema['country-name']->setDefault(strtoupper(substr($adr['country-name'], 0, 2))); $this->widgetSchema['tel'] = new sfWidgetFormHtml5InputText(); $this->widgetSchema['tel']->setDefault(peanutConfig::get('tel')); }
public function setup() { parent::setup(); unset($this['id']); $this->widgetSchema['is_indexable'] = new sfWidgetFormChoice(array('choices' => array(0 => 'noindex', 1 => 'index'), 'expanded' => false)); $this->widgetSchema['is_followable'] = new sfWidgetFormChoice(array('choices' => array(0 => 'nofollow', 1 => 'follow'), 'expanded' => false)); $this->widgetSchema->setLabels(array('is_indexable' => 'Index', 'is_followable' => 'Follow')); $this->widgetSchema->setFormFormatterName('div'); /* Construction des langues du site */ $lang = unserialize(peanutConfig::get('lang')); $default = array(); if ($lang['lang']) { foreach ($lang['lang'] as $key => $value) { $default[$key] = strtolower($value); } $this->embedI18n($default); foreach ($default as $lang) { $this->widgetSchema->setLabel($lang, 'language-' . $lang); } } else { $this->embedI18n(array('fr')); $this->widgetSchema->setLabel('fr', 'Français'); } }
<?php $ads = unserialize(peanutConfig::get('ads')); ?> <div class="widget center specialads"> <?php if ($ads['url']) { ?> <a href="<?php echo $ads['url']; ?> " title="<?php echo $ads['title']; ?> "><?php } ?> <img src="/uploads/ads/<?php echo $ads['logo']; ?> "> <?php if ($ads['url']) { ?> </a><?php } ?> <hr class="half-bottom" /> </div>
<div class="super-container full-width" id="section-tophat"> <div class="container"> <div class="sixteen columns"> <span class="subscribe">Liens rapides : <?php include_partial('items/headerMenu', array('items' => $vars['itemsMenu'])); ?> </span> <span class="tagline"><?php echo peanutConfig::get('header_message'); ?> </span> </div> </div> </div> <?php include_partial('items/mainMenu', array('areas' => $vars['generalMenu'], 'itemsSlug' => $vars['itemsSlug'], 'items' => $vars['itemsMenu'], 'ads' => $vars['ads'], 'social' => $vars['social']));
</div> <?php } ?> <?php if (count($articles2)) { ?> <div class="container"> <div class="four columns"> <div class="module aside"> <div class="module-meta"> <?php echo peanutConfig::get('breakout_2_message'); ?> </div> </div> </div> <?php foreach ($articles2 as $article) { ?> <div class="four columns"> <div class="module"> <div class="module-img"> <a title="Lire la suite de l'article : <?php echo $article['name']; ?>
<body id="authenticated" > <div id="container" class="container clearfix"> <header id="top" class="clearfix" role="banner"> <h1 class="prefix_1 grid_8"> <a href="<?php echo url_for('@homepage', true); ?> " title="<?php echo __('Homepage'); ?> " /> <?php echo peanutConfig::get('site_name'); ?> </a> </h1> <section id="adminBar" class="floatRight listInline"> <a href="<?php echo url_for('@sf_guard_signout'); ?> " title="<?php echo __('Logout'); ?> " class="picto exit"> <img src="/peanutAssetPlugin/images/admin/Power.png" width="24" height="24" /> <p><?php echo __('Logout');
</title> <meta name="description" content="<?php if (!include_slot('description', peanutConfig::get('meta_description'))) { get_slot('description'); } ?> "> <meta name="keywords" content="<?php if (!include_slot('keywords', peanutConfig::get('meta_keywords'))) { get_slot('keywords'); } ?> "> <meta name="robots" content="<?php if (!include_slot('robots', peanutConfig::get('meta_robots'))) { get_slot('robots'); } ?> "> <link rel="shortcut icon" href="/favicon.ico" /> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" /> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
<?php seo('title', $item, $item['title']); seo('description', $item, truncate_text(strip_tags(htmlspecialchars_decode($item['content'])), '255')); seo('keywords', $item, peanutConfig::get('meta_keywords')); seo('index', $item); ?> <article id="page-<?php echo $item['id']; ?> "> <header> <h1><?php echo htmlentities($item['title']); ?> </h1> </header> <section> <?php echo htmlspecialchars_decode($item['content']); ?> </section> <footer> <?php include_partial('author', array('author' => $item['sfGuardUser'])); ?> <?php
<?php if ($form->isNew() && (!$sf_user->hasPermission('2') && !$sf_user->hasPermission('3') && !$sf_user->hasPermission('4') && !$sf_user->hasPermission('5'))) { echo '<div class="sorry sf_admin_form">'; echo __('Sorry but you can not create link.', null, 'sfGuard'); echo '.. Cheater!</div>'; } else { ?> <?php use_stylesheets_for_form($form); use_javascripts_for_form($form); ?> <?php $lang = unserialize(peanutConfig::get('lang')); ?> <div class="sf_admin_form"> <section class="language clearfix"> <ul> <?php if ($lang['lang']) { ?> <?php foreach ($lang['lang'] as $key => $value) { ?> <li class="<?php echo strtolower($value); ?>
<section id="sf_admin_container"> <header> <h1><?php echo __('About your interface'); ?> </h1> </header> <?php if ($sf_user->hasPermission('5') || $sf_user->hasPermission('4')) { ?> <?php $interface = unserialize(peanutConfig::get('interface')); ?> <section id="sf_admin_header"></section> <section id="sf_admin_content"> <div class="sf_admin_form clearfix"> <form action="<?php echo url_for('settings/interface'); ?> " method="post" enctype="multipart/form-data"> <?php echo $form->renderHiddenFields(); ?> <fieldset id="sf_fieldset_content">
include_partial('pager', array('pager' => $pager, 'route' => 'portfolio_list', 'params' => array('sf_format' => 'html'))); ?> </span> </p> </div> <?php } ?> </div> <script> $(document).ready(function(){ var i = <?php echo peanutConfig::get('project_per_page'); ?> ; var s = 1; while(s <= i){ $('#s'+s).cycle({ fx: 'fade', speed: 300, timeout: 5000, pause: 1, next: '#next'+s, prev: '#prev'+s }); s = s+1; }