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


PHP Render::link方法代码示例

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


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

示例1: index

 /**
  * Listing accounts
  */
 public static function index($source = -1, $destination = -1)
 {
     \Auth::showWizard('finish');
     // Wizard Init
     if (!isset($_SESSION['wizard'])) {
         $_SESSION['wizard']['action'] = 0;
         $_SESSION['wizard']['services'] = array();
     }
     static::_setUsers($source, $destination);
     $source = static::_getUser('source');
     $destination = static::_getUser('destination');
     $_SESSION['wizard']['commonServices'] = isset($source['services']) && isset($destination['services']) ? @array_intersect_assoc($source['services'], $destination['services']) : array();
     $templateData = array('template' => 'migrate/content', 'title' => 'Migrate - Migrate', 'bodyId' => 'migrate', 'styles' => array('common/wizard.css', 'migrate/migrate.css'), 'scripts' => array('common/wizard.js', 'migrate/migrate.js'), 'source' => $source, 'destination' => $destination, 'services' => $_SESSION['wizard']['commonServices'], 'polling' => TasksModel::listingFor(array('user_id' => $_SESSION['current']['username']['id'], 'user_affected_id' => $_SESSION['current']['username']['id'], 'type' => array(TasksModel::TYPE_SYNC, TasksModel::TYPE_MIGRATE, TasksModel::TYPE_MOVE), 'status' => array(TasksModel::STATUS_SCHEDULED, TasksModel::STATUS_PROGRESS, TasksModel::STATUS_REVERTING))) ? 'yes' : 'no', 'tasks' => TasksModel::listingFor(array('user_id' => $_SESSION['current']['username']['id'], 'user_affected_id' => $_SESSION['current']['username']['id'], 'type' => array(TasksModel::TYPE_SYNC, TasksModel::TYPE_MIGRATE, TasksModel::TYPE_MOVE))), 'disabled' => count($_SESSION['usernames']) > 1 ? '' : 'disabled', 'intro' => (bool) IntroModel::first(array('page' => 'migrate', 'group' => $_SESSION['current']['username']['group'])));
     if (!$templateData['intro']) {
         IntroModel::create(array('page' => 'migrate', 'group' => $_SESSION['current']['username']['group']))->save();
     }
     if ($templateData['disabled']) {
         \Util::notice(array('type' => 'warning', 'text' => 'This operation requires at least two accounts. Click <a href="' . \Render::link('accounts/add') . '">here</a> to add another account.', 'persistent' => true));
     }
     \Render::layout('template', $templateData);
 }
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:24,代码来源:migrate.php

示例2:

						<img src="<?php 
echo Render::image('new-user.png');
?>
" alt="avatar" class="img-rounded img-responsive" title="Choose New Account">
					</a>
				</div>

				<div class="caption pull-left">
					<h3>Not done?</h3>

					<h6>Add as many accounts as you want</h6>
					<h6>Click the button below to add another one</h6>
					<br />

					<p>
						<a href="<?php 
echo Render::link('accounts/add');
?>
" class="btn btn-xs btn-success">Add Account </a>
					</p>
				</div>
			</div>
		</div>
	</div>
</div>

<?php 
echo Render::view('common/copyright');
?>

开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:29,代码来源:content.html.php

示例3:

            ?>
					<?php 
        }
        ?>
				</ul>
			</div>
		<?php 
    } else {
        ?>
			<div class="alert alert-info text-center alert-dismissable no-common">
				You have no services enabled that support cleaning. Please refine your permissions <a href="<?php 
        echo Render::link('accounts/permissions');
        ?>
">here</a>.
			</div>
		<?php 
    }
    ?>
	<?php 
} else {
    ?>
		<div class="alert alert-info text-center alert-dismissable no-common">
			You have no services enabled that support cleaning. Please refine your permissions <a href="<?php 
    echo Render::link('accounts/permissions');
    ?>
">here</a>.
		</div>
	<?php 
}
?>
</div>
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:31,代码来源:services.html.php

示例4:

    }
    ?>
				</td>
				<td>
					<?php 
    if ($task['status'] > 1) {
        ?>
						<?php 
        if ($task['status'] == 2) {
            ?>
							<a href="<?php 
            echo Render::link('migrate/revert/' . $task['id']);
            ?>
" class="btn btn-xs btn-default pull-right margin-left-xs margin-bottom-xs">Revert</a>
						<?php 
        }
        ?>
						<a href="<?php 
        echo Render::link('migrate/details/' . $task['id']);
        ?>
" class="btn btn-xs btn-info pull-right margin-left-xs margin-bottom-xs">Details</a>
					<?php 
    }
    ?>
				</td>
			</tr>
		<?php 
}
?>
	</tbody>
</table>
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:31,代码来源:table.html.php

示例5:

						<li><a href="<?php 
echo Render::link('accounts/details');
?>
">Profile</a></li>
						<li><a href="<?php 
echo Render::link('accounts/permissions');
?>
">Permissions</a></li>
						<li><a href="<?php 
echo Render::link('accounts');
?>
">Accounts</a></li>

						<li class="divider"></li>

						<li><a href="<?php 
echo Render::link('accounts/add');
?>
">Add Account</a></li>
					</ul>
				</li>

				<li><a href="<?php 
echo Render::link('logout');
?>
">Logout</a></li>
			</ul>

		</div><!--/.navbar-collapse -->
	</div>
</div>
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:31,代码来源:navigation-default.html.php

示例6: strtotime

    ?>
..</a></td>
				<td><?php 
    echo Util::countup(date('m/d/Y H:i:s', strtotime($task['share']['created_at']) + $task['share']['expires']));
    ?>
</td>
				<td>
					<?php 
    if ($task['status'] > 1) {
        ?>
						<a href="<?php 
        echo Render::link('share/remove/' . $task['id']);
        ?>
" class="btn btn-xs btn-danger pull-right margin-left-xs margin-bottom-xs">Delete</a>
						<a href="<?php 
        echo Render::link('share/details/' . $task['id']);
        ?>
" class="btn btn-xs btn-default pull-right margin-left-xs margin-bottom-xs">Details</a>
						<a href="#" data-link="<?php 
        echo BASE_URL . 'shared/link/' . $task['share']['link'];
        ?>
" class="copy-to-clipboard btn btn-xs btn-info pull-right margin-left-xs margin-bottom-xs">Copy to Clipboard</a>
					<?php 
    }
    ?>
				</td>
			</tr>
		<?php 
}
?>
	</tbody>
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:31,代码来源:table.html.php

示例7:

		</div>

		<!-- Buttons -->
		<a href="<?php 
echo Render::link('share');
?>
" class="btn btn-md btn-default" title="Back">
			<i class="fa fa-caret-left"></i> Back
		</a>

		<?php 
if ($task['status'] == 2) {
    ?>
			<a href="<?php 
    echo Render::link('share/remove/' . $task['id']);
    ?>
" class="btn btn-md btn-primary pull-right" title="Delete">
				<i class="fa fa-trash-o"></i> Delete
			</a>
		<?php 
}
?>
	</div>
</div>

<div class="container">

	<?php 
if ($task['status'] == \app\models\TasksModel::STATUS_REVERTED) {
    ?>
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:30,代码来源:details.html.php

示例8:

<div class="navbar navbar-warning navbar-fixed-top">
	<div class="container">
		<p class="navbar-text">
			Initial Account Setup
		</p>
		<a href="<?php 
echo Render::link($skipUrl);
?>
" type="button" class="btn btn-warning navbar-btn pull-right">Skip (<?php 
echo $step;
?>
/2)</a>
	</div>
</div>
开发者ID:unDemian,项目名称:gcdc-migrate,代码行数:14,代码来源:navigation-wizard.html.php


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