mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Moved css data to e107.css and removed e_css.php file.
This commit is contained in:
@@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*
|
|
||||||
* e107 website system
|
|
||||||
*
|
|
||||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
|
||||||
* Released under the terms and conditions of the
|
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
||||||
*
|
|
||||||
* Unobtrusive JS support
|
|
||||||
*
|
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_files/e_css.php,v $
|
|
||||||
* $Revision$
|
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*/
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
|
||||||
// No JavaScript support using CSS
|
|
||||||
// How to use:
|
|
||||||
// - For elements that are to be permanently hidden when JavaScript is enabled, set CSS class to e-hide-if-js
|
|
||||||
// - For elements that are to be permanently shown when JavaScript is enabled, set CSS class to e-show-if-js
|
|
||||||
// - For elements to be temporarily hidden when JavaScript is enabled (so that they may later be shown using JavaScript), set CSS class to e-hideme
|
|
||||||
|
|
||||||
//TODO basic stuff so - work in progress - questions
|
|
||||||
// - Should the CSS just be in two CSS files (more server requests per page load)
|
|
||||||
// - Should the JavaScript go in the core JS file? Potentially better here to keep this all together
|
|
||||||
// - Should this even be a separate file? (extra PHP include per page load)
|
|
||||||
echo "
|
|
||||||
<style type='text/css' id='e-core-css'>
|
|
||||||
/* Used to hide elements when JavaScript is enabled */
|
|
||||||
.e-hide-if-js { display: none; }
|
|
||||||
</style>
|
|
||||||
<style type='text/css' id='e-js-css'>
|
|
||||||
/* Used to show elements when JavaScript is disabled */
|
|
||||||
.e-show-if-js { display: none; }
|
|
||||||
|
|
||||||
/* Used to hide elements when JavaScript is disabled */
|
|
||||||
.e-hide-if-js { display: block; }
|
|
||||||
a.e-hide-if-js,
|
|
||||||
span.e-hide-if-js,
|
|
||||||
button.e-hide-if-js { display: inline; }
|
|
||||||
</style>
|
|
||||||
";
|
|
||||||
?>
|
|
@@ -307,7 +307,7 @@ echo "\n<!-- footer_inline_css -->\n";
|
|||||||
//
|
//
|
||||||
// Style for unobtrusive JS, prevent 3rd party code overload
|
// Style for unobtrusive JS, prevent 3rd party code overload
|
||||||
//
|
//
|
||||||
require_once(e_FILE."/e_css.php");
|
// require_once(e_FILE."/e_css.php"); see e107_web/css/e107.css
|
||||||
|
|
||||||
//
|
//
|
||||||
// E: Send JS all in once
|
// E: Send JS all in once
|
||||||
|
@@ -193,7 +193,7 @@ div.e-comment-edit-save { margin-top:8px; padding: 5px }
|
|||||||
.divider { border-bottom: 1px solid silver; font-size: 18px; margin-bottom: 30px; position: relative; text-align: center; }
|
.divider { border-bottom: 1px solid silver; font-size: 18px; margin-bottom: 30px; position: relative; text-align: center; }
|
||||||
.divider span { padding: 0 15px; position: relative; top: 10px; }
|
.divider span { padding: 0 15px; position: relative; top: 10px; }
|
||||||
|
|
||||||
/* Used to hide elements when JavaScript is enabled */
|
/* Used to hide elements when JavaScript is enabled: old e_css.php */
|
||||||
/*
|
/*
|
||||||
.e-hide-if-js { display: none; }
|
.e-hide-if-js { display: none; }
|
||||||
*/
|
*/
|
||||||
@@ -209,3 +209,5 @@ div.e-comment-edit-save { margin-top:8px; padding: 5px }
|
|||||||
button.e-hide-if-js { display: inline; }
|
button.e-hide-if-js { display: inline; }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user