Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
<?php extends Page { public static $db = ( "GallerySwitch" => "Boolean", "CarouselButtonName" => "Text", "CarouselSubTitle01" => "Text", "CarouselSubTitle02" => "Text", "CarouselSubTitle03" => "Text", 'CareInfo' => 'HTMLText' ); public static $has_one = ( 'Photo01' => 'Image', 'Photo02' => 'Image', 'Photo03' => 'Image', 'LargePhoto01' => 'Image', 'LargePhoto02' => 'Image', 'LargePhoto03' => 'Image' ); public static $many_many = ( 'ProductStyles' => 'ProductStyle', 'NormalColors' => 'NormalColor' ); function () { $fields = parent(); $stylesTablefield = new ManyManyComplexTableField( $this, 'ProductStyles', 'ProductStyle', ( 'StyleSeason' => 'Season', 'StyleGender' => 'Gender', 'StyleNumber' => 'Style #', 'StyleName' => 'Name', 'StyleColor' => 'Color #', 'StyleCategory' => 'Category', 'StyleSubCategory' => 'Sub category', 'StyleSize' => 'Sizes', 'StyleMaterial' => 'Material', 'StyleDescription' => 'Description' ), 'getCMSFields_forPopup' ); $stylesTablefield->('ProductPage'); $stylesTablefield->(100); $stylesTablefield->( 'a Product Style' ); $normalcolorsTablefield = new ManyManyComplexTableField( $this, 'NormalColors', 'NormalColor', ( 'ColorName' => 'Color name', 'ColorCode' => 'Color code', 'ColorHexValue' => 'HTML color - hex', 'ColorRemarks' => 'Remarks' ), 'getCMSFields_forPopup' ); $normalcolorsTablefield->('ProductPage'); $normalcolorsTablefield->(100); $normalcolorsTablefield->( 'a Color' ); $fields->("Root.Content","Background"); $fields->('Root.Content.Main', new HtmlEditorField('CareInfo', 'Care information (Materials are prefetched from the products styles list.)')); $fields->( 'Root.Content.Images', new HeaderField("For the product page image gallery, you can set a minimum of 2 and a maximum of 3 images.", "5")); $fields->( 'Root.Content.Images', new CheckboxField("GallerySwitch", "Enable gallery. If disabled, just image 1 will be shown.")); $fields->('Root.Content.Images', new TextField('CarouselButtonName', 'Carousel button text')); $fields->('Root.Content.Images', new LiteralField('Divider', '<br/><hr/><br/>')); $fields->('Root.Content.Images', new ImageField('Photo01', 'Image 1. This image should be 348 x 348 px.')); $fields->('Root.Content.Images', new TextField('CarouselSubTitle01', 'Gallery subtitle (Also for carousel.)')); $fields->('Root.Content.Images', new ImageField('LargePhoto01', 'Large image 1. This image should be 696 x 696 px.')); $fields->('Root.Content.Images', new LiteralField('Divider', '<br/><hr/><br/>')); $fields->('Root.Content.Images', new ImageField('Photo02', 'Image 2. This image should be 348 x 348 px.')); $fields->('Root.Content.Images', new TextField('CarouselSubTitle02', 'Gallery subtitle (Also for carousel.)')); $fields->('Root.Content.Images', new ImageField('LargePhoto02', 'Large image 2. This image should be 696 x 696 px.')); $fields->('Root.Content.Images', new LiteralField('Divider', '<br/><hr/><br/>')); $fields->('Root.Content.Images', new ImageField('Photo03', 'Image 3. This image should be 348 x 348 px.')); $fields->('Root.Content.Images', new TextField('CarouselSubTitle03', 'Gallery subtitle (Also for carousel.)')); $fields->('Root.Content.Images', new ImageField('LargePhoto03', 'Large image 3. This image should be 696 x 696 px.')); $fields->( 'Root.Content.ProductStyles', $stylesTablefield ); $fields->( 'Root.Content.NormalColors', $normalcolorsTablefield ); return $fields; } } |