function theme_acquia_lift_single_variation in Acquia Lift Connector 7.2
Theme function to output the option set and option name when showing variation listings.
Parameters
$variables:
- option_set: the label for the option set
- option: the label for the option
3 theme calls to theme_acquia_lift_single_variation()
- acquia_lift_personalize_campaign_wizard_targeting_alter in ./
acquia_lift.admin.wizard.inc - Alter hook for the targeting portion of the campaign wizard.
- acquia_lift_target_complete_audience_form in ./
acquia_lift.admin.inc - Form handler to complete an audience within a campaign.
- _acquia_lift_personalize_campaign_wizard_variation_displays in ./
acquia_lift.admin.wizard.inc - Generates a multidimensional array of variation display labels based on the option sets and type of multiple variation set handling.
File
- theme/
acquia_lift.wizard.theme.inc, line 193 - acquia_lift.wizard.theme.inc Provides theme functions for Acquia Lift's version of the campaign creation wizard workflow.
Code
function theme_acquia_lift_single_variation($variables) {
$html = '';
$html = '<span class="acquia-lift-variation">';
if (empty($variables['option_set'])) {
$html .= $variables['option'];
$html .= '</span>';
return $html;
}
$html .= $variables['option'] . ' ';
$html .= '<span class="acquia-lift-variation-set">(';
$html .= $variables['option_set'];
$html .= ')</span>';
$html .= '</span>';
return $html;
}