Task description:

Background
The Style Guide module for Drupal provides a visual testing page for Drupal themes. Quickly compare the display of common elements across installed Drupal themes, and verify that selected themes addresses all common style elements.

Be sure to use the latest version of HEAD, which incorporates the changes in #949070: Create plugins for Style Guide module [Task 1].

Preparation
-- Download and install Drupal 7.
-- Visit the 'Appearance' page in the administration interface to find the Style Guide links.

New plugins

Using the API (styleguide.api.php, in the module download), create a patch to styleguide.styleguide.inc or a custom module include that adds preview elements only when optional core modules are enabled:

[Task 4: 8 hrs]
-- Search (4 hrs)
--- theme_search_block_form()
--- theme_search_result()
--- theme_search_results()
-- theme_breadcrumb() (1 hr)
-- theme_confim_form() (1 hr)
-- theme_filter_tips() (2 hrs)

Deliverables:

-- Patch(es) to include the desired features to the Style Guide module.

Resources:

Style Guide module: Style guide module

Primary contact:

agentrickard

Estimated time: 8 hours

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Issue tags: +gci-research, +gci-hard, +gci-task, +gci-ui

Tagging.

chalet16’s picture

FileSize
3.51 KB

theme_search_result is a child of theme_search_results so I haven't create a style guide for theme_search_result. But then I create a guide for search results with and without results instead.

agentrickard’s picture

Status: Active » Needs work
FileSize
4.05 KB

This is very close. More great stuff here.

I moved the filter functions into filter.inc, mainly for consistency. I'd also like to see a display for this element of the Filter tips (see attached), which is shown below text input fields.

I put in a comment that we could just add that to the existing form textarea, or have it stand-alone. I think stand-alone might be better. Not really certain.

The search stuff is great. Very creative solution.

agentrickard’s picture

FileSize
17.89 KB

Forgot the file.

chalet16’s picture

Status: Needs work » Needs review
FileSize
4.1 KB

Updated

agentrickard’s picture

Notice: Undefined index: #value in theme_textarea() (line 3703 of /Applications/MAMP/htdocs/drupal-cvs/includes/form.inc).

Looks like it's complaining because the textarea has no value passed to it.

chalet16’s picture

FileSize
4.11 KB

Sorry, I hadn't seen that message. Updated!

agentrickard’s picture

Status: Needs review » Fixed

It's probably a PHP 5.3 or strict error.

Sweet. The form snippet even works to swap the descriptions if you change the select value.

Committed and approved.

Status: Fixed » Closed (fixed)
Issue tags: -gci-research, -gci-hard, -gci-task, -gci-ui

Automatically closed -- issue fixed for 2 weeks with no activity.