</fieldset> </div> <!-- / END PAGE OPTIONS --> <!-- ------- PAGE CONTENT --------------------------------------------------- --> <div id="page_content" class="tab"> <fieldset> <legend>Page Content</legend> <label for="post-content" style="display:none;"><?php i18n('LABEL_PAGEBODY'); ?> </label> <div class="codewrap"><textarea id="post-content" <?php echo getEditorAttribCallout('pages', 'boxsizingBorder'); echo $SAFEMODE ? 'readonly' : ''; ?> name="post-content"><?php echo $content; ?> </textarea></div> <?php exec_action('edit-content'); //@hook edit-content after page edit content html output ?> <?php if (isset($data_edit)) {
function getCollectionItemOutput($collectionid, $id, $item, $class = 'item_edit', $code = '') { $disabled = (bool) (string) $item->disabled; $readonly = (bool) (string) $item->readonly; $str = ''; $str .= '<div class="compdiv codewrap" id="section-' . $id . '">'; $str .= '<table class="comptable" ><tr>'; $str .= '<td><b title="' . i18n_r('DOUBLE_CLICK_EDIT') . '" class="comptitle editable">' . stripslashes($item->title) . '</b></td>'; if (getDef('GSSHOWCODEHINTS', true) && !empty($code)) { $str .= '<td style="text-align:right;" ><code><?php ' . $code . '(<span class="compslugcode">\'' . $item->slug . '\'</span>); ?></code></td>'; } $str .= '<td class="compactive"><label class="" for="active[]" >' . i18n_r('ACTIVE') . '</label>'; $str .= '<input type="checkbox" class="compactive" name="component[' . $id . '][active]" ' . (!$disabled ? 'checked="checked"' : '') . ' value="' . $id . '" /></td>'; $str .= '<td class="delete" ><a href="javascript:void(0)" title="' . i18n_r('DELETE') . ' ' . cl($item->title) . '?" class="delcomponent" rel="' . $id . '" >×</a></td>'; $str .= '</tr></table>'; $str .= '<textarea id="editor_' . $id . '" name="component[' . $id . '][val]"' . getEditorAttribCallout($collectionid, $class) . '>' . stripslashes($item->value) . '</textarea>'; $str .= '<input type="hidden" class="compslug" name="component[' . $id . '][slug]" value="' . $item->slug . '" />'; $str .= '<input type="hidden" class="comptitle" name="component[' . $id . '][title]" value="' . stripslashes($item->title) . '" />'; $str .= '<input type="hidden" class="compid" name="component[' . $id . '][id]" value="' . $id . '" />'; $str .= '</div>'; return $str; }