1. 28 Jun, 2018 1 commit
  2. 24 Nov, 2015 1 commit
    • Aaron Wells's avatar
      Display icons for 3rd-party blocktypes plugins · 4f849ed2
      Aaron Wells authored
      Bug 1510421
      
      Defines a new static PluginBlocktype method, get_css_icon(), which
      fetches the name of the CSS icon to use for this blocktype. It returns
      false by default, which tells the theme to "fall back" to the old
      thumbnail.png instead. 3rd-party plugins can override this to
      specify a particular icon to use.
      
      All the core blocktypes have been refactored to extend
      MaharaCoreBlocktype, which uses the blocktype name as the name
      of the CSS icon to use. I also deprecated the "SystemBlocktype"
      class while I was at it.
      
      PluginBlocktype::get_blocktypes_for_category() now returns both
      the results of get_css_icon() and the thumbnail.png path, so that
      themes can decide which they want to use. (And of course
      thumbnail.png is served via thumbnail.php, so 3rd party themes
      can provide their own custom image files if they wish.)
      
      behatnotneeded: Requires installing third-party plugins to test
      
      Change-Id: Idb1ecfc7b21175913708e695788906c11133b0c0
      4f849ed2
  3. 15 Jun, 2015 1 commit
  4. 05 Feb, 2015 1 commit
  5. 04 Feb, 2015 1 commit
  6. 03 Dec, 2014 1 commit
  7. 04 Jun, 2014 1 commit
  8. 14 Oct, 2013 1 commit
  9. 21 Aug, 2013 1 commit
  10. 18 Jun, 2013 1 commit
    • Aaron Wells's avatar
      Making links to directory index.php files more explicit · 1c56a922
      Aaron Wells authored
      Bug #1150831: Some links to directory index.php files left off the
      trailing slash,
      i.e. "{$WWWROOT}/view". This caused unnecessary redirects and greater
      potential for
      errors in users' web server setups. While I was at it, for all links to
      directories
      other than $WWWROOT itself, I changed them to be explicitly links to
      "index.php".
      
      Also fixed the Windows-style line endings in homeinfo.tpl
      
      Fix all implicit links
      
      Change-Id: I87b285713e5cb1cfe785ceedd2702e5c2578058b
      1c56a922
  11. 13 May, 2011 1 commit
  12. 18 Apr, 2011 1 commit
  13. 26 May, 2010 1 commit
  14. 02 Nov, 2009 1 commit
  15. 28 Oct, 2009 1 commit
  16. 22 Sep, 2009 1 commit
  17. 15 Sep, 2009 1 commit
  18. 23 Jun, 2009 1 commit
  19. 29 Jan, 2009 1 commit
    • Nigel McNie's avatar
      (#3063) Make blocktype configuration forms change if they are in a template. · d9f2144b
      Nigel McNie authored
      Now they do things like not making it compulsory to choose an artefact
      if it's a template (as the creator might just want to put the block
      there), and removing some options that only make sense in Views.
      
      There's a parameter for instance_config_form and artefactchooser_element
      to allow the Blocktype to detemine whether it's in a template easily.
      d9f2144b
  20. 17 Dec, 2008 1 commit
    • Nigel McNie's avatar
      (#3063) Remove copy_allowed in favour of allowed_in_view. Also remove · 099dc5b3
      Nigel McNie authored
      copy_artefacts_allowed.
      
      copy_artefacts_allowed is unnecessary as it's only called if the copy
      type is 'full', and there's now no way that you would want to fully
      copy a block and not copy the artefacts inside it.
      
      Some other API tidyups have been done - default_artefact_config has been
      renamed to rewrite_blockinstance_config and had a method signature
      change to be a bit more flexible.
      
      The copyconfig field of the View object is gone too, no longer required.
      099dc5b3
  21. 16 Dec, 2008 1 commit
    • Nigel McNie's avatar
      (#3063) part 2: Hide blocktypes that don't make sense when making a · 7599ec0c
      Nigel McNie authored
      View.
      
      This means that blog/profile/resume blocktypes don't show up in
      group/institution/site Views.
      
      This is controlled through a new Blocktype method - allowed_in_view.
      Various code had to be changed to listen to this method, mostly around
      the display of the category browser.
      
      When making a template, all blocktypes are available.
      
      Part 3 is to change the configuration forms to be more sensible when
      editing a template, and then testing what happens when blocktypes are
      rendered somewhere that they "shouldn't" be - e.g. a My Friends block in
      a group View.
      7599ec0c
  22. 18 Nov, 2008 1 commit
  23. 15 Sep, 2008 5 commits
  24. 12 Sep, 2008 1 commit
  25. 15 Aug, 2008 1 commit
  26. 13 Jul, 2008 1 commit
  27. 16 Feb, 2008 2 commits
  28. 25 Jan, 2008 1 commit
  29. 04 Dec, 2007 1 commit
  30. 28 Nov, 2007 1 commit
  31. 14 Nov, 2007 1 commit
  32. 13 Nov, 2007 1 commit
  33. 07 Nov, 2007 3 commits