You are here

function _sweaver_default_sweaver_property in Sweaver 6

Same name and namespace in other branches
  1. 7 sweaver.registry.inc \_sweaver_default_sweaver_property()

Default properties.

1 call to _sweaver_default_sweaver_property()
sweaver_default_sweaver_property in ./sweaver.module
Implementation of hook_default_sweaver_property().

File

./sweaver.registry.inc, line 366
Registry for Sweaver.

Code

function _sweaver_default_sweaver_property() {
  $propertys = array();

  // Font family.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'font-family';
  $property->description = 'Font family';
  $property->property = 'font-family';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    '' => 'Theme default',
    'Arial, Helvetica,Sans-Serif' => 'Arial',
    '\'Arial Black\',Sans-Serif' => 'Arial Black',
    '\'Comic Sans MS\',Cursive' => 'Comic Sans MS',
    '\'Courier New\',Courier,Monospace' => 'Courier',
    'Georgia,Serif' => 'Georgia',
    'Helvetica,Arial,Sans-Serif' => 'Helvetica',
    'Impact,Charcoal,Sans-Serif' => 'Impact',
    '\'Lucida Sans\',\'Lucida Grande\',Sans-Serif' => 'Lucida',
    '\'Palatino Linotype\',Palatino,Serif' => 'Palatino',
    'Tahoma,Geneva,Sans-Serif' => 'Tahoma',
    '\'Times New Roman\',Times,Serif' => 'Times New Roman',
    '\'Trebuchet\',Helvetica,Sans-Serif' => 'Trebuchet',
    'Verdana,Geneva,Sans-Serif' => 'Verdana',
  );
  $propertys['font-family'] = $property;

  // Font style.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'font-style';
  $property->description = 'Font style';
  $property->property = 'font-style';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'normal' => 'Normal',
    'italic' => 'Italic',
  );
  $propertys['font-style'] = $property;

  // Font weight.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'font-weight';
  $property->description = 'Font weight';
  $property->property = 'font-weight';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    '400' => 'Normal',
    '800' => 'Bold',
  );
  $propertys['font-weight'] = $property;

  // Font size group
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'font-size-wrapper';
  $property->description = 'Font size';
  $property->property = '';
  $property->property_parent = '';
  $property->property_type = 'parent';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['font-size-wrapper'] = $property;

  // Font size
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'font-size';
  $property->description = 'size';
  $property->property = 'font-size';
  $property->property_parent = 'font-size-wrapper';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 1;
  $property->property_slider_max = 200;
  $property->property_options = array();
  $propertys['font-size'] = $property;

  // Line height
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'line-height';
  $property->description = 'line height';
  $property->property = 'line-height';
  $property->property_parent = 'font-size-wrapper';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 1;
  $property->property_slider_max = 200;
  $property->property_options = array();
  $propertys['line-height'] = $property;

  // Text alignment.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'text-align';
  $property->description = 'Text alignment';
  $property->property = 'text-align';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'left' => 'Left',
    'center' => 'Center',
    'right' => 'Right',
    'justify' => 'Justified',
  );
  $propertys['text-align'] = $property;

  // Color.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'color';
  $property->description = 'Font color';
  $property->property = 'color';
  $property->property_parent = '';
  $property->property_type = 'color';
  $property->property_prefix = '#';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['color'] = $property;

  // Text-decoration.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'text-decoration';
  $property->description = 'Text decoration';
  $property->property = 'text-decoration';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'none' => 'None',
    'underline' => 'Underline',
    'overline' => 'Overline',
    'line-through' => 'Line through',
  );
  $propertys['text-decoration'] = $property;

  // Background.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'background-color';
  $property->description = 'Color';
  $property->property = 'background-color';
  $property->property_parent = '';
  $property->property_type = 'color';
  $property->property_prefix = '#';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['background-color'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'background-image';
  $property->description = 'Image';
  $property->property = 'background-image';
  $property->property_parent = '';
  $property->property_type = 'image';
  $property->property_prefix = 'url(';
  $property->property_suffix = ')';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['background-image'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'background-repeat';
  $property->description = 'Repeat';
  $property->property = 'background-repeat';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'no-repeat' => 'None',
    'repeat-x' => 'Horizontally',
    'repeat-y' => 'Vertically',
    'repeat' => 'Both',
  );
  $propertys['background-repeat'] = $property;

  // Background-position.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'background-position';
  $property->description = 'Position';
  $property->property = 'background-position';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    '0% 0%' => 'left top',
    '100% 0%' => 'right top',
    '0% 100%' => 'left bottom',
    '100% 100%' => 'right bottom',
    '50% 50%' => 'center center',
    '50% 100%' => 'center bottom',
    '50% 0%' => 'center top',
  );
  $propertys['background-position'] = $property;

  // Background-attachment.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'background-attachment';
  $property->description = 'Attachment';
  $property->property = 'background-attachment';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'scroll' => 'Scroll',
    'fixed ' => 'Fixed',
  );
  $propertys['background-attachment'] = $property;

  // Padding.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'padding';
  $property->description = 'Padding';
  $property->property = '';
  $property->property_parent = '';
  $property->property_type = 'parent';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['padding'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'padding-top';
  $property->description = 'Top';
  $property->property = 'padding-top';
  $property->property_parent = 'padding';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['padding-top'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'padding-right';
  $property->description = 'Right';
  $property->property = 'padding-right';
  $property->property_parent = 'padding';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['padding-right'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'padding-bottom';
  $property->description = 'Bottom';
  $property->property = 'padding-bottom';
  $property->property_parent = 'padding';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['padding-bottom'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'padding-left';
  $property->description = 'Left';
  $property->property = 'padding-left';
  $property->property_parent = 'padding';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['padding-left'] = $property;

  // Margin.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'margin';
  $property->description = 'Margin';
  $property->property = '';
  $property->property_parent = '';
  $property->property_type = 'parent';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['margin'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'margin-top';
  $property->description = 'Top';
  $property->property = 'margin-top';
  $property->property_parent = 'margin';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['margin-top'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'margin-right';
  $property->description = 'Right';
  $property->property = 'margin-right';
  $property->property_parent = 'margin';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['margin-right'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'margin-bottom';
  $property->description = 'Bottom';
  $property->property = 'margin-bottom';
  $property->property_parent = 'margin';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['margin-bottom'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'margin-left';
  $property->description = 'Left';
  $property->property = 'margin-left';
  $property->property_parent = 'margin';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['margin-left'] = $property;

  // Border.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border';
  $property->description = 'Border width';
  $property->property = '';
  $property->property_parent = '';
  $property->property_type = 'parent';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['border'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-top-width';
  $property->description = 'Top';
  $property->property = 'border-top-width';
  $property->property_parent = 'border';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['border-top-width'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-right-width';
  $property->description = 'Right';
  $property->property = 'border-right-width';
  $property->property_parent = 'border';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['border-right-width'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-bottom-width';
  $property->description = 'Bottom';
  $property->property = 'border-bottom-width';
  $property->property_parent = 'border';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['border-bottom-width'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-left-width';
  $property->description = 'Left';
  $property->property = 'border-left-width';
  $property->property_parent = 'border';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['border-left-width'] = $property;

  // Border color
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-color';
  $property->description = 'Border color';
  $property->property = 'border-top-color border-right-color border-bottom-color border-left-color';
  $property->property_parent = '';
  $property->property_type = 'color';
  $property->property_prefix = '#';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array();
  $propertys['border-color'] = $property;

  // Border style
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-style';
  $property->description = 'Border style';
  $property->property = 'border-top-style border-right-style border-bottom-style border-left-style';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'none' => 'None',
    'dashed' => 'Dashed',
    'dotted' => 'Dotted',
    'solid' => 'Solid',
    'double' => 'Double',
    'groove' => 'Groove',
    'inset' => 'Inset',
    'outset' => 'Outset',
    'ridge' => 'Ridge',
  );
  $propertys['border-style'] = $property;

  // Table extras.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-collapse';
  $property->description = 'Border collapse';
  $property->property = 'border-collapse';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'collapse' => 'Collapse',
    'separate' => 'Separate',
  );
  $propertys['border-collapse'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'border-spacing';
  $property->description = 'Border spacing';
  $property->property = 'border-spacing';
  $property->property_parent = '';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 500;
  $property->property_options = array();
  $propertys['border-spacing'] = $property;
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'vertical-align';
  $property->description = 'Vertical align';
  $property->property = 'vertical-align';
  $property->property_parent = '';
  $property->property_type = 'select';
  $property->property_prefix = '';
  $property->property_suffix = '';
  $property->property_slider_min = '';
  $property->property_slider_max = '';
  $property->property_options = array(
    'top' => 'Top',
    'bottom' => 'Bottom',
    'middle' => 'Middle',
  );
  $propertys['vertical-align'] = $property;

  // Width.
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'width';
  $property->description = 'Width';
  $property->property = 'width';
  $property->property_parent = '';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 2000;
  $property->property_options = array();
  $propertys['width'] = $property;

  // Height
  $property = new stdClass();
  $property->api_version = 1;
  $property->disabled = FALSE;
  $property->name = 'height';
  $property->description = 'Height';
  $property->property = 'height';
  $property->property_parent = '';
  $property->property_type = 'slider';
  $property->property_prefix = '';
  $property->property_suffix = 'px';
  $property->property_slider_min = 0;
  $property->property_slider_max = 2000;
  $property->property_options = array();
  $propertys['height'] = $property;
  return $propertys;
}