Ticket #2899: optional_css.patch
| File optional_css.patch, 2.9 kB (added by Michael.Nolan, 1 year ago) |
|---|
-
plugins/sfPropelActAsCommentableBehaviorPlugin/config/app.yml.sample
old new 22 22 namespaces: 23 23 frontend: 24 24 backend: administrator 25 use_ajax: true 25 use_ajax: true 26 css: false 26 27 count: 27 28 enabled: true 28 29 method: setSfCommentCount -
plugins/sfPropelActAsCommentableBehaviorPlugin/modules/sfComment/lib/BasesfCommentComponents.class.php
old new 22 22 23 23 public function executeCommentForm() 24 24 { 25 sfContext::getInstance()->getResponse()->addStylesheet('/sfPropelActAsCommentableBehaviorPlugin/css/sf_comment');26 25 $this->getConfig(); 26 if ($this->config['css']) 27 { 28 sfContext::getInstance()->getResponse()->addStylesheet('/sfPropelActAsCommentableBehaviorPlugin/css/sf_comment'); 29 } 27 30 28 31 if ($this->object instanceof sfOutputEscaperObjectDecorator) 29 32 { … … 100 103 $config = array('user' => $config_user, 101 104 'anonymous' => $config_anonymous, 102 105 'use_ajax' => sfConfig::get('app_sfPropelActAsCommentableBehaviorPlugin_use_ajax', false), 106 'css' => sfConfig::get('app_sfPropelActAsCommentableBehaviorPlugin_css', true), 103 107 'namespaces' => array()); 104 108 105 109 $this->config = $config; -
plugins/sfPropelActAsCommentableBehaviorPlugin/README
old new 72 72 all: 73 73 sfPropelActAsCommentableBehaviorPlugin: 74 74 use_ajax: true 75 css: true 75 76 anonymous: 76 77 enabled: true 77 78 layout: … … 105 106 file, you can tweak the default setup: 106 107 * the '''use_ajax''' rule indicates whether or not the comment system must use 107 108 ajax. 109 * the '''css''' rule indicates whether or not to load the supplied styles. 108 110 * the '''anonymous''' rules will tweak the way the plugin handles anonymous 109 111 comments: 110 112 * '''enabled''' : enables or disables anonymous comments. … … 378 380 all: 379 381 sfPropelActAsCommentableBehaviorPlugin: 380 382 use_ajax: true 383 css: true 381 384 anonymous: 382 385 enabled: true 383 386 layout: