>
output; ?>
Index: views_cloud_plugin_summary_style_cloud.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_cloud/views_cloud_plugin_summary_style_cloud.inc,v
retrieving revision 1.3
diff -u -r1.3 views_cloud_plugin_summary_style_cloud.inc
--- views_cloud_plugin_summary_style_cloud.inc 17 Nov 2009 22:59:59 -0000 1.3
+++ views_cloud_plugin_summary_style_cloud.inc 18 Nov 2009 01:52:16 -0000
@@ -8,6 +8,8 @@
$options = parent::option_definition();
$options['count'] = array('default' => FALSE);
$options['randomize'] = array('default' => TRUE);
+ $options['sizes'] = array('default' => '7');
+ $options['font_size'] = array('default' => '');
$options['algorithm'] = array('default' => 'log');
return $options;
}
@@ -22,6 +24,34 @@
'#default_value' => $this->options['randomize'],
);
+ $form['sizes'] = array(
+ '#type' => 'select',
+ '#title' => t('Number of font sizes'),
+ '#options' => drupal_map_assoc(range(4,10)),
+ '#default_value' => $this->options['sizes'],
+ '#description' => t('Increasing the number of sizes increases the number of possible sizes an item may be.'),
+ );
+
+ $form['font_size'] = array(
+ '#type' => 'select',
+ '#title' => t('Font size adjustment'),
+ '#options' => array(
+ '0.5' => t('50%'),
+ '0.6' => t('60%'),
+ '0.7' => t('70%'),
+ '0.8' => t('80%'),
+ '0.9' => t('90%'),
+ '' => t('None'),
+ '1.1' => t('110%'),
+ '1.2' => t('140%'),
+ '1.3' => t('130%'),
+ '1.4' => t('140%'),
+ '1.5' => t('150%'),
+ ),
+ '#default_value' => $this->options['font_size'],
+ '#description' => t('Note that changing this value may affect your site differently depending on your theme.'),
+ );
+
$form['algorithm'] = array(
'#type' => 'select',
'#title' => t('Weight to size algorithm'),
Index: views_cloud_plugin_style_cloud.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_cloud/views_cloud_plugin_style_cloud.inc,v
retrieving revision 1.5
diff -u -r1.5 views_cloud_plugin_style_cloud.inc
--- views_cloud_plugin_style_cloud.inc 18 Nov 2009 01:01:12 -0000 1.5
+++ views_cloud_plugin_style_cloud.inc 18 Nov 2009 01:52:16 -0000
@@ -7,9 +7,11 @@
function option_definition() {
$options = parent::option_definition();
$options['randomize'] = array('default' => TRUE);
- $options['algorithm'] = array('default' => 'log');
$options['weight_field'] = array('default' => NULL);
+ $options['sizes'] = array('default' => '7');
+ $options['font_size'] = array('default' => '');
$options['hide_weight_field'] = array('default' => TRUE);
+ $options['algorithm'] = array('default' => 'log');
return $options;
}
@@ -69,7 +71,35 @@
'#title' => t('Randomize the order of items'),
'#description' => t("This setting respects the View's sort order when limiting large paged lists, but shuffles each list of items when displayed on the page."),
'#default_value' => $this->options['randomize'],
- );
+ );
+
+ $form['sizes'] = array(
+ '#type' => 'select',
+ '#title' => t('Number of font sizes'),
+ '#options' => drupal_map_assoc(range(4,10)),
+ '#default_value' => $this->options['sizes'],
+ '#description' => t('Increasing the number of sizes increases the number of possible sizes an item may be.'),
+ );
+
+ $form['font_size'] = array(
+ '#type' => 'select',
+ '#title' => t('Font size adjustment'),
+ '#options' => array(
+ '0.5' => t('50%'),
+ '0.6' => t('60%'),
+ '0.7' => t('70%'),
+ '0.8' => t('80%'),
+ '0.9' => t('90%'),
+ '' => t('None'),
+ '1.1' => t('110%'),
+ '1.2' => t('140%'),
+ '1.3' => t('130%'),
+ '1.4' => t('140%'),
+ '1.5' => t('150%'),
+ ),
+ '#default_value' => $this->options['font_size'],
+ '#description' => t('Note that changing this value may affect your site differently depending on your theme.'),
+ );
$form['algorithm'] = array(
'#type' => 'select',