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


PHP Url::templatePath方法代码示例

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


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

示例1: saveJsonConfigFile

 /**
  * Funció que guarda un arxiu json de configuració o dades 
  * @name = Nom de l'arxiu dins static o adreça amb el json inclòs
  **/
 public static function saveJsonConfigFile($name, $Data, $convert = true)
 {
     $JSON = "";
     $nom = getcwd() . Url::templatePath() . 'json/' . $name;
     if (file_exists($nom)) {
         if ($convert) {
             $JSON = json_encode($Data, TRUE);
         } else {
             $JSON = $Data;
         }
         file_put_contents($nom, $JSON);
     } else {
         throw new MyException("No he trobat l'arxiu: " . $name);
     }
 }
开发者ID:nagiro,项目名称:Entrades,代码行数:19,代码来源:Json.php

示例2:

<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>

</div>

<!-- JS -->
<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.js', Url::templatePath() . 'js/bootstrap.min.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
开发者ID:alejandrozepeda,项目名称:docstify,代码行数:22,代码来源:footer.php

示例3:

?>
 Zeilschool de Waai.<br>
				Alle rechten voorbehouden.<br />
				<a href="developers">Developerteam</a>
			</div>
			<div class="col-md-4">
				<h2>Contact opnemen</h2><hr>
				<p>Zeilschool de Waai<br>Ymedaem 45<br>8722 GR Warns<br>Telefoon: 0514 561290<br>Email: info@zs-waai.nl<br><br>
				Heeft u vragen of opmerkingen? <a href="contact">Klik hier.</a></p>
			</div>
		</div>


</div>





<!-- JS -->
<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.js', 'https://www.google.com/recaptcha/api.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js', Url::templatePath() . 'js/script.js', Url::templatePath() . 'js/cursistkoppelen.js', Url::templatePath() . 'js/validation.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
开发者ID:Aukevanoost,项目名称:zeilschooldewaai,代码行数:30,代码来源:footer.php

示例4:

	<!-- Site meta -->
	<meta charset="utf-8">
	<?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', Url::templatePath() . 'css/style.css'));
//hook for plugging in css
$hooks->run('css');
?>
</head>
<body>
<?php 
//hook for running code after body tag
$hooks->run('afterBody');
?>

<div class="container">

<div class="page-header">
<h1>Credentials</h1>
</div>
开发者ID:jnwatts,项目名称:credentials,代码行数:30,代码来源:header.php

示例5:

							<label class="remember" for="remember"><input type="checkbox" id="remember" />Remember me</label>

							<div class="button-login">	
								<button type="submit" class="btn btn-primary">Login</button>
							</div>
							<div class="clearfix"></div>
					</form>
					<hr>
					<h3>Forgot Password?</h3>
					<p>
						No problem, <a href="javascript:;">click here</a> to get a new password.
					</p>	
				</div><!--/span-->
			</div><!--/row-->
			

	</div><!--/.fluid-container-->
	
		</div><!--/fluid-row-->
	
	<!-- start: JavaScript-->
<?php 
Assets::js(array(Url::templatePath() . 'js/jquery-1.9.1.min.js', Url::templatePath() . 'js/jquery-migrate-1.0.0.min.js', Url::templatePath() . 'js/jquery-ui-1.10.0.custom.min.js', Url::templatePath() . 'js/jquery.ui.touch-punch.js', Url::templatePath() . 'js/modernizr.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/jquery.cookie.js', Url::templatePath() . 'js/fullcalendar.min.js', Url::templatePath() . 'js/jquery.dataTables.min.js', Url::templatePath() . 'js/excanvas.js', Url::templatePath() . 'js/jquery.flot.js', Url::templatePath() . 'js/jquery.flot.pie.js', Url::templatePath() . 'js/jquery.flot.stack.js', Url::templatePath() . 'js/jquery.flot.resize.min.js', Url::templatePath() . 'js/jquery.chosen.min.js', Url::templatePath() . 'js/jquery.uniform.min.js', Url::templatePath() . 'js/jquery.cleditor.min.js', Url::templatePath() . 'js/jquery.noty.js', Url::templatePath() . 'js/jquery.elfinder.min.js', Url::templatePath() . 'js/jquery.raty.min.js', Url::templatePath() . 'js/jquery.iphone.toggle.js', Url::templatePath() . 'js/jquery.uploadify-3.1.min.js', Url::templatePath() . 'js/jquery.gritter.min.js', Url::templatePath() . 'js/jquery.imagesloaded.js', Url::templatePath() . 'js/jquery.masonry.min.js', Url::templatePath() . 'js/jquery.knob.modified.js', Url::templatePath() . 'js/jquery.sparkline.min.js', Url::templatePath() . 'js/counter.js', Url::templatePath() . 'js/jquery.textareaCounter.plugin.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>
</body>
</html>
开发者ID:Oluwafemikorede,项目名称:gbedu,代码行数:30,代码来源:login.php

示例6:

	<!-- CSS -->
	<?php 
Assets::css(array(Url::templatePath() . 'css/bootstrap.min.css', Url::templatePath() . 'css/londinium-theme.css', Url::templatePath() . 'css/icons.css', Url::templatePath() . 'css/styles.css', Url::templatePath() . 'css/video-js.css', 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&amp;subset=latin,cyrillic-ext'));
//hook for plugging in css
$hooks->run('css');
?>
	<!-- JS -->
	<?php 
Assets::js(array('http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js', Url::templatePath() . 'js/plugins/charts/sparkline.min.js', Url::templatePath() . 'js/plugins/forms/uniform.min.js', Url::templatePath() . 'js/plugins/forms/select2.min.js', Url::templatePath() . 'js/plugins/forms/inputmask.js', Url::templatePath() . 'js/plugins/forms/autosize.js', Url::templatePath() . 'js/plugins/forms/inputlimit.min.js', Url::templatePath() . 'js/plugins/forms/listbox.js', Url::templatePath() . 'js/plugins/forms/multiselect.js', Url::templatePath() . 'js/plugins/forms/validate.min.js', Url::templatePath() . 'js/plugins/forms/tags.min.js', Url::templatePath() . 'js/plugins/forms/switch.min.js', Url::templatePath() . 'js/plugins/forms/uploader/plupload.full.min.js', Url::templatePath() . 'js/plugins/forms/uploader/plupload.queue.min.js', Url::templatePath() . 'js/plugins/forms/wysihtml5/wysihtml5.min.js', Url::templatePath() . 'js/plugins/forms/wysihtml5/toolbar.js', Url::templatePath() . 'js/plugins/interface/daterangepicker.js', Url::templatePath() . 'js/plugins/interface/fancybox.min.js', Url::templatePath() . 'js/plugins/interface/moment.js', Url::templatePath() . 'js/plugins/interface/jgrowl.min.js', Url::templatePath() . 'js/plugins/interface/datatables.min.js', Url::templatePath() . 'js/plugins/interface/colorpicker.js', Url::templatePath() . 'js/plugins/interface/fullcalendar.min.js', Url::templatePath() . 'js/plugins/interface/timepicker.min.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/video.js', Url::templatePath() . 'js/application.js'));
//hook for plugging in javascript
$hooks->run('js');
?>
	<script>
    	videojs.options.flash.swf = "<?php 
echo Url::templatePath() . 'swf/video-js.swf';
?>
";
  	</script>

</head>
<body>
<!-- Login wrapper -->
<div class="login-wrapper">
	<form action="<?php 
echo DIR;
?>
send_forgot" role="form" id="forgot" method="post">
		<div class="popup-header">
			<span class="text-semibold">Resetar senha</span>
		</div>
开发者ID:juancabraal,项目名称:vibesetal,代码行数:30,代码来源:forgot_password.php

示例7: outbox

 public function outbox($current_page = null)
 {
     // Check if user is logged in
     if ($this->auth->isLoggedIn()) {
         // Get Current User's ID
         $u_id = $this->auth->user_info();
     } else {
         Url::redirect();
     }
     // Check to make sure user is trying to delete messages
     if (isset($_POST['submit'])) {
         // Check to make sure the csrf token is good
         if (Csrf::isTokenValid()) {
             // Get Post Data
             $actions = Request::post('actions');
             $msg_id = Request::post('msg_id');
             // Check to see if user is deleteing messages
             if ($actions == "delete") {
                 // Delete selected messages from Outbox
                 if (isset($msg_id)) {
                     foreach ($msg_id as $del_msg_id) {
                         if ($this->model->deleteMessageOutbox($u_id, $del_msg_id)) {
                             // Success
                             $m_del_success[] = true;
                         } else {
                             // Fail
                             $m_del_error[] = true;
                         }
                     }
                     if (count($m_del_success) >= 1) {
                         // Message Delete Success Display
                         SuccessHelper::push('You Have Successfully Deleted Messages', 'MessagesOutbox');
                     } else {
                         if (count($m_del_error) >= 1) {
                             // Message Delete Error Display
                             ErrorHelper::push('Messages Delete Failed', 'MessagesOutbox');
                         }
                     }
                 } else {
                     // Fail
                     ErrorHelper::push('Nothing Was Selected to be Deleted', 'MessagesOutbox');
                 }
             }
         }
     }
     // Collect Data for view
     $data['title'] = "My Private Messages Outbox";
     $data['welcome_message'] = "Welcome to your Private Messages Outbox";
     // Sets "to" username display
     $data['tofrom'] = " to ";
     // Get all message that are to current user
     $data['messages'] = $this->model->getOutbox($u_id, $this->pages->getLimit($current_page, MESSAGE_PAGEINATOR_LIMIT));
     // Set total number of messages for paginator
     $total_num_messages = $this->model->getTotalMessagesOutbox($u_id);
     $this->pages->setTotal($total_num_messages);
     // Send page links to view
     $pageFormat = DIR . "MessagesOutbox/";
     // URL page where pages are
     $data['pageLinks'] = $this->pages->pageLinks($pageFormat, null, $current_page);
     // Message Quota Goods
     // Get total count of messages
     $data['quota_msg_ttl'] = $total_num_messages;
     $data['quota_msg_limit'] = MESSAGE_QUOTA_LIMIT;
     $data['quota_msg_percentage'] = $this->model->getPercentage($data['quota_msg_ttl'], $data['quota_msg_limit']);
     // Check to see if user has reached message limit, if so show warning
     if ($data['quota_msg_percentage'] >= "100") {
         $error[] = "<span class='glyphicon glyphicon-exclamation-sign' aria-hidden='true'></span>\n                  <b>Your Outbox is Full!</b>  You Can NOT send any messages!";
     } else {
         if ($data['quota_msg_percentage'] >= "90") {
             $error[] = "<span class='glyphicon glyphicon-exclamation-sign' aria-hidden='true'></span>\n                  <b>Warning!</b> Your Outbox is Almost Full!";
         }
     }
     // What box are we showing
     $data['what_box'] = "Outbox";
     // Setup Breadcrumbs
     $data['breadcrumbs'] = "\n\t\t\t<li><a href='" . DIR . "'>Home</a></li>\n\t\t\t<li><a href='" . DIR . "Messages'>Private Messages</a></li>\n\t\t\t<li class='active'>" . $data['title'] . "</li>\n\t\t";
     $data['csrf_token'] = Csrf::makeToken();
     // Include Java Script for check all feature
     $data['js'] = "<script src='" . Url::templatePath() . "js/form_check_all.js'></script>";
     // Check for new messages in inbox
     $data['new_messages_inbox'] = $this->model->getUnreadMessages($u_id);
     // Send data to view
     View::renderTemplate('header', $data);
     View::renderModule('Messages/views/messages_sidebar', $data);
     View::renderModule('Messages/views/messages_list', $data, $error, $success);
     View::renderTemplate('footer', $data);
 }
开发者ID:davarravad,项目名称:UserApplePie-v-2,代码行数:87,代码来源:Messages.php

示例8:

<link href=<?php 
use Helpers\Url;
echo Url::templatePath() . 'css/sweetalert.css';
?>
 rel="stylesheet" type="text/css">

<div class="row">

	<p><b>Afficher les graphiques sur : </b></p>

    <div class="input-field col s10" id="divTypeSelectButton">
        <a class="waves-effect waves-light btn" id="dayButton">La Journée</a>
        <a class="waves-effect waves-light btn" id="monthButton">Le Mois</a>
        <a class="waves-effect waves-light btn" id="yearButton">L'Année</a>
	</div>
	
</div>

<div class="row">

	<div id="settings"></div>

</div>

<div class="row">

	<div class="progress" style="display: none;">
		<div class="indeterminate"></div>
 	</div>
开发者ID:XxP1asmaxX,项目名称:MeteoColmar,代码行数:29,代码来源:index.php

示例9:

<?php

use Helpers\Url;
?>
</div>

<video autoplay loop muted id="background">
    <source src="<?php 
echo Url::templatePath() . 'video/back-video.mp4';
?>
" type="video/mp4">
</video>

<div id="background-cover">
    <div class="line-back">
        <img class="img-responsive center-block" src="<?php 
echo Url::templatePath() . 'img/reaching-logo.png';
?>
">
    </div>
</div>
开发者ID:alejandrozepeda,项目名称:reaching-outdoors,代码行数:21,代码来源:welcome.php

示例10:

<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>

<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.min.js', Url::templatePath() . 'js/particles.min.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/jquery.bootstrap-autohidingnavbar.min.js', Url::templatePath() . 'js/material.min.js', Url::templatePath() . 'js/ripples.min.js', Url::templatePath() . 'js/app.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>
<br><br><br>
</div> <!-- main container -->
<footer class="footer">
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="text-center">
                <div class="text-lg-bn-white sliding-lg-white">Vamos a trabajar juntos.</div>
                <br><br>
                <div class="text-md-white">¿Tienes algún proyecto en mente?</div>
                <br>
                <div class="text-md-white">Empecemos a desarrollarlo.</div>
                <br><br>
                <div class="row">
                    <div class="col-md-4 text-right">
                        <a class="btn btn-raised btn-default" href="<?php 
开发者ID:alejandrozepeda,项目名称:clipp,代码行数:31,代码来源:footer.php

示例11:

<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>
</div>

<!-- JS -->
<?php 
Assets::js(array('//code.jquery.com/jquery-1.11.3.min.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', '//code.jquery.com/ui/1.11.2/jquery-ui.js', Url::templatePath() . 'js/plugins/metisMenu/jquery.metisMenu.js', Url::templatePath() . 'js/inspinia.js', Url::templatePath() . 'js/plugins/pace/pace.min.js', Url::templatePath() . 'js/plugins/fullcalendar/fullcalendar.min.js', Url::templatePath() . 'js/custom.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
开发者ID:seancho0420,项目名称:seanmin,代码行数:21,代码来源:footer.php

示例12:

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
	<?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', '//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic', Url::templatePath() . 'css/style.css', Url::templatePath() . 'css/landing-page.css', Url::templatePath() . 'font-awesome/css/font-awesome.min.css'));
//hook for plugging in css
$hooks->run('css');
?>

    <!--

    <?php 
// Assets::css(array(
//   '/vendor/bootstrap/dist/css/bootstrap.min.css',
//   '/assets/css/fonts.css',
//   '/assets/css/royalslider.css',
//   '/assets/css/style.css',
//   '/assets/css/landing-page.css',
// ));
// //hook for plugging in css
开发者ID:JrzenonDev,项目名称:simple_mvc_framework_landing_page,代码行数:31,代码来源:header.php

示例13: isset

<?php

/**
 * Sample layout
 */
use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>

</div>

<!-- JS -->
<?php 
Assets::js(array_merge(array(Url::templatePath() . 'js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'), isset($data['js']) ? $data['js'] : array()));
if (isset($data['ownjs'])) {
    foreach ($data['ownjs'] as $js) {
        echo $js;
    }
}
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
开发者ID:BryanYeh,项目名称:apple-pie,代码行数:30,代码来源:footer.php

示例14:

<?php

use Helpers\Assets;
use Helpers\Url;
?>
<!DOCTYPE html>
<html lang="<?php 
echo LANGUAGE_CODE;
?>
">
<head>

	<!-- Site meta -->
	<meta charset="utf-8">
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/core/config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(['//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', Url::templatePath() . 'css/style.css']);
?>

</head>
<body>

<div class="container">
开发者ID:Talesoft,项目名称:tale-jade-smvc,代码行数:29,代码来源:header.php

示例15:

<?php

/**
 * Created by PhpStorm.
 * User: Phuc
 * Date: 11/09/2015
 * Time: 19:56
 */
use Helpers\Url;
$template_name = 'MetroTemplate';
$template_url = Url::templatePath($template_name);
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="description" content="Metro, a sleek, intuitive, and powerful framework for faster and easier web development for Windows Metro Style.">
    <meta name="keywords" content="HTML, CSS, JS, JavaScript, framework, metro, front-end, frontend, web development">
    <meta name="author" content="Sergey Pimenov and Metro UI CSS contributors">

    <link rel='shortcut icon' type='image/x-icon' href='<?php 
echo $template_url;
?>
favicon.ico' />

    <title>News portal :: Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro Style</title>

    <link href="<?php 
开发者ID:hieunguyenbk,项目名称:AgriExtension,代码行数:31,代码来源:NewPortalHeader.php


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