summaryrefslogtreecommitdiff
path: root/includes/theme.inc
Commit message (Collapse)AuthorAge
* Patch by Ax:Dries Buytaert2003-02-01
| | | | | | | | | | | | | | | - Bad usage of css ID's: they may be used for a single element only, but were used as #node, #block, which can occur multiple times in a single page. - Moved HTML from theme to template - thats what templates are all about! - Added support for head() hook - Added support for diffentiating between boxes and blocks. - Typo: secundary -> secondary
* - Patch by Ulf: XHTML-ified the code.Dries Buytaert2003-01-21
|
* - Fixed bug in update of taxonomy links.Dries Buytaert2003-01-06
|
* - Forgot to update the taxonomy links. Reported by Adam.Dries Buytaert2003-01-06
|
* - Tidied up the use of check_output(). Might make rendering pages a bitDries Buytaert2002-12-31
| | | | snappier (performance improvement).
* - changing theme patch. Now Drupal will init the $this->path automatically.Kjartan Mannes2002-11-17
|
* - made the themes path aware. If your theme creates a constructor function itKjartan Mannes2002-11-16
| | | | will now be passed the filename as the first parameter.
* - Small cosmetic change. Patch by Natrak.Dries Buytaert2002-11-10
|
* - Oops. Braino.Dries Buytaert2002-11-09
|
* - Added check to see whether $items is initiliazed. Thanks James.Dries Buytaert2002-11-09
|
* - Applied Moshe's "theme head" patch:Dries Buytaert2002-11-09
| | | | | | | "This patch to theme.inc adds the ability for modules to insert HTML into the <HEAD> section of all web pages. The additional modules in this directory [ed: blog.module] demonstate possible uses for the new _head() hook."
* * Added Jeremy's pager:Dries Buytaert2002-11-09
| | | | | | | | | | | | | | | | | | | | | | | "This is a simple, generic pager for Drupal-CVS. It is designed to be easily themeable and expandable. The code is highly-commented to enhance readability." "Pagers are constructed by combining the provided pieces (all of which can be easily modified to display the text or image you prefer) into your custom pager." * Statistics module fixes by Jeremy: - removed superfluous check for existence of watchdog() - saving changes in admin page displays status and returns same page - no longer return 1971/01/01 in "view statistics" table - switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance - switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as max_timestamp" moving towards ANSI-SQL compliance. * Added a "theme_item_list" function to format itemized lists. Also changed a couple of modules to take advantage of it. Makes for a more consistent UI.
* - Committed Marco's block rewrite:Dries Buytaert2002-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | + Blocks are not longer called if not rendered: major performance improvement. + Fixed some bugs (preview option was broken, path option was broken). + Removed "ascii"-type blocks. + Added permission to for "PHP blocks" + ... NOTES: + You'll want to run "update.php": ALTER TABLE blocks DROP remove; ALTER TABLE blocks DROP name; + You'll want to update your custom modules as well as the modules in the contrib repository. Block function should now read: function *_block($op = "list", $delta = 0) { if ($op == "list") { return array of block infos } else { return subject and content of $delta block } }
* - Wrapped some hardcoded colors in "theme_invoke()"s; we can still createDries Buytaert2002-10-22
| | | | | | | | a drupal_error() later on but I think we better get used to theme_invoke(). - Fixed translation bug. Patch by Moshe. - Fixed PHP warning. Patch by ax.
* - 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
|