theme->baseUrl. '/assets'); $cssAnsScriptFilesModule = array( '/js/default/calendar.js', ); HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl); $cssAnsScriptFilesTheme = array( "/plugins/jquery-cropbox/jquery.cropbox.css", "/plugins/jquery-cropbox/jquery.cropbox.js", // SHOWDOWN '/plugins/showdown/showdown.min.js', //MARKDOWN '/plugins/to-markdown/to-markdown.js', '/plugins/jquery.qrcode/jquery-qrcode.min.js', '/plugins/fullcalendar/fullcalendar/fullcalendar.min.js', '/plugins/fullcalendar/fullcalendar/fullcalendar.css', '/plugins/fullcalendar/fullcalendar/locale/'.Yii::app()->language.'.js', "/plugins/d3/d3.js", "/plugins/d3/d3-flextree.js", "/plugins/d3/view.mindmap.js", "/plugins/d3/view.mindmap.css", ); HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesTheme, Yii::app()->request->baseUrl); //$id = $_GET['id']; $imgDefault = $this->module->assetsUrl.'/images/thumbnail-default.jpg'; //récupération du type de l'element $typeItem = (@$element["typeSig"] && $element["typeSig"] != "") ? $element["typeSig"] : ""; if($typeItem == "") $typeItem = @$element["type"] ? $element["type"] : "item"; if($typeItem == "people") $typeItem = "citoyens"; $typeItemHead = $typeItem; if($typeItem == "organizations" && @$element["type"]) $typeItemHead = $element["type"]; if(strpos($typeItem, "place.")!==false){ $typeItem = "place"; } //icon et couleur de l'element $icon = Element::getFaIcon($typeItemHead) ? Element::getFaIcon($typeItemHead) : ""; $iconColor = Element::getColorIcon($typeItemHead) ? Element::getColorIcon($typeItemHead) : ""; $useBorderElement = false; $pageConfig=(@Yii::app()->session['paramsConfig']["element"]) ? Yii::app()->session['paramsConfig']["element"] : null; $addConfig=(@Yii::app()->session['paramsConfig']["add"]) ? Yii::app()->session['paramsConfig']["add"] : null; if(@Yii::app()->params["front"]) $front = Yii::app()->params["front"]; $layoutPath = 'webroot.themes.'.Yii::app()->theme->name.'.views.layouts.'; $me = isset(Yii::app()->session['userId']) ? Person::getById(Yii::app()->session['userId']) : null; $this->renderPartial( $layoutPath.'modals.'.Yii::app()->params["CO2DomainName"].'.mainMenu', array("me"=>$me) ); ?> session['userId'], $type, (string)$element["_id"]); // if (Authorisation::canDeleteElement((String)$element["_id"], $type, Yii::app()->session["userId"]) && !@$deletePending) $this->renderPartial('../element/confirmDeleteModal', array("id" =>(String)$element["_id"], "type"=>$type)); ?> session["userId"])) $this->renderPartial('co2.views.element.confirmDeletePendingModal', array( "element"=>$element)); ?>
style=" background: url('theme->baseUrl. '/assets/img/background-onepage/connexion-lines.jpg';?>') center bottom;" >
renderPartial('co2.views.element.banner', array( "iconColor"=>$iconColor, "icon"=>$icon, "type"=>$type, "element"=>$element, "linksBtn"=>$linksBtn, "elementId"=>(string)$element["_id"], "elementType"=>$type, "elementName"=> $element["name"], "edit" => @$edit, "openEdition" => @$openEdition) ); ?>
@$element, "type" => @$type, "edit" => @$edit, "thumbAuthor"=>@$thumbAuthor, "openEdition" => $openEdition, "iconColor" => $iconColor ); $this->renderPartial('dda.views.co.pod.modals', $params ); ?> array( "label"=>Yii::t("common","Group"), "icon"=>"fa-circle-o", "formType"=>"organization", "type"=>Organization::COLLECTION, "formSubType"=>Organization::TYPE_GROUP, "color"=> "turq", "description"=>Yii::t("form","Create a group
Share your interest
Speak Diffuse Have fun"), "typeAllow"=>array(Person::COLLECTION) ), Organization::TYPE_NGO => array( "label"=>Yii::t("common","NGO"), "icon"=>"fa-group", "formType"=>"organization", "type"=>Organization::COLLECTION, "formSubType"=>Organization::TYPE_NGO, "color"=>"green", "description"=>Yii::t("form", "Make visible your NGO
Manage the community
Share your news"), "typeAllow"=>array(Person::COLLECTION) ), Organization::TYPE_BUSINESS => array( "label"=>Yii::t("common","Local business"), "icon"=>"fa-industry", "formType"=>"organization", "type"=>Organization::COLLECTION, "formSubType"=>Organization::TYPE_BUSINESS, "color"=>"azure", "description"=>Yii::t("form", "Make visible your company
Find new customer
Manage your contacts"), "typeAllow"=>array(Person::COLLECTION) ), Organization::TYPE_GOV => array( "label"=>Yii::t("common","Government Organization"), "icon"=>"fa-university", "formType"=>"organization", "formSubType"=>Organization::TYPE_GOV, "color"=> "red", "description"=>Yii::t("form", "Town hall, schools, etc...
Share your news
Share events"), "typeAllow"=>array(Person::COLLECTION) ), "contacts" => array( "label"=>Yii::t("common","Contact"), "icon"=>"fa-envelope", "formType"=>"contactPoint", "color"=> "blue", "description"=>Yii::t("form", "Define roles of everyone
Communicate easily
Internal and external"), "typeAllow"=>array(Person::COLLECTION, Organization::COLLECTION, Project::COLLECTION) ), Project::COLLECTION => array( "label"=>Yii::t("common","Project"), "icon"=>Project::ICON, "formType"=>"project", "color"=> "purple", "description"=>Yii::t("form", "Make visible a project
Find support
Build a community"), "typeAllow"=>array(Person::COLLECTION, Organization::COLLECTION, Project::COLLECTION) ), Event::COLLECTION => array( "label"=>Yii::t("common","Event"), "icon"=>Event::ICON, "formType"=>"event", "description"=> Yii::t("form", "Diffuse an event
Invite attendees
Communicate to your network"), "color"=> "orange", "typeAllow"=>array(Person::COLLECTION, Organization::COLLECTION, Project::COLLECTION) ), Classified::COLLECTION => array( "label"=>Yii::t("common","Classified"), "icon"=>Classified::ICON, "formType"=>"classifieds", "color"=> "azure", "description"=>Yii::t("form","Create a classified ad
To share To give To sell To rent
Material Property Job"), "typeAllow"=>array(Person::COLLECTION, Organization::COLLECTION, Project::COLLECTION) ), Classified::TYPE_RESSOURCES => array( "label"=>Yii::t("common","Ressource"), "icon"=>Classified::ICON_RESSOURCES, "formType"=>"ressources", "color"=> "vine", "description"=>"Partager des ressources
des outils, des documents
des compétences et des besoins" ), Classified::TYPE_JOBS => array( "label"=>Yii::t("common","Jobs"), "icon"=>Classified::ICON_JOBS, "formType"=>"jobs", "color"=> "yellow-k", "description"=>"Ajouter les stages, les formations ou les offres d'emploi que vous proposez" ), Poi::COLLECTION => array( "label"=>Yii::t("common","Point of interest"), "icon"=>Poi::ICON, "formType"=>"poi", "color"=> "green-k", "description"=> Yii::t("form","Make visible an interesting place
Contribute to the collaborative map
Highlight your territory") ) ); //Filtering button add element if custom if(@$addConfig){ foreach($addElement as $key=>$v) if(!@$addConfig[$key] && (!@$v["type"] || !@$addConfig[$v["type"]])) unset($addElement[$key]); } ?>
".Yii::t("common","show description"); if(!isset($linksBtn["isFollowing"]) && !isset($linksBtn["isAdmin"]) ) $classDescH = ""; if(@$element["custom"] && is_array($element["custom"]) && @$element["custom"]["pubTpl"]){ echo $this->renderPartial($element["custom"]["pubTpl"], array("central"=>true)); } if($typeItem != Person::COLLECTION){ ?>
renderPartial('co2.views.pod.qrcode',array( "type" => @$type, "name" => @$element['name'], "address" => @$address, "address2" => @$address2, "email" => @$element['email'], "url" => @$element["url"], "tel" => @$tel, "img"=>@$element['profilThumbImageUrl'])); ?>
params["CO2DomainName"] != "kgougle"){ $layoutPath = 'webroot.themes.'.Yii::app()->theme->name.'.views.layouts.'; $this->renderPartial($layoutPath.'forms.'.Yii::app()->params["CO2DomainName"].'.formContact', array("element"=>@$element)); } ?>
renderPartial('co2.views.pod.confidentiality', array( "element" => @$element, "type" => @$type, "edit" => @$edit, "controller" => $controller, "openEdition" => $openEdition, ) ); ?> module->assetsUrl); ?>