18 require_once SQ_CORE_PACKAGE_PATH.
'/designs/design_area/design_area_edit_fns.inc';
41 parent::__construct();
64 foreach ($contents as $index => $element) {
65 if ($element[
'_type'] !=
'TAG')
continue;
67 switch ($element[
'operation']) {
69 $asset_index = $index;
73 $divider_index = $index;
81 if ($asset_index >= 0) {
84 if (empty($contents[$asset_index][
'contents'])) {
88 if (!$asset->
setAttrValue(
'asset_contents', $contents[$asset_index][
'contents'])) {
93 $contents[$asset_index] = Array(
95 'attributes' => Array(),
96 'operation' =>
'asset',
97 'self_terminating' => 1,
103 if ($divider_index >= 0) {
105 if (!$asset->
setAttrValue(
'divider_contents', $contents[$divider_index][
'contents'])) {
110 array_splice($contents, $divider_index, 1);
114 if (!$asset->
setAttrValue(
'divider_contents', $this->_getDefaultContents($asset,
'divider'))) {
119 $GLOBALS[
'SQ_PROCESSED_DESIGN_AREAS'][$asset->
attr(
'id_name')] = TRUE;
137 $excluded_types = $asset->
attr(
'unwanted_asset_types');
139 asset_type_chooser($prefix.
'_excluded_types', TRUE, $excluded_types);
141 if (empty($excluded_types)) {
142 echo
'No types are excluded';
147 foreach ($GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($excluded_types,
'name') as $type_name) {
149 <li><?php echo $type_name; ?></li>
176 $exclude_list = Array();
177 foreach ($_POST[$prefix.
'_excluded_types'] as $type) {
178 if ($type !=
'') $exclude_list[] = $type;
180 return $asset->
setAttrValue(
'unwanted_asset_types', $exclude_list);