Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Signed-off-by: Emad Elsaid <blazeeboy@gmail.com>

  • Loading branch information...
commit 783f9fc4bfebb78e293b9304a26bdb89f684568a 1 parent 8c4c6e8
@blazeeboy authored
Showing with 23 additions and 12 deletions.
  1. +23 −12 system/application/views/content/Basic/Document settings.php
View
35 system/application/views/content/Basic/Document settings.php
@@ -11,6 +11,10 @@
"attachment" : { "type" : "dropdown", "options" : {"scroll":"scroll","fixed":"fixed"}, "default": "0" },
"horizontal_position" : { "type" : "textbox", "default" : "left" },
"vertical_position" : { "type" : "textbox", "default" : "top" },
+ "style sheets":" you can include Reset and Text stylesheets from here ",
+ "Reset960":{"type":"checkbox"},
+ "Text960":{"type":"checkbox"},
+ "extra attributs":"you can specify extra body classes and style",
"class":{"type":"textbox"},
"style":{"type":"textarea"}
}
@@ -33,6 +37,10 @@
<?php
$local = base_url();
+
+ if( $info->Reset960 ) add( 'assets/960.gs/reset.css' );
+ if( $info->Text960 ) add( 'assets/960.gs/text.css' );
+
$style = '';
if( $info->background_image != '' )
{
@@ -42,26 +50,29 @@
$style .= "background-attachment: {$info->attachment};";
}
$style .= $info->style;
- add("
+ if( $style!='' )
+ {
+ add("
<style>
body{
{$style}
}
</style>
- ");
- if(!empty($info->class))
- {
- add('jquery/jquery.js');
- add(
+ ");
+ if(!empty($info->class))
+ {
+ add('jquery/jquery.js');
+ add(
<<<EOT
- <script language="javascript" >
- $(function(){
- $(document).addClass('{$info->class}');
- });
- </script>
+<script language="javascript" >
+ $(function(){
+ $(document).addClass('{$info->class}');
+ });
+</script>
EOT
-);
+ );
+ }
}
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.