summaryrefslogtreecommitdiff
path: root/includes/theme.inc
Commit message (Collapse)AuthorAge
* - Commited Marco's new comment module and forum module!!!Dries Buytaert2002-09-15
|
* - adding doctype to basic theme.Kjartan Mannes2002-09-11
| | | | - some minor changes to clean up var initialization.
* - removing the "No valid themes enabled" warning.Kjartan Mannes2002-09-08
|
* - Added the theme_invoke() function from Moshe's sandbox.Dries Buytaert2002-06-23
|
* - Let the blocks itself take care of translating their titles. Patch byDries Buytaert2002-06-20
| | | | Marco.
* - adding missing $bacground/$foreground variables.Kjartan Mannes2002-06-12
|
* - Bugfix. When a theme does no longer exist on disk, it should not beDries Buytaert2002-05-25
| | | | | | | | | | | | | | returned by theme_list() as it breaks the site ... The attached patch prevents this from happening but does not remove the theme from the system table in the SQL database - if the theme is removed from the database upon viewing the themes administration page (or another trigger), I guess that is fine. Kjartan: my fix is the right thing to apply because theme_list() is used elsewhere where it requires to return a list of existing themes. Maybe it's a little sad but the current theme loading code might be slower and more complex than the old Drupal 3 theme loading code ... ?
* - added taxonomy output to BaseTheme.Kjartan Mannes2002-05-20
|
* - Ran the code through 'scripts/code-clean.sh': removed trailing whitespaceDries Buytaert2002-05-20
| | | | (and possibly tabs).
* - merged block and box modules. modules/box.module should be removedKjartan Mannes2002-05-02
| | | | | | | | | | or disabled as it will cause errors otherwise. - split status into status and custom. Status will turn the block on/off, and custom defined if the user can change the status. Requires sql update. - reintroduced user page to configure blocks.
* - Applied Marco's big patch, including contributions from Moshe:Dries Buytaert2002-04-20
| | | | | | | | | | | | | | | | | | | | | | + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ...
* - fixing bug reported by Remco.Kjartan Mannes2002-04-15
|
* This is a major change to the system, needs more testing!Kjartan Mannes2002-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Committing Changes by Moshe Weitzman: - admin_user_account(), user_edit(), and user_view() no longer have any hard code for authentication modules. instead authentication modules implement the _user hook. - fixed a couple 'help' typos. - linked the 'REGISTER' text in the login block to the register page. this page now advertises DA better if site employs DA. - admins may now edit everything about a user account (was a feature request). - user #1 may now login immediately, in addition to receiving his password via email. Other changes: - modules and themes are now enabled/disabled in the administrative / settings / modules | themes pages. Requires SQL update and things must be enabled before your site returns to normal. TODO: enable all functionality. (For now just do UPDATE system SET status = 1;) - removed $themes from conf.php. - added a $theme->system() function where theme can specify settings. All themes in the Drupal CVS have been updated to use this. - added _system hook to modules. TODO: update modules to use this. - changed strange use of sprintf to the usual strtr. The disadvantage of sprintf is that it requires translations to keep the string order, which may not be possible in all languages. - an invalid/nonexisting theme in a user profile will now fallback to the BaseTheme instead of crashing.
* - removed some warnings caused by implode.Kjartan Mannes2002-02-19
|
* - applying patches from Axel Kollmorgen. SeeKjartan Mannes2002-02-17
| | | | | | | | | | http://list.drupal.org/drupal-devel/2002-February/thread.html#6678 http://list.drupal.org/drupal-devel/2002-February/thread.html#6629 - removed references to $this->user() from themes. - removed $BaseTheme->user(). It was deprecated a while back. NOTE: this update will break custom themes, so make sure you update your themes before updating!
* - moved user block from theme.inc to user.module.Kjartan Mannes2002-01-21
| | | | | | | | | | * only problem is that the admin.php link is not available until the admin enables the block. * $theme->user is obsolete, will patch the themes properly in a later patch. - moved moderation block from theme.inc to queue.module. * removed theme_moderation_results(). - updated database/database.mysql.
* - Fixed a typo in the example theme. (Patch by Mark)Dries Buytaert2002-01-12
|
* - Added a "title"-attribute to the "register" link and translated theDries Buytaert2002-01-11
| | | | "Rembember me" checkbox.
* - import.module:Dries Buytaert2001-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Improved input filtering; this should make the news items look more consistent in terms of mark-up. + Quoted all array indices: converted all instances of $foo[bar] to $foo["bar"]. Made various other changes to make the import module compliant with the coding style. - theme.inc: + Fixed small XHTML glitch - comment system: + Made it possible for users to edit their comments (when certain criteria are matched). + Renamed the SQL table field "lid" to "nid" and updated the code to reflect this change: this is a rather /annoying/ change that has been asked for a few times. It will impact the contributed BBS/forum modules and requires a tiny SQL update: sql> ALTER TABLE comments CHANGE lid nid int(10) NOT NULL; + Moved most (all?) of the comment related logic from node.php to comment.module where it belongs. This also marks a first step towards removing/reducing "node.php". + Added a delete button to the comment admin form and made it so that Drupal prompts for confirmation prior to deleting a comment from the database. This behavior is similar to that of deleting nodes. + Disabled comment moderation for now. + Some of the above changes will make it easier to integrate the upcomcing mail-to-web and web-to-mail gateways. They are part of a bigger plan. ;) - node system: + Made it so that updating nodes (like for instance updating blog entries) won't trigger the submission rate throttle. + Fixed a small glitch where a node's title wasn't always passed to the $theme->header() function. + Made "node_array()" and "node_object()" more generic and named them "object2array()" and "array2object()". + Moved most (all?) of the comment related logic from node.php to comment.module where it belongs. This also marks a first step towards removing/reducing "node.php". - misc: + Applied three patches by Foxen. One to improve performance of the book module, and two other patches to fix small glitches in common.inc. Thanks Foxen!
* - Updated BaseTheme and the Drupal themes to have header($title = "") as the ↵Steven Wittens2001-12-15
| | | | | | | | | | | header declaration and use title when provided. This is just a step towards having unique titles. In all themes, except Marvin which already had $title, I put the $title first, because it's usually the thing the page is about: "The future of weblogs? - Drop.org" "Your account settings - Drop.org" rather than the other way around, right?
* A set of updates to the "_link" system:Dries Buytaert2001-11-24
| | | | | | | | | | | | | - Made the /comment links/ jump to the comments instead of to the top of the page. - Replaced the "Add comment"-button by a "add new comment"-link. (This should make UnConeD jump up and down of wild excitement.) - Moved all comment related logic from theme.inc and node.module to comment.inc and comment.module (where they belong). - Added some links to ease the site's usability/navigation.
* - modified node_save so that revisions are not validated using check_input,Kjartan Mannes2001-11-23
| | | | | | | | as this breaks revisions. - modified link_node() to take a third parameter $main, which will be passed on to _link hooks. This lets modules decide which links a node will get when shown on the main page, or when not. - updated themes to use the new syntax.
* - A large batch of updates, amongst them a rewritten node system. MoreDries Buytaert2001-11-01
| | | | information available on the mailing list.
* - added a path field to the blocks. Its a regexp to define which pages youKjartan Mannes2001-10-22
| | | | | | | want the blocks to show up on. - updated the help. - did some XMLification. - SQL update script has a new table collumn which needs to be applied.
* - added the CVS keyword $Id$ to all files to make future version trackingKjartan Mannes2001-10-20
| | | | easier. Also changed the <? tag to <?php in some cases.
* - Started a theme.inc clean-up.Dries Buytaert2001-10-20
|
* - blocks will now show up again if 'Enabled: always'Kjartan Mannes2001-10-16
|
* - I tidied up most SQL tables to be more consistent with the rest of theDries Buytaert2001-10-14
| | | | | | | tables: I changed all "id"s to "xid"s where "x" is the first letter of the table name. I also renamed all remaining "userid"s to "uid"s as I mentioned I would do. Take a look at ./drupal/updates/3.00-to-x.xx.sql for the MySQL updates.
* - Pass theme objects by reference, avoids creating copies and lets calledDries Buytaert2001-10-14
| | | | functions to store data in the theme (patch by Mike Krus).
* - fixed 4 SQL queries to use ANSI SQL instead: '||' --> 'OR'Dries Buytaert2001-10-12
|
* - PEAR-ification of Drupal by claw: you can now host Drupal on a wideDries Buytaert2001-10-09
| | | | | | | range of databases including MySQL, PostgreSQL, MSSQL, and others. For additional information and an 'how to upgrade', check the mails sent to the mailing list.
* - added a comment() function to the base theme: you don't have to overloadDries Buytaert2001-10-07
| | | | | | | it in your custom themes - moved 'theme_account()' to the base theme as '$theme->user()' so that it can be themed.
* - Improved search architecture derived from Axel's new search patches.Dries Buytaert2001-10-03
| | | | | | | (There is room for improvement so let's go from these ... and build on them.) - Removed some $status's by calls to node_status().
* - a batch of updates, including some experimental changes to the moderationDries Buytaert2001-09-27
| | | | of comments and nodes.
* - modified theme_block() to ignore blocks that have no content.Kjartan Mannes2001-09-25
|
* - added the "Log in" blockDries Buytaert2001-09-16
|
* - Added the new user module!Dries Buytaert2001-09-16
|
* - Changed the authentication and login scheme as discussed on the mailingDries Buytaert2001-08-11
| | | | | | list. - Fixed the export function in book.module (patch my Julian). - Fixed the comment alignment (comments got truncated).
* comment.incKjartan Mannes2001-07-25
| | | | | | | | | | | | | | | | | | | - removed comment_controls(). - modified comment_render() to use $theme->comment_controls(). theme.inc - added BaseTheme->comment_controls(). locale.module - can now search for status independant of language. - string is now a regular expression. For wildcard searches do .*text.*. - can search in modules + pages, all modules or a specific module. account.php - fixed viewing other accounts info would show the active users name in the real name field. - now shows users recent contributions and comments (if the user has access to them).
* - import.module:Dries Buytaert2001-07-15
| | | | | | | | + added new "tab" to import.module called "news sources". + improvement to import.module navigation. - theme.inc: + renamed 'your contributions' to 'your submissions'.
* - blog.module:Dries Buytaert2001-07-14
| | | | | | + added RSS 0.91(5) feeds to the blog module which makes it possible to both syndicate an particular user's latest blog entries, or the latest entries of all users.
* - theme system:Dries Buytaert2001-07-14
| | | | | | | | | | | | | + added $theme->images() - blog.module: + improved user-friendliness and rewrote most of the output routines + made quoted text /italic/ by default + integrated discussion system like it should + ... - marvin.theme: + small visual improvements
* Update of the box function in themes to allow a difference in ↵Steven Wittens2001-07-14
| | | | | | | | | | | | | | | | | | | | style/output/look of a box() depending on the position on the page. Basically this is a 'nice version' of a hack that you could do as a theme author. I've updated all the standard themes, but 3rd party themes will of course have to be updated by their authors, in the following manner: - Replace the box() declaration: < function box($subject, $content) { > function box($subject, $content, $region = "main") { - Replace the theme_account call: < theme_account($this); > theme_account("region", $this); Note that you'll have to replace "region" with the correct region that the box is placed in. However if you have a one-column theme, you should use "all", and not for example "left" (if all boxes are on the left). Usually the "region" here should be the same as the nearest theme_blocks() call. Those theme authors who want to can make boxes that appear in the center look different from those that appear in the sides for example.
* - Tidied up some stuff in account.php and theme.inc.Dries Buytaert2001-07-07
| | | | - Tidied up the box() API.
* Extremely large commit:Dries Buytaert2001-06-29
| | | | | | | | | | | | | | | | | | - Fixed tiny quote problem in account.php. - Fixed tiny bug in comment.inc. - Fixed tiny bug in comment.module. - Fixed tiny bug in meta.module. - Simplified user_access() API. - Rewrote link system: still needs fine-tuning and testing so don't upgrade if you are running a production site. ;) Updated all modules and themes to reflect this change. All other themes and modules need updating too!
* - Made it possible to enter longer username such as 'Gerhard K*llesreit'.Dries Buytaert2001-06-23
| | | | - Updated database.mysql.
* - Added a brand-new access.module which allows you to manage 'roles'Dries Buytaert2001-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | (groups) and 'permissions' ... (inspired by Zope's system). + Once installed, click the help-link for more information. + See updates/2.00-to-x.xx.sql for the SQL updates. - Modified loads of code to use our new access.module. The system still has to mature though: new permissions have to be added and existing permissions need stream-lining. Awaiting suggestions. - As a direct result of the new access system, I had to rewrite the way the top-level links in admin.php are rendered and displayed, and xhtml-ified admin.php while I was at it. TODO - Home-brewed modules need updating, home-brewed themes not. (Examples: file.module, trip_link.module) - As soon we *finished* the refactoring of the user system (KJ has been working on this refactoring already) we should consider to embed this role and permission code into account.module ...
* - Merged "system settings" and "module settings" into one page. IMHODries Buytaert2001-06-17
| | | | | | | | | | it wasn't a good idea to split them up in first place, and it turned out to be quite hard to decide where to put some variables. Also moved some variables around and even renamed a few variables while doing so. - Added a page_header() and page_footer() to all top-level .php pages.
* ChangesKjartan Mannes2001-06-15
| | | | | | | | | - Added a conf option to disable/enable user registrations. - Added a add account feature to account.module. - Moved some functions from account.php to account.module. Todo - Move most (all?) of account.php to account.module.
* - Applied Remco's patch:Dries Buytaert2001-06-13
| | | | the <LI>-bullets were not valid HTML and did only take up space.