Changeset 4884
- Timestamp:
- 08/21/07 22:31:57 (1 year ago)
- Files:
-
- plugins/sfSimpleBlogPlugin/README (modified) (4 diffs)
- plugins/sfSimpleBlogPlugin/config/app.yml.sample (added)
- plugins/sfSimpleBlogPlugin/data/generator/sfPropelAdmin/sfSimpleBlogAdmin/template/templates/_administration.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/lib/model/sfSimpleBlogPost.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/lib/BasesfSimpleBlogActions.class.php (modified) (16 diffs)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/lib/BasesfSimpleBlogComponents.class.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_add_comment.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_blogroll.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_comment_list.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_post_short.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_sidebar.php (modified) (2 diffs)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/indexSuccess.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/layout.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/showByTagSuccess.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/showSuccess.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogCommentAdmin/lib/BasesfSimpleBlogCommentAdminActions.class.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/config/generator.yml (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/lib/BasesfSimpleBlogPostAdminActions.class.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/templates/_edit_header.php (modified) (1 diff)
- plugins/sfSimpleBlogPlugin/package.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfSimpleBlogPlugin/README
r4821 r4884 97 97 === The `sfSimpleBlog.yml` file === 98 98 99 The plugin is highly configurable and should be easy to integrate to an existing project. Here is the default plugin configuration, taken from `myproject/plugins/sfSimpleBlogPlugin/config/sfSimpleBlog.yml.sample`:99 The plugin schema is configurable to match your database table names. Here is the default plugin configuration, taken from `myproject/plugins/sfSimpleBlogPlugin/config/sfSimpleBlog.yml.sample`: 100 100 101 101 {{{ … … 108 108 comment_table: sf_blog_comment # comment table name 109 109 tag_table: sf_blog_tag # tag table name 110 111 blog: 112 title: How is life on earth? 113 tagline: You'd better start to live before it's too late 114 author: John Doe 115 email: john.doe@howislifeonearth.com # Used only for alerts on comments 116 117 sidebar: [custom, recent_posts, tags, feeds, blogroll, meta] 118 119 custom : | 120 <h2>About the author</h2> 121 <p>My name is John Doe and I'm a freelance freelancer. I do things when I have time, 122 and the rest of the time, I write things here.</p> 123 124 blogroll: 125 - { title: how is life on earth?, url: 'http://www.howislifeonearth.com' } 126 - { title: google, url: 'http://www.google.com' } 110 }}} 111 112 You can customize these settings in `myproject/config/sfBlogPlugin.yml`. 113 114 Note: After modifying the `schema` settings, you must rebuild your model. 115 116 === The `app.yml` file === 117 118 The plugin is highly configurable and should be easy to integrate to an existing project. Here is the default plugin configuration, taken from `myproject/plugins/sfSimpleBlogPlugin/config/sfSimpleBlog.yml.sample`: 119 120 {{{ 121 all: 122 sfSimpleBlog: 123 blog: 124 title: How is life on earth? 125 tagline: You'd better start to live before it's too late 126 author: John Doe 127 email: john.doe@howislifeonearth.com # Used only for alerts on comments 128 129 sidebar: [custom, recent_posts, tags, feeds, blogroll, meta] 130 131 custom : | 132 <h2>About the author</h2> 133 <p>My name is John Doe and I'm a freelance freelancer. I do things when I have time, 134 and the rest of the time, I write things here.</p> 127 135 128 use_bundled_layout: true # if true, the three modules will use sfSimpleBlog/templates/layout.php for layout; if false, they will use the layout settings from the view.yml 129 use_ajax: true # enable posting of comments in Ajax 130 use_feeds: true # enable feeds (require sfFeed2Plugin) 131 use_rich_text: false # enable tinyMCE 132 use_media_library: false # enable support for sfMediaLibrary in TinyMCE (requires sfMediaLibraryPlugin) 133 134 post: 135 max_per_page: 5 # number of posts displayed in a list of posts 136 recent: 5 # number of posts to display in the recent sidebar widget 137 138 comment: 139 enabled: on # enable comments by default on new posts 140 disable_after: 30 # number of days after which comments on a post are not possible anymore 141 # set to 0 for unlimited comments 142 automoderation: on # triggers the automoderation of comments. Possible values are: 143 # on: comments are not published until a moderator accepts them 144 # first_post: the first comment of a user must be accepted, subsequent posts are accepted automatically 145 # off: comments are automatically accepted and published 146 147 mail_alert: on # send an email to the blog owner when a comment is posted. 148 # Possible values are: 149 # on: send an email for every posted comment 150 # moderated: send an email for every automoderated comment 151 152 feed: 153 count: 5 # number of posts appearing in the RSS feed 154 }}} 136 blogroll: 137 - { title: how is life on earth?, url: 'http://www.howislifeonearth.com' } 138 - { title: google, url: 'http://www.google.com' } 139 140 use_bundled_layout: true # if true, the three modules will use sfSimpleBlog/templates/layout.php for layout; if false, they will use the layout settings from the view.yml 141 use_ajax: true # enable posting of comments in Ajax 142 use_feeds: true # enable feeds (require sfFeed2Plugin) 143 use_rich_text: false # enable tinyMCE 144 use_media_library: false # enable support for sfMediaLibrary in TinyMCE (requires sfMediaLibraryPlugin) 145 146 post: 147 max_per_page: 5 # number of posts displayed in a list of posts 148 recent: 5 # number of posts to display in the recent sidebar widget 149 150 comment: 151 enabled: on # enable comments by default on new posts 152 disable_after: 30 # number of days after which comments on a post are not possible anymore 153 # set to 0 for unlimited comments 154 automoderation: on # triggers the automoderation of comments. Possible values are: 155 # on: comments are not published until a moderator accepts them 156 # first_post: the first comment of a user must be accepted, subsequent posts are accepted automatically 157 # off: comments are automatically accepted and published 158 159 mail_alert: on # send an email to the blog owner when a comment is posted. 160 # Possible values are: 161 # on: send an email for every posted comment 162 # moderated: send an email for every automoderated comment 163 164 feed: 165 count: 5 # number of posts appearing in the RSS feed 166 }}} 167 168 You can customize these settings in `myproject/apps/myapp/config/app.yml` 155 169 156 170 The `sidebar` array controls which widgets, and in which order, appear in the sidebar of the blog frontend. The existing widgets are: … … 161 175 - `blogroll`: list of blogs 162 176 - `meta`: not much for now (link to administration modules, but the link works only if the modules are in the same application) 163 164 Note: After modifying the `schema` settings, you must rebuild your model.165 177 166 178 === Security, view configuration, custom templates, etc. === … … 209 221 === Trunk === 210 222 211 * fabien: don't save empty tags 212 * francois: made the default schema play well with sfGuard 223 * francois: Fixed number of comments displayed in post list 224 * francois: Split the configuration into an application-wide and a project-wide file 225 * fabien: Don't save empty tags 226 * francois: Made the default schema play well with sfGuard 213 227 214 228 === 2007-06-10 | 0.8.4 Beta === plugins/sfSimpleBlogPlugin/data/generator/sfPropelAdmin/sfSimpleBlogAdmin/template/templates/_administration.php
r3781 r4884 3 3 <li>[?php echo link_to(__('Posts'), 'sfSimpleBlogPostAdmin/index') ?]</li> 4 4 <li>[?php echo link_to(__('Comments'), 'sfSimpleBlogCommentAdmin/index') ?]</li> 5 [?php if(sfConfig::get(' sf_simple_blog_blog_use_media_library', false)): ?]5 [?php if(sfConfig::get('app_sfSimpleBlog_blog_use_media_library', false)): ?] 6 6 <li>[?php echo link_to(__('Media Library'), 'sfMediaLibrary/index') ?]</li> 7 7 [?php endif; ?] plugins/sfSimpleBlogPlugin/lib/model/sfSimpleBlogPost.php
r4765 r4884 95 95 if ($this->getAllowComments()) 96 96 { 97 $validity = sfConfig::get(' sf_simple_blog_comment_disable_after', 30);97 $validity = sfConfig::get('app_sfSimpleBlog_comment_disable_after', 30); 98 98 if ($validity == 0 || $this->getCreatedSinceDays() < $validity) 99 99 { plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/lib/BasesfSimpleBlogActions.class.php
r3868 r4884 21 21 public function preExecute() 22 22 { 23 if(sfConfig::get(' sf_simple_blog_blog_use_bundled_layout', true))23 if(sfConfig::get('app_sfSimpleBlog_blog_use_bundled_layout', true)) 24 24 { 25 25 $this->setLayout(sfLoader::getTemplateDir('sfSimpleBlog', 'layout.php').'/layout'); … … 31 31 { 32 32 $this->post_pager = sfSimpleBlogPostPeer::getRecentPager( 33 sfConfig::get(' sf_simple_blog_post_max_per_page', 5),33 sfConfig::get('app_sfSimpleBlog_post_max_per_page', 5), 34 34 $this->getRequestParameter('page', 1) 35 35 ); … … 39 39 { 40 40 sfLoader::loadHelpers(array('I18N')); 41 $posts = sfSimpleBlogPostPeer::getRecent($this->getRequestParameter('nb', sfConfig::get(' sf_simple_blog_feed_count', 5)));41 $posts = sfSimpleBlogPostPeer::getRecent($this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 42 42 43 43 $this->feed = sfFeedPeer::createFromObjects( … … 45 45 array( 46 46 'format' => $this->getRequestParameter('format', 'atom1'), 47 'title' => __('Posts from %1%', array('%1%' => sfConfig::get(' sf_simple_blog_blog_title', ''))),47 'title' => __('Posts from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 48 48 'link' => $this->getController()->genUrl('sfSimpleBlog/index'), 49 'authorName' => sfConfig::get(' sf_simple_blog_blog_author', ''),49 'authorName' => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 50 50 'methods' => array('authorEmail' => '', 'authorName' => 'getAuthor') 51 51 ) … … 57 57 { 58 58 sfLoader::loadHelpers(array('I18N')); 59 $comments = sfSimpleBlogCommentPeer::getRecent($this->getRequestParameter('nb', sfConfig::get(' sf_simple_blog_feed_count', 5)));59 $comments = sfSimpleBlogCommentPeer::getRecent($this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 60 60 61 61 $this->feed = sfFeedPeer::createFromObjects( … … 63 63 array( 64 64 'format' => $this->getRequestParameter('format', 'atom1'), 65 'title' => __('Comments from %1%', array('%1%' => sfConfig::get(' sf_simple_blog_blog_title', ''))),65 'title' => __('Comments from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 66 66 'link' => $this->getController()->genUrl('sfSimpleBlog/index'), 67 'authorName' => sfConfig::get(' sf_simple_blog_blog_author', ''),67 'authorName' => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 68 68 'methods' => array('title' => 'getPostTitle', 'authorEmail' => '') 69 69 ) … … 77 77 $post = sfSimpleBlogPostPeer::retrieveByStrippedTitle($this->getRequestParameter('stripped_title')); 78 78 $this->forward404Unless($post); 79 $comments = sfSimpleBlogCommentPeer::getForPost($post, $this->getRequestParameter('nb', sfConfig::get(' sf_simple_blog_feed_count', 5)));79 $comments = sfSimpleBlogCommentPeer::getForPost($post, $this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 80 80 81 81 $this->feed = sfFeedPeer::createFromObjects( … … 83 83 array( 84 84 'format' => $this->getRequestParameter('format', 'atom1'), 85 'title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get(' sf_simple_blog_blog_title', ''))),85 'title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 86 86 'link' => $this->getController()->genUrl('sfSimpleBlog/show?stripped_title='.$post->getStrippedTitle()), 87 'authorName' => sfConfig::get(' sf_simple_blog_blog_author', ''),87 'authorName' => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 88 88 'methods' => array('title' => 'getPostTitle', 'authorEmail' => '') 89 89 ) … … 98 98 $this->post_pager = sfSimpleBlogPostPeer::getTaggedPager( 99 99 $tag, 100 sfConfig::get(' sf_simple_blog_post_max_per_page', 5),100 sfConfig::get('app_sfSimpleBlog_post_max_per_page', 5), 101 101 $this->getRequestParameter('page', 1) 102 102 ); … … 108 108 $tag = $this->getRequestParameter('tag'); 109 109 $this->forward404Unless($tag); 110 $posts = sfSimpleBlogPostPeer::getTagged($tag, $this->getRequestParameter('nb', sfConfig::get(' sf_simple_blog_feed_count', 5)));110 $posts = sfSimpleBlogPostPeer::getTagged($tag, $this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 111 111 112 112 $this->feed = sfFeedPeer::createFromObjects( … … 114 114 array( 115 115 'format' => $this->getRequestParameter('format', 'atom1'), 116 'title' => __('Posts tagged "%1%" from %2%', array('%1%' => $tag, '%2%' => sfConfig::get(' sf_simple_blog_blog_title', ''))),116 'title' => __('Posts tagged "%1%" from %2%', array('%1%' => $tag, '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 117 117 'link' => $this->getController()->genUrl('sfSimpleBlog/showByTag?tag='.$tag), 118 'authorName' => sfConfig::get(' sf_simple_blog_blog_author', ''),118 'authorName' => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 119 119 'methods' => array('authorEmail' => '') 120 120 ) … … 132 132 public function executeAddComment() 133 133 { 134 $this->forward404Unless(sfConfig::get(' sf_simple_blog_comment_enabled', true));134 $this->forward404Unless(sfConfig::get('app_sfSimpleBlog_comment_enabled', true)); 135 135 $post = sfSimpleBlogPostPeer::retrieveByStrippedTitle($this->getRequestParameter('stripped_title')); 136 136 $this->forward404Unless($post); … … 139 139 $comment = new sfSimpleBlogComment(); 140 140 $comment->setSfBlogPostId($post->getId()); 141 $automoderation = sfConfig::get(' sf_simple_blog_comment_automoderation', 'first_post');141 $automoderation = sfConfig::get('app_sfSimpleBlog_comment_automoderation', 'first_post'); 142 142 if($automoderation === true || (($automoderation == 'first_post') && !sfSimpleBlogCommentPeer::isAuthorApproved($this->getRequestParameter('name'),$this->getRequestParameter('mail')))) 143 143 { … … 162 162 $comment->save(); 163 163 164 $email_pref = sfConfig::get(' sf_simple_blog_comment_mail_alert', 1);164 $email_pref = sfConfig::get('app_sfSimpleBlog_comment_mail_alert', 1); 165 165 if($email_pref == 1 || ($email_pref == 'moderated' && $comment->getIsModerated())) 166 166 { … … 194 194 $mail->setSender('no-reply@'.$this->getRequest()->getHost()); 195 195 $mail->setMailer('mail'); 196 $mail->setFrom($mail->getSender(), sfConfig::get(' sf_simple_blog_blog_title'));197 198 $mail->addAddress(sfConfig::get(' sf_simple_blog_blog_email'));196 $mail->setFrom($mail->getSender(), sfConfig::get('app_sfSimpleBlog_blog_title')); 197 198 $mail->addAddress(sfConfig::get('app_sfSimpleBlog_blog_email')); 199 199 200 200 if($this->comment->getIsModerated()) … … 207 207 } 208 208 $mail->setSubject(__($subject_string, array( 209 '%1%' => sfConfig::get(' sf_simple_blog_blog_title'),209 '%1%' => sfConfig::get('app_sfSimpleBlog_blog_title'), 210 210 '%2%' => $this->comment->getPostTitle() 211 211 ))); plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/lib/BasesfSimpleBlogComponents.class.php
r3708 r4884 21 21 public function executeRecentPosts() 22 22 { 23 $this->post_pager = sfSimpleBlogPostPeer::getRecentPager(sfConfig::get(' sf_simple_blog_post_recent', 5), 1 );23 $this->post_pager = sfSimpleBlogPostPeer::getRecentPager(sfConfig::get('app_sfSimpleBlog_post_recent', 5), 1 ); 24 24 } 25 25 plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_add_comment.php
r3708 r4884 28 28 </form> 29 29 30 <?php if(sfConfig::get(' sf_simple_blog_blog_use_ajax', true)): ?>30 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_ajax', true)): ?> 31 31 <script> 32 32 document.getElementById('sfSimpleBlog_add_comment_form').onsubmit = function () { plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_blogroll.php
r3715 r4884 1 1 <h2><?php echo __('Blogroll') ?></h2> 2 2 <ul> 3 <?php foreach(sfConfig::get('sf_simple_blog_blog_blogroll') as $blog): ?> 3 <?php foreach(sfConfig::get('app_sfSimpleBlog_blog_blogroll', array( 4 array('title' => 'how is life on earth?', 'url' => 'http://www.howislifeonearth.com'), 5 array('title' => 'google', 'url' => 'http://www.google.com') 6 )) as $blog): ?> 4 7 <li><?php echo link_to($blog['title'], $blog['url']) ?></li> 5 8 <?php endforeach; ?> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_comment_list.php
r3868 r4884 4 4 <?php endforeach; ?> 5 5 6 <?php if(!sfConfig::get(' sf_simple_blog_comment_enabled', true) || !$post->allowComments()): ?>6 <?php if(!sfConfig::get('app_sfSimpleBlog_comment_enabled', true) || !$post->allowComments()): ?> 7 7 <div class="related_details"><?php echo __('Comments are closed.') ?></div> 8 8 <?php elseif($sf_flash->get('add_comment') == 'moderated'): ?> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_post_short.php
r3708 r4884 15 15 16 16 <div class="related_details"> 17 <?php echo link_to(format_number_choice('[0]no comment|[1]one comment|(1,+Inf]%1% comments', array('%1%' => $post-> countsfSimpleBlogComments()), $post->getNbComments()), 'sfSimpleBlog/show?stripped_title='.$post->getStrippedTitle().'#comments') ?>17 <?php echo link_to(format_number_choice('[0]no comment|[1]one comment|(1,+Inf]%1% comments', array('%1%' => $post->getNbComments()), $post->getNbComments()), 'sfSimpleBlog/show?stripped_title='.$post->getStrippedTitle().'#comments') ?> 18 18 </div> 19 19 </div> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_sidebar.php
r3715 r4884 1 1 <?php slot('sfSimpleBlog_sidebar') ?> 2 <?php foreach(sfConfig::get(' sf_simple_blog_blog_sidebar') as $widget): ?>2 <?php foreach(sfConfig::get('app_sfSimpleBlog_blog_sidebar', array('custom', 'recent_posts', 'tags', 'feeds', 'blogroll', 'meta')) as $widget): ?> 3 3 4 <?php if($widget == 'feeds' && sfConfig::get(' sf_simple_blog_blog_use_feeds', true)): ?>4 <?php if($widget == 'feeds' && sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 5 5 <?php include_partial('sfSimpleBlog/feed') ?> 6 6 <?php elseif($widget == 'tags'): ?> … … 13 13 <?php include_partial('sfSimpleBlog/blogroll') ?> 14 14 <?php else: ?> 15 <?php echo sfConfig::get(' sf_simple_blog_blog_'.$widget) ?>15 <?php echo sfConfig::get('app_sfSimpleBlog_blog_'.$widget) ?> 16 16 <?php endif; ?> 17 17 plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/indexSuccess.php
r3708 r4884 1 1 <?php use_helper('I18N', 'Date') ?> 2 <?php $sf_context->getResponse()->setTitle(sfConfig::get(' sf_simple_blog_blog_title', '')) ?>2 <?php $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?')) ?> 3 3 4 <?php if(sfConfig::get(' sf_simple_blog_blog_use_feeds', true)): ?>4 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 5 5 <?php slot('auto_discovery_link_tag') ?> 6 <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsFeed', array('title' => __('Posts from %1%', array('%1%' => sfConfig::get(' sf_simple_blog_blog_title', ''))))) ?>6 <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsFeed', array('title' => __('Posts from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'))))) ?> 7 7 <?php end_slot() ?> 8 8 <?php endif; ?> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/layout.php
r3708 r4884 14 14 <div id="sfSimpleBlog_container"> 15 15 <div id="header"> 16 <h1><?php echo link_to(sfConfig::get(' sf_simple_blog_blog_title'), 'sfSimpleBlog/index') ?></h1>17 <div id="tagline"><?php echo sfConfig::get(' sf_simple_blog_blog_tagline') ?></div>16 <h1><?php echo link_to(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'), 'sfSimpleBlog/index') ?></h1> 17 <div id="tagline"><?php echo sfConfig::get('app_sfSimpleBlog_blog_tagline', 'You\'d better start to live before it\'s too late') ?></div> 18 18 </div> 19 19 <div id="sidebar-a"> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/showByTagSuccess.php
r3708 r4884 1 1 <?php use_helper('I18N', 'Date') ?> 2 <?php $sf_context->getResponse()->setTitle(sfConfig::get(' sf_simple_blog_blog_title', '')) ?>2 <?php $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?')) ?> 3 3 4 <?php if(sfConfig::get(' sf_simple_blog_blog_use_feeds', true)): ?>4 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 5 5 <?php slot('auto_discovery_link_tag') ?> 6 <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsForTagFeed?tag='.$sf_params->get('tag'), array('title' => __('Posts tagged "%1%" from %2%', array('%1%' => $sf_params->get('tag'), '%2%' => sfConfig::get(' sf_simple_blog_blog_title', ''))))) ?>6 <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsForTagFeed?tag='.$sf_params->get('tag'), array('title' => __('Posts tagged "%1%" from %2%', array('%1%' => $sf_params->get('tag'), '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'))))) ?> 7 7 <?php end_slot() ?> 8 8 <?php endif; ?> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/showSuccess.php
r3708 r4884 1 1 <?php use_helper('I18N') ?> 2 <?php if(sfConfig::get(' sf_simple_blog_blog_use_ajax', true)): ?>2 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_ajax', true)): ?> 3 3 <?php use_javascript('/sf/prototype/js/prototype.js') ?> 4 4 <?php endif; ?> 5 <?php $sf_context->getResponse()->setTitle(sfConfig::get(' sf_simple_blog_blog_title', '').' > '.$post->getTitle()) ?>5 <?php $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?').' > '.$post->getTitle()) ?> 6 6 7 <?php if(sfConfig::get(' sf_simple_blog_blog_use_feeds', true)): ?>7 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 8 8 <?php slot('auto_discovery_link_tag') ?> 9 <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/commentsForPostFeed?stripped_title='.$post->getStrippedTitle(), array('title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get(' sf_simple_blog_blog_title', ''))))) ?>9 <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/commentsForPostFeed?stripped_title='.$post->getStrippedTitle(), array('title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'))))) ?> 10 10 <?php end_slot() ?> 11 11 <?php endif; ?> plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogCommentAdmin/lib/BasesfSimpleBlogCommentAdminActions.class.php
r3729 r4884 5 5 public function preExecute() 6 6 { 7 if(sfConfig::get(' sf_simple_blog_blog_use_bundled_layout', true))7 if(sfConfig::get('app_sfSimpleBlog_blog_use_bundled_layout', true)) 8 8 { 9 9 $this->setLayout(sfLoader::getTemplateDir('sfSimpleBlog', 'layout.php').'/layout'); plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/config/generator.yml
r3868 r4884 23 23 fields: 24 24 tags_as_string: { name: Tags, type: input_tag } 25 content: { params: size=60x30 <?php if(sfConfig::get(' sf_simple_blog_blog_use_rich_text', false)): echo 'rich=true'; endif; ?> <?php if(sfConfig::get('sf_simple_blog_blog_use_media_library', false)): echo 'tinymce_options=\'file_browser_callback:"sfMediaLibrary.fileBrowserCallBack"\''; endif; ?> }25 content: { params: size=60x30 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_rich_text', false)): echo 'rich=true'; endif; ?> <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_media_library', false)): echo 'tinymce_options=\'file_browser_callback:"sfMediaLibrary.fileBrowserCallBack"\''; endif; ?> } 26 26 actions: 27 27 _save: ~ plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/lib/BasesfSimpleBlogPostAdminActions.class.php
r4765 r4884 5 5 public function preExecute() 6 6 { 7 if(sfConfig::get(' sf_simple_blog_blog_use_bundled_layout', true))7 if(sfConfig::get('app_sfSimpleBlog_blog_use_bundled_layout', true)) 8 8 { 9 9 $this->setLayout(sfLoader::getTemplateDir('sfSimpleBlog', 'layout.php').'/layout'); plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/templates/_edit_header.php
r3781 r4884 1 <?php if(sfConfig::get(' sf_simple_blog_blog_use_media_library', false)): ?>1 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_media_library', false)): ?> 2 2 <?php use_helper('sfMediaLibrary') ?> 3 3 <?php echo init_media_library() ?> plugins/sfSimpleBlogPlugin/package.xml
r4209 r4884 25 25 <dir name="/"> 26 26 <dir name="config"> 27 <file name="app.yml.sample" role="data"/> 27 28 <file name="config.php" role="data"/> 28 29 <file name="schema.yml" role="data"/>