//pulls ids for categories based on names $cats=array(); $category_ids = get_all_category_ids(); foreach($category_ids as $cat_id) { $cat_name = get_cat_name($cat_id); $cats[$cat_name]=$cat_id; } //checks for all parents function getParents($id){ //array holds all posts in family tree $parPosts=array(); //id of the starting post $curId=$id; //cycles through lineage while($curId!=0){ //gets the post of the current generation $thisPost=get_post($curId); //adds it to the family tree $parPosts[]=$thisPost; //traces target posts parent $curId=$thisPost->post_parent; //checks to see if the page uses parent_page_id instead of true parents if($curId==0&&get_post_meta($thisPost->ID,"parent_page_id",true)!=""){ $curId=get_post_meta($thisPost->ID,"parent_page_id",true); } } //returns lineage from current moving to oldest return $parPosts; } //checks to see if a post is in the same family tree as another (post id, post id) function isRelatedTo($child,$relative){ //gets the targets familty tree $famTree=getParents($child); //defaults to not related $isRelated=false; //checks to see if anscestors are equal to the relative foreach($famTree as $rel){ if($rel->ID==$relative){ $isRelated=true; } } //returns result return $isRelated; } ?>
The Design Dialogues site houses all online publications from the School of Design Strategies at Parsons School of Design.
This site is funded by the Stephan Weiss Lecture Series on Business Strategy, Negotiation and Innovation. This lectureship was launched in 2002 to commemorate the life of the late artist and sculptor Stephan Weiss, husband and business partner of the fashion designer Donna Karan. Weiss co-founded Donna Karan International in 1984, and was instrumental in every significant venture the company undertook: launching and structuring new brands, most notably the Donna Karan Beauty company; signing new licenses; establishing in-house legal and creative departments; devising its computer design technology; orchestrating the company’s initial public offering in 1996; and negotiating its sale to the current owner LVMH Moet Hennessy – Louis Vuitton.
The School of Design Strategies is an experimental educational environment. We advance innovative approaches in design, business and education. In the evolving context of cities, services and ecosystems, we explore design as a capability and a strategy in the environmentally conscious practices of individuals, groups, communities and organizations. For more about the School of Design Strategies, visit the SDS Magazine.