CVS edit link for DickSwart

I'm a themer and would like to give something back to the drupal community. I've been using drupal for over 3 years now, and loving it.
I have created a theme based on zen and blueprint framework, it is not a clone of the themes mentioned. It is a brand new theme with lots of nice features, it is basicaly a starter theme.
CommentFileSizeAuthor
#6 synfox.zip436.31 KBDickSwart
#4 synfox.zip427.62 KBDickSwart
#2 correct-synfox.zip429.55 KBDickSwart
#1 synfox.zip427.56 KBDickSwart

Comments

DickSwart’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new427.56 KB

Tableless, multi-column, five different Blueprint grid framework fixed and fluid width starter theme. Lots of configarable theme options.

DickSwart’s picture

StatusFileSize
new429.55 KB

I found an error on my template, please review this attached file (correct-synfox.zip).

avpaderno’s picture

Status: Needs review » Needs work
  1. Most files miss the CVS ID tag, or have the CVS ID tag from another Drupal.org user.
  2. // The code for conditional stylesheets started out as a patch for synfox. Now that
    // it has been spun out to its own separate module, It would be nice to prevent
    // code drift between the synfox implementation and the conditional_styles.module,
    // so synfox now includes an exact copy of conditonal_style module's
    

    The theme should not include the file of another module, especially if this module is already included in Drupal.org CVS. There is also another reason to not include it: the respect of a module/theme namespace.

DickSwart’s picture

Status: Needs work » Needs review
StatusFileSize
new427.62 KB

I made some changes, removed the modules and added id's. Please review my project again.

avpaderno’s picture

Status: Needs review » Needs work
/**
 * Implements HOOK_theme().
 *
 * We are simply using this hook as a convenient time to do some related work.
 */
function _synfox_theme(&$existing, $type, $theme, $path) {}

The function is not really an implementation of hook_theme(); the name of a hook doesn't include the starting underscore character, and Drupal would not use that function as hook.

See the code of the Drupal function which invokes all the implementation of a particular hook passed as argument.

function module_invoke_all() {
  $args = func_get_args();
  $hook = $args[0];
  unset($args[0]);
  $return = array();
  foreach (module_implements($hook) as $module) {
    $function = $module .'_'. $hook;
    $result = call_user_func_array($function, $args);
    if (isset($result) && is_array($result)) {
      $return = array_merge_recursive($return, $result);
    }
    else if (isset($result)) {
      $return[] = $result;
    }
  }

  return $return;
}

You will notice that the function name is built using $module .'_'. $hook.

DickSwart’s picture

Status: Needs work » Needs review
StatusFileSize
new436.31 KB

Please review, made changes.
Removed:

/**
* Implements HOOK_theme().
*
* We are simply using this hook as a convenient time to do some related work.
*/
function _synfox_theme(&$existing, $type, $theme, $path) {}

and made some css changes for the search form.

avpaderno’s picture

Status: Needs review » Fixed
  // Modify elements of the search form
  $vars['form']['search_theme_form']['#title'] = t('');
 
  // Set a default value for the search box
  $vars['form']['search_theme_form']['#value'] = t('Search this Site');

An empty string is always an empty string, whatever language is used. The code should rather pass to t() the string that reports the copyright.

DickSwart’s picture

Sorry I see the status is "fixed", should I fix it and resubmit?

avpaderno’s picture

When I change the status to fixed, it means that I approved the CVS account. Sometimes I make some notes about some changes to implement in the code; you can make those changes before committing the code in CVS.

DickSwart’s picture

Thank You

avpaderno’s picture

Welcome aboard!

DickSwart’s picture

Sorry about this, Can I ask you to delete my project "/themes/SynFox". I messed up And would like to rather start over. Sorry for this! And delete it from my projects page, I want to start from scrach. I went through the docs and saw were I messed up. Again, Sorry for this (Newbee).

avpaderno’s picture

There is no reason to delete the project. You can remove the files committed, and start again.

Status: Fixed » Closed (fixed)

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

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes
Status: Closed (fixed) » Fixed
Issue tags: +Theme review

Status: Fixed » Closed (fixed)

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