* * 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, see <http://www.gnu.org/licenses/>. * * The source code of this package is available online at * <http://github.com/atelierspierrot/assets-library>. */ @ini_set('display_errors', 1); @error_reporting(E_ALL ^ E_NOTICE); require_once __DIR__ . '/../../assets-library.php'; css_header(); $dir_left = defined('_CSS_DIRECTION') && _CSS_DIRECTION === 'rtl' ? 'right' : 'left'; $dir_right = defined('_CSS_DIRECTION') && _CSS_DIRECTION === 'rtl' ? 'left' : 'right'; ?> /* -------------------------------- Typography -------------------------------- */ a { color: #003399; font-weight: normal; font-size: inherit; } a:hover { color: #7A63AA; } a:visited { color: #4a6b82; } h1,h2,h3 { color: #444; } h1 { font-size: 1.6em; font-weight: bold; margin: 2em 0 1em 0;padding: 5px 0 6px 0;} h2 { font-size: 1.4em; font-weight: bold; margin: 1em 0 .6em 0;padding: 5px 0 6px 0;} h3 { font-size: 1.2em; font-weight: bold; margin: .6em 0;} div, span, p { padding: 0; margin: 0; }
/** * Build a preset requirements and include it * * @param string $type 'js' or 'css' * @param string $preset * @return void */ function prepare_preset_include($type, $preset) { require_once __DIR__ . '/DependenciesManager.php'; $presets = new DependenciesManager(_ASSETSLIB_MANIFEST); $deps = $presets->findDependencies($preset); if (!empty($deps) && isset($deps[$type])) { $str = ''; foreach ($deps[$type] as $item) { $str .= library_include($item); } if (!empty($str)) { if ($type === 'css') { css_header(); } elseif ($type === 'js') { javascript_header(); } echo $str; } } }