当前位置: 首页>>代码示例>>PHP>>正文


PHP Site::link方法代码示例

本文整理汇总了PHP中Site::link方法的典型用法代码示例。如果您正苦于以下问题:PHP Site::link方法的具体用法?PHP Site::link怎么用?PHP Site::link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Site的用法示例。


在下文中一共展示了Site::link方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: UpdateAction

 public function UpdateAction()
 {
     Site::Message('Обновление файла sitemap.xml');
     $companys = SQL::Query('SELECT id FROM `companys` ORDER BY id;')->FetchAll(PDO::FETCH_OBJ);
     $sitelink = Site::link();
     $this->sitemap = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">' . "\n";
     $this->addurl($sitelink);
     $this->addurl($sitelink . 'list');
     $this->addurl($sitelink . 'list/setgroup');
     $this->addurl($sitelink . 'feedback');
     foreach ($companys as $company) {
         $this->addurl($sitelink . $company->id);
     }
     $this->sitemap .= '</urlset>';
     file_put_contents('./sitemap.xml', $this->sitemap);
 }
开发者ID:kekstlt,项目名称:promspace,代码行数:16,代码来源:SitemapController.php

示例2: checkemailAction

 public function checkemailAction()
 {
     $email = Request::post('email', '', 'mail');
     if (UserModel::isExists($email, 'login') and $email != '') {
         Site::Message('Ссылка для смены пароля, была выслана Вам на указанный email');
         $user = UserModel::GetObj()->where('login = ?', [0 => $email]);
         if ($user->hash == '') {
             $hash = User::NewHash();
             $user->hash = $hash;
             $user->save();
         }
         $link = Site::link('forgetpassword/passwordrescue/?secret=' . $user->hash);
         //Site::Message($link);
         mail($email, 'Запрос на восстановление пароля', $link);
         $this->route('login');
     } else {
         Site::Message('Этот email не зарегистрирован в системе');
         $this->Render();
     }
 }
开发者ID:kekstlt,项目名称:promspace,代码行数:20,代码来源:ForgetpasswordController.php

示例3: cancel

 public static function cancel($link = '')
 {
     echo '<a href="' . Site::link($link) . '" id="cancelbutton">Отмена</a>' . "\n";
 }
开发者ID:kekstlt,项目名称:promspace,代码行数:4,代码来源:form.php

示例4:

<div class="leftblock">
	<div class="container15">
		<?php 
if ($company->logo != '') {
    ?>
	
			<div class="company_logo">
				<img src="<?php 
    echo Site::link('files/' . $company->logo);
    ?>
">
			</div>
		<?php 
} else {
    ?>
			Нет логотипа компании
		<?php 
}
?>
	</div>
</div>

<?php 
if (User::isLogged()) {
    ?>
	<div class="container15">
		<div class="leftmenu">
			<?php 
    $arr = ['profile' => 'Мой профиль', 'favorites' => 'Избранное', 'edit' => 'Редактировать профиль', 'settings' => 'Мои настройки'];
    HTML::Menu($arr, Site::Link(), $selected);
    ?>
开发者ID:kekstlt,项目名称:promspace,代码行数:31,代码来源:profilemenu.php

示例5: DelAction

 public function DelAction()
 {
     $id = Request::get('id', 0);
     $company = CompanyModel::GetObj()->id($id);
     Site::Message('Компания ' . $company->name . ' будет удалена <a href="' . Site::link('admin/delete/?id=' . $id) . '">да</a> / <a href="' . Site::link($id) . '">НЕТ</a>');
 }
开发者ID:kekstlt,项目名称:promspace,代码行数:6,代码来源:AdminController.php

示例6:

<div class="content">
		<?php 
Html::block('Войти в систему', 'Для входа в систему, пожалуйста введите Ваш e-mail и пароль, которые Вы указывали при регистрации.');
Form::create('login', 'login_form');
Form::input('Ваш e-mail', 'loguser', Request::post('loguser', ''));
Form::password('Пароль для входа', 'logpass');
Form::submit('Войти');
Form::link(Site::link('forgetpassword'), 'Восстановление пароля');
Form::end();
Html::end_block();
?>
</div>
开发者ID:kekstlt,项目名称:promspace,代码行数:12,代码来源:index.php

示例7: function

 * Remove the current working directory to the paths configuration.
 */
$app->command('status', function () {
    passthru('systemctl status caddy.service php7.0-fpm.service');
})->descriptions('View Valet service status');
/**
 * Reload systemd services
 */
$app->command('reload', function () {
    passthru('systemctl daemon-reload');
})->descriptions('Reload Valet services');
/**
 * Register a symbolic link with Valet.
 */
$app->command('link [name]', function ($name) {
    $linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));
    info('A [' . $name . '] symbolic link has been created in [' . $linkPath . '].');
})->descriptions('Link the current working directory to Valet');
/**
 * Display all of the registered symbolic links.
 */
$app->command('links', function () {
    passthru('ls -la ' . VALET_HOME_PATH . '/Sites');
})->descriptions('Display all of the registered Valet links');
/**
 * Unlink a link from the Valet links directory.
 */
$app->command('unlink [name]', function ($name) {
    Site::unlink($name = $name ?: basename(getcwd()));
    info('The [' . $name . '] symbolic link has been removed.');
})->descriptions('Remove the specified Valet link');
开发者ID:cpriego,项目名称:valet-ubuntu,代码行数:31,代码来源:valet.php

示例8: array

	<?php 
HTML::widget('profilemenu', ['company' => $company, 'selected' => 'profile', 'simmilar' => $simmilar]);
?>
</div>
<div class="content_r">
	<?php 
$tags = array();
$tags = explode(',', $company->tags);
$tag_line = '';
foreach ($tags as $tag) {
    if ($tag != '') {
        $tag_line .= '<a href="' . Site::Link('list/tag/') . trim($tag) . '">' . trim($tag) . '</a>' . "\n";
    }
}
$tags = '<div class="tagbar">' . "\n" . $tag_line . "\n" . '<a href="' . Site::Link('list/' . $company->group_id . '/') . '" id="group_link">' . $group_tags[$company->group_id] . '</a>' . "\n" . '<a href="' . Site::Link('list/setregion/?id=' . $company->region_id) . '" id="city_link">' . $region_tags[$company->region_id] . '</a>' . "\n" . '</div>';
$fav_link = ' <a href="' . Site::link($company->id . '/profile/favorite') . '"><img src="' . Site::link('images/' . $favorite) . '"></a>';
Html::block($company->name . $fav_link, $company->adress);
echo $company->about;
echo $tags;
Html::end_block();
?>

	<?php 
Html::block('Контакты компании');
?>
		<div class="adress">
			<?php 
echo $company->adress != '' ? '<b>Адрес:</b> ' . $company->adress . '<br>' : '';
?>
			<?php 
echo $company->email != '' ? '<b>e-mail:</b> ' . $company->email . '<br>' : '';
开发者ID:kekstlt,项目名称:promspace,代码行数:31,代码来源:index.php

示例9: foreach

<?php

$page = Request::GetPart(0, default_page);
foreach ($arr as $key => $value) {
    $add = '';
    if ($value == mb_strtolower($page)) {
        $add = ' id="selected"';
    }
    echo '<a href="' . Site::link($value) . '"' . $add . '>' . $key . '</a>' . "\n";
}
开发者ID:kekstlt,项目名称:promspace,代码行数:10,代码来源:mainmenu.php

示例10: foreach

<div class="content">
	<?php 
Html::block('Выберите интересующий Вас регион');
?>
			<div class="setlist">
				<a href="<?php 
echo Site::link('list/setregion/?id=0');
?>
">Вся Россия</a>
				<a href="<?php 
echo Site::link('list/setregion/?id=50');
?>
">Москва и область</a>
			</div>

			<div class="setlist">
				<?php 
foreach ($regions as $region) {
    echo '<a href="' . Site::link('list/setregion/?id=' . $region->id) . '">' . $region->name . '</a>' . "\n";
}
?>
			</div>
	<?php 
Html::end_block();
?>
</div>
开发者ID:kekstlt,项目名称:promspace,代码行数:26,代码来源:setregion.php

示例11:

				<h1>
					<?php 
    echo $product->name;
    ?>
					<a href="<?php 
    echo Site::link($company->id . '/product/delete/' . $product->id);
    ?>
" id="block_header_a"><img src="<?php 
    echo Site::link('images/close.png');
    ?>
"></a>
					<a href="<?php 
    echo Site::link($company->id . '/product/edit/' . $product->id);
    ?>
" id="block_header_a"><img src="<?php 
    echo Site::link('images/edit.png');
    ?>
"></a> 
				</h1>
			</div>
				<?php 
    echo $product->pic != '' ? '<img src="' . Site::Link('files/' . $product->pic) . '" class="small_logo">' : '';
    ?>
				<?php 
    echo $product->about != '' ? nl2br($product->about) : '';
    ?>
		
		</div>	
	<?php 
}
?>
开发者ID:kekstlt,项目名称:promspace,代码行数:31,代码来源:edit.php

示例12:

<div class="content">
<?php 
Html::block('Ваш логотип загружен!', 'Поздравляем Вы завершили регистрацию');
Form::create('profile', 'login_form');
?>
	
		<div class="leftblock">
			<div class="container15">
				<div class="company_logo">
					<img src="<?php 
echo Site::Link('files/' . $logo);
?>
">
				</div>	
			</div>
		</div>
<?php 
Form::link(Site::link('newcompany/logo'), 'Сменить логотип');
Form::submit('Завершить регистрацию');
Form::end();
Html::end_block();
?>
	
</div>
开发者ID:kekstlt,项目名称:promspace,代码行数:24,代码来源:confirmlogo.php

示例13: foreach

<?php

$groups = GroupModel::GetAll('id, name, qty')->all('ORDER BY qty DESC LIMIT 15');
?>
<div class="leftmenu">
<?php 
if ($group_id == 0) {
    $add = ' id="selected"';
}
echo '<a href="' . Site::link('list/0/') . '" ' . $add . '>Все Направления</a>' . "\n";
foreach ($groups as $group) {
    $add = '';
    if ($group_id == $group->id) {
        $add = ' id="selected"';
    }
    echo '<a href="' . Site::link('list/' . $group->id . '/') . '"' . $add . '>' . $group->name . '</a>' . "\n";
}
echo '<a href="' . Site::link('list/setgroup/') . '">Другие направления</a>' . "\n";
?>
</div>
<a href="<?php 
echo Site::link('list/setregion/?id=0');
?>
" id="filter_btn">Сбросить настройки фильтра</a>

开发者ID:kekstlt,项目名称:promspace,代码行数:24,代码来源:filter.php

示例14: foreach

<div class="content_r">
	 <?php 
foreach ($companys as $company) {
    $tags = array();
    $tags = explode(',', $company->tags);
    $tag_line = '';
    foreach ($tags as $tag) {
        if ($tag != '') {
            $tag_line .= '<a href="' . Site::Link('list/tag/') . trim($tag) . '">' . trim($tag) . '</a>' . "\n";
        }
    }
    $tags = '<div class="tagbar">' . "\n" . $tag_line . "\n" . '<a href="' . Site::Link('list/' . $company->group_id . '/') . '" id="group_link">' . $group_tags[$company->group_id] . '</a>' . "\n" . '<a href="' . Site::Link('list/setregion/?id=' . $company->region_id) . '" id="city_link">' . $region_tags[$company->region_id] . '</a>' . "\n" . '</div>';
    Html::block('<a href="' . Site::link($company->id) . '">' . $company->name . '</a>', $company->adress);
    //small logo
    if ($company->logo != '') {
        HTML::write('<img src="' . Site::link('files/s_' . $company->logo) . '" class="small_logo">');
    }
    //quick content
    if (mb_strlen($company->about) > 250) {
        echo mb_substr($company->about, 0, 250) . ' ...';
    } else {
        echo $company->about;
    }
    //tags
    echo $tags;
    Html::end_block();
}
?>

 	<div class="pagebar">	
		<?php 
开发者ID:kekstlt,项目名称:promspace,代码行数:31,代码来源:index.php

示例15: info

    Host::scan();
    info("This directory has been added to Valet's paths.");
})->descriptions('Register the current working directory with Valet');
/**
 * Remove the current working directory to the paths configuration.
 */
$app->command('forget', function () {
    Configuration::removePath(getcwd());
    Host::scan();
    info("This directory has been removed from Valet's paths.");
})->descriptions('Remove the current working directory from Valet\'s list of paths');
/**
 * Register a symbolic link with Valet.
 */
$app->command('link [name]', function ($name) {
    $linkPath = Site::link(realpath(getcwd()), $name = $name ?: basename(getcwd()));
    Host::scan();
    info('A [' . $name . '] symbolic link has been created in [' . $linkPath . '].');
})->descriptions('Link the current working directory to Valet');
/**
 * Display all of the registered symbolic links.
 */
$app->command('links', function () {
    passthru('ls -la ' . VALET_HOME_PATH . '/Sites');
})->descriptions('Display all of the registered Valet links');
/**
 * Unlink a link from the Valet links directory.
 */
$app->command('unlink [name]', function ($name) {
    Site::unlink($name = $name ?: basename(getcwd()));
    Host::scan();
开发者ID:larawhale,项目名称:valet4win,代码行数:31,代码来源:valet.php


注:本文中的Site::link方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。