Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
Signed-off-by: Emad Elsaid <blazeeboy@gmail.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
emad-elsaid committed Sep 13, 2009
1 parent 8c4c6e8 commit 783f9fc
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions system/application/views/content/Basic/Document settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
}
Expand All @@ -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 != '' )
{
Expand All @@ -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
);
);
}
}
}
?>

0 comments on commit 783f9fc

Please sign in to comment.