public function get_html_div()
 {
     $html_div = new HTMLTags_Div();
     $html_div->set_attribute_str('id', 'payment_option_buttons');
     $html_div->append_tag_to_content($this->get_html_ul());
     return $html_div;
 }
 public function __construct($item_reviewed, $review, $reviewer, $date_reviewed)
 {
     parent::__construct();
     $this->set_attribute_str('class', 'hreview');
     $item_div = new HTMLTags_Div();
     $item_div->set_attribute_str('class', 'item');
     $item_div->append_str_to_content($item_reviewed);
     $this->append_tag_to_content($item_div);
     $description_div = new HTMLTags_Div();
     $description_div->set_attribute_str('class', 'description');
     $description_p = new HTMLTags_P($review);
     $description_div->append_tag_to_content($description_p);
     $this->append_tag_to_content($description_div);
     $reviewer_vcard_span = new HTMLTags_Span();
     $reviewer_vcard_span->set_attribute_str('class', 'reviewer vcard');
     $reviewer_fn_span = new HTMLTags_Span();
     $reviewer_fn_span->set_attribute_str('class', 'fn');
     $reviewer_fn_span->append_str_to_content($reviewer);
     $reviewer_vcard_span->append_tag_to_content($reviewer_fn_span);
     $random_br_tag = new HTMLTags_BR();
     $reviewer_vcard_span->append_tag_to_content($random_br_tag);
     $date_reviewed_abbr = new HTMLTags_Abbr();
     $date_reviewed_abbr->set_attribute_str('class', 'dtreviewed');
     $datetime_iso8601 = Formatting_DateTime::datetime_to_ISO8601($date_reviewed);
     $date_reviewed_abbr->set_attribute_str('title', $datetime_iso8601);
     $datetime_human_readable = Formatting_DateTime::datetime_to_human_readable($date_reviewed);
     $date_reviewed_abbr->append_str_to_content($datetime_human_readable);
     $reviewer_vcard_span->append_tag_to_content($date_reviewed_abbr);
     $this->append_tag_to_content($reviewer_vcard_span);
     return $this;
 }
 public static function get_note_preview_div(Oedipus_Note $note)
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'note-preview');
     $div->append($note->get_note_text_html());
     return $div;
 }
 private function get_external_links_ul()
 {
     $welcome_div = new HTMLTags_Div();
     $welcome_div->set_attribute_str('class', 'external-links');
     $welcome_div->append_tag_to_content(Navigation_HTMLListsHelper::get_1d_ul('External Links'));
     return $welcome_div;
 }
 public function content()
 {
     $div = new HTMLTags_Div();
     $div->append($this->get_error_message_div());
     $div->append($this->get_registration_div());
     echo $div->get_as_string();
 }
 public function render_body_div_content()
 {
     // print_r($_GET);exit;
     $content_div = new HTMLTags_Div();
     $content_div->set_attribute_str('id', 'content');
     $content_div->set_attribute_str('class', 'thumbnails-page');
     $provider_wrapper = new HTMLTags_Div();
     $provider_wrapper->set_attribute_str('id', 'providers-wrapper');
     $provider_wrapper->append('<h3 id="channels">Channels</h3>');
     $provider_wrapper->append($this->get_provider_navigation_div());
     $provider_wrapper->append('<h3 id="categories">Categories</h3>');
     $tags_nav = $this->get_tags_navigation_div();
     $tags_nav->set_attribute_str('id', 'sidebar-tags');
     $provider_wrapper->append($tags_nav);
     $content_div->append($provider_wrapper);
     $videos_description = new HTMLTags_Div();
     $videos_description->set_attribute_str('id', 'videos-description');
     $videos_description->append($this->get_videos_description_div());
     $content_div->append($videos_description);
     $thumbnails_wrapper = new HTMLTags_Div();
     $thumbnails_wrapper->set_attribute_str('id', 'thumbnails-wrapper');
     $thumbnails_wrapper->append($this->get_thumbnails_extra_content_div());
     $thumbnails_wrapper->append($this->get_thumbnails_div());
     $thumbnails_wrapper->append($this->get_pager_div());
     $content_div->append($thumbnails_wrapper);
     echo $content_div->get_as_string();
 }
 public static function get_widget_content(RSS_RSS $rss)
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'rss');
     $div->append(self::get_rss_titles_ul($rss));
     return $div;
 }
 public function __construct(HTMLTags_Tag $fluid_box_content, $style = 'text_box')
 {
     parent::__construct();
     $this->set_attribute_str('class', 'dialog_black');
     $this->set_attribute_str('id', $style);
     $fluid_box_hd = new HTMLTags_Div();
     $fluid_box_hd->set_attribute_str('class', 'hd');
     $fluid_box_hd_c = new HTMLTags_Div();
     $fluid_box_hd_c->set_attribute_str('class', 'c');
     $fluid_box_hd->append_tag_to_content($fluid_box_hd_c);
     $this->append_tag_to_content($fluid_box_hd);
     $fluid_box_bd = new HTMLTags_Div();
     $fluid_box_bd->set_attribute_str('class', 'bd');
     $fluid_box_c = new HTMLTags_Div();
     $fluid_box_c->set_attribute_str('class', 'c');
     $fluid_box_s = new HTMLTags_Div();
     $fluid_box_s->set_attribute_str('class', 's');
     $fluid_box_s->append_tag_to_content($fluid_box_content);
     $fluid_box_c->append_tag_to_content($fluid_box_s);
     $fluid_box_bd->append_tag_to_content($fluid_box_c);
     $this->append_tag_to_content($fluid_box_bd);
     $fluid_box_ft = new HTMLTags_Div();
     $fluid_box_ft->set_attribute_str('class', 'ft');
     $fluid_box_ft_c = new HTMLTags_Div();
     $fluid_box_ft_c->set_attribute_str('class', 'c');
     $fluid_box_ft->append_tag_to_content($fluid_box_ft_c);
     $this->append_tag_to_content($fluid_box_ft);
     return $this;
 }
 public function get_admin_content_div()
 {
     $div = new HTMLTags_Div();
     $div->append('<h2>NEW Add an External Video</h2>');
     $div->append(VideoLibrary_AdminHelper::get_add_external_video_form());
     return $div;
 }
 public function content()
 {
     $div = new HTMLTags_Div();
     $div->append($this->get_log_out_div());
     $div->append($this->get_error_message_div());
     $div->append($this->get_account_div());
     echo $div->get_as_string();
 }
 public function get_features_navigation_div()
 {
     $div = new HTMLTags_Div();
     $div->set_id('features_navigation');
     $ul = Navigation_HTMLListsHelper::get_1d_ul('features');
     $div->append($ul);
     return $div;
 }
 private function get_content_div()
 {
     $content_div = new HTMLTags_Div();
     $content_div->set_attribute_str('class', 'content');
     $content_div->set_attribute_str('id', 'TagsPage');
     //$content_div->append($this->get_advert_div());
     $content_div->append(VideoLibrary_DisplayHelper::get_tags_page_tags_div($this->get_primary_tags(), $this->get_external_video_library_id()));
     return $content_div;
 }
 private function get_all_dramas_div()
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'my-dramas-list');
     $html = $this->get_all_dramas_ul();
     $div->append_tag_to_content(new HTMLTags_Heading(3, 'Dramas created by me'));
     $div->append_tag_to_content($html);
     return $div;
 }
 public function get_widget_div()
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'StartPageWidget');
     $heading = new HTMLTags_Heading(3, $this->get_widget_title());
     $div->append($heading);
     $div->append($this->get_widget_content());
     return $div;
 }
 public function get_tag_cloud_div($current_url, $javascript = FALSE)
 {
     $tags_table = $this->get_element();
     #$database = $productgraph_row->get_database();
     #$tags_table = $database->get_table('hpi_shop_product_tags');
     #$productgraph_row = $productgraphs_table->get_row_by_id($_GET['productgraph_id']);
     #$database = $productgraph_row->get_database();
     $tag_cloud_div = new HTMLTags_Div();
     $tag_cloud_div->set_attribute_str('id', 'tag_cloud_div');
     $tag_cloud_heading = new HTMLTags_Heading(3);
     $tag_cloud_heading->append_str_to_content('All Tags');
     $tag_cloud_div->append_tag_to_content($tag_cloud_heading);
     $tag_cloud_list = new HTMLTags_OL();
     $tags = $tags_table->get_tags_with_counts('hpi_shop_product_tags.tag', 'ASC');
     foreach ($tags as $tag) {
         $tag_cloud_line = new HTMLTags_LI();
         $tag_cloud_href = clone $current_url;
         $tag_cloud_href->set_get_variable('tag_id', $tag->get_id());
         $tag_cloud_link = new HTMLTags_A();
         $tag_cloud_link->set_href($tag_cloud_href);
         $tag_cloud_link->set_attribute_str('id', $tag->get_id());
         if ($javascript) {
             $onclick = 'javascript:return tagsOnClick(this);';
             $tag_cloud_link->set_attribute_str('onclick', $onclick);
         }
         #tag_cloud_link->set_attribute_str('id', 'productgraph_page_link');
         #echo $tag->get_product_count();
         /*
          * RFI 2007-03-27
          * 
          * Is this the right way around?
          *
          * Aren't tags with a lower product count less popular?
          */
         #if ($tag->get_product_count() > 3) {
         #    $tag_cloud_link->set_attribute_str('class', 'not-very-popular');
         #}
         $popularity_css_class = $tag->get_popularity_css_class();
         #echo "\$popularity_css_class: $popularity_css_class\n\n";
         $tag_cloud_link->set_attribute_str('class', $popularity_css_class);
         $tag_cloud_link->set_attribute_str('rel', 'tag');
         $tag_product_count = $tag->get_product_count();
         if ($tag_product_count == 1) {
             $tag_product_count_span_text = $tag_product_count . ' product is tagged with ';
         } else {
             $tag_product_count_span_text = $tag_product_count . ' products are tagged with ';
         }
         $tag_cloud_link_span = new HTMLTags_Span($tag_product_count_span_text);
         $tag_cloud_link->append_tag_to_content($tag_cloud_link_span);
         $tag_cloud_link->append_str_to_content($tag->get_tag());
         $tag_cloud_line->append_tag_to_content($tag_cloud_link);
         $tag_cloud_list->append_tag_to_content($tag_cloud_line);
     }
     $tag_cloud_div->append_tag_to_content($tag_cloud_list);
     return $tag_cloud_div;
 }
 public static function get_image_feeds_div($tags, $number_of_feeds, $number_of_items_per_feed)
 {
     $feeds = FeedAggregator_DatabaseHelper::get_feeds_for_all_tags($tags, NULL, 0, $number_of_feeds);
     $div = new HTMLTags_Div();
     foreach ($feeds as $feed) {
         $feed['items'] = FeedAggregator_DatabaseHelper::get_items_for_feed_id($feed['id'], NULL, 0, $number_of_items_per_feed);
         $div->append(FeedAggregator_DisplayHelper::get_images_only_feed_div($feed));
     }
     return $div;
 }
 public function render_body_div_navigation()
 {
     $navigation_div = new HTMLTags_Div();
     $navigation_div->set_attribute_str('id', 'navigation');
     ob_start();
     require PROJECT_ROOT . '/plug-ins/admin/www-includes/html/' . 'body.div.nav-or-error-msg.inc.php';
     $str = ob_get_clean();
     $navigation_div->append_str_to_content($str);
     echo $navigation_div->get_as_string();
 }
 protected function get_admin_header_navigation_link_div()
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('id', 'admin_header_navigation_link');
     $url = PublicHTML_URLHelper::get_oo_page_url('Admin_StartPage');
     $a = new HTMLTags_A('Start Page');
     $a->set_href($url);
     $div->append($a);
     return $div;
 }
 public static function get_link_to_edit_video_admin_page_div($video_id)
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'admin');
     $a = new HTMLTags_A('Edit this Video');
     $a->set_attribute_str('class', 'edit');
     $a->set_href(VideoLibrary_URLHelper::get_edit_external_video_admin_page_url($video_id));
     $div->append($a);
     return $div;
 }
 public function render_body_div_footer_nav()
 {
     /*
      *Second Tier Nav - libraries and search
      */
     $footer_nav_div = new HTMLTags_Div();
     $footer_nav_div->set_attribute_str('id', 'footer-nav');
     $footer_nav_div->append($this->get_second_tier_navigation_div());
     $footer_nav_div->append($this->get_external_video_search_div());
     echo $footer_nav_div->get_as_string();
 }
 protected function render_top_links_ul()
 {
     $page_options_div = new HTMLTags_Div();
     $page_options_div->set_attribute_str('id', 'page-options');
     $other_pages_ul = new HTMLTags_UL();
     foreach ($this->get_top_links_as() as $a) {
         $li = new HTMLTags_LI();
         $li->append_tag_to_content($a);
         $other_pages_ul->append_tag_to_content($li);
     }
     $page_options_div->append_tag_to_content($other_pages_ul);
     echo $page_options_div->get_as_string();
 }
 public function render_xml()
 {
     if (isset($_GET['ajax']) && isset($_GET['related_videos']) && isset($_GET['rewrite_controls'])) {
         $div = new HTMLTags_Div();
         $thumbnails_wrapper_div = new HTMLTags_Div();
         $thumbnails_wrapper_div->set_attribute_str('id', 'thumbnails-wrapper');
         $thumbnails_wrapper_div->append(VideoLibrary_DisplayHelper::get_thumbnails_div($this->get_related_videos()));
         $div->append($thumbnails_wrapper_div);
         $div->append(VideoLibrary_DisplayHelper::get_pager_div($this->get_start(), $this->get_duration(), $this->get_total_related_videos_count(), $this->get_page_url()));
         echo $div->get_as_string();
     } elseif (isset($_GET['ajax']) && isset($_GET['related_videos'])) {
         echo VideoLibrary_DisplayHelper::get_thumbnails_div($this->get_related_videos());
     }
 }
 public function content()
 {
     $cmf = HaddockProjectOrganisation_ConfigManagerFactory::get_instance();
     $config_manager = $cmf->get_config_manager('plug-ins', 'admin');
     $widget_classes = $config_manager->get_start_page_widget_classes();
     $div = new HTMLTags_Div();
     $div->set_attribute_str('id', 'StartPageWidgetContainer');
     foreach ($widget_classes as $key => $value) {
         $widget_class_str = trim($value);
         $instance = new $widget_class_str();
         $content = $instance->get_widget_div();
         $div->append($content);
     }
     echo $div->get_as_string();
 }
 public function __construct($message, $no_script_href = '', $status = NULL)
 {
     #echo "\$message: $message\n";
     #echo "\$no_script_href: $no_script_href\n";
     parent::__construct();
     $this->set_attribute_str('id', 'lastActionBox');
     #if (strlen($no_script_href) > 0) {
     #    $this->set_attribute_str('class', 'noscript');
     #}
     if ($status == 'error') {
         $this->set_attribute_str('class', 'error');
     }
     $p = new HTMLTags_P();
     $hide_a = new HTMLTags_A('Hide');
     $hide_a->set_attribute_str('id', 'lastActionBoxA');
     $hide_a->set_href(new HTMLTags_URL($no_script_href));
     #if (strlen($no_script_href) < 1) {
     #    $hide_a->set_href(new HTMLTags_URL('#'));
     #} else {
     #    $hide_a->set_href(new HTMLTags_URL($no_script_href));
     #}
     $hide_a->set_attribute_str('id', 'lastActionBoxHide');
     $hide_a->set_attribute_str('title', 'Hide this notice');
     $p->append_tag_to_content($hide_a);
     $p->append_str_to_content($message);
     $this->append_tag_to_content($p);
 }
 protected function get_act_div(Oedipus_Act $act)
 {
     $act_div = new HTMLTags_Div();
     $act_div->set_attribute_str('class', 'act');
     /*
      * Show the Drama Toolbar with act 
      * list and share links
      */
     $act_div->append(new Oedipus_DramaToolBarUL($this->get_drama(), $act->get_id()));
     /*
      * Get the Scene ID
      */
     if (isset($_GET['scene_id'])) {
         $scene_id = $_GET['scene_id'];
     } elseif (isset($_GET['frame_id'])) {
         $scene_id = Oedipus_DramaHelper::get_scene_id_for_frame_id($_GET['frame_id']);
     } else {
         $scene_id = Oedipus_DramaHelper::get_first_scene_id_for_act_id($act->get_id());
     }
     /*
      *Show the Act Toolbar with scene list
      */
     $act_div->append(new Oedipus_ActToolBarUL($act, $scene_id));
     /*
      *Get the Scene Div
      */
     $act_div->append($this->get_scene_div($act->get_scene($scene_id)));
     return $act_div;
 }
 public function __construct()
 {
     parent::__construct();
     $this->set_dramas($this->get_dramas_list());
     $this->set_attribute_str('class', 'dramas');
     $this->append($this->get_drama_table());
 }
 public function __construct(Oedipus_Scene $scene)
 {
     parent::__construct();
     $this->set_scene($scene);
     $this->set_attribute_str('class', 'scene');
     $this->append($this->get_scene_content_div());
 }
 public static function get_widget_content()
 {
     $latest_photo = self::get_latest_photograph();
     $div = new HTMLTags_Div();
     if (isset($latest_photo)) {
         $img = $latest_photo->get_image_img();
         $img->set_attribute_str('class', 'center');
         $img->set_attribute_str('width', '300px');
         $div->append($img);
         $p = new HTMLTags_P('"' . $latest_photo->get_name() . '" is the latest photo in the gallery.');
     } else {
         $p = new HTMLTags_P('There are no photos in the gallery yet.');
     }
     $div->append($p);
     return $div;
 }
 public static function get_feed_headlines_div($feed)
 {
     if ($feed['items'] == '') {
         throw new Exception('Feed contains no items.');
     }
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'feed');
     $div->append('<h3>' . $feed['title'] . '</h3>');
     foreach ($feed['items'] as $item) {
         $item_div = new HTMLTags_Div();
         $item_div->set_attribute_str('class', 'item');
         $link = self::get_item_external_link($item);
         $item_div->append('<h4>' . $link . '</h4>');
         $div->append($item_div);
     }
     return $div;
 }
 public function render_body_div_navigation()
 {
     $navigation_div = new HTMLTags_Div();
     $navigation_div->set_attribute_str('id', 'navigation');
     #$pdf = HaddockProjectOrganisation_ProjectDirectoryFinder::get_instance();
     #$pd = $pdf->get_project_directory_for_this_project();
     #
     #$anxf = $pd->get_admin_navigation_xml_file();
     #
     #$site_map_ul = new Admin_SiteMapUL($anxf);
     #
     #$navigation_div->append_tag_to_content($site_map_ul);
     ob_start();
     require PROJECT_ROOT . '/haddock/admin/www-includes/html/' . 'body.div.nav-or-error-msg.inc.php';
     $str = ob_get_clean();
     $navigation_div->append_str_to_content($str);
     echo $navigation_div->get_as_string();
 }