From: Anthony Talarico Date: Mon, 9 May 2016 14:50:13 +0000 (-0400) Subject: commenting out the packages attributes currently until I can get all of the values... X-Git-Tag: v1.1.3^2~13^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9e91007e5e25a8d199375356bddf03d650a5e7d8;p=WP-Plugins%2Fglm-member-db-packaging.git commenting out the packages attributes currently until I can get all of the values from config array --- diff --git a/setup/shortcodeBuilder.php b/setup/shortcodeBuilder.php index a300626..6ae6bc1 100644 --- a/setup/shortcodeBuilder.php +++ b/setup/shortcodeBuilder.php @@ -2,17 +2,47 @@ /* * Packages Shortcode Attributes */ + function nicePrint($array){ + echo '
', print_r($array), '
'; + } + require_once(GLM_MEMBERS_PACKAGING_PLUGIN_CLASS_PATH.'/data/dataPackages.php'); + + + $packageListAttr = $this->config['addOns']['glm-member-db-packaging']['shortcodes']['glm-members-packaging-list']['attributes']; + $packageDetailAttr = $this->config['addOns']['glm-member-db-packaging']['shortcodes']['glm-members-packaging-detail']; + $packageListAttrValues = $this->config['addOns']['glm-member-db-packaging']['shortcodes']['glm-members-packaging-list']['attributes']; + $packageDetailAttrValues = $this->config['addOns']['glm-member-db-packaging']['shortcodes']['glm-members-packaging-detail']['attributes']; + // get list of packages shortcodes $package = new GlmDataPackages($this->wpdb, $this->config); $packageList = $package->getList(); foreach($packageList as $key=>$value){ $packageListId[] = $value['id']; } + + // loop through packaging list shortcode attributes + foreach($packageListAttr as $key=>$value){ + $listAttributes[] = $key; + $values[] = $value; + } - - //dropdown for package list 'type' attr +// echo ''; +// $count = 0; +// foreach($listAttributes as $list=>$value){ +// echo ''; +// $count++; +// } +// echo ''; + + /* IDs are used as placeholders currently until the attributes and their values are + figured out + + dropdown for package list 'type' attr */ + echo '