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


PHP add_stylesheet函数代码示例

本文整理汇总了PHP中add_stylesheet函数的典型用法代码示例。如果您正苦于以下问题:PHP add_stylesheet函数的具体用法?PHP add_stylesheet怎么用?PHP add_stylesheet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: mw_css

function mw_css($href)
{
    global $html_process;
    if (!@is_file(G5_PATH . $href)) {
        return;
    }
    $mtime = filemtime(G5_PATH . $href);
    $href = G5_URL . $href . "?" . $mtime;
    add_stylesheet("<link rel=\"stylesheet\" href=\"{$href}\">");
}
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:10,代码来源:mw.common.lib.php

示例2: add_stylesheet

 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
add_stylesheet(get_skin_stylesheet($outlogin_skin_path));
add_javascript(get_skin_javascript($outlogin_skin_path));
?>
<div class="outlogin">
    <form name="foutlogin" action="<?php 
echo $outlogin_action_url;
?>
" method="post" autocomplete="off">
    <input type="hidden" name="url" value="<?php 
echo $outlogin_url;
?>
"/>
    <div class="func">
        <a href="<?php 
echo G5_BBS_URL;
?>
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:outlogin.skin.1.php

示例3: add_stylesheet

<?php

if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $skin_url . '/style.css" media="screen">', 0);
?>

<div class="sub-title">
	<h4>
		<?php 
if ($member['photo']) {
    ?>
			<img src="<?php 
    echo $member['photo'];
    ?>
" alt="">
		<?php 
} else {
    ?>
			<i class="fa fa-user"></i>
		<?php 
}
?>
		<?php 
echo $g5['title'];
?>
	</h4>
</div>
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:mypost.skin.php

示例4: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . G5_SHOP_SKIN_URL . '/style.css">', 0);
/*
리스트의 상품이 순차적으로 위에서 내려옴
*/
?>

<!-- 이전 재생 정지 다음 버튼 시작 { -->
<ul id="btn_smt_<?php 
echo $this->type;
?>
" class="sctrl">
    <li><button type="button" class="sctrl_play">효과재생<span></span></button></li>
    <li><button type="button" class="sctrl_stop">효과정지<span></span></button></li>
</ul>
<!-- } 이전 재생 정지 다음 버튼 끝 -->

<!-- 상품진열 50 시작 { -->
<?php 
for ($i = 1; $row = sql_fetch_array($result); $i++) {
    $sct_last = '';
    if ($i > 1 && $i % $this->list_mod == 0) {
        $sct_last = ' sct_last';
    }
    // 줄 마지막
开发者ID:davis00,项目名称:youngcart,代码行数:31,代码来源:main.50.skin.php

示例5: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $skin_url . '/style.css">', 0);
// 목록헤드
if (isset($wset['hskin']) && $wset['hskin']) {
    add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/head/' . $wset['hskin'] . '.css" media="screen">', 0);
    $head_class = 'div-head list-head';
} else {
    $head_class = isset($wset['hcolor']) && $wset['hcolor'] ? 'div-head border-' . $wset['hcolor'] : 'div-head border-black';
}
// 헤더 출력
if ($header_skin) {
    include_once './header.php';
}
?>

<div class="list-board">
	<div class="<?php 
echo $head_class;
?>
">
		<span class="num">번호</span>
		<span class="name">이름</span>
		<span class="subj">위치</span>
	</div>
	<ul id="list-container" class="board-list">
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:current_connect.skin.php

示例6: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
// $all_histories = 전체 연혁 출력 변수
// $histories = 연도가 있는 연혁
add_stylesheet('<link rel="stylesheet" href="' . $history_skin_url . '/style.css" />', 0);
?>
<div class="basic-history <?php 
echo $history['his_id'];
?>
">
	<h3><?php 
echo $history['his_subject'];
?>
</h3>
	
	<?php 
foreach ($histories as $year => $items) {
    ?>
	<dl>
		<dt><?php 
    echo $year;
    ?>
</dt>
		<dd>
			<ul>
	<?php 
    foreach ($items as $item) {
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:31,代码来源:history.skin.php

示例7: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
//개별 페이지 접근 불가
global $at_href;
//add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $widget_url . '/widget.css" media="screen">', 0);
switch ($wset['search']) {
    case 'item':
        $link = $at_href['isearch'] . '?q=';
        break;
    case 'tag':
        $link = $at_href['tag'] . '?q=';
        break;
    default:
        $link = $at_href['search'] . '?stx=';
        break;
}
$q = explode(",", $wset['q']);
$q_cnt = count($q);
if ($q_cnt) {
    shuffle($q);
}
?>
<div class="basic-keyword">
	<?php 
for ($i = 0; $i < $q_cnt; $i++) {
    ?>
		<span class="stx">
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:widget.php

示例8: apms_script

function apms_script($name)
{
    if ($name == 'code') {
        if (!defined('APMS_CODE')) {
            define('APMS_CODE', true);
            add_stylesheet('<link rel="stylesheet" href="' . APMS_PLUGIN_URL . '/syntaxhighlighter/styles/shCoreDefault.css">', -1);
            $code_script = '<script src="' . APMS_PLUGIN_URL . '/syntaxhighlighter/scripts/shCore.js"></script>' . PHP_EOL;
            $code_script .= '<script src="' . APMS_PLUGIN_URL . '/syntaxhighlighter/scripts/shBrushJScript.js"></script>' . PHP_EOL;
            $code_script .= '<script src="' . APMS_PLUGIN_URL . '/syntaxhighlighter/scripts/shBrushPhp.js"></script>' . PHP_EOL;
            $code_script .= '<script src="' . APMS_PLUGIN_URL . '/syntaxhighlighter/scripts/shBrushCss.js"></script>' . PHP_EOL;
            $code_script .= '<script src="' . APMS_PLUGIN_URL . '/syntaxhighlighter/scripts/shBrushXml.js"></script>' . PHP_EOL;
            $code_script .= '<script>var is_SyntaxHighlighter = true; SyntaxHighlighter.all(); </script>';
            add_javascript($code_script, 99);
        }
    } else {
        if ($name == 'imagesloaded') {
            if (!defined('APMS_IMAGESLOADED')) {
                define('APMS_IMAGESLOADED', true);
                add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/imagesloaded.pkgd.min.js"></script>', 0);
            }
        } else {
            if ($name == 'infinite') {
                if (!defined('APMS_INFINITESCROLL')) {
                    define('APMS_INFINITESCROLL', true);
                    add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/jquery.infinitescroll.min.js"></script>', 0);
                }
            } else {
                if ($name == 'masonry') {
                    if (!defined('APMS_MASONRY')) {
                        define('APMS_MASONRY', true);
                        add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/masonry.pkgd.min.js"></script>', 0);
                    }
                } else {
                    if ($name == 'swipe') {
                        if (!defined('APMS_SWIPE')) {
                            define('APMS_SWIPE', true);
                            add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/jquery.mobile.swipe.min.js"></script>', 0);
                        }
                    } else {
                        if ($name == 'touch') {
                            if (!defined('APMS_TOUCH')) {
                                define('APMS_TOUCH', true);
                                add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/jquery.touchwipe.min.js"></script>', 0);
                            }
                        } else {
                            if ($name == 'height') {
                                if (!defined('APMS_MATCHHEIGHT')) {
                                    define('APMS_MATCHHEIGHT', true);
                                    add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/jquery.matchHeight-min.js"></script>', 0);
                                }
                            } else {
                                if ($name == 'modal') {
                                    if (!defined('APMS_MODAL')) {
                                        define('APMS_MODAL', true);
                                        include_once G5_LIB_PATH . '/apms.modal.lib.php';
                                    }
                                    return ' onclick="view_modal(this.href); return false;"';
                                } else {
                                    if ($name == 'lazy') {
                                        if (!defined('APMS_LAZY')) {
                                            define('APMS_LAZY', true);
                                            add_javascript('<script src="' . APMS_PLUGIN_URL . '/js/jquery.lazyload.min.js"></script>', 0);
                                            echo '<script>' . PHP_EOL;
                                            echo '$(function(){' . PHP_EOL;
                                            echo '$("img.alazy").lazyload({ effect : "fadeIn" });' . PHP_EOL;
                                            echo '});' . PHP_EOL;
                                            echo '</script>' . PHP_EOL;
                                        }
                                    } else {
                                        if ($name == 'swiper') {
                                            if (!defined('APMS_SWIPER')) {
                                                define('APMS_SWIPER', true);
                                                add_stylesheet('<link rel="stylesheet" href="' . APMS_PLUGIN_URL . '/swiper/css/swiper.css">', -1);
                                                add_javascript('<script src="' . APMS_PLUGIN_URL . '/swiper/js/swiper.jquery.min.js"></script>', 0);
                                            }
                                        } else {
                                            if ($name == 'datepicker') {
                                                if (!defined('APMS_DATEPICKER')) {
                                                    define('APMS_DATEPICKER', true);
                                                    add_stylesheet('<link rel="stylesheet" href="' . APMS_PLUGIN_URL . '/datepicker/css/bootstrap-datetimepicker.min.css">', -1);
                                                    $datepicker_script = '<script src="' . APMS_PLUGIN_URL . '/datepicker/js/moment-with-locales.min.js"></script>' . PHP_EOL;
                                                    $datepicker_script .= '<script src="' . APMS_PLUGIN_URL . '/datepicker/js/bootstrap-datetimepicker.js"></script>';
                                                    add_javascript($datepicker_script, 0);
                                                }
                                            } else {
                                                if ($name == 'scrollbar') {
                                                    if (!defined('APMS_SCROLLBAR')) {
                                                        define('APMS_SCROLLBAR', true);
                                                        add_stylesheet('<link rel="stylesheet" href="' . APMS_PLUGIN_URL . '/perfect-scrollbar/perfect-scrollbar.min.css">', -1);
                                                        add_javascript('<script src="' . APMS_PLUGIN_URL . '/perfect-scrollbar/perfect-scrollbar.jquery.min.js"></script>', 0);
                                                    }
                                                } else {
                                                    if ($name == 'accordion') {
                                                        if (!defined('APMS_ACCORDION')) {
                                                            define('APMS_ACCORDION', true);
                                                            add_stylesheet('<link rel="stylesheet" href="' . APMS_PLUGIN_URL . '/accordion/accordion.css">', -1);
                                                            add_javascript('<script src="' . APMS_PLUGIN_URL . '/accordion/accordion.js"></script>', 0);
                                                        }
                                                    } else {
                                                        if ($name == 'lightbox') {
//.........这里部分代码省略.........
开发者ID:peb317,项目名称:gbamn,代码行数:101,代码来源:apms.lib.php

示例9: array

} else {
    $script[] = $board_skin_path . "/mw.js/jquery-ui-1.8.19.custom.min.js";
}
/* css */
$css = array();
$css[] = $board_skin_path . "/style.common.css?" . filemtime($board_skin_path . "/style.common.css");
$css[] = $board_skin_path . "/mw.js/ui-lightness/jquery-ui-1.9.2.custom.min.css";
$css[] = $board_skin_path . "/mw.js/mw.star.rate/jquery.mw.star.rate.css";
$css[] = $board_skin_path . "/mw.css/font-awesome-4.4.0/css/font-awesome.css";
/* ---- */
foreach ($css as $c) {
    if (defined("_MW_MOBILE_")) {
        echo "<link rel=\"stylesheet\" href=\"{$c}\"></script>" . PHP_EOL;
    } else {
        if (is_g5()) {
            add_stylesheet("<link rel=\"stylesheet\" href=\"{$c}\"/>");
        } else {
            echo "<link rel=\"stylesheet\" href=\"{$c}\"></script>" . PHP_EOL;
        }
    }
}
foreach ($script as $s) {
    if (defined("_MW_MOBILE_")) {
        echo "<script src=\"{$s}\"></script>" . PHP_EOL;
    } else {
        if (is_g5()) {
            add_javascript("<script src=\"{$s}\"></script>");
        } else {
            echo "<script src=\"{$s}\"></script>" . PHP_EOL;
        }
    }
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:mw.asset.php

示例10: check_demo

<?php

$sub_menu = '300820';
include_once './_common.php';
check_demo();
auth_check($auth[$sub_menu], 'r');
// http://www.jqplot.com/
add_stylesheet('<link rel="stylesheet" href="' . G5_PLUGIN_URL . '/jqplot/jquery.jqplot.css">', 0);
add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/jquery.jqplot.js"></script>', 0);
add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/plugins/jqplot.canvasTextRenderer.min.js"></script>', 0);
add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/plugins/jqplot.categoryAxisRenderer.min.js"></script>', 0);
add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/plugins/jqplot.pointLabels.min.js"></script>', 0);
add_javascript('<!--[if lt IE 9]><script src="' . G5_PLUGIN_URL . '/jqplot/excanvas.js"></script><![endif]-->', 0);
if (!($graph == 'line' || $graph == 'bar')) {
    $graph = 'line';
}
if ($graph == 'bar') {
    // 바 타입으로 사용하는 코드입니다.
    add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/jqplot.barRenderer.min.js"></script>', 0);
    add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/jqplot.categoryAxisRenderer.min.js"></script>', 0);
    add_javascript('<script src="' . G5_PLUGIN_URL . '/jqplot/jqplot.pointLabels.min.js"></script>', 0);
}
$g5['title'] = '글,댓글 현황';
include_once './admin.head.php';
$period_array = array('오늘' => array('시간', 0), '어제' => array('시간', 0), '7일전' => array('일', 7), '14일전' => array('일', 14), '30일전' => array('일', 30), '3개월전' => array('주', 90), '6개월전' => array('주', 180), '1년전' => array('월', 365), '2년전' => array('월', 365 * 2), '3년전' => array('월', 365 * 3), '5년전' => array('년', 365 * 5), '10년전' => array('년', 365 * 10));
$is_period = false;
foreach ($period_array as $key => $value) {
    if ($key == $period) {
        $is_period = true;
        break;
    }
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:31,代码来源:write_count.php

示例11: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
include_once G5_LIB_PATH . '/thumbnail.lib.php';
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/css/style.css">', 0);
?>
<div class="panel panel-default">
<div class="panel-heading">
		<h5><i class="fa fa-bar-chart-o"></i> <?php 
echo $board['bo_subject'];
?>
<span class="sound_only"> 목록</span></h5>
</div>

<!-- 게시판 목록 시작 { -->
<div id="bo_gall" style="width:<?php 
echo $width;
?>
" class="panel-body table-content">

    <!-- 게시판 카테고리 시작 { -->
    <?php 
if ($is_category) {
    ?>
    <nav id="bo_cate">
        <ol class="breadcrumb" id="bo_cate_ul">
            <?php 
开发者ID:kimyongyeon,项目名称:myproject,代码行数:31,代码来源:list.skin.php

示例12: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $admin_qa_skin_url . '/style.css">', 1);
?>

<section id="bo_w">
    <!-- 게시물 작성/수정 시작 { -->
    <form name="fwrite" id="fwrite" action="<?php 
echo $action_url;
?>
" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
    <input type="hidden" name="w" value="<?php 
echo $w;
?>
">
    <input type="hidden" name="qa_id" value="<?php 
echo $qa_id;
?>
">
    <input type="hidden" name="sca" value="<?php 
echo $sca;
?>
">
    <input type="hidden" name="stx" value="<?php 
echo $stx;
?>
开发者ID:najinsu,项目名称:nsle,代码行数:31,代码来源:write.skin.php

示例13: add_stylesheet

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
// StyleSheet
add_stylesheet('<link rel="stylesheet" href="' . $item_skin_url . '/style.css" type="text/css" media="screen">', 0);
?>

<style>
	body { background: #fff; padding:20px 20px 0px; margin:0px; }
</style>

<div class="form-box">
	<div class="form-header">
		<h2>Q & A</h2>
	</div>
	<div class="form-body">

		<form name="fitemqa" class="form-light padding-15" role="form" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
			<input type="hidden" name="w" value="<?php 
echo $w;
?>
">
			<input type="hidden" name="it_id" value="<?php 
echo $it_id;
?>
">
			<input type="hidden" name="iq_id" value="<?php 
echo $iq_id;
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:itemqaform.skin.php

示例14: count

        $col_name = 'one';
    } else {
        // Two Column
        $container = '';
        $col_name = 'two';
        $col_side = 12 - $col_content;
    }
}
// 메뉴수
$menu_cnt = count($menu);
//Stylesheet
$bootstrap_css = _RESPONSIVE_ ? 'bootstrap.min.css' : 'bootstrap-apms.min.css';
$add_stylesheet = '<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,300,500,500italic,700,900,400italic,700italic">';
$add_stylesheet .= PHP_EOL . '<link rel="stylesheet" href="' . THEMA_URL . '/assets/bs3/css/' . $bootstrap_css . '" type="text/css" media="screen" class="thema-mode">';
$add_stylesheet .= PHP_EOL . '<link rel="stylesheet" href="' . COLORSET_URL . '/colorset.css" type="text/css" media="screen" class="thema-colorset">';
add_stylesheet($add_stylesheet, 0);
$add_stylesheet = '';
//Reset
// 서브메뉴 너비
$is_subw = isset($at_set['subw']) && $at_set['subw'] > 0 ? $at_set['subw'] : 180;
// Social Icon
$sns_share_url = IS_YC && IS_SHOP ? G5_SHOP_URL : G5_URL;
$sns_share_title = get_text($config['cf_title']);
$sns_share_img = THEMA_URL . '/assets/img';
$sns_share_icon = '<div class="sns-share-icon">' . PHP_EOL;
$sns_share_icon .= get_sns_share_link('facebook', $sns_share_url, $sns_share_title, $sns_share_img . '/sns_fb.png') . PHP_EOL;
$sns_share_icon .= get_sns_share_link('twitter', $sns_share_url, $sns_share_title, $sns_share_img . '/sns_twt.png') . PHP_EOL;
$sns_share_icon .= get_sns_share_link('googleplus', $sns_share_url, $sns_share_title, $sns_share_img . '/sns_goo.png') . PHP_EOL;
$sns_share_icon .= get_sns_share_link('kakaostory', $sns_share_url, $sns_share_title, $sns_share_img . '/sns_kakaostory.png') . PHP_EOL;
$sns_share_icon .= get_sns_share_link('kakaotalk', $sns_shareurl, $sns_share_title, $sns_share_img . '/sns_kakao.png') . PHP_EOL;
$sns_share_icon .= get_sns_share_link('naverband', $sns_share_url, $sns_share_title, $sns_share_img . '/sns_naverband.png') . PHP_EOL;
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:thema.php

示例15: add_stylesheet

<?php

if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="http://cdn.oesmith.co.uk/morris-0.4.3.min.css">', 0);
?>

<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="http://cdn.oesmith.co.uk/morris-0.4.3.min.js"></script>

<?php 
if (IS_SELLER) {
    ?>
	<h1><i class="fa fa-shopping-cart"></i> Seller's Summary</h1>

	<div class="row en font-14">
		<div class="col-lg-3 col-md-6">
			<div class="panel panel-info">
				<div class="panel-heading">
					<div class="row">
						<div class="col-sm-4 hidden-xs">
							<i class="fa fa-shopping-cart fa-5x"></i>
						</div>
						<div class="col-sm-8 col-xs-12 text-right">
							<p class="announcement-heading"><?php 
    echo number_format($today_sales);
    ?>
</p>
							<p class="announcement-text">Today's Sales</p>
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:dashboard.skin.php


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