Example #1
0
?>
			</fieldset>

		<?php 
if ($this->row->standalone == 1 && $this->row->type != 7) {
    ?>
			<fieldset class="adminform">
				<legend><span><?php 
    echo Lang::txt('Custom fields');
    ?>
</span></legend>

				<div class="input-wrap" id="resource-custom-fields">
					<?php 
    $elements = new \Components\Resources\Models\Elements($data, $type->customFields);
    echo $elements->render();
    ?>
				</div>
			</fieldset>
		<?php 
}
?>
		</div>
		<div class="col span5">
		<?php 
if ($this->row->id) {
    ?>
			<table class="meta">
				<tbody>
					<tr>
						<th><?php 
Example #2
0
$database = App::get('db');
$this->status['fulltxt'] = stripslashes($this->status['fulltxt']);
$type = new \Components\Resources\Tables\Type($database);
$type->load(7);
$data = array();
preg_match_all("#<nb:(.*?)>(.*?)</nb:(.*?)>#s", $this->status['fulltxt'], $matches, PREG_SET_ORDER);
if (count($matches) > 0) {
    foreach ($matches as $match) {
        $data[$match[1]] = trim($match[2]);
    }
}
$this->status['fulltxt'] = preg_replace("#<nb:(.*?)>(.*?)</nb:(.*?)>#s", '', $this->status['fulltxt']);
$this->status['fulltxt'] = trim($this->status['fulltxt']);
include_once PATH_CORE . DS . 'components' . DS . 'com_resources' . DS . 'models' . DS . 'elements.php';
$elements = new \Components\Resources\Models\Elements($data, $type->customFields);
$fields = $elements->render();
?>
	<div class="explaination">
		<p class="help"><?php 
echo $this->dev ? Lang::txt('COM_TOOLS_SIDE_EDIT_PAGE') : Lang::txt('COM_TOOLS_SIDE_EDIT_PAGE_CURRENT');
?>
</p>
		<p><?php 
echo Lang::txt('COM_TOOLS_COMPOSE_ABSTRACT_HINT');
?>
</p>
	</div>
	<fieldset>
		<legend><?php 
echo Lang::txt('COM_TOOLS_COMPOSE_ABOUT');
?>