added print.css and other media types to the default one with a little hack; in a future version this will be redesigned
This commit is contained in:
parent
dd63a10b0d
commit
a05652c00b
@ -149,17 +149,14 @@
|
|||||||
|
|
||||||
echo "\n<!-- FP STD HEADER -->\n";
|
echo "\n<!-- FP STD HEADER -->\n";
|
||||||
|
|
||||||
// echo "\n<link media=\"screen\" href=\"interface/templates/form.css\" type=\"text/css\" rel=\"stylesheet\" />";
|
|
||||||
|
|
||||||
echo "\n<meta name=\"generator\" content=\"FlatPress ". system_ver() ."\" />\n";
|
echo "\n<meta name=\"generator\" content=\"FlatPress ". system_ver() ."\" />\n";
|
||||||
//echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Get RSS 2.0 Feed\" href=\"{$fp_config['general']['www']}rss.php\" />\n";
|
|
||||||
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Get RSS 2.0 Feed\" href=\"".
|
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Get RSS 2.0 Feed\" href=\"".
|
||||||
theme_feed_link('rss2')
|
theme_feed_link('rss2')
|
||||||
."\" />\n";
|
."\" />\n";
|
||||||
|
|
||||||
echo "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"Get Atom 1.0 Feed\" href=\"".
|
echo "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"Get Atom 1.0 Feed\" href=\"".
|
||||||
theme_feed_link('atom')
|
theme_feed_link('atom')
|
||||||
."\" />\n";
|
."\" />\n";
|
||||||
|
|
||||||
|
|
||||||
echo "<!-- EOF FP STD HEADER -->\n";
|
echo "<!-- EOF FP STD HEADER -->\n";
|
||||||
}
|
}
|
||||||
@ -170,7 +167,7 @@
|
|||||||
|
|
||||||
echo "\n<!-- FP STD STYLESHEET -->\n";
|
echo "\n<!-- FP STD STYLESHEET -->\n";
|
||||||
|
|
||||||
echo '<link media="screen" href="';
|
echo '<link media="screen,projection,handheld" href="';
|
||||||
echo BLOG_BASEURL . THEMES_DIR . THE_THEME;
|
echo BLOG_BASEURL . THEMES_DIR . THE_THEME;
|
||||||
|
|
||||||
|
|
||||||
@ -180,6 +177,12 @@
|
|||||||
$substyle = '/'. (isset($fp_config['general']['style'])? $fp_config['general']['style'].'/' : '');
|
$substyle = '/'. (isset($fp_config['general']['style'])? $fp_config['general']['style'].'/' : '');
|
||||||
|
|
||||||
echo $substyle . 'res/'. $css .'" type="text/css" rel="stylesheet" />';
|
echo $substyle . 'res/'. $css .'" type="text/css" rel="stylesheet" />';
|
||||||
|
|
||||||
|
if (@$theme['style']['style_print']) {
|
||||||
|
echo '<link media="print" href="';
|
||||||
|
echo BLOG_BASEURL . THEMES_DIR . THE_THEME;
|
||||||
|
echo $substyle . 'res/'. $theme['style']['style_print'] .'" type="text/css" rel="stylesheet" />';
|
||||||
|
}
|
||||||
|
|
||||||
echo "\n<!-- FP STD STYLESHEET -->\n";
|
echo "\n<!-- FP STD STYLESHEET -->\n";
|
||||||
|
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
/*
|
/*
|
||||||
Style Name: FlatMaas Revisited
|
Style Name: FlatMaas Revisited
|
||||||
Style URI: http://www.flatpress.org/
|
Style URI: http://www.flatpress.org/
|
||||||
Description: (UNFINISHED) The old default of FlatPress, now coming as a Leggero style.
|
Description: The old default of FlatPress, now coming as a Leggero style.
|
||||||
Version: 0.705
|
Version: 0.705
|
||||||
Author: Drudo
|
Author: Drudo
|
||||||
Author URI: http://www.flatpress.org/
|
Author URI: http://www.flatpress.org/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$style['name'] = 'leggero';
|
$style['name'] = 'flatmaas-rev';
|
||||||
$style['author'] = 'NoWhereMan';
|
$style['author'] = 'NoWhereMan';
|
||||||
$style['www'] = 'http://www.flatpress.org/';
|
$style['www'] = 'http://www.flatpress.org/';
|
||||||
|
|
||||||
@ -17,6 +17,7 @@ Author URI: http://www.flatpress.org/
|
|||||||
|
|
||||||
$style['style_def'] = 'style.css';
|
$style['style_def'] = 'style.css';
|
||||||
$style['style_admin'] = 'admin.css';
|
$style['style_admin'] = 'admin.css';
|
||||||
|
$style['style_print'] = '../../leggero/res/print.css';
|
||||||
$style['style'] = 'default';
|
$style['style'] = 'default';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
102
fp-interface/themes/leggero/leggero/res/print.css
Normal file
102
fp-interface/themes/leggero/leggero/res/print.css
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
/*
|
||||||
|
===================
|
||||||
|
Leggero CSS Styles
|
||||||
|
===================
|
||||||
|
Ispired by: http://pluxml.org theme default
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Name: Leggero
|
||||||
|
Author: Laborix
|
||||||
|
Version: 0.1
|
||||||
|
Module: print.css
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #333;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #333;
|
||||||
|
background-color: transparent;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 130%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 130%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date {
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#column {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admincontrols {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.readmore {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-footer {
|
||||||
|
clear: both;
|
||||||
|
font-size: 80%;
|
||||||
|
margin: 2em 0 3em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 1em 1em;
|
||||||
|
padding: 0 10px;
|
||||||
|
width: 90%;
|
||||||
|
color: #333;
|
||||||
|
background-color: transparent;
|
||||||
|
font-style: italic;
|
||||||
|
border-left: 5px solid #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
clear: both;
|
||||||
|
margin: 0.5em 0 0.5em 0;
|
||||||
|
padding: 0.5em;
|
||||||
|
width: 90%;
|
||||||
|
color: #333;
|
||||||
|
background-color: #eee;
|
||||||
|
font-size: 70%;
|
||||||
|
border: 1px dotted #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-comments {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#commentform {
|
||||||
|
display: none;
|
||||||
|
}
|
@ -19,6 +19,7 @@ Author URI: http://www.flatpress.org/
|
|||||||
|
|
||||||
$style['style_def'] = 'style.css';
|
$style['style_def'] = 'style.css';
|
||||||
$style['style_admin'] = 'admin.css';
|
$style['style_admin'] = 'admin.css';
|
||||||
|
$style['style_print'] = 'print.css';
|
||||||
$style['style'] = 'default';
|
$style['style'] = 'default';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user