00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 class Mage_GoogleCheckout_Model_Source_Checkout_Image
00029 {
00030 public function toOptionArray()
00031 {
00032 $sizes = array(
00033 '180/46' => Mage::helper('googlecheckout')->__('Large - %s', '180x46'),
00034 '168/44' => Mage::helper('googlecheckout')->__('Medium - %s', '168x44'),
00035 '160/43' => Mage::helper('googlecheckout')->__('Small - %s', '160x43'),
00036 );
00037
00038 $styles = array(
00039 'trans' => Mage::helper('googlecheckout')->__('Transparent'),
00040 'white' => Mage::helper('googlecheckout')->__('White Background'),
00041 );
00042
00043 $options = array();
00044 foreach ($sizes as $size=>$sizeLabel) {
00045 foreach ($styles as $style=>$styleLabel) {
00046 $options[] = array(
00047 'value' => $size.'/'.$style,
00048 'label' => $sizeLabel.' ('.$styleLabel.')'
00049 );
00050 }
00051 }
00052
00053 return $options;
00054 }
00055 }