From 4ac3be445ebb041a503bbd2999f5d08dbc9a8578 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sat, 23 Jul 2011 17:00:38 +0000 Subject: Added a new module for annotating photos. --- .../helpers/photoannotation_theme.php | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 modules/photoannotation/helpers/photoannotation_theme.php (limited to 'modules/photoannotation/helpers/photoannotation_theme.php') diff --git a/modules/photoannotation/helpers/photoannotation_theme.php b/modules/photoannotation/helpers/photoannotation_theme.php new file mode 100644 index 00000000..15f584f8 --- /dev/null +++ b/modules/photoannotation/helpers/photoannotation_theme.php @@ -0,0 +1,81 @@ +css("photoannotation.css"); + if ($theme->page_subtype == "photo") { + $theme->script("jquery.annotate.min.js"); + $noborder = module::get_var("photoannotation", "noborder", false); + $noclickablehover = module::get_var("photoannotation", "noclickablehover", false); + $nohover = module::get_var("photoannotation", "nohover", false); + $bordercolor = "#". module::get_var("photoannotation", "bordercolor", "000000"); + $v = "\n"; + return $v; + } + } + + static function resize_bottom($theme) { + if ($theme->page_subtype == "photo") { + return new View("photoannotation_highlight_block.html"); + } + } + + static function admin_head($theme) { + if (strpos($theme->content->kohana_filename, "admin_photoannotation.html.php")) { + $theme->css("colorpicker.css"); + $theme->script("jquery.colorpicker.min.js"); + } + } + +} -- cgit v1.2.3