本文整理汇总了PHP中HTML::title方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::title方法的具体用法?PHP HTML::title怎么用?PHP HTML::title使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML
的用法示例。
在下文中一共展示了HTML::title方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
HTML::title(array('title' => $L->g('General settings'), 'icon' => 'cogs'));
HTML::formOpen(array('class' => 'uk-form-horizontal'));
// Security token
HTML::formInputHidden(array('name' => 'tokenCSRF', 'value' => $Security->getTokenCSRF()));
HTML::legend(array('value' => $L->g('Site information'), 'class' => 'first-child'));
HTML::formInputText(array('name' => 'title', 'label' => $L->g('Site title'), 'value' => $Site->title(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => $L->g('use-this-field-to-name-your-site')));
HTML::formInputText(array('name' => 'slogan', 'label' => $L->g('Site slogan'), 'value' => $Site->slogan(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => $L->g('use-this-field-to-add-a-catchy-phrase')));
HTML::formInputText(array('name' => 'description', 'label' => $L->g('Site description'), 'value' => $Site->description(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => $L->g('you-can-add-a-site-description-to-provide')));
HTML::formInputText(array('name' => 'footer', 'label' => $L->g('Footer text'), 'value' => $Site->footer(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => $L->g('you-can-add-a-small-text-on-the-bottom')));
HTML::legend(array('value' => $L->g('Social networks links')));
HTML::formInputText(array('name' => 'twitter', 'label' => 'Twitter', 'value' => $Site->twitter(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'facebook', 'label' => 'Facebook', 'value' => $Site->facebook(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'googlePlus', 'label' => 'Google+', 'value' => $Site->googlePlus(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'instagram', 'label' => 'Instagram', 'value' => $Site->instagram(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'github', 'label' => 'Github', 'value' => $Site->github(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">' . $L->g('Save') . '</button>
</div>
</div>';
HTML::formClose();
示例2: elseif
<?php
HTML::title(array('title' => $L->g('Manage posts'), 'icon' => 'folder'));
echo '
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th>' . $L->g('Title') . '</th>
<th class="uk-text-center">' . $L->g('Published date') . '</th>
<th>' . $L->g('Friendly URL') . '</th>
</tr>
</thead>
<tbody>
';
foreach ($posts as $Post) {
$status = false;
if ($Post->scheduled()) {
$status = $Language->g('Scheduled');
} elseif (!$Post->published()) {
$status = $Language->g('Draft');
}
echo '<tr>';
echo '<td><a href="' . HTML_PATH_ADMIN_ROOT . 'edit-post/' . $Post->key() . '">' . ($status ? '<span class="label-draft">' . $status . '</span>' : '') . ($Post->title() ? $Post->title() : '<span class="label-empty-title">' . $Language->g('Empty title') . '</span> ') . '</a></td>';
echo '<td class="uk-text-center">' . $Post->dateRaw() . '</td>';
echo '<td><a target="_blank" href="' . $Post->permalink() . '">' . $Url->filters('post') . '/' . $Post->key() . '</a></td>';
echo '</tr>';
}
echo '
</tbody>
</table>
';
示例3:
<?php
HTML::title(array('title' => $L->g('Edit page'), 'icon' => 'file-text-o'));
HTML::formOpen(array('class' => 'uk-form-stacked'));
// Security token
HTML::formInputHidden(array('name' => 'tokenCSRF', 'value' => $Security->getTokenCSRF()));
// Key input
HTML::formInputHidden(array('name' => 'key', 'value' => $_Page->key()));
// ---- LEFT SIDE ----
echo '<div class="uk-grid">';
echo '<div class="uk-width-large-8-10">';
// Title input
HTML::formInputText(array('name' => 'title', 'value' => $_Page->title(), 'class' => 'uk-width-1-1 uk-form-large', 'placeholder' => $L->g('Title')));
// Content input
HTML::formTextarea(array('name' => 'content', 'value' => $_Page->contentRaw(false), 'class' => 'uk-width-1-1 uk-form-large', 'placeholder' => $L->g('Content')));
// Form buttons
echo '<div class="uk-form-row uk-margin-bottom">';
echo ' <button class="uk-button uk-button-primary" type="submit">' . $L->g('Save') . '</button>';
if (count($_Page->children()) === 0) {
echo ' <button id="jsdelete" name="delete-page" class="uk-button" type="submit">' . $L->g('Delete') . '</button>';
echo ' <a class="uk-button" href="' . HTML_PATH_ADMIN_ROOT . 'manage-posts">' . $L->g('Cancel') . '</a>';
}
echo '</div>';
echo '</div>';
// ---- RIGHT SIDE ----
echo '<div class="sidebar uk-width-large-2-10">';
// Tabs, general and advanced mode
echo '<ul class="uk-tab" data-uk-tab="{connect:\'#tab-options\'}">';
echo '<li><a href="">' . $L->g('General') . '</a></li>';
echo '<li><a href="">' . $L->g('Images') . '</a></li>';
echo '<li><a href="">' . $L->g('Advanced') . '</a></li>';
示例4: ModelLogin
<?php
$login = new ModelLogin();
$concert = new Concert();
foreach ($concert->getConciertoAll(null, "aceptado") as $row) {
echo HTML::open_div(array("class" => "col-lg-6"));
echo HTML::title("h3", "Concierto de " . $login->getUserDataCampo($row['musico_id'], "usuario_nombre") . " en " . $login->getUserDataCampo($row['local_id'], "usuario_nombre"));
echo HTML::label("concierto_fecha", "Fecha:");
echo $row['concierto_fecha'];
echo HTML::br(2);
echo HTML::label("concierto_precio", "Precio entrada:");
echo $row['concierto_precio'] . "€";
echo HTML::br(2);
echo HTML::label("concierto_duracion", "Duración concierto:");
echo $row['concierto_duracion'] . " min";
echo HTML::br(2);
echo HTML::label("concierto_asistentes", "Aforo:");
echo $row['concierto_asistentes'];
echo HTML::close_div();
}
示例5: ModelLogin
<?php
$login = new ModelLogin();
$concert = new Concert();
if ($login->isUserLoggedIn() && ($login->isMusico() || $login->isLocal())) {
if ($login->isLocal()) {
echo HTML::title("h3", "Concierto de " . $login->getUserDataCampo($_SESSION['band_id_concierto'], "usuario_nombre"));
}
if ($login->isMusico()) {
echo HTML::title("h3", "Concierto en el local " . $login->getUserDataCampo($_SESSION['local_id_concierto'], "usuario_nombre"));
}
echo HTML::open_form(ROUTER::create_action_url("event/concert"), "POST", "form_new_concert");
echo HTML::label("concierto_precio", "Precio de concierto");
echo HTML::input("text", "concierto_precio", null, array("placeholder" => "xx€"));
echo HTML::br(2);
echo HTMl::label("concierto_fecha", "Fecha del concierto:");
echo HTML::input("text", "concierto_fecha", null, array("placeholder" => "dia/mes/año"));
echo HTML::br(2);
echo HTML::label("concierto_duracion", "Duración del concierto");
echo HTML::input("text", "concierto_duracion", null, array("placeholder" => "minutos"));
echo HTML::br(2);
echo HTML::label("concierto_aforo", "Aforo");
echo HTML::input("text", "concierto_aforo", null);
echo HTML::br(2);
echo HTML::input("submit", "form_new_concert", "Crear concierto");
echo HTML::close_form();
} else {
if (isset($_GET['verification_code'])) {
} else {
echo "Loggeate como músico o local para crear un concierto!";
}
示例6:
<?php
HTML::title(array('title' => $_Plugin->name(), 'icon' => 'puzzle-piece'));
HTML::formOpen(array('id' => 'jsformplugin'));
// Security token
HTML::formInputHidden(array('name' => 'tokenCSRF', 'value' => $Security->getTokenCSRF()));
// Print the plugin form
echo $_Plugin->form();
// Form buttons
echo '<div class="uk-form-row uk-margin-bottom">
<button class="uk-button uk-button-primary" type="submit">' . $L->g('Save') . '</button>
<a class="uk-button" href="' . HTML_PATH_ADMIN_ROOT . 'plugins">' . $L->g('Cancel') . '</a>
</div>';
HTML::formClose();
示例7:
<?php
HTML::title(array('title' => $L->g('Change password'), 'icon' => 'key'));
HTML::formOpen(array('id' => 'edit-user-profile-form', 'class' => 'uk-form-horizontal'));
// Security token
HTML::formInputHidden(array('name' => 'tokenCSRF', 'value' => $Security->getTokenCSRF()));
// Hidden field username
HTML::formInputHidden(array('name' => 'username', 'value' => $_user['username']));
HTML::legend(array('value' => $L->g('New password')));
HTML::formInputText(array('name' => 'usernameDisable', 'label' => $L->g('Username'), 'value' => $_user['username'], 'class' => 'uk-width-1-2 uk-form-medium', 'disabled' => true, 'tip' => ''));
HTML::formInputPassword(array('name' => 'new_password', 'label' => $L->g('New password'), 'value' => '', 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputPassword(array('name' => 'confirm_password', 'label' => $L->g('Confirm password'), 'value' => '', 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">' . $L->g('Save') . '</button>
<a href="' . HTML_PATH_ADMIN_ROOT . 'edit-user/' . $_user['username'] . '" class="uk-button">' . $L->g('Cancel') . '</a>
</div>
</div>';
HTML::formClose();
示例8: phpversion
<?php
HTML::title(array('title' => $L->g('About'), 'icon' => 'support'));
echo '
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th class="uk-width-1-5"></th>
<th class="uk-width-3-5"></th>
</tr>
</thead>
<tbody>
';
echo '<tr>';
echo '<td>Bludit</td>';
echo '<td>' . BLUDIT_VERSION . ' (' . BLUDIT_CODENAME . ')</td>';
echo '</tr>';
echo '<tr>';
echo '<td>PHP version</td>';
echo '<td>' . phpversion() . '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>PHP modules</td>';
echo '<td>' . implode(', ', get_loaded_extensions()) . ')</td>';
echo '</tr>';
echo '
</tbody>
</table>
';
示例9: getBand
public function getBand($banda_id, $limit)
{
$db = new DB();
$login = new ModelLogin();
$query = DB::connect()->prepare("SELECT * FROM wm_usuarios WHERE usuario_tipo = 'musico' AND usuario_id=:musico_id");
$query->bindValue(':musico_id', $banda_id, PDO::PARAM_STR);
$query->execute();
foreach ($query as $row) {
echo HTML::title("h1", $row['usuario_nombre']);
echo '<div class="col-md-4">';
if ($row['usuario_foto'] == "") {
echo '<img class="img-responsive" src="http://placehold.it/600x250" alt="' . $row['usuario_nombre'] . '">';
} else {
echo '<img class="img-responsive" src="' . $login->getProfileImage($row['usuario_id']) . '" alt="' . $row['usuario_nombre'] . '" height="250" width="650">';
}
echo '</div>';
echo '<div class="col-md-8">';
if ($row['usuario_foto'] == "") {
echo '<img class="img-responsive" src="http://placehold.it/600x250" alt="' . $row['usuario_nombre'] . '">';
} else {
echo '<img class="img-responsive" src="' . $login->getProfileImage($row['usuario_id']) . '" alt="' . $row['usuario_nombre'] . '" height="250" width="650">';
}
echo '</div>';
if ($login->isUserLoggedIn()) {
if ($login->isLocal() && $_GET['ruta'] == "event/band") {
echo HTML::open_div(array("class" => "col-md-8"));
echo HTML::close_div();
echo HTML::open_div(array("class" => "col-md-4"));
$_SESSION['band_id_concierto'] = $_GET['band_id'];
echo HTML::a(ROUTER::create_action_url("event/concert"), "Contactar con este músico", array("class" => "btn btn-success"));
echo HTML::close_div();
}
} else {
echo HTML::open_div(array("class" => "col-md-8"));
echo HTML::close_div();
echo HTML::open_div(array("class" => "col-md-4"));
echo HTML::p("Debes iniciar sessión para crear un concierto");
echo HTML::close_div();
}
}
}
示例10: usuarioEdit
public function usuarioEdit($usuario_id, $usuario_tipo)
{
$getDataDB = new DB();
$login = new ModelLogin();
$image = new ModelImage();
switch ($usuario_tipo) {
case "musico":
if (isset($_POST['form_edit_account'])) {
if (empty($_POST['usuario_nombre'])) {
echo MESSAGE_FORM_NOMBRE_EMPTY;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
} elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['usuario_telefono'])) {
echo MESSAGE_FORM_TELEFONO_EMPTY;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
} elseif (strlen($_POST['usuario_telefono']) != 9) {
echo MESSAGE_FORM_TELEFONO_INVALID;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
} elseif ($_POST['usuario_idioma'] == "") {
$_POST['usuario_idioma'] == $login->getUserDataCampo($usuario_id, "usuario_idioma");
} elseif ($_POST['usuario_idioma'] != "ca" && $_POST['usuario_idioma'] != "en" && $_POST['usuario_idioma'] != "es") {
echo MESSAGE_FORM_IDIOMA;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
} elseif ($_POST['usuario_idioma'] != "ca" && $_POST['usuario_idioma'] != "en" && $_POST['usuario_idioma'] != "es") {
echo MESSAGE_FORM_IDIOMA;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
} else {
$query_mod_account = DB::connect()->prepare("UPDATE `uqfhhbcn_whymusic`.`wm_usuarios` SET `usuario_nombre` = :usuario_nombre,\n `usuario_telefono` = :usuario_telefono,\n `usuario_idioma` = :usuario_idioma,\n `usuario_descripcion` = :usuario_descripcion,\n `estilo_id` = :estilo_id WHERE `wm_usuarios`.`usuario_id` = :usuario_id;");
$query_mod_account->bindValue(':usuario_id', $usuario_id, PDO::PARAM_STR);
$query_mod_account->bindValue(':usuario_nombre', $_POST['usuario_nombre'], PDO::PARAM_STR);
$query_mod_account->bindValue(':usuario_idioma', $_POST['usuario_idioma'], PDO::PARAM_STR);
$query_mod_account->bindValue(':usuario_telefono', $_POST['usuario_telefono'], PDO::PARAM_STR);
$query_mod_account->bindValue(':usuario_descripcion', $_POST['usuario_descripcion'], PDO::PARAM_STR);
$query_mod_account->bindValue(':estilo_id', $_POST['estilo_nombre'], PDO::PARAM_STR);
$query_mod_account->execute();
if ($query_mod_account) {
echo MESSAGE_CORRECT_MOD;
if ($login->getTypeOfUser() == "administrador") {
ROUTER::redirect_to_action("admin/admin", 2);
} else {
ROUTER::redirect_to_action("account/edit", 2);
}
} else {
echo MESSAGE_ERROR_SQL;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
}
}
} else {
echo HTML::title("h3", "Editar foto de perfil");
echo HTML::open_form(ROUTER::create_action_url("account/edit"), "POST", "fileToUpload", array("enctype" => "multipart/form-data"));
echo HTML::label("fileToUpload", "Sube tu foto");
echo HTML::input("file", "fileToUpload", null, array("id" => "fileToUpload"));
echo HTML::br(1);
echo HTML::input("submit", "usuario_foto", "Subir foto");
echo HTML::close_form();
echo HTML::open_form(ROUTER::create_action_url('account/edit'), "POST", "form_edit_account");
/*Guarrada provisional*/
$_SESSION['usuario_id_edit'] = $login->getUserDataCampo($usuario_id, "usuario_id");
$_SESSION['usuario_tipo_edit'] = $login->getUserDataCampo($usuario_id, "usuario_tipo");
/*Fin de la gurrada*/
echo HTML::title("h3", "Editar foto de perfil");
echo HTML::open_form(ROUTER::create_action_url("account/edit"), "POST", "usuario_foto", array("enctype" => "multipart/form-data"));
echo HTML::label("usuario_foto", "Sube tu foto");
echo HTML::input("file", "fileToUpload", null, array("id" => "fileToUpload"));
echo HTML::input("submit", "usuario_foto", "Subir foto");
echo HTML::close_form();
echo HTML::label("usuario_nombre", WORDING_NOMBRE_MUSICO);
echo HTML::input("text", "usuario_nombre", $login->getUserDataCampo($usuario_id, "usuario_nombre"), array("placeholder" => "Su nombre"));
echo HTML::br(2);
echo HTML::label("usuario_idioma", WORDING_IDIOMA);
echo HTML::select("usuario_idioma", array("Idioma por defecto" => $login->getUserDataCampo($usuario_id, 'usuario_idioma'), "Inglés" => "en", "Castellano" => "es", "Catalán" => "ca"));
echo HTML::br(2);
echo HTML::label("usuario_telefono", WORDING_TELEFON);
echo HTML::input("text", "usuario_telefono", $login->getUserDataCampo($usuario_id, "usuario_telefono"), array("placeholder" => "9XXXXXXXX"));
echo HTML::br(2);
echo HTML::label("usuario_descripcion", "Descripción grupo:");
echo HTML::textArea("4", "50", $login->getUserDataCampo($usuario_id, "usuario_descripcion"), "usuario_descripcion");
echo HTML::br(2);
echo HTML::label("estilo_nombre", "Estilo de música:");
echo HTML::selectArray("estilo_nombre", $getDataDB->getFieldSQL("wm_estilo", "estilo_nombre , estilo_id", ""));
echo HTML::br(2);
echo HTML::button_HTML5("submit", BUTTON_MOD_DATA, "form_edit_account");
echo HTML::close_form();
}
break;
case "local":
if (isset($_POST['form_edit_account'])) {
if (empty($_POST['usuario_nombre'])) {
echo MESSAGE_FORM_NOMBRE_EMPTY;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
} elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['usuario_telefono'])) {
echo MESSAGE_FORM_TELEFONO_EMPTY;
echo HTML::br(2);
echo "<a href='javascript:history.back()'> Volver Atrás</a>";
//.........这里部分代码省略.........
示例11:
<?php
HTML::title(array('title' => $L->g('Users'), 'icon' => 'users'));
echo '<a href="' . HTML_PATH_ADMIN_ROOT . 'add-user"><i class="uk-icon-plus"></i> ' . $L->g('add-a-new-user') . '</a>';
echo '
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th>' . $L->g('Username') . '</th>
<th>' . $L->g('First name') . '</th>
<th>' . $L->g('Last name') . '</th>
<th>' . $L->g('Email') . '</th>
<th class="uk-text-center">' . $L->g('Role') . '</th>
<th class="uk-text-center">' . $L->g('Registered') . '</th>
</tr>
</thead>
<tbody>
';
$users = $dbUsers->getAll();
foreach ($users as $username => $field) {
echo '<tr>';
echo '<td><a href="' . HTML_PATH_ADMIN_ROOT . 'edit-user/' . $username . '">' . $username . '</a></td>';
echo '<td>' . $field['firstName'] . '</td>';
echo '<td>' . $field['lastName'] . '</td>';
echo '<td>' . $field['email'] . '</td>';
echo '<td class="uk-text-center">' . $field['role'] . '</td>';
echo '<td class="uk-text-center">' . Date::format($field['registered'], DB_DATE_FORMAT, DB_DATE_FORMAT) . '</td>';
echo '</tr>';
}
echo '
</tbody>
示例12: isset
<?php
HTML::title(array('title' => $L->g('Add a new user'), 'icon' => 'user-plus'));
HTML::formOpen(array('id' => 'add-user-form', 'class' => 'uk-form-horizontal'));
// Security token
HTML::formInputHidden(array('name' => 'tokenCSRF', 'value' => $Security->getTokenCSRF()));
HTML::formInputText(array('name' => 'new_username', 'label' => $L->g('Username'), 'value' => isset($_POST['new_username']) ? $_POST['new_username'] : '', 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputPassword(array('name' => 'new_password', 'label' => $L->g('Password'), 'value' => '', 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputPassword(array('name' => 'confirm_password', 'label' => $L->g('Confirm Password'), 'value' => '', 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formSelect(array('name' => 'role', 'label' => $L->g('Role'), 'options' => array('editor' => $L->g('Editor'), 'admin' => $L->g('Administrator')), 'selected' => 'editor', 'tip' => ''));
HTML::formInputText(array('name' => 'email', 'label' => $L->g('Email'), 'value' => isset($_POST['email']) ? $_POST['email'] : '', 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">' . $L->g('Save') . '</button>
<a href="' . HTML_PATH_ADMIN_ROOT . 'users" class="uk-button">' . $L->g('Cancel') . '</a>
</div>
</div>';
HTML::formClose();
示例13:
<?php
HTML::title(array('title' => $L->g('Plugins'), 'icon' => 'puzzle-piece'));
echo '
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th class="uk-width-1-5">' . $L->g('Name') . '</th>
<th class="uk-width-3-5">' . $L->g('Description') . '</th>
<th class="uk-text-center">' . $L->g('Version') . '</th>
<th class="uk-text-center">' . $L->g('Author') . '</th>
</tr>
</thead>
<tbody>
';
foreach ($plugins['all'] as $Plugin) {
echo '
<tr>
<td>
<div class="plugin-name">' . $Plugin->name() . '</div>
<div class="plugin-links">
';
if ($Plugin->installed()) {
if (method_exists($Plugin, 'form')) {
echo '<a class="configure" href="' . HTML_PATH_ADMIN_ROOT . 'configure-plugin/' . $Plugin->className() . '">' . $L->g('Configure') . '</a>';
echo '<span class="separator"> | </span>';
}
echo '<a class="uninstall" href="' . HTML_PATH_ADMIN_ROOT . 'uninstall-plugin/' . $Plugin->className() . '">' . $L->g('Uninstall') . '</a>';
} else {
echo '<a class="install" href="' . HTML_PATH_ADMIN_ROOT . 'install-plugin/' . $Plugin->className() . '">' . $L->g('Install') . '</a>';
}
示例14: array
<?php
HTML::title(array('title' => $L->g('Advanced settings'), 'icon' => 'cogs'));
HTML::formOpen(array('class' => 'uk-form-horizontal'));
HTML::formInputHidden(array('name' => 'tokenCSRF', 'value' => $Security->getTokenCSRF()));
HTML::legend(array('value' => $L->g('General'), 'class' => 'first-child'));
HTML::formSelect(array('name' => 'postsperpage', 'label' => $L->g('Posts per page'), 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8'), 'selected' => $Site->postsPerPage(), 'class' => 'uk-width-1-3 uk-form-medium', 'tip' => $L->g('number-of-posts-to-show-per-page')));
HTML::formSelect(array('name' => 'homepage', 'label' => $L->g('Default home page'), 'options' => $_homePageList, 'selected' => $Site->homepage(), 'class' => 'uk-width-1-3 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'url', 'label' => $L->g('Site URL'), 'value' => $Site->url(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => $L->g('the-url-of-your-site')));
HTML::legend(array('value' => $L->g('Command Line Mode')));
HTML::formSelect(array('name' => 'cliMode', 'label' => $L->g('Cli Mode'), 'options' => array('true' => $L->g('Enabled'), 'false' => $L->g('Disabled')), 'selected' => $Site->cliMode(), 'class' => 'uk-width-1-3 uk-form-medium', 'tip' => $L->g('enable-the-command-line-mode-if-you-add-edit')));
HTML::legend(array('value' => $L->g('Email account settings')));
HTML::formInputText(array('name' => 'emailFrom', 'label' => $L->g('Sender email'), 'value' => $Site->emailFrom(), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => $L->g('Emails will be sent from this address')));
HTML::legend(array('value' => $L->g('URL Filters')));
HTML::formInputText(array('name' => 'uriPost', 'label' => $L->g('Posts'), 'value' => $Site->uriFilters('post'), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'uriPage', 'label' => $L->g('Pages'), 'value' => $Site->uriFilters('page'), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
HTML::formInputText(array('name' => 'uriTag', 'label' => $L->g('Tags'), 'value' => $Site->uriFilters('tag'), 'class' => 'uk-width-1-2 uk-form-medium', 'tip' => ''));
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">' . $L->g('Save') . '</button>
</div>
</div>';
HTML::formClose();
示例15:
<?php
HTML::title(array('title' => $L->g('Themes'), 'icon' => 'paint-brush'));
echo '
<table class="uk-table uk-table-striped">
<thead>
<tr>
<th class="uk-width-1-5">' . $L->g('Name') . '</th>
<th class="uk-width-3-5">' . $L->g('Description') . '</th>
<th class="uk-text-center">' . $L->g('Version') . '</th>
<th class="uk-text-center">' . $L->g('Author') . '</th>
</tr>
</thead>
<tbody>
';
foreach ($themes as $theme) {
echo '
<tr>
<td>
<div class="plugin-name">' . $theme['name'] . '</div>
<div class="plugin-links">
';
if ($theme['dirname'] != $Site->theme()) {
echo '<a class="install" href="' . HTML_PATH_ADMIN_ROOT . 'install-theme/' . $theme['dirname'] . '">' . $L->g('Install') . '</a>';
}
echo '
</div>
</td>
<td>' . $theme['description'] . '</td>
<td class="uk-text-center">' . $theme['version'] . '</td>
<td class="uk-text-center"><a targe="_blank" href="' . $theme['website'] . '">' . $theme['author'] . '</a></td>