From eba717f95f586d2538007bd18da6e9b32b076c30 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 31 Oct 2008 22:12:14 +0000 Subject: Merge over vendor code. git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595 --- kohana/views/kohana/template.php | 35 ++++++++++++++ kohana/views/kohana_calendar.php | 52 +++++++++++++++++++++ kohana/views/kohana_error_disabled.php | 16 +++++++ kohana/views/kohana_error_page.php | 26 +++++++++++ kohana/views/kohana_errors.css | 21 +++++++++ kohana/views/kohana_profiler.php | 36 +++++++++++++++ kohana/views/kohana_profiler_table.css | 53 ++++++++++++++++++++++ kohana/views/kohana_profiler_table.php | 24 ++++++++++ kohana/views/pagination/classic.php | 39 ++++++++++++++++ kohana/views/pagination/digg.php | 83 ++++++++++++++++++++++++++++++++++ kohana/views/pagination/extended.php | 27 +++++++++++ kohana/views/pagination/punbb.php | 37 +++++++++++++++ 12 files changed, 449 insertions(+) create mode 100644 kohana/views/kohana/template.php create mode 100644 kohana/views/kohana_calendar.php create mode 100644 kohana/views/kohana_error_disabled.php create mode 100644 kohana/views/kohana_error_page.php create mode 100644 kohana/views/kohana_errors.css create mode 100644 kohana/views/kohana_profiler.php create mode 100644 kohana/views/kohana_profiler_table.css create mode 100644 kohana/views/kohana_profiler_table.php create mode 100644 kohana/views/pagination/classic.php create mode 100644 kohana/views/pagination/digg.php create mode 100644 kohana/views/pagination/extended.php create mode 100644 kohana/views/pagination/punbb.php (limited to 'kohana/views') diff --git a/kohana/views/kohana/template.php b/kohana/views/kohana/template.php new file mode 100644 index 00000000..97c458a3 --- /dev/null +++ b/kohana/views/kohana/template.php @@ -0,0 +1,35 @@ + + + + + + + <?php echo html::specialchars($title) ?> + + + + + + +

+ + + + + + \ No newline at end of file diff --git a/kohana/views/kohana_calendar.php b/kohana/views/kohana_calendar.php new file mode 100644 index 00000000..581c7da7 --- /dev/null +++ b/kohana/views/kohana_calendar.php @@ -0,0 +1,52 @@ + date('n', $prev), 'year' => date('Y', $prev)))); +$next = Router::$current_uri.'?'.http_build_query(array_merge($qs, array('month' => date('n', $next), 'year' => date('Y', $next)))); + +?> + + + + + + + + + + + + + +
  • '.implode('
  • ', $data['output']).'
  • '; +} +else +{ + $classes = array(); + $output = ''; +} + +?> + + + + +
    diff --git a/kohana/views/kohana_error_disabled.php b/kohana/views/kohana_error_disabled.php new file mode 100644 index 00000000..e32e7396 --- /dev/null +++ b/kohana/views/kohana_error_disabled.php @@ -0,0 +1,16 @@ + + + + +<?php echo $error ?> + + + +
    +

    +

    +
    + + \ No newline at end of file diff --git a/kohana/views/kohana_error_page.php b/kohana/views/kohana_error_page.php new file mode 100644 index 00000000..9e4bba88 --- /dev/null +++ b/kohana/views/kohana_error_page.php @@ -0,0 +1,26 @@ + + + + +<?php echo $error ?> + + + + +
    +

    +

    + +

    + +

    + +

    + + +

    +
    + + \ No newline at end of file diff --git a/kohana/views/kohana_errors.css b/kohana/views/kohana_errors.css new file mode 100644 index 00000000..1341f57d --- /dev/null +++ b/kohana/views/kohana_errors.css @@ -0,0 +1,21 @@ +div#framework_error { background:#fff; border:solid 1px #ccc; font-family:sans-serif; color:#111; font-size:14px; line-height:130%; } +div#framework_error h3 { color:#fff; font-size:16px; padding:8px 6px; margin:0 0 8px; background:#f15a00; text-align:center; } +div#framework_error a { color:#228; text-decoration:none; } +div#framework_error a:hover { text-decoration:underline; } +div#framework_error strong { color:#900; } +div#framework_error p { margin:0; padding:4px 6px 10px; } +div#framework_error tt, +div#framework_error pre, +div#framework_error code { font-family:monospace; padding:2px 4px; font-size:12px; color:#333; + white-space:pre-wrap; /* CSS 2.1 */ + white-space:-moz-pre-wrap; /* For Mozilla */ + word-wrap:break-word; /* For IE5.5+ */ +} +div#framework_error tt { font-style:italic; } +div#framework_error tt:before { content:">"; color:#aaa; } +div#framework_error code tt:before { content:""; } +div#framework_error pre, +div#framework_error code { background:#eaeee5; border:solid 0 #D6D8D1; border-width:0 1px 1px 0; } +div#framework_error .block { display:block; text-align:left; } +div#framework_error .stats { padding:4px; background: #eee; border-top:solid 1px #ccc; text-align:center; font-size:10px; color:#888; } +div#framework_error .backtrace { margin:0; padding:0 6px; list-style:none; line-height:12px; } \ No newline at end of file diff --git a/kohana/views/kohana_profiler.php b/kohana/views/kohana_profiler.php new file mode 100644 index 00000000..a16c018b --- /dev/null +++ b/kohana/views/kohana_profiler.php @@ -0,0 +1,36 @@ + +
    +render(); +} +?> +

    Profiler executed in s

    +
    \ No newline at end of file diff --git a/kohana/views/kohana_profiler_table.css b/kohana/views/kohana_profiler_table.css new file mode 100644 index 00000000..6e7601c9 --- /dev/null +++ b/kohana/views/kohana_profiler_table.css @@ -0,0 +1,53 @@ +#kohana-profiler .kp-table +{ + font-size: 1.0em; + color: #4D6171; + width: 100%; + border-collapse: collapse; + border-top: 1px solid #E5EFF8; + border-right: 1px solid #E5EFF8; + border-left: 1px solid #E5EFF8; + margin-bottom: 10px; +} +#kohana-profiler .kp-table td +{ + background-color: #FFFFFF; + border-bottom: 1px solid #E5EFF8; + padding: 3px; + vertical-align: top; +} +#kohana-profiler .kp-table .kp-title td +{ + font-weight: bold; + background-color: inherit; +} +#kohana-profiler .kp-table .kp-altrow td +{ + background-color: #F7FBFF; +} +#kohana-profiler .kp-table .kp-totalrow td +{ + background-color: #FAFAFA; + border-top: 1px solid #D2DCE5; + font-weight: bold; +} +#kohana-profiler .kp-table .kp-column +{ + width: 100px; + border-left: 1px solid #E5EFF8; + text-align: center; +} +#kohana-profiler .kp-table .kp-data, #kohana-profiler .kp-table .kp-name +{ + background-color: #FAFAFB; + vertical-align: top; +} +#kohana-profiler .kp-table .kp-name +{ + width: 200px; + border-right: 1px solid #E5EFF8; +} +#kohana-profiler .kp-table .kp-altrow .kp-data, #kohana-profiler .kp-table .kp-altrow .kp-name +{ + background-color: #F6F8FB; +} \ No newline at end of file diff --git a/kohana/views/kohana_profiler_table.php b/kohana/views/kohana_profiler_table.php new file mode 100644 index 00000000..aed6d094 --- /dev/null +++ b/kohana/views/kohana_profiler_table.php @@ -0,0 +1,24 @@ + + + > + $column) + { + $class = empty($column['class']) ? '' : ' class="'.$column['class'].'"'; + $style = empty($column['style']) ? '' : ' style="'.$column['style'].'"'; + $value = $row['data'][$index]; + $value = (is_array($value) OR is_object($value)) ? '
    '.html::specialchars(print_r($value, TRUE)).'
    ' : html::specialchars($value); + echo '', $value, ''; + } + ?> + + +
    \ No newline at end of file diff --git a/kohana/views/pagination/classic.php b/kohana/views/pagination/classic.php new file mode 100644 index 00000000..79299211 --- /dev/null +++ b/kohana/views/pagination/classic.php @@ -0,0 +1,39 @@ + Last › + */ +?> + +

    + + + ‹  + + + + < + + + + + + + + + + + + + + + + > + + + +  › + + +

    \ No newline at end of file diff --git a/kohana/views/pagination/digg.php b/kohana/views/pagination/digg.php new file mode 100644 index 00000000..888da48f --- /dev/null +++ b/kohana/views/pagination/digg.php @@ -0,0 +1,83 @@ + + +

    + + + «  + + «  + + + + + + + + + + + + + + + + + + + + + + + + … + + + + $total_pages - 8): /* « Previous 1 2 … 17 18 19 20 21 22 23 24 25 26 Next » */ ?> + + 1 + 2 + … + + + + + + + + + + + + 1 + 2 + … + + + + + + + + + + … + + + + + + + +  » + +  » + + +

    \ No newline at end of file diff --git a/kohana/views/pagination/extended.php b/kohana/views/pagination/extended.php new file mode 100644 index 00000000..7e4fa389 --- /dev/null +++ b/kohana/views/pagination/extended.php @@ -0,0 +1,27 @@ + + +

    + + + «  + + «  + + + | + + | + + | +  » + +  » + + +

    \ No newline at end of file diff --git a/kohana/views/pagination/punbb.php b/kohana/views/pagination/punbb.php new file mode 100644 index 00000000..3bb62676 --- /dev/null +++ b/kohana/views/pagination/punbb.php @@ -0,0 +1,37 @@ + + +

    + + : + + 3): ?> + 1 + + + + + + + $total_pages) continue ?> + + + + + + + + + + + + + + + +

    \ No newline at end of file -- cgit v1.2.3