95 Commits

Author SHA1 Message Date
Jun Pataleta
fdb78d6431
MDL-78425 admin: Point Clear theme caches to correct URL
* Plus remove unnecessary call to require_once() in theme/index.php
2023-11-08 10:16:35 +08:00
David Woloszyn
103c2bb512 MDL-78425 core_theme: Theme selection now uses cards and modal 2023-11-08 11:10:41 +11:00
David Woloszyn
b63ca109f3 MDL-77793 core_theme: Device selections removed from theme selector 2023-06-19 16:32:14 +10:00
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Sujith Haridasan
aa1c2e2382 MDL-73848 administration: Fix the breadcrumbs and nav highlights
Create or update the breadcrumbs in the site administration
pages where it is required.
Highlight the corresponding site adminstration tab.
Highlight the primary nav to Site administration when user
is navigating to any of the site administration pages.

Also changed the boostnavbar so that the nodes in the secondary
navigation are not shown in the breadcrumbs when user is in site
administration page.
2022-03-25 17:44:47 +08:00
Bas Brands
4394f9e358 MDL-67735 theme_boost: remove bs2 and bs4alpha compatibility css 2020-08-17 08:16:42 +00:00
lazydaisy
0ef2631d1c MDL-55226 theme/index.php: Tidy up irregular spacing in original markup 2016-10-01 15:14:57 +01:00
lazydaisy
4b58fc61dd MDL-55226 theme/index.php: Make theme selector responsive. 2016-10-01 14:58:12 +01:00
Dan Poltawski
0fd08fc7e5 Merge branch 'MDL-35628' of https://github.com/mr-russ/moodle 2016-06-16 09:04:12 +01:00
Russell Smith
1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
jogarcia
8dabb7200d MDL-54576 theme: Redirect to show confirmation
After selecting a new theme, save the new configs
then redirect to show the confirmation and the new
theme's read me.  This prevents any odd behavior
from the old theme bleeding into the display of
the confirmation.
2016-05-13 08:57:12 -07:00
Ryan Wyllie
f1ecad609a MDL-51739 theme: allow config to lock theme selector
If any of the devices have their theme set in config.php
it will lock the theme selector UI from being able to change
the theme.
2015-10-23 05:06:21 +00:00
Sam Hemelryk
c3d2fbf9cd MDL-40931 useragent: separated user agent functionality into a lib
This commit moves user agent related functionality out of several
core libraries and combines it into a more manageable class.
All core uses are converted and functions deprecated in favor
of the new class.
2013-08-26 13:59:19 +12:00
Damyon Wiese
9ead041cdb Revert "MDL-40931 useragent: separated user agent functionality into a lib"
This reverts commit af62237d0e6e27df868d50848f7098f57c103f86.
This reverts commit 87a4194fdcd322d4aee5a6207b55a8da0864da94.
This reverts commit b2c66eb60c01805f26cc791966f05be52af7b406.

Conflicts:

	version.php
2013-08-22 13:31:25 +08:00
Sam Hemelryk
af62237d0e MDL-40931 useragent: separated user agent functionality into a lib
This commit moves user agent related functionality out of several
core libraries and combines it into a more manageable class.
All core uses are converted and functions deprecated in favor
of the new class.
2013-08-16 09:02:01 +12:00
Dan Poltawski
7bdae0924f Merge branch 'wip-MDL-37333_master' of git://github.com/gjb2048/moodle 2013-07-22 10:27:11 +08:00
Gareth J Barnard
32b0c69649 MDL-37333 theme: Fix 'Clear theme caches' redirect. 2013-07-17 14:42:50 +01:00
Petr Škoda
bd3b3bba9f MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
Petr Škoda
574909efce MDL-39174 fix phpdocs packages in themes 2013-04-27 13:22:59 +02:00
Rajesh Taneja
c069c01755 MDL-27862 Themes: Device name first letter is capital and font is made similar to theme name font 2012-03-12 10:18:28 +08:00
Rajesh Taneja
df46b9b40d MDL-27862 Themes: clear theme cache button will redirect to the page on which it was pressed 2012-03-12 10:18:28 +08:00
Rajesh Taneja
36ff8d05de MDL-27862 Themes: replaced disabled use theme button with unset theme button 2012-03-12 10:18:28 +08:00
Rajesh Taneja
bff67f4904 MDL-27862 Themes: Added button to un-select theme for devices, except default device 2012-03-12 10:18:28 +08:00
Rajesh Taneja
604cb17920 MDL-27862 Themes: Strings updated on theme selection pages 2012-03-12 10:18:27 +08:00
Eloy Lafuente (stronk7)
43c741b9b4 MDL-29552 themes - show the name of the picked theme when working with device detection enabled 2011-09-28 13:39:18 +02:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Sam Hemelryk
0e01784c44 MDL-28191 Continue button after selecting a theme now redirects back to the theme selector 2011-07-22 14:57:26 +08:00
Sam Hemelryk
e625feaf0b MDL-27825 Improved check of themedesignermode to prevent errors if it isn't set 2011-06-14 15:48:10 +08:00
Sam Hemelryk
7bff5441c8 Merged changes for MDL-25394 2011-06-08 10:58:42 +08:00
Sam Hemelryk
e5824bb9c6 MDL-25394 Tidied up several things in order to get this integrated 2011-05-31 14:28:03 +08:00
Anthony Forth
37959dd471 MDL-25394 Improved support for mobile and device themes 2011-05-31 14:25:52 +08:00
Petr Skoda
edda2b9af6 MDL-24485 fixed lowercase theme names (credit goes to Anthony Borrow) + using get_string() to show real theme name on the theme selection page 2010-10-03 10:38:48 +00:00
Sam Hemelryk
752fdfbd84 theme-selector MDL-22872 Readme page is now shown using the newly selected theme 2010-07-30 02:05:54 +00:00
Sam Hemelryk
4d56ee95e0 themes MDL-22223 Added hidefromselector setting for theme. 2010-04-28 03:32:16 +00:00
Sam Hemelryk
ee8df661dc themes MDL-21489 Added support for a legacy theme used with old browsers. Thanks Brendan for the patch
Admin can now select a theme for modern browsers and old browsers, the user then sees the modern theme with modern browsers and legacy theme with old browsers. Currenlty IE6 (or less) are considered old browsers.
2010-04-21 04:21:53 +00:00
Martin Dougiamas
9c9cbe76d4 theme gui MDL-20204 Don't show the base theme for selection unless in theme designer mode 2010-04-20 16:58:23 +00:00
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
David Mudrak
16be897441 MDL-21652 html_table rendering refactored
* class html_component does not exist any more
* class html_table rendered via html_writer::table()
* html_table, html_table_row and html_table_cell have public $attributes property to set their CSS classes
* dropped rotateheaders feature, should be added again after more research of possible ways (<svg> is not nice IMHO)
* dropped possibility to define CSS classes for table heading, body and footer - can be easily done and better done using just table class and context
2010-03-20 22:15:54 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Eloy Lafuente
dc98ad65de NOBUG: XHTML strict 2009-12-19 11:03:03 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Petr Skoda
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
nicolasconnault
5a142c8221 MDL-19824 Upgraded calls to link_to_popup_window() 2009-08-20 13:17:53 +00:00
nicolasconnault
fd09397ee1 MDL-19824 upgraded calls to print_container* 2009-08-20 08:50:03 +00:00
nicolasconnault
362874daa5 MDL-19824 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:19:44 +00:00
nicolasconnault
ebb19abaab MDL-19824 Converted print_box* to $OUTPUT->box* 2009-08-10 05:49:57 +00:00
nicolasconnault
344ca4c9ef MDL-19824 Converted all print_footer() calls 2009-08-06 14:25:44 +00:00
nicolasconnault
cdc6222077 MDL-19824 Migrated calls to print_heading 2009-08-06 08:25:18 +00:00
tjhunt
704ac34407 outputlib tables: MDL-19755 fix all cases of deprecated $table->rowclass
Also fix wrong title on Manage filters admin page.
2009-07-15 05:37:31 +00:00
tjhunt
b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00