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


PHP e107::css方法代码示例

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


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

示例1: __construct

 function __construct()
 {
     //include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_stats.php');
     //e107::lan('forum','front');
     e107::lan('forum', "front", true);
     e107::css('forum', 'forum.css');
 }
开发者ID:KonzolozZ,项目名称:e107,代码行数:7,代码来源:forum_stats.php

示例2: init

    function init()
    {
        if (E107_DEBUG_LEVEL > 0) {
            $this->adminMenu['ranks/list'] = array('caption' => LAN_USER_RANKS . " (experimental)", 'perm' => '4|U3');
        }
        $JS = <<<JS

\t\t\t//\t\$('#user-action-indicator-'+user).html('<i class="fa fa-cog"></i>'); //

\t\t\t\$(document).on('click', ".user-action", function(e){
\t\t\t\t// e.stopPropagation();

\t\t\t\tvar action = \$(this).attr('data-action-type');
\t\t\t\tvar user = \$(this).attr('data-action-user');

\t\t\t//\t\$('#user-action-indicator-'+user).html('<i class="fa fa-spin fa-spinner"></i>'); //

\t\t\t\t\$('.user-action-hidden').val(''); // clear all, incase of back-button or auto-fill.
\t\t\t\t\$('#user-action-'+ user).val(action);
\t\t\t\t\$('#core-user-list-form').submit();


\t\t\t\t});
JS;
        e107::js('footer-inline', $JS);
        e107::css('inline', '
			.user-action { cursor: pointer }
			.btn-user-action { margin-right:15px}

		');
    }
开发者ID:armpit,项目名称:e107,代码行数:31,代码来源:users.php

示例3: loadJSAddons

function loadJSAddons()
{
    if (e_PAGE == 'menus.php' && vartrue($_GET['configure'])) {
        return;
    }
    // e107::js('core',    'bootstrap/js/bootstrap-modal.js', 'jquery', 2);  // Special Version see: https://github.com/twitter/bootstrap/pull/4224
    e107::css('core', 'bootstrap-select/bootstrap-select.min.css', 'jquery');
    e107::js('core', 'bootstrap-select/bootstrap-select.min.js', 'jquery', 2);
    e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
    e107::js('core', 'bootstrap-multiselect/js/bootstrap-multiselect.js', 'jquery', 2);
    // TODO: remove typeahead.
    e107::js('core', 'bootstrap-jasny/js/jasny-bootstrap.js', 'jquery', 2);
    e107::css('core', 'bootstrap-datetimepicker/css/datetimepicker.css', 'jquery');
    e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
    e107::js('core', 'jquery.h5validate.min.js', 'jquery', 2);
    e107::js('core', 'jquery.elastic.js', 'jquery', 2);
    e107::js('core', 'jquery.at.caret.min.js', 'jquery', 2);
    // e107::js('core', 	'jquery-ui-timepicker-addon.js', 'jquery', 2);
    //e107::css('core', 	'chosen/chosen.css', 'jquery');
    //e107::js('core', 	'chosen/chosen.jquery.min.js', 'jquery', 2);
    // e107::js('core', 	'password/jquery.pwdMeter.js', 'jquery', 2); // loaded in form-handler.
    // e107::css('core', 	'bootstrap-tag/bootstrap-tag.css', 'jquery');
    //	e107::js('core', 	'bootstrap-tag/bootstrap-tag.js', 'jquery', 2);
    //	e107::js("core",	"tags/jquery.tagit.js","jquery",3);
    //	e107::css('core', 	'tags/jquery.tagit.css', 'jquery');
    e107::css('core', 'core/admin.jquery.css', 'jquery');
    e107::js("core", "core/admin.jquery.js", "jquery", 4);
    // Load all default functions.
    e107::css('core', 'core/all.jquery.css', 'jquery');
    e107::js("core", "core/all.jquery.js", "jquery", 4);
    // Load all default functions.
}
开发者ID:8moustapha8,项目名称:e107,代码行数:32,代码来源:header.php

示例4: init

    public function init()
    {
        e107::plugLan('gallery', 'front');
        e107::js('gallery', 'jslib/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery');
        e107::css('gallery', 'jslib/prettyPhoto/css/prettyPhoto.css', 'jquery');
        e107::css('gallery', 'gallery_style.css');
        $prettyPhoto = <<<JS
\$(document).ready(function(){
    \$("a[data-gal^='prettyPhoto']").prettyPhoto(
\t    {
\t    \thook: 'data-gal',
\t    \ttheme: 'pp_default',
\t    \toverlay_gallery: false,
\t    \tdeeplinking: false
\t    }
    );
  });
JS;
        e107::js('footer-inline', $prettyPhoto, 'jquery');
        $this->catList = e107::getMedia()->getCategories('gallery');
    }
开发者ID:armpit,项目名称:e107,代码行数:21,代码来源:index.php

示例5: loadJSAddons

function loadJSAddons()
{
    if (e_PAGE == 'menus.php' && vartrue($_GET['configure'])) {
        return;
    }
    // e107::js('core',    'bootstrap/js/bootstrap-modal.js', 'jquery', 2);  // Special Version see: https://github.com/twitter/bootstrap/pull/4224
    e107::css('core', 'bootstrap-editable/css/bootstrap-editable.css', 'jquery');
    e107::js('core', 'bootstrap-editable/js/bootstrap-editable.min.js', 'jquery', 2);
    //	e107::css('url', 		"//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/css/bootstrap-editable.css");
    //	e107::js('url', 		"//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/js/bootstrap-editable.min.js");
    e107::css('core', 'bootstrap-select/bootstrap-select.min.css', 'jquery');
    e107::js('core', 'bootstrap-select/bootstrap-select.min.js', 'jquery', 2);
    e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
    e107::js('core', 'bootstrap-multiselect/js/bootstrap-multiselect.js', 'jquery', 2);
    // TODO: remove typeahead.
    e107::js('core', 'bootstrap-jasny/js/jasny-bootstrap.js', 'jquery', 2);
    e107::css('core', 'bootstrap-datetimepicker/css/datetimepicker.css', 'jquery');
    e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
    e107::js('core', 'jquery.h5validate.min.js', 'jquery', 2);
    if (e_LAN != 'en') {
        e107::js('inline', buildDateLocale(), 'jquery', 2);
    }
    e107::js('core', 'jquery.elastic.js', 'jquery', 2);
    e107::js('core', 'jquery.at.caret.min.js', 'jquery', 2);
    // e107::js('core', 	'jquery-ui-timepicker-addon.js', 'jquery', 2);
    //e107::css('core', 	'chosen/chosen.css', 'jquery');
    //e107::js('core', 	'chosen/chosen.jquery.min.js', 'jquery', 2);
    e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2);
    // e107::css('core', 	'bootstrap-tag/bootstrap-tag.css', 'jquery');
    e107::js('core', 'bootstrap-tag/bootstrap-tag.js', 'jquery', 2);
    //	e107::js("core",	"tags/jquery.tagit.js","jquery",3);
    //	e107::css('core', 	'tags/jquery.tagit.css', 'jquery');
    e107::css('core', 'core/admin.jquery.css', 'jquery');
    e107::js("core", "core/admin.jquery.js", "jquery", 4);
    // Load all default functions.
    e107::css('core', 'core/all.jquery.css', 'jquery');
    e107::js("core", "core/all.jquery.js", "jquery", 4);
    // Load all default functions.
}
开发者ID:gitye,项目名称:e107,代码行数:39,代码来源:header.php

示例6: customPage

    public function customPage()
    {
        // TODO: Utilize the URL instead of the local file.
        // First, I have to figure out why it won't load!
        e107::js('forecasty', 'assets/googlemaps.js', 'jquery');
        //		e107::js('url', 'http://maps.googleapis.com/maps/api/js?sensor=false');
        e107::js('forecasty', 'assets/jquery-gmaps-latlon-picker.js', 'jquery');
        e107::css('forecasty', 'assets/jquery-gmaps-latlon-picker.css');
        $text = '
		The below accepts many different formats of locations:
		<ul>
			<li>Zip Codes</li>
			<li>City, State</li>
			<li>City, Country</li>
			<li>State</li>
			<li>.. etc.</li>
		</ul>

		You can also fine tune your location by dragging and double clicking the map.
		<br /><br />
		<fieldset class="gllpLatlonPicker">
			<input type="text" class="gllpSearchField">
			<input type="button" class="gllpSearchButton" value="Search">
			<div class="gllpMap">Google Maps</div>
			Latitude: <input type="text" class="gllpLatitude" value="-76.61483160837915">
			<br />
			Longitude: <input type="text" class="gllpLongitude" value="19.218757152557373">
			<input type="hidden" class="gllpZoom" value="3">
		</fieldset>
		<br /><br />
		For your Fallback Location you need Latitude,Longitude in that exact format.<br /><br />

		This page will be updated to work, flow, and look better in the future.
		';
        return $text;
    }
开发者ID:gitter-badger,项目名称:forecasty,代码行数:36,代码来源:admin_config.php

示例7: header

 *
 *
 *
 * $Source: /cvs_backup/e107_0.8/e107_admin/theme.php,v $
 * $Revision$
 * $Date$
 * $Author$
 */
require_once "../class2.php";
if (!getperms("1")) {
    header("location:" . e_BASE . "index.php");
    exit;
}
include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE);
$e_sub_cat = 'theme_manage';
e107::css("inline", "\n.hide\t\t\t\t\t\t{ display: none }\n.admin-theme-thumb\t\t\t{ height:130px;overflow:hidden;border:1px solid black;margin-bottom:10px   }\n.admin-theme-thumb:hover\t{ opacity:0.4 }\n\n.admin-theme-options\t\t{ transition: opacity .20s ease-in-out;\n\t\t\t\t\t\t\t -moz-transition: opacity .20s ease-in-out;\n\t\t\t\t\t\t\t -webkit-transition: opacity .20s ease-in-out;\n\t\t\t\t\t\t\t opacity:0; \n\t\t\t\t\t\t\t width:100%;\n\t\t\t\t\t\t\t height:80px;\n\t\t\t\t\t\t\t padding-top:50px;\n\t\t\t\t\t\t\t white-space:nowrap;\n\t\t\t\t\t\t\t background-color:black;\n\t\t\t\t\t\t\t display:block;position:relative; text-align:center; vertical-align:middle; top:-141px;}\n\n.admin-theme-options:hover\t{ opacity:0.8; }\n\n.admin-theme-title\t\t\t{ font-size: 15px; overflow:hidden; padding-left:5px; white-space:no-wrap; width:200px; position:relative; top:-132px; }\n\n.admin-theme-select\t\t\t{border:1px dotted silver;background-color:#DDDDDD;float:left }\n\n.admin-theme-select-active\t{ background-color:red;float:left }\n\n.admin-theme-cell\t\t\t{ width:202px; height:160px; padding:10px; -moz-border-radius: 5px; border-radius: 5px; margin:5px}\n\n.admin-theme-cell-default   { border:1px dotted silver; background-color:#DDDDDD }\n\n\n\n.admin-theme-cell-site\t\t{ background-color: #d9edf7;  border: 1px solid #bce8f1; }\n\n.admin-theme-cell-admin\t \t{ background-color:#FFFFD5; border: 1px solid #FFCC00; }\n\n\n");
require_once e_HANDLER . "theme_handler.php";
$themec = new themeHandler();
if (e_AJAX_REQUEST) {
    define('e_IFRAME', true);
}
if (e_AJAX_REQUEST) {
    $data = $themec->getThemeInfo('jayya');
    echo $themec->renderThemeInfo($data);
    exit;
} else {
    require_once "auth.php";
    echo '

		 <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			    <div class="modal-header">
开发者ID:notzen,项目名称:e107,代码行数:31,代码来源:theme.php

示例8: browserCarousel

    /**
     * Carousel Item Browser. 
     * @param array|string $data - array for items or string for an error alert.
     * @param array $parm
     * @return string
     */
    function browserCarousel($data, $parm = null)
    {
        /* Fix for Bootstrap2 margin-left issue when wrapping */
        e107::css('inline', '
				
		.media-carousel { margin-bottom:15px }
		
		.row-fluid .media-carousel.span6:nth-child(2n + 3) { margin-left : 0px; }
		.row-fluid .media-carousel.span4:nth-child(3n + 4) { margin-left : 0px; }
		.row-fluid .media-carousel.span3:nth-child(4n + 5) { margin-left : 0px; }
		.row-fluid .media-carousel.span2:nth-child(6n + 7) { margin-left : 0px; }
		');
        $frm = e107::getForm();
        //	$text .= print_a($_GET,true);
        $data_src = $this->mediaSelectNav($category, $parm['tagid'], $parm);
        $carouselID = 'myCarousel-' . $parm['action'];
        $searchToolttip = empty($parm['searchTooltip']) ? "Enter some text to filter results" : $parm['searchTooltip'];
        //$text = "<form class='form-search' action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='get'>";
        if (!e_AJAX_REQUEST) {
            $searchPlaceholder = varset($parm['searchPlaceholder'], LAN_SEARCH);
            $text = '<div class="btn-group"><span class="input-append form-inline">';
            $text .= "<input type='text' class='e-ajax-keyup input-xxlarge ' placeholder= '" . $searchPlaceholder . "...' title=\"" . $searchToolttip . "\" name='search' value=''  data-target='media-browser-container-" . $parm['action'] . "' data-src='" . $data_src . "' />";
            //		$text .= "<span class='field-help'>bablalal</span>";
            //	$text .= '<button class="btn btn-primary" name="'.$submitName.'" type="submit">'.LAN_GO.'</button>';
            $text .= '<a class="btn btn-primary" href="#' . $carouselID . '" data-slide="prev">&lsaquo;</a><a class="btn btn-primary" href="#' . $carouselID . '" data-slide="next">&rsaquo;</a>';
            $text .= "</span>";
            $text .= "</div>";
            $text .= "<div id='media-browser-container-" . $parm['action'] . "' class='form-inline clearfix row-fluid'>";
        }
        //	$text .= $this->search('srch', $srch, 'go', $filterName, $filterArray, $filterVal).$frm->hidden('mode','online');
        $text .= '<div id="' . $carouselID . '"  class="carousel slide" data-interval="false">';
        $text .= '{INDICATORS}';
        $text .= '<div style="margin-top:10px" class="carousel-inner">';
        //	$text .= "<div class='item active'>";
        $perPage = vartrue($parm['perPage'], 12);
        $c = 0;
        $slides = array();
        if (is_array($data) && count($data) > 0) {
            foreach ($data as $key => $val) {
                if ($c == 0) {
                    $active = count($slides) < 1 ? ' active' : '';
                    $text .= '

							<!-- Start Slide -->
							<div class="item' . $active . '">';
                    if (vartrue($val['slideCaption'])) {
                        $text .= "<h4>" . $val['slideCaption'] . "</h4>";
                    }
                }
                $val['width'] = $parm['width'];
                $val['height'] = $parm['height'];
                $val['id'] = $parm['id'];
                $val['tagid'] = $parm['tagid'];
                $val['type'] = $parm['type'];
                $val['bbcode'] = $parm['bbcode'];
                $val['gridClass'] = $parm['gridClass'];
                $text .= $this->browserCarouselItem($val);
                $c++;
                if (varset($val['slideCategory']) && isset($prevCat)) {
                    if ($val['slideCategory'] !== $prevCat) {
                        $c = $perPage;
                    }
                    $prevCat = $val['slideCategory'];
                }
                if ($c == $perPage) {
                    $text .= '
							</div>
							<!-- End Slide -->

							';
                    $slides[] = 1;
                    $c = 0;
                }
            }
        } elseif (is_string($data)) {
            $text .= "<div style='line-height: 1.5;'>" . $data . "</div>";
        } else {
            $text .= "<div class='alert alert-info alert-block text-center'>No Results Found.</div>";
        }
        $text .= $c != 0 ? "</div>\n<!-- End Slide -->\n" : "";
        $text .= "</div>";
        $text .= "\n<!-- End Carousel -->\n<div class='clearfix'>&nbsp;</div>\n\n";
        if (!e_AJAX_REQUEST) {
            $text .= "</div></div>";
        }
        $ret = str_replace('{INDICATORS}', $this->browserIndicators($slides, $carouselID), $text);
        if (E107_DEBUG_LEVEL > 0) {
            //		print_a($parm);
        }
        return $ret;
    }
开发者ID:KonzolozZ,项目名称:e107,代码行数:97,代码来源:media_class.php

示例9: include_components

 /**
  * Include necessary CSS and JS files
  */
 function include_components()
 {
     e107::css('nodejs_online', 'css/nodejs_online.css');
     e107::js('footer', '{e_PLUGIN}nodejs_online/js/nodejs_online.js', 'jquery', 5);
 }
开发者ID:lonalore,项目名称:nodejs_online,代码行数:8,代码来源:e_header.php

示例10: header

 *
 * @package     e107
 * @subpackage	frontend
 * @version     $Id: cron.php 12492 2011-12-30 16:09:10Z e107steved $
 *	Ultra-simple Image-Gallery
 */
require_once "../../class2.php";
if (!e107::isInstalled('gallery')) {
    header('location:' . e_BASE . 'index.php');
    exit;
}
e107::js('gallery', 'jslib/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery');
e107::css('gallery', 'jslib/prettyPhoto/css/prettyPhoto.css', 'jquery');
e107::css('gallery', 'gallery_style.css');
// Work-around for indent issue. see: https://github.com/twitter/bootstrap/issues/4890
e107::css('inline', "\r\n/* Gallery CSS */\r\n.thumbnails .span2:nth-child(6n+1) {\r\nmargin-left:0;\r\n}", 'jquery');
$prettyPhoto = <<<JS
\$(document).ready(function(){
    \$("a[data-gal^='prettyPhoto']").prettyPhoto(
\t    {
\t    \thook: 'data-gal',
\t    \ttheme: 'pp_default', /* pp_default , light_rounded , dark_rounded , light_square , dark_square ,facebook */
\t    \toverlay_gallery: false,
\t    \tdeeplinking: false
\t    }
    );
  });
JS;
e107::js('inline', $prettyPhoto, 'jquery');
require_once HEADERF;
class gallery
开发者ID:armpit,项目名称:e107,代码行数:31,代码来源:gallery.php

示例11: datepicker

    /**
     *	Date field with popup calendar // NEW in 0.8/2.0
     *
     * @param string $name the name of the field
     * @param integer $datestamp UNIX timestamp - default value of the field
     * @param array or str 
     * @example $frm->datepicker('my_field',time(),'type=date');
     * @example $frm->datepicker('my_field',time(),'type=datetime&inline=1');
     * @example $frm->datepicker('my_field',time(),'type=date&format=yyyy-mm-dd');
     * @example $frm->datepicker('my_field',time(),'type=datetime&format=MM, dd, yyyy hh:ii');
     * 
     * @url http://trentrichardson.com/examples/timepicker/
     */
    function datepicker($name, $datestamp = false, $options = null)
    {
        if (vartrue($options) && is_string($options)) {
            parse_str($options, $options);
        }
        $type = varset($options['type']) ? trim($options['type']) : "date";
        // OR  'datetime'
        $dateFormat = varset($options['format']) ? trim($options['format']) : e107::getPref('inputdate', '%Y-%m-%d');
        $ampm = preg_match("/%l|%I|%p|%P/", $dateFormat) ? 'true' : 'false';
        $value = null;
        if ($type == 'datetime' && !varset($options['format'])) {
            $dateFormat .= " " . e107::getPref('inputtime', '%H:%M:%S');
        }
        $dformat = e107::getDate()->toMask($dateFormat);
        $id = $this->name2id($name);
        $classes = array('date' => 'e-date', 'datetime' => 'e-datetime');
        if ($datestamp) {
            $value = is_numeric($datestamp) ? e107::getDate()->convert_date($datestamp, $dateFormat) : $datestamp;
            //date("d/m/Y H:i:s", $datestamp);
        }
        $text = "";
        //	$text .= 'dformat='.$dformat.'  defdisp='.$dateFormat;
        $class = isset($classes[$type]) ? $classes[$type] : "tbox e-date";
        $size = vartrue($options['size']) ? intval($options['size']) : 40;
        $required = vartrue($options['required']) ? "required" : "";
        $firstDay = vartrue($options['firstDay']) ? $options['firstDay'] : 0;
        $xsize = vartrue($options['size']) && !is_numeric($options['size']) ? $options['size'] : 'xlarge';
        if (vartrue($options['inline'])) {
            $text .= "<div class='{$class}' id='inline-{$id}' data-date-format='{$dformat}'  data-date-ampm='{$ampm}' data-date-firstday='{$firstDay}' ></div>\r\n\t\t\t\t<input  type='hidden' name='{$name}' id='{$id}' value='{$value}' data-date-format='{$dformat}'  data-date-ampm='{$ampm}' data-date-firstday='{$firstDay}' />\r\n\t\t\t";
        } else {
            $text .= "<input class='{$class} input-" . $xsize . " form-control' type='text' size='{$size}' name='{$name}' id='{$id}' value='{$value}' data-date-format='{$dformat}' data-date-ampm='{$ampm}'  data-date-language='" . e_LAN . "' data-date-firstday='{$firstDay}' {$required} />";
        }
        //	$text .= "ValueFormat: ".$dateFormat."  Value: ".$value;
        //	$text .= " ({$dformat}) type:".$dateFormat." ".$value;
        // Load it in the footer.
        e107::css('core', 'bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css', 'jquery');
        e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
        if (e_LANGUAGE !== 'English') {
            e107::js('footer-inline', e107::getDate()->buildDateLocale());
        }
        e107::js('footer-inline', '
			$("input.e-date").each(function() {
        		$(this).datetimepicker({
        			minView: "month",
        			maxView: "decade",
        			autoclose: true,
        			format: $(this).attr("data-date-format"),
        			weekStart: $(this).attr("data-date-firstday"),
        			language: $(this).attr("data-date-language")
        		 });
    		});

    		$("input.e-datetime").each(function() {
        		$(this).datetimepicker({
        			autoclose: true,
        			format: $(this).attr("data-date-format"),
        			weekStart: $(this).attr("data-date-firstday"),
        			showMeridian: $(this).attr("data-date-ampm"),
        			language: $(this).attr("data-date-language")
        		 });
    		});
    		');
        return $text;
    }
开发者ID:armpit,项目名称:e107,代码行数:77,代码来源:form_handler.php

示例12: define

<?php

/**
 * Bootstrap 3 Theme for e107 v2.x
 */
if (!defined('e107_INIT')) {
    exit;
}
define("BOOTSTRAP", 3);
define("FONTAWESOME", 4);
define('VIEWPORT', "width=device-width, initial-scale=1.0");
e107::js("url", "http://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js");
e107::css('url', 'http://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css');
e107::css('url', "http://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
e107::js("footer-inline", "\$('.e-tip').tooltip({container: 'body'})");
// activate bootstrap tooltips.
define('OTHERNEWS_COLS', false);
// no tables, only divs.
define('OTHERNEWS_LIMIT', 3);
// Limit to 3.
define('OTHERNEWS2_COLS', false);
// no tables, only divs.
define('OTHERNEWS2_LIMIT', 3);
// Limit to 3.
define('COMMENTLINK', e107::getParser()->toGlyph('fa-comment'));
define('COMMENTOFFSTRING', '');
define('PRE_EXTENDEDSTRING', '<br />');
/**
 * @param string $caption
 * @param string $text
 * @param string $id : id of the current render
开发者ID:gitye,项目名称:e107,代码行数:31,代码来源:theme.php

示例13: define

if (!defined('USER_AREA')) {
    //overload is now possible, prevent warnings
    define('USER_AREA', TRUE);
}
define('ADMIN_AREA', FALSE);
$e107 = e107::getInstance();
$sql = e107::getDb();
$sql->db_Mark_Time('(Header Top)');
e107::js('core', 'bootstrap/js/bootstrap-tooltip.js', 'jquery');
e107::css('core', 'bootstrap/css/tooltip.css', 'jquery');
e107::js('core', 'bootstrap-notify/js/bootstrap-notify.js', 'jquery');
e107::css('core', 'bootstrap-notify/css/bootstrap-notify.css', 'jquery');
// ------------------
// e107::js('core', 	'jquery.elastic.js', 'jquery', 2);
e107::js('core', 'rate/js/jquery.raty.js', 'jquery', 2);
e107::css('core', 'core/all.jquery.css', 'jquery');
e107::js("core", "core/front.jquery.js", "jquery", 5);
// Load all default functions.
e107::js("core", "core/all.jquery.js", "jquery", 5);
// Load all default functions.
$js_body_onload = array();
// Legacy array of code to load with page.
//
// *** Code sequence for headers ***
// IMPORTANT: These items are in a carefully constructed order. DO NOT REARRANGE
// without checking with experienced devs! Various subtle things WILL break.
//
// We realize this is a bit (!) of a mess and hope to make further cleanups in a future release.
//
// A: Define themable header parsing
// B: Send HTTP headers that come before any html
开发者ID:armpit,项目名称:e107,代码行数:31,代码来源:header_default.php

示例14: define

<?php

define("e_ADMIN_AREA", true);
require_once "../../../../class2.php";
//e107::lan('core','admin',TRUE);
define("e_IFRAME", true);
//require_once(e_ADMIN."auth.php");
if (!USER || check_class($pref['post_html']) == FALSE) {
    exit;
}
e107::css('inline', "\n\n\t.selectEmote \t\t{ display:inline-block; cursor:pointer;margin:3px }\n\tbody\t\t\t\t{ text-align:center }\n\t.area\t\t\t\t{  \n\t\t\t\t\t \t  margin-top:-1px; padding:20px; \n\t\t\t\t\t\t}\n\tspan.badge\t\t\t{ cursor: pointer }\n\tspan.label\t\t\t{ cursor: pointer }\n\tul.glyphicons\t\t{ list-style:none; margin-left:0px; font-size:120%}\n\tul.glyphicons  li\t{ float:left;  cursor:pointer; width:190px; padding:5px; }\n\ta, li\t\t\t\t\t{  outline: 0; }    \n\n");
e107::js('tinymce4', 'plugins/compat3x/tiny_mce_popup.js');
e107::js('inline', "\n\n\$(document).ready(function()\n{\n\t\t\$('#insertButton').click(function () {\n\t\t\t\t\t\t\n\t\t\tvar buttonType = \$('input:radio[name=buttonType]:checked').val();\n\t\t\tvar buttonSize = \$('input:radio[name=buttonSize]:checked').val();\n\t\t\t\t\t\n\t\t\tvar buttonText = \$('#buttonText').val();\n\t\t\tvar buttonUrl = \$('#buttonUrl').val();\n\t\t\t\n\t\t\tvar buttonClass = (buttonType != '') ? 'btn-'+buttonType : '';\n\t\t\t\t\t\n\n\t\t\tvar html = '<a class=\"btn ' + buttonClass + ' ' + buttonSize + '\" href=\"' + buttonUrl + '\" >' + buttonText + '</a>  ';\n\t\t//\talert(html);\t\t\n\t\t\ttinyMCEPopup.editor.execCommand('mceInsertContent', false, html);\n\t\t\ttinyMCEPopup.close();\n\t\t});\n\t\t\n\t\t\n\t\t\$('span.label, span.badge').click(function () {\n                var cls = \$(this).attr('class');\n                var html = '<span class=\"' + cls + '\">' + \$(this).text() + '</span>&nbsp;';\n\t\t\t\ttinyMCEPopup.editor.execCommand('mceInsertContent', false, html);\n\t\t\t\ttinyMCEPopup.close();\n\t\t});\n\t\t\n\t\n\t\t\$('ul.glyphicons li, #glyph-save').click(function () {\n\t\t\n\t\t\t\tvar color = \$('#glyph-color').val();\t\n\t\t\t\tvar custom = \$('#glyph-custom').val();\t\t\t\n                var cls = (custom != '') ? custom : \$(this).find('i').attr('class');\t\n\t\n                var html = '<i class=\"' + cls + '\"></i>&nbsp;';\n\t\t\t\t\n\t\t\t//\talert(html);\n\t\t\t\ttinyMCEPopup.editor.execCommand('mceInsertContent', false, html);\n\t\t\t\ttinyMCEPopup.close();\n\t\t});\n\t\n\t\t\$('#bbcodeInsert').click(function () \n\t\t{\n\t\t\t\ts = \$('#bbcodeValue').val();\n\t\t\t\ts = s.trim(s);\n\t\n\t\t\t\tvar html = \$.ajax({\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\turl: './parser.php',\n\t\t\t\t\tdata: { content: s, mode: 'tohtml' },\n\t\t\t\t\tasync       : false,\n\n\t\t\t\t\tdataType: 'html',\n\t\t\t\t\tsuccess: function(html) {\n\t\t\t\t      return html;\n\t\t\t\t    }\n\t\t\t\t}).responseText;\n\n\t\t\t\thtml = '<bbcode alt=\"'+encodeURIComponent(s)+'\">' + html + '</bbcode>   ' ;\nalert(html);\n\t\t\t\ttinyMCEPopup.editor.execCommand('mceInsertContent', false, html);\n\t\t\t\ttinyMCEPopup.close();\n\t\t});\n\t\n\t\t\$('a.bbcodeSelect').click(function () {\n\t\t\tvar html = \$(this).html();\t\n\t\t\t\$('#bbcodeValue').val(html);\n\t\t});\n\t\t\n\t\t\$('#e-cancel').click(function () {\n\t\t\t\t\t\n\t\t\ttinyMCEPopup.close();\n\t\t});\n\t\t\n});\n\n\n", 'jquery');
class e_bootstrap
{
    private $styleClasses = array('' => 'Default', 'primary' => "Primary", 'success' => "Success", 'info' => "Info", 'warning' => "Warning", 'danger' => "Danger", 'inverse' => "Inverse");
    function init()
    {
        $ns = e107::getRender();
        if (e_QUERY == 'bbcode') {
            echo $this->bbcodeForm();
            return;
        }
        $text = "<div class='alert alert-warning'>Warning: These will only work if you have a bootstrap-based theme installed</div>";
        $text .= '
		<ul class="nav nav-tabs">';
        $text .= '<li class="active" ><a href="#mbuttons" data-toggle="tab">Buttons</a></li>';
        $text .= '<li><a href="#badges" data-toggle="tab">Labels &amp; Badges</a></li>';
        $text .= '<li><a href="#glyphs" data-toggle="tab">Glyphicons</a></li>';
        $text .= '</ul>';
        $text .= '<div class="tab-content">';
开发者ID:gitye,项目名称:e107,代码行数:31,代码来源:dialog.php

示例15: define

*/
if (!defined('e107_INIT')) {
    require_once '../../class2.php';
}
define('NAVIGATION_ACTIVE', 'forum');
// ??
$e107 = e107::getInstance();
$tp = e107::getParser();
$ns = e107::getRender();
$mes = e107::getMessage();
if (!$e107->isInstalled('forum')) {
    header('Location: ' . SITEURL . 'index.php');
    exit;
}
e107::lan('forum', 'English_front');
e107::css('forum', 'forum.css');
class forum_post_handler
{
    private $forumObj;
    private $action;
    private $id;
    private $data;
    function __construct()
    {
        $this->checkForumJump();
        require_once e_PLUGIN . 'forum/forum_class.php';
        // includes LAN file.
        $forum = new e107forum();
        $this->forumObj = $forum;
        $this->action = trim($_GET['f']);
        // action: rp|quote|nt|edit etc.
开发者ID:JBeezygit,项目名称:e107,代码行数:31,代码来源:forum_post.php


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