} $args['bookID'] = $book_id; $xml = new GrlxXML_Book($args); /* ! Build * * * * * * * */ if ($xml->behavior && $infoXML->archive['behavior']) { foreach ($infoXML->archive['behavior'] as $info) { $name = $info['name']; $xml->behavior == $name ? $check = ' checked="checked"' : ($check = null); $behavior_output .= '<div>'; $behavior_output .= '<h5>' . $info['title'] . '</h5>'; $behavior_output .= '<label class="option"><img src="' . $info['image'] . '" alt="' . $name . '" />'; $behavior_output .= '<p><input type="radio"' . $check . ' name="behavior" value="' . $name . '"/>'; $behavior_output .= $info['description'] . '</p></label>'; $behavior_output .= '</div>'; } $behavior_output = $form->row_wrap($behavior_output); } if ($xml->layout && $infoXML->archive['chapter']['layout'] && $infoXML->archive['page']['layout']) { $layout_output = '<div>'; $layout_output .= '<h5>Markers</h5>'; foreach ($infoXML->archive['chapter']['layout'] as $info) { $name = $info['name']; $title = ucfirst($name); $xml->layout['chapter'] == $name ? $check = ' checked="checked"' : ($check = null); $layout_output .= '<label class="option"><img src="' . $info['image'] . '" alt="' . $name . '" />'; $layout_output .= '<p><input type="radio"' . $check . ' name="chapter[layout]" value="' . $name . '"/>'; $layout_output .= $title . '</p></label>'; } $layout_output .= '</div>'; $layout_output .= '<div>'; $layout_output .= '<h5>Pages</h5>';