View difference between Paste ID: xi74Uutt and NNnxDEht
SHOW: | | - or go back to the newest paste.
1-
$plugins->build('
1+
	$plugins->build('
2
	<div id="blocks" class="hidden">
3-
		<div id="stylized" class="myform">
3+
	<div id="stylized" class="myform">
4-
			<form id="loginForm" method="post" action="">');
4+
	<form id="loginForm" method="post" action="">');
5-
				foreach($SiteBlocks->children() as $child)
5+
		foreach($SiteBlocks->children() as $child)
6-
				{
6+
		{
7-
				$plugins->build('
7+
		$plugins->build('
8-
					<h1>'.$child->id.'</h1><hr>
8+
			<h1>'.$child->id.'</h1><hr>
9
10-
					<label>Enabled<span class="small">Enable or disable plugin</span></label>
10+
			<label>Enabled<span class="small">Enable or disable plugin</span></label>
11-
					<input name="'.$child->id.'.'.$child->enabled.'" value="'.$child->enabled.'" type="text" />
11+
			<input name="'.$child->id.'.'.$child->enabled.'" value="'.$child->enabled.'" type="text" />
12
13-
					<label>File<span class="small">Plugin file name</span></label>
13+
			<label>File<span class="small">Plugin file name</span></label>
14-
					<input name="'.$child->id.'.'.$child->file.'" value="'.$child->file.'" type="text" />
14+
			<input name="'.$child->id.'.'.$child->file.'" value="'.$child->file.'" type="text" />
15
16-
					<label>ID<span class="small">Plugin ID name</span></label>
16+
			<label>ID<span class="small">Plugin ID name</span></label>
17-
					<input name="'.$child->id.'.'.$child->id.'" value="'.$child->id.'" type="text" />
17+
			<input name="'.$child->id.'.'.$child->id.'" value="'.$child->id.'" type="text" />
18
19-
					<label>Function<span class="small">Block main function to load</span></label>
19+
			<label>Function<span class="small">Block main function to load</span></label>
20-
					<input name="'.$child->id.'.'.$child->func.'" value="'.$child->func.'" type="text" />
20+
			<input name="'.$child->id.'.'.$child->func.'" value="'.$child->func.'" type="text" />
21-
				');
21+
		');
22-
				}
22+
		}
23
	$plugins->build('<input class="moCMS_Button" name="submitBlocks" type="submit" />
24-
			</form>
24+
	</form>
25-
		</div>
25+
	</div>
26
	</div>');