The 2.x branch of Fusion no longer uses Skinr but instead the newly released Fusion Accelerator module, which was designed to provide similar features when used with the Fusion theme.

As noted on the Mix and match project page, the maintainer intends to have the next release of the theme incorporate the skins in conjunction with this Fusion Accelerator.

Comments

nedjo’s picture

Title: Upgrade to Fusion 2.x and Fusion Accelerator » Upgrade Mix and match to Fusion 2.x and Fusion Accelerator

Clarifying title. I'm using Mix and match in the Open Outreach distro and look forward to being able to upgrade to Fusion 2.x. Happy to review any draft patches.

radoveden’s picture

Good news ! I'm using Mix and match also. Skinr is the only module giving me problems in upgrading my site from drupal 6 to drupal 7. So, I'll wait for this solution. Keep on the good work !!!!

drupalninja99’s picture

The skinr include is almost exactly the same as fusion apply. I am playing around with re-creating the openchurch mix and match theme for D7. I will let you know if I have any luck.

drupalninja99’s picture

All you need to do is add

fusion[api] = 2
fusion[directory] = skins

To the .info file

Then create the path skins/core/core.inc And place essentially the same code in a different function hook, see below:

<?php

/**
 * Implements hook_fusion_apply_skin_core_info().
 */
function mix_and_match_fusion_apply_skin_core_info() {
  $skins = array();
  $skins['skinr_background_color'] = array(
    'title' => t('Background Color'),
    'type' => 'select',
    'group' => 'skinr_styles_colors',
    'theme hooks' => array('block', 'panels_display', 'panels_pane', 'panels_panel', 'node'),
    'default status' => TRUE,
    'options' => array(
      'white_bg' => array(
        'title' => t('White'),
        'class' => array('white-background'),
      ),
      'black_bg' => array(
        'title' => t('Black'),
        'class' => array('black-background'),
      ),
      'ltgray_bg' => array(
        'title' => t('Light Gray'),
        'class' => array('gray-background'),
      ),
      'medgray_bg' => array(
        'title' => t('Medium Gray'),
        'class' => array('med-gray-background'),
      ),
      'dkgray_bg' => array(
        'title' => t('Dark Gray'),
        'class' => array('dk-gray-background'),
      ),
      'red_bg' => array(
        'title' => t('Red'),
        'class' => array('red-background'),
      ),
      'blue_bg' => array(
        'title' => t('Dark Blue'),
        'class' => array('blue-background'),
      ),
      'ltblue_bg' => array(
        'title' => t('Light Blue'),
        'class' => array('lt-blue-background'),
      ),
      'dkgreen_bg' => array(
        'title' => t('Dark Green'),
        'class' => array('green-background'),
      ),
        'ltgreen_bg' => array(
        'title' => t('Light Green'),
        'class' => array('lt-green-background'),
      ),
        'orange_bg' => array(
        'title' => t('Dark Orange'),
        'class' => array('orange-background'),
      ),
        'ltorange_bg' => array(
        'title' => t('Light Orange'),
        'class' => array('lt-orange-background'),
      ),
    ),
  );

  $skins['skinr_header_background_color'] = array(
    'title' => t('Header Background Color'),
    'type' => 'select',
    'description' => 'Select a color if you would like a header background different from the body background.',
    'group' => 'skinr_styles_colors',
    'theme hooks' => array('block', 'panels_display', 'panels_pane', 'panels_panel', 'node'),
    'default status' => TRUE,
    'options' => array(
      'black_header_bg' => array(
        'title' => t('Black'),
        'class' => array('black-header'),
      ),
      'gray_header_bg' => array(
        'title' => t('Gray'),
        'class' => array('gray-header'),
      ),
      'red_header_bg' => array(
        'title' => t('Red'),
        'class' => array('red-header'),
      ),
      'blue_header_bg' => array(
        'title' => t('Blue'),
        'class' => array('blue-header'),
      ),
      'green_header_bg' => array(
        'title' => t('Green'),
        'class' => array('green-header'),
      ),
      'orange_header_bg' => array(
        'title' => t('Orange'),
        'class' => array('orange-header'),
      ),
    ),
  );

  $skins['skinr_header_text_color'] = array(
    'title' => t('Header Text Color'),
    'type' => 'select',
    'description' => 'Select a color for the block or node title text.',
    'group' => 'skinr_styles_colors',
    'theme hooks' => array('block', 'panels_display', 'panels_pane', 'panels_panel', 'node'),
    'default status' => TRUE,
    'options' => array(
      'white_header_text' => array(
        'title' => t('White'),
        'class' => array('white-title'),
      ),
      'black_header_text' => array(
        'title' => t('Black'),
        'class' => array('black-title'),
      ),
      'gray_header_text' => array(
        'title' => t('Gray'),
        'class' => array('gray-title'),
      ),
      'red_header_text' => array(
        'title' => t('Red'),
        'class' => array('red-title'),
      ),
      'blue_header_text' => array(
        'title' => t('Blue'),
        'class' => array('blue-title'),
      ),
      'green_header_text' => array(
        'title' => t('Green'),
        'class' => array('green-title'),
      ),
     'orange_header_text' => array(
        'title' => t('Orange'),
        'class' => array('orange-title'),
      ),
    ),
  );

  $skins['skinr_link_text_color'] = array(
    'title' => t('Link Text Color'),
    'type' => 'select',
    'description' => 'Select a color for the link text.',
    'group' => 'skinr_styles_colors',
    'theme hooks' => array('block', 'panels_display', 'panels_pane', 'panels_panel', 'node'),
    'default status' => TRUE,
    'options' => array(
      'white_link_text' => array(
        'title' => t('White'),
        'class' => array('block-white-links'),
      ),
      'black_link_text' => array(
        'title' => t('Black'),
        'class' => array('block-black-links'),
      ),
      'gray_link_text' => array(
        'title' => t('Gray'),
        'class' => array('block-gray-links'),
      ),
      'ltgray_link_text' => array(
        'title' => t('Light Gray'),
        'class' => array('block-lt-gray-links'),
      ),
      'red_link_text' => array(
        'title' => t('Red'),
        'class' => array('block-red-links'),
      ),
      'blue_link_text' => array(
        'title' => t('Blue'),
        'class' => array('block-blue-links'),
      ),
      'green_link_text' => array(
        'title' => t('Green'),
        'class' => array('block-green-links'),
      ),
     'orange_link_text' => array(
        'title' => t('Orange'),
        'class' => array('block-orange-links'),
      ),
    ),
  );

  return $skins;
}
drupalninja99’s picture

You could support skinr and fusion apply simultaneously in the since that its basically the same code. If fusion apply is enabled it will use this skin, if skinr is enabled it will use the other.

nedjo’s picture

Status: Active » Needs review
StatusFileSize
new12.67 KB

Here's a patch based on #4 with minor key naming edits. Seems functional on my basic testing.

nedjo’s picture

StatusFileSize
new12.25 KB

Previous patch generated a whitespace error.

nedjo’s picture

StatusFileSize
new15.3 KB

Add in responsive settings to .info file for use with fusion accelerator. Fixes the issue reported in #1606938: Invalid argument supplied for foreach().

ajross’s picture

So sorry for the delay and thanks for all your posts. I completed a quite a bit of work on a new release working with Fusion Accelerator with extra responsive features, etc. However, it appears that Fusion and its associated module are not being actively maintained any longer, as far as I can tell. As a result, I've switched and am working on instead building a responsive 7.x version of the theme on a different base theme and that one will continue to use Skinr. Should have a release of that soon. As far as the Fusion version goes, I will try to do one more release with some basic bug fixes, but if there is no indication that Fusion or Fusion Accelerator is going to be actively supported in the future I don't think it makes sense to continue with that as the base.

spidersilk’s picture

Out of curiosity, what base theme are you going to be using? I used to use Zen when creating custom themes for clients, but had been shifting in the direction of Fusion - but if Fusion's future is in doubt, that's obviously not a good plan. So now I'm curious what might be a better pick, that would be more full-featured than Zen, but more actively supported than Fusion...

ajross’s picture

I've been setting up test versions on AdaptiveTheme and Omega for comparison. Omega is a terrific base theme but I think the configuration options on AdaptiveTheme are a bit closer to what Fusion has so I'm planning to release that one, and then have it work with Skinr for block styles. I just think it will be a little less disruptive for folks that are used to Fusion. I've also worked with Zen and while it's responsive version is very good too, again it just is very different from what I had set up with Mix and Match and Fusion. Although please feel free to weigh in if you have any specific thoughts about any of the base themes.

nedjo’s picture

Status: Needs review » Closed (won't fix)

@ajross: thanks for the update and good to hear your plans. I've moved this to a new issue, #1852830: Produce new branch of Mix and Match based on AdaptiveTheme or Omega, so we can close this one.

ccannon’s picture

@Nedjo - patch in comment #8 worked like a charm. Thanks very much for taking the time to put it out there!

spyderpie’s picture

will this (mix and match patch) be committed soon? I'd rather not patch and it looks like this theme hasn't had an update since 2011 ... pweeeeease?