Commit Graph

527 Commits (0fe57fe68099c4f397bf6b83e9b036aa1b051749)

Author SHA1 Message Date
Dries Buytaert 2b17b3a966 - Patch #13907 by Neil: less ways to set the page title.
* Less logic in theme code.
   * Encourages use of the menu system.
   * Easier to find where a title or breadcrumb comes from in other people's code because there are less places to look. Look in menu and then grep for the appropriate set function. Looking for calls to theme_page() is hard because there are too many of them.
   * Very slightly more efficient.
2004-12-15 21:19:42 +00:00
Steven Wittens d3fb126d3e Bluemarine header margins got changed incorrectly after a recent fix. 2004-12-03 12:26:56 +00:00
Dries Buytaert a964d08f0f - Patch #13030 by killes: fixed invalid CSS code in bluemarine's stylesheet. 2004-11-27 11:23:42 +00:00
Steven Wittens ff5f6429f4 #6400: Improved pushbutton arrows. 2004-11-27 01:36:40 +00:00
Dries Buytaert 5d759ccbb9 - Patch #5942 by jhriggs and Adrian:
+ added support for multi-site configurations.
    + tidied up some old cruft and added code comments.
2004-11-24 22:44:01 +00:00
Dries Buytaert 30110a8770 - Patch #6166 by Moshe: node preview should not display links. Push the links to the theme instead of the theme having to pull them in using node_link().
TODO:
    1. Update theme upgrade instructions in the handbook: node_link() is gone.
    2. Remove page_link() just like we removed node_link().
2004-11-23 23:11:59 +00:00
Dries Buytaert 9998d2a148 - Patch #12886 by thorne: fixed XHTML problem: the bluemarine theme used a border=0 attribute on the img tag for the site logo. 2004-11-14 19:34:09 +00:00
Dries Buytaert 8daed9cbf3 - Patch #12232 by Steven/UnConed: search module improvements.
1) Clean up the text analyser: make it handle UTF-8 and all sorts of characters. The word splitter now does intelligent splitting into words and supports all Unicode characters. It has smart handling of acronyms, URLs, dates, ...

2) It now indexes the filtered output, which means it can take advantage of HTML tags. Meaningful tags (headers, strong, em, ...) are analysed and used to boost certain words scores. This has the side-effect of allowing the indexing of PHP nodes.

3) Link analyser for node links. The HTML analyser also checks for links. If they point to a node on the current site (handles path aliases) then the link's words are counted as part of the target node. This helps bring out commonly linked FAQs and answers to the top of the results.

4) Index comments along with the node. This means that the search can make a difference between a single node/comment about 'X' and a whole thread about 'X'. It also makes the search results much shorter and more relevant (before this patch, comments were even shown first).

5) We now keep track of total counts as well as a per item count for a word. This allows us to divide the word score by the total before adding up the scores for different words, and automatically makes noisewords have less influence than rare words. This dramatically improves the relevancy of multiword searches. This also makes the disadvantage of now using OR searching instead of AND searching less problematic.

6) Includes support for text preprocessors through a hook. This is required to index Chinese and Japanese, because these languages do not use spaces between words. An external utility can be used to split these into words through a simple wrapper module. Other uses could be spell checking (although it would have no UI).

7) Indexing is now regulated: only a certain amount of items will be indexed per cron run. This prevents PHP from running out of memory or timing out. This also makes the reindexing required for this patch automatic. I also added an index coverage estimate to the search admin screen.

8) Code cleanup! Moved all the search stuff from common.inc into search.module, rewired some hooks and simplified the functions used. The search form and results now also use valid XHTML and form_ functions. The search admin was moved from search/configure to admin/search for consistency.

9) Improved search output: we also show much more info per item: date, author, node type, amount of comments and a cool dynamic excerpt à la Google. The search form is now much more simpler and the help is only displayed as tips when no search results are found.

10) By moving all search logic to SQL, I was able to add a pager to the search results. This improves usability and performance dramatically.
2004-10-31 03:03:27 +00:00
Dries Buytaert 10f329c057 - Patch #11728 by Uwe Hermann: fixed some typos in the code comments, Doxygen documentation and screen output.
Uwe: I dropped the 'iff' chunks as 'iff' stands for 'if and only if'.
2004-10-19 18:02:31 +00:00
Steven Wittens 4fe5b52a21 - Fixing problem with tall logos in chameleon.theme. 2004-09-20 14:36:53 +00:00
Steven Wittens d0e13a86dd - #9576 : A last-minute fix for pushbutton in Opera/Konqueror/Safari got lost in the move to the new template system.
http://drupal.org/node/9576#comment-11328
This still suffers from the Safari gamma bug, which we agreed not to cater to.
2004-09-18 01:14:30 +00:00
Steven Wittens 885fdff6de Pngcrush'ed the new pushbutton tab images. 2004-09-17 22:56:48 +00:00
Dries Buytaert e31fef12a4 - Patch #9988 by MegaGrunt: visual improvements to the tabs in Pushbutton. 2004-09-15 20:42:21 +00:00
Steven Wittens b75c1e1c8b Replace hardcoded <html lang="en"> with a locale dependant one. This is especially important for asian sites where this has an effect on font selection. 2004-09-09 13:36:01 +00:00
Steven Wittens 51cf18e531 - #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly broken. 2004-08-22 17:03:42 +00:00
Dries Buytaert 94e30bf776 - Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks. 2004-08-21 06:42:38 +00:00
Steven Wittens 9f2d6f0e51 - Fixing 'flash of unstyled content' in bluemarine/pushbutton, which got reintroduced after the template changes.
- Fixed separate styles: added theme_get_styles() and the xtemplate {styles} tag to make sure stylesheets get included in the right order (drupal-specific, template-specific, style-specific).
- Fixing missing class on screenshots.
- Renamed drupal_get_theme_setting() and drupal_get_theme_settings() to theme_get_setting() and theme_get_settings().
2004-08-20 17:21:37 +00:00
Dries Buytaert 1a807c870a - Patch by TDobes:
+ removes 'toggle_search' from the features array in chameleon.theme
   + merges changes to bluemarine from just a couple of hours before template patch was committed
2004-08-20 14:30:57 +00:00
Dries Buytaert 81861a8e91 - Removing some DOS-style line endings. Thanks TDobes. 2004-08-20 09:34:53 +00:00
Dries Buytaert 6ea5c56ded - Theme system changes. Please consult http://drupal.org/node/view/9576 for details. 2004-08-20 07:51:27 +00:00
Steven Wittens 870cc81607 Tiny tweak to XTemplate CSS: the vertical padding at the bottom of a sticky post should be outside the gray sticky rectangle, not inside it. 2004-08-20 04:43:46 +00:00
Steven Wittens bd96bb77d2 - Fixing incorrect bottom margins for comments in xtemplate default. 2004-08-10 22:55:50 +00:00
Steven Wittens 54d45d6eb7 - #6400 - Nicer arrows for pushbutton template
- Removing gAMA chunk from xtemplate logo.png for less to avoid more gamma issues.
2004-08-05 01:21:15 +00:00
Steven Wittens b382692acb Making the xtemplate logo background transparent to make the Safari gamma bug less obvious. 2004-08-04 17:56:11 +00:00
Steven Wittens ad5e3ebb75 CSS improvements:
- Restoring background coloring for the watchdog logs (was broken)
- Making watchdog backgrounds lighter, makes it easier on the eyes and improves readability.
- Adjusted the spacing between items on the frontpage a bit to be clearer.
- Fixed the vertical stretching of table rows with form controls in them.
2004-07-25 22:18:32 +00:00
Steven Wittens 9f30df2cb5 #6599: XTemplate default: removing whitespace in front of doctype 2004-07-23 17:34:24 +00:00
Dries Buytaert 5b73def39b - Changed the way status messages are printed as per Kristjan's suggestion:
http://drupal.org/files/issues/error_messages_list.png (issue #9138).

  drupal_set_message() has been changed to group message by type and a
  helper function, theme_status_message(), is added to display the messages.
  Chameleon and Xtemplate have been updated to use this new function.

- Updated CHANGELOG.txt.
2004-07-08 16:04:07 +00:00
Dries Buytaert 3106ddd5df - Bug #8823: fixed typo: '..' -> '.'. 2004-07-07 21:15:11 +00:00
Dries Buytaert c494d6630d - Improved the error/status reporting in Chameleon: made the messages
stand out a bit better by using green-ish and red-ish colors, resp.
  for 'success' and 'failure'.

- Small change to the way context-sensitive help texts are emitted -
  the pages wouldn't validate in the presence of help texts with
  block-level elements.
2004-07-07 17:25:40 +00:00
Dries Buytaert e30fdce6cb - Patch #8617 by TDobes: changes all gifs to pngs for better consistency (and
to get of proprietary formats).
2004-06-20 20:19:59 +00:00
Dries Buytaert b713e3d489 - Patch #8617 by TDobes: changes all gifs to pngs for better consistency (and
to get of proprietary formats).

- Added forum-sticky.png.  Made by Steven.
2004-06-20 20:04:28 +00:00
Dries Buytaert d2ff1ca54e Changed 'static' back to 'sticky' ... ;-) 2004-06-19 10:45:06 +00:00
Dries Buytaert cbc230a36c - Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a more
logical name.  Requires a database upgrade.
2004-06-19 10:39:36 +00:00
Dries Buytaert c51805aa8a - Patch #8602 by TDobes: changed some 'sticky's back to 'static'. 2004-06-19 10:33:27 +00:00
Dries Buytaert a42b84e5d6 First tab improvements by Adrian:
+ Changed menu.inc to generate two separate lists instead of nested lists:
    that seems to be the only alternative to get rid of absolute positioning.

  + Changed the tabs code to be more sexy and put the code in misc/drupal.css
    so all themes are automagically updated.
2004-06-19 08:24:14 +00:00
Dries Buytaert 54b77d6435 Tabs patch!
CHANGES
-------

 + Introduced tabs. First, we extended the menu system to support tabs. Next, a tab was added for every link that was (1) an administrative action other than the implicit 'view' (2) relevant to that particular page only. This is illustrated by the fact that all tabs are verbs and that clicking a page's tab leads you to a subpage of that page.

 + Flattened the administration menu. The tabs helped simplify the navigation menu as I could separate 'actions' from 'navigation'. In addition, I removed the 'administer > configuration'-menu, renamed 'blocks' to 'sidebars' which I hope is a bit more descriptive, and made a couple more changes. Earlier, we already renamed 'taxonomy' to 'categorization' and we move 'statistics' under 'logs'.

 + Grouped settings. All settings have been grouped under 'administer > settings'.

TODO
----

 + Update core themes: only Xtemplate default supports tabs and even those look ugly.  Need help.

 + Update contributed modules.  The menu() hook changed drastically.  Updating your code adhere the new menu() function should be 90% of the work.  Moreover, ensure that your modue's admin links are still valid and that URLs to node get updated to the new scheme ('node/view/x' -> 'node/x').
2004-06-18 15:04:37 +00:00
Dries Buytaert cd48e69b29 - Patches #6863 by Kristjan and Moshe: implemented pretty tables and fixed some tablesort glitches. 2004-06-02 05:35:51 +00:00
Dries Buytaert fdb1fbfced - Simplified the 'anonymous poster settings' of the comment module and
made it possible to enforce a username/e-mail address.  Based on
  James Seng's work there are now 3 radio buttons:

   ( ) Anonymous users may not enter contact information
   ( ) Anonymous users may leave contact information
   ( ) Anonymous users must leave contact information

- Fixed a bug in the default theme_comment_view() function.

- Added permalinks for comments.  Requested by Michael and Christina.
  Maintainers of contributed themes might want to add permalinks too.

TODO:

- Fix the interaction design of the submission form: the page you are
  directed to and the validation of the contact information.

- Changing the comment viewing options appears to be broken?
2004-05-20 10:23:52 +00:00
Dries Buytaert 6f2d85186b - Patch #7581 by bylund: made the archive module's calendar accessible. 2004-05-05 18:19:23 +00:00
Dries Buytaert 3117258552 - Various aggregator module improvements. Modified patch by drumm. 2004-04-27 20:10:09 +00:00
Dries Buytaert 1391df9fb3 - Patch #7330 by MegaGrunt: turns primary and secondary link ids into a classes,
and assigns the classes to header and footer.  Also renamed a few elements to
  make them more logical/consistent.  Plus added search id around search area,
  and a few other minor improvements.
2004-04-25 18:23:57 +00:00
Dries Buytaert ee4ccb6e4c - Patch #7332 by marky: don't emit extra whitespace withing <body> 2004-04-23 06:13:34 +00:00
Dries Buytaert 2c37334fcc - Patch #7120 by MegaGrunt: made the title of nodes the same size on home page as on the node page and improved the various header styles to give better visual indication of hierarchy. 2004-04-13 18:12:46 +00:00
Dries Buytaert 91334c437f - Patch #7082 by MegaGrunt: fixed font size and comment spacing. 2004-04-13 04:57:30 +00:00
Dries Buytaert 8324bda48b - Patch #6818 by Kristjan: chameleon theme CSS cleanup. 2004-03-30 22:14:04 +00:00
Dries Buytaert 8ec1d60071 - Patch 6771 by MegaGrunt: blockquote improvements. 2004-03-29 18:41:00 +00:00
Dries Buytaert cc1d535c0a - Patch 6770 by MegaGrunt: IE6 scrambled the layout of nested comments. 2004-03-29 18:12:14 +00:00
Dries Buytaert f2e72f4c7e - Small CSS change 2004-03-21 11:03:31 +00:00
Dries Buytaert 297dc76df0 - Small visual improvement to the profile pages. I'm still not happy with
it and looking forward for some help.
2004-03-20 19:39:45 +00:00
Dries Buytaert 8145c7695c - Tracker and forum module improvements!
Note: the CSS of the tracker page has changed.  Some CSS files still have
  to be updated.
2004-03-20 13:23:34 +00:00
Dries Buytaert 144eacbd95 - Patch 6421 by TDobes: In the recent user.module and profile.module update, a
typo was introduced into xtemplate.theme which prevents the use (specifically,
  the ability to enable) comment pictures (formerly known as avatars).
2004-03-12 21:27:54 +00:00
Dries Buytaert 2101f6c454 - Rewrote the profile module:
+ Added a 'created' field to the users table and renamed the 'timestamp'
     fied to 'changed' (cfr. node table).  Update.php will try to determine
     a 'created' timestamp for existing users.

   + The profile module no longer uses serialized data but has its own set
     of tables.  Known existing profile data is migrated by these new tables.
       TODO: migrate the birthday field.

   + The profile fields can be grouped, and within each group, profile fields
     can be sorted using weights.

   + The profile pages can be themed.

   + The profiles can be browsed based on certain properties/settings.

   + Change the _user hook: (i) 'private_view' and 'public_view' are merged
     into 'view' as there are no private fields and (ii) 'edit_form' has
     been renamed to 'edit'.

   + Avatar handling has been refactored and is now part of the user module.
     The users table has a dedicted 'picture' field.

   + Simplified the way themes should use display/visualize pictures or
     avatars.

   + Made it possible for administrators to replace or delete avatars.

   + ...

  I hope this make for a good base to build on collectively.
2004-03-11 20:33:59 +00:00
Dries Buytaert 8ebedbaa2b - Patch #6260 by TDobes: fixed incorrect alt-attribute for avatar images in
the Xtemplate theme.
2004-03-06 11:07:16 +00:00
Dries Buytaert f69425961c - Patch 6138 by MegaGrunt: this patch creates a repeated background behind
the header logo image, so that multiple lines of text can be added to Primary
  menu without breaking the design.
2004-03-01 19:42:22 +00:00
Dries Buytaert f54aab6a3e - Fixed bug #6048: display footer in theme chameleon. 2004-02-25 22:38:43 +00:00
Dries Buytaert a283a3b7b8 - Patch by Gerhard: move the updates to database/updates.inc so packaging
systems can by-pass update.php.
2004-02-25 22:20:09 +00:00
Dries Buytaert d03a8acfb6 - Patch 6011 by MegaGrunt: the transparent GIF used for the rollover effect
in the header icon is missing. The path for this image is in the XHTML
  file, when the images were moved out of the "image" directory, the XHTML
  file was not updated.
2004-02-23 16:36:32 +00:00
Dries Buytaert c91d036098 - Intitial version of the Pushbutton theme: contributed by MegaGrunt! 2004-02-23 12:55:46 +00:00
Dries Buytaert 750d7c17ab - Fixed the bullet icon. 2004-02-21 22:33:34 +00:00
Dries Buytaert bb823358dc - Patch 5968 by Chris: the background-image line has a superfluous 'pure' in
the pathname, causing the theme to fail to find the background image and
  issue errors to the watchdog log.
2004-02-21 21:31:22 +00:00
Kjartan Mannes 91d3223727 - Another inccorect path. 2004-02-19 20:35:25 +00:00
Dries Buytaert 6248a26783 - Fixed CSS problem in Xtemplate theme. 2004-02-19 20:12:04 +00:00
Kjartan Mannes 4c6b3d103a - Fixing watermark url. 2004-02-19 18:49:16 +00:00
Dries Buytaert fa447981d6 - Moving theme marvin to the contributions repository. Will be replaced by pusbutton? 2004-02-16 18:37:12 +00:00
Dries Buytaert bf459265e6 - Patch #5789 by TDobes: made the avatars link to the user profile. 2004-02-15 21:17:23 +00:00
Dries Buytaert bd78422715 - Patch 5592 by Goba: let drupal_map_assoc() rule. :-)
- Renamed CHANGELOG to CHANGELOG.txt for Windows uses.
2004-02-15 15:19:36 +00:00
Dries Buytaert 4f07deabcb - Changed the directory structure of theme chameleon. Each template is now
in a subdirectory.  This makes it easier to clone/fork an existing theme.
  Modified patch by MegaGrunt.

- Added some help text, reorganized the Xtemplate configuration page, added
  <legend>/<fieldset> tags, fixed a logo bug.
2004-02-15 14:54:39 +00:00
Dries Buytaert b13a4cb2e3 - Changed the directory structure of theme chameleon. Each template is now
in a subdirectory.  This makes it easier to clone/fork an existing theme.
2004-02-15 14:21:37 +00:00
Dries Buytaert d2834d5964 - Made the logo sink to the baseline. 2004-02-13 18:21:35 +00:00
Dries Buytaert d795565c32 - Patch 5789 by TDobes: added avatar support to the Xtemplate theme. 2004-02-11 19:11:59 +00:00
Dries Buytaert fb94e1d7b8 - Small CSS change to make paragraphs more natural. 2004-02-09 06:11:55 +00:00
Dries Buytaert 3b30ca4fc7 - Patch #5418 by hba: made the Xtemplate theme fully translatable. 2004-02-01 21:37:50 +00:00
Dries Buytaert dc938c533b - Patch #5567 by Goba: fixed t() functions, cleanup of locale module's help,
fixed translation issues in taxonomy module, etc.
2004-02-01 21:04:42 +00:00
Dries Buytaert 786a0cef08 - Fixed bug #5500 by pz: missing alt="" tag in Xtemplate theme. 2004-01-29 20:45:08 +00:00
Dries Buytaert 667022830e - Patch 5140 by Moshe: removed the theme("header") and theme("footer") functions. 2004-01-26 19:05:21 +00:00
Dries Buytaert c20538fae8 - Missing } 2004-01-24 16:27:31 +00:00
Dries Buytaert c3d70557a4 - Fixed table width. 2004-01-24 16:25:41 +00:00
Dries Buytaert 95de30c761 - Some small forum changes. 2004-01-21 22:59:12 +00:00
Dries Buytaert a5b0525afd - Forum module improvements. 2004-01-21 18:34:18 +00:00
Dries Buytaert 6fc2070a22 Patch 5114 by Kjartan:
- Adds drupal_set_header() and drupal_get_headers().
 - Cache now stores custom headers.
 - Replace theme_head() with drupal_get_html_head(), added drupal_set_html_head().
 - Added RSS autodiscover links to node, blog and taxonomy pages.
2004-01-14 22:30:09 +00:00
Dries Buytaert 5ac59aacd2 - Applied patch #4949: node_prepare() wastes resources. Patch by Goba. 2004-01-11 20:16:26 +00:00
Dries Buytaert ee305ae144 Round 3 of aggregator improvements:
- Added support for new tags:
   + Optinal feed image: <image> tag.
   + Dublin core dates: <dc:date> <dcterms:created>, <dcterms:issued>,
     <dcterms:modified>.
 - Usability improvements:
   + On the administration page, made the feed/bundle titles link
     to the feeds/bundles' pages.  On the feed/bundle's page, made
     the 'Last updated' field link to the administration page.
   + Moved the 'syndication' menu one level down.
 - Updated some content sensitive help.
 - Further improved themeability.
 - Fixed some invalid HTML.
2004-01-11 15:05:21 +00:00
Dries Buytaert 93dd644541 - Fixed typo in CSS. 2004-01-10 16:17:23 +00:00
Dries Buytaert 86f8a25059 Aggregator module improvements:
+ Added some a new theme fucntions to the aggregator to make it possible to
   theme the aggregator page.
 + Removed the <table> and much hardcoded CSS as well as theme("box")-es.
 + Added the aggregator's theme functions to Doxygen's themeable group.
 + Added breadcrumb trails to the aggregator pages.
 + Updated the core themes to take advantages of the improved themeability.

Screenshot:

 http://buytaert.net/temporary/aggregator-makeover.jpg
2004-01-10 15:31:26 +00:00
Dries Buytaert 9352d6abf8 - Fixed default chameleon CSS. 2004-01-07 19:42:12 +00:00
Dries Buytaert e8c7d2e092 - Made it possible to set and display multiple status messages. Modified patch by
Kjartan.
2003-12-30 12:10:51 +00:00
Dries Buytaert 80f34e5ab0 - XHTML improvements: <b> -> <strong>. Patch by Stefan. 2003-12-29 17:14:27 +00:00
Dries Buytaert d9ceafd4ca - Made the chameleon theme display comment authors. Patch by Kjartan. 2003-12-29 11:14:01 +00:00
Dries Buytaert ff14f14d29 - Some CSS improvements and better XHTML (<strong> vs <b>). 2003-12-24 12:15:20 +00:00
Dries Buytaert 8f226513b4 - Removed the "img { border: 0; }"s from the CSS files as this is now part of
drupal.css.
2003-12-22 15:31:54 +00:00
Dries Buytaert 01979d430a - Accessibility improvement: made the search box use the alt-tag. 2003-12-22 14:58:19 +00:00
Dries Buytaert 1c03a57684 - Don't display the title when there is no title. 2003-12-22 11:45:04 +00:00
Dries Buytaert 595c790a9c - CSS improvements by Kristjan: <hr />-tag styling, better fieldset and table row
padding, more subtle color to watchdog special messages.
2003-12-16 07:41:40 +00:00
Dries Buytaert 4a526ca752 - Added a new theme derived from Kristjan's styleswitcher theme. 2003-12-15 20:47:18 +00:00
Dries Buytaert eadda128aa - Fixes another 'xtemplate.inc removes "$xx" from content'. Patch by Ax. 2003-12-15 20:27:56 +00:00
Dries Buytaert 632bb2ac07 - Moved theme UnConeD to the contributions repository. 2003-12-13 19:13:56 +00:00
Dries Buytaert 801dd782f5 - Don't display a breadcrumb trail and title when there is no acitve page title.
This stops the Xtemplate theme from displaying a 'Home' link on the front page.
2003-12-13 18:50:09 +00:00
Dries Buytaert fa2ec338dc - Made sure all status messages start with a capital letter as we don't prefix
them with 'Status:'.
2003-12-13 18:00:51 +00:00
Dries Buytaert c4871f0672 - Added a bullet. 2003-12-13 17:44:21 +00:00
Dries Buytaert 8927151381 - Some first theme Marvin improvements: better CSS, less tables. Borrowed some from
marvin_2k and styleswitcher.  More to come.
2003-12-13 17:37:02 +00:00