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


PHP Site::out_url方法代码示例

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


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

示例1: if

	<?php $theme->header(); ?>
</head>
<body class="<?php $theme->body_class(); ?>">
	<div id="page-top">
		<div id="wrapper-top">
			<div id="top-primary">
				<div id="header">
					<div id="title">
					<?php if ( $show_title_image ) : ?>
						<h1><a href="<?php Site::out_url( 'habari' ); ?>"><img src="<?php Site::out_url( 'theme' ); ?>/images/sample-title.png" alt="<?php Options::out( 'title' ); ?>" ></a><span class="hidden"><?php Options::out( 'title' ); ?></span></h1>
					<?php else : ?>
						<h1><a href="<?php Site::out_url( 'habari' ); ?>"><?php Options::out( 'title' ); ?></a></h1>
					<?php endif; ?>
						<p class="tagline"><?php Options::out( 'tagline' ); ?></p>
					</div>
					<div id="navbar">
						<ul>
						<?php $theme->area('nav'); ?>
						<?php if ($display_login): ?>
							<li class="login">
							<?php if ( $loggedin ) : ?>
								<a href="<?php Site::out_url( 'admin' ); ?>" title="<?php _e( "Admin area" ); ?>"><?php _e( "Admin" ); ?></a>
							<?php else: ?>
								<a href="<?php Site::out_url( 'login' ); ?>" title="<?php _e( "Login" ); ?>"><?php _e( "Login" ); ?></a>
							</li>
							<?php endif; ?>
						<?php endif; ?>
						</ul>
					</div>
				</div>
开发者ID:nerdfiles,项目名称:habari_boilerplate,代码行数:30,代码来源:header.php

示例2:

?>
</textarea>
      <p><input type="submit" name="submit" value="Save Changes" /><?php 
if (!is_writable($file)) {
    echo " &nbsp; <span style=\"color:#B00;font-weight:bold;\">File not writable!</span>";
}
?>
</p>
      <input type="hidden" name="file" class="file" value="<?php 
echo $file;
?>
" />
     </form>
    </div>
   </td>
   <td class="browser">
    <div class="fileman">
     <p>Base Dir: <?php 
Site::out_url("user");
?>
</p><br />
     <div id="jQueryFileTree"></div>
    </div>
   </td>
  </tr>
 </table>
 <p style="text-align:center;color:#555;font-size:10px;">FileMan Plugin for <a href="http://habariproject.org">Habari</a> made by <a href="http://mattsd.com">Matt-SD</a></p>
</div>
<?php 
$theme->display('footer');
//Get Habari footer
开发者ID:habari-extras,项目名称:fileman,代码行数:31,代码来源:fileman.php

示例3: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die( 'No direct access' ); } ?>
	<ul class="items">

		<?php foreach((array)$recent_posts as $post): ?>
		<li class="item clear">
			<?php /* @locale Time formats according to http://php.net/manual/en/function.date.php */ $ptime = $post->pubdate->get( _t( 'g:i' ) ); ?>
			<?php /* @locale Date formats according to http://php.net/manual/en/function.date.php */ $pdate = $post->pubdate->get( _t( 'F jS, Y' ) ); ?>
			<span class="date pct15 minor"><a href="<?php echo URL::get('display_entries_by_date', array('year' => $post->pubdate->get( 'Y' ), 'month' => $post->pubdate->get( 'm' ), 'day' => $post->pubdate->get( 'd' ) ) ); ?>" title="<?php printf(_t('Posted at %1$s on %2$s'), $ptime, $pdate ); ?>"><?php /* @locale Date formats according to http://php.net/manual/en/function.date.php */ $post->pubdate->out(  _t( 'M j' ) ); ?></a></span>
			<span class="title pct75"><a href="<?php URL::out('admin', 'page=publish&id=' . $post->id); ?>" title="<?php printf( _t('Edit \'%s\''), $post->title ); ?>"><?php echo $post->title; ?></a> <span class="dim"><?php _e('by'); ?></span> <a class="minor" href="<?php Site::out_url('admin'); ?>/user/<?php echo $post->author->username; ?>"><?php echo $post->author->displayname; ?></a></span>
			<span class="comments pct10"><a href="<?php echo $post->permalink; ?>#comments"><?php echo $post->comments->approved->count; ?></a></span>
		</li>
		<?php endforeach; ?>

	</ul>
开发者ID:rynodivino,项目名称:system,代码行数:14,代码来源:dash_latestentries.php

示例4:

        }
        ?>
				 </ul>
				<?php 
    }
    ?>
				</li>
			<?php 
}
?>
			</ul>
		</div>
	</div>

	<a href="<?php 
Site::out_url('site');
?>
" id="site" title="<?php 
_e('Go to Site');
?>
"><?php 
Options::out('title');
?>
</a>

</div>

<div id="spinner"></div>

<div id="page">
开发者ID:habari,项目名称:system,代码行数:30,代码来源:header.php

示例5: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

	<footer id="footer">
	   <section>
	       <p><?php Options::out('title'); ?> <?php _e('is powered by'); ?> <a href="http://www.habariproject.org/" title="Habari">Habari</a> | <a href="<?php Site::out_url('admin'); ?>">Dashboard</a></p>
	   </section>
	</footer><!-- End #footer -->
	
</div><!-- End #wrapper -->

<!--










          This section has been intentionally left blank.








开发者ID:nerdfiles,项目名称:habari_boilerplate,代码行数:22,代码来源:footer.php

示例6: foreach

			<?php 
include "sidebar-text.php";
?>
		
			<h2>Categories</h2>
			<ul>
			<?php 
if (count($all_tags) > 0) {
    ?>
			  <ul class="tags">
			    <?php 
    foreach ($all_tags as $tag) {
        ?>
			      <li>
			        <a href="<?php 
        Site::out_url('habari');
        ?>
/tag/<?php 
        echo $tag->slug;
        ?>
/" rel="tag" title="See posts with <?php 
        echo $tag->tag;
        ?>
 tag">
			          <?php 
        echo $tag->tag;
        ?>
			        </a>
			      </li>
			    <?php 
    }
开发者ID:habari-extras,项目名称:naturalpower,代码行数:31,代码来源:sidebar.php

示例7: while

</div>
<div id="page-bottom">
	<div id="wrapper-bottom">
		<div id="bottom-primary">
			<div id="prev-posts">
			<?php while ($post =next($posts)) : ?>
				<div class="prev-post">
					<div class="prev-post-title">
						<h2>
							<a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a>
						</h2>
					</div>
					<div class="prev-post-excerpt">
						<p>
							<?php echo $post->content_excerpt; ?>
							<a href="<?php echo $post->permalink; ?>" title="<?php printf( _t("Continue reading %s"), $post->title ); ?>"><img src="<?php Site::out_url( 'theme' ); ?>/images/arrow.png" alt="<?php _e( "more" ); ?>"></a>
						</p>
					</div>
				</div>
			<?php endwhile; ?>
			</div>
			<div id="prev-posts-footer">
				<span class="nav-next"><?php echo $theme->prev_page_link( _t('Newer Posts') ); ?></span>
				<span class="nav-prev"><?php echo $theme->next_page_link( _t('Older Posts') ); ?></span>
				<br class="clear">
			</div>
			<?php //$theme->prevnext($page, Utils::archive_pages($posts->count_all())); ?>
			<?php $theme->display_archives() ;?>
			
<?php include 'footer.php'; ?>
开发者ID:rynodivino,项目名称:system,代码行数:30,代码来源:home.php

示例8: _e

						<span class="post-date"><?php $post->pubdate->out(); ?></span>
						<span class="post-comments-link">
							<a href="<?php echo $post->permalink.'#comment-form'; ?>" title="<?php _e( "Comments on this post" ); ?>"><?php $theme->post_comments_link( $post ); ?></a>
						</span>
						<span class="clear"></span>
					</div>
					<div class="post-entry">
						<?php echo $post->content_excerpt; ?>
					</div>
				</div>
		<?php endforeach; ?>
			</div>
		</div>
		<div id="top-secondary">
		<?php include'sidebar.php' ?>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div id="page-bottom">
	<div id="wrapper-bottom">
		<div id="bottom-primary">
			<div id="prev-posts-footer">
				<span class="nav-next"><?php echo $theme->prev_page_link( _t('Newer Posts') ); ?><img class="hidden" src="<?php Site::out_url('theme'); ?>/images/nav-right.png" alt=""></span>
				<span class="nav-prev"><img class="hidden" src="<?php Site::out_url('theme'); ?>/images/nav-left.png" alt=""><?php echo $theme->next_page_link( _t('Older Posts') ); ?></span>
				<br class="clear">
			</div>
			<?php $theme->display_archives() ;?>

<?php include 'footer.php'; ?>
开发者ID:rynodivino,项目名称:system,代码行数:30,代码来源:multiple.php

示例9: _e

        ?>
								<a href="<?php 
        Site::out_url('admin');
        ?>
" title="<?php 
        _e("Admin area");
        ?>
"><?php 
        _e("Admin");
        ?>
</a>
							<?php 
    } else {
        ?>
								<a href="<?php 
        Site::out_url('login');
        ?>
" title="<?php 
        _e("Login");
        ?>
"><?php 
        _e("Login");
        ?>
</a>
							</li>
							<?php 
    }
    ?>
						<?php 
}
?>
开发者ID:wwxgitcat,项目名称:habari,代码行数:31,代码来源:header.php

示例10: foreach

		<div id="menulist" class="dropbuttonlist">
			<ul>
			<?php foreach($mainmenu as $menu_id => $menu): ?>
				<li id="link-<?php echo $menu_id ?>" class="<?php if ($menu['selected'] == true) { echo 'selected'; } ?><?php if (isset($menu['submenu'])): ?> submenu<?php endif; ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo $menu['url']; ?>"><?php echo $menu['text']; ?>
				<?php if ( isset($menu['hotkey']) && $menu['hotkey'] != '' ): ?><span class="hotkey"><?php echo $menu['hotkey']; ?></span><?php endif; ?>
				</a>
				<?php if ( isset($menu['submenu']) ): ?>
				<ul class="submenu">
				 <?php foreach($menu['submenu'] as $submenu_id => $submenu_item): ?>
				 	<li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if (isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != ''): ?> hotkey-<?php echo $submenu_item['hotkey']; ?><?php endif; ?>"><a href="<?php echo $submenu_item['url']; ?>"><?php echo $submenu_item['text']; ?>
				 	<?php if ( isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != '' ): ?><span class="hotkey"><?php echo $submenu_item['hotkey']; ?></span><?php endif; ?>
				 	</a></li>
				 <?php endforeach; ?>
				 </ul>
				<?php endif; ?>
				</li>
			<?php endforeach; ?>
			</ul>
		</div>
	</div>

	<a href="<?php Site::out_url('habari'); ?>" id="site" title="<?php _e('Go to Site'); ?>"><?php Options::out('title'); ?></a>

</div>

<div id="spinner"></div>

<div id="page">

<?php Plugins::act('admin_info', $theme, $page); ?>
开发者ID:nerdfiles,项目名称:habari_boilerplate,代码行数:30,代码来源:header.php

示例11: _e








-->

	<div id="wrapper" class="container">
	
		<header id="masthead">
		
			<hgroup id="branding">
				<h1><a href="<?php Site::out_url( 'habari'); ?>" title="<?php Options::out( 'title' ); ?>"> <?php Options::out( 'title' ); ?></a></h1>
				<h2 class=""><?php Options::out( 'tagline' ); ?></h2>
			</hgroup>
			
        	<nav id="nav">
            	<ul>
            		<li><a href="<?php Site::out_url( 'habari' ); ?>"><?php _e('Home'); ?></a></li>
            		<?php foreach($pages as $page): ?>
                    <li>
                        <a href="<?php echo $page->permalink; ?>" title="<?php echo $page->title; ?>"><?php echo $page->title; ?></a>
                    </li>
            		<?php endforeach; ?>
            	</ul>
        	</nav>

		</header><!-- End #masthead -->
开发者ID:nerdfiles,项目名称:habari_boilerplate,代码行数:23,代码来源:header.php

示例12:

        ?>
#pingback-<?php 
        echo $pingback->id;
        ?>
" ><time datetime="<?php 
        $pingback->date->out('Y-m-d\\TH:i:sP');
        ?>
" pubdate><?php 
        echo $pingback->date->out();
        ?>
</time></a>
							<?php 
        if ($loggedin) {
            ?>
							<a class="pingback-edit-link" href="<?php 
            Site::out_url('admin', true);
            ?>
comment?id=<?php 
            echo $pingback->id;
            ?>
">Edit</a>
							<?php 
        }
        ?>
						</li>
					</ol>
					<?php 
    }
    ?>
				</aside>
				<?php 
开发者ID:habari-extras,项目名称:null,代码行数:31,代码来源:comments.php

示例13: function

     root: '<?php 
site::out_dir("user");
?>
/',
     script: '<?php 
Site::out_url("habari");
?>
/user/plugins/fileman/jqueryFileTree/jqueryFileTree.php',
     expandSpeed: 1000,
     collapseSpeed: 1000,
     multiFolder: true,
     loadMessage: 'Loading...'
     }, function(file) {
      window.location="?file="+file;
    });
    $('form.fileman').submit(function(){
     $.post(
      '<?php 
Site::out_url("habari");
?>
/user/plugins/fileman/save.php',
      'file='+$('form.fileman input.file').val()+'&contents='+$('form.fileman textarea').val(),
      function(data) {
       $('form.fileman p.status span').html(data);
      }
     )
     return false;
    });
   });
  </script>
开发者ID:habari-extras,项目名称:fileman,代码行数:30,代码来源:fileman.js.php

示例14: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<?php if ( isset( $error ) ) { ?>

<p><?php _e('That login is incorrect.'); ?></p>

<?php } ?>

<?php if ( $loggedin ) { ?>

<p><?php _e('You are logged in as'); ?> <?php echo $user->username; ?>.</p>
<p><?php _e('Want to'); ?> <a href="<?php Site::out_url( 'habari' ); ?>/auth/logout"><?php _e('log out'); ?></a>?</p>

<?php } else { ?>

<?php Plugins::act( 'theme_loginform_before' ); ?>

<form 
    method="post" 
    action="<?php URL::out( 'auth', array( 'page' => 'login' ) ); ?>">
	
	<fieldset>
	
    	<div>
            <label for="habari_username"><small><strong><?php _e('Name:'); ?></strong></small></label>
            <input 
                type="text" 
                size="25" 
                name="habari_username" 
                id="habari_username" 
                tabindex="1" />
开发者ID:nerdfiles,项目名称:habari_boilerplate,代码行数:31,代码来源:loginform.php

示例15: if

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title><?php echo $theme->page_title; ?></title>
<meta name="generator" content="Habari">

<link rel="stylesheet" type="text/css" media="screen" href="<?php Site::out_url( 'theme' ); ?>/style.css">

<?php echo $theme->header(); ?>
</head>

<body class="<?php echo $theme->body_class(); ?>">
<div id="page">
	<div id="header">

	<h1><a href="<?php Site::out_url( 'habari' ); ?>"><?php Options::out( 'title' ); ?></a></h1>
	<p class="description"><?php Options::out( 'tagline' ); ?></p>

	<?php echo $theme->area('nav'); ?>

	</div>

	<hr>
<!-- /header -->
开发者ID:rynodivino,项目名称:system,代码行数:26,代码来源:header.php


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