当前位置: 首页>>代码示例>>PHP>>正文


PHP HTMLTags_Div::set_attribute_str方法代码示例

本文整理汇总了PHP中HTMLTags_Div::set_attribute_str方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLTags_Div::set_attribute_str方法的具体用法?PHP HTMLTags_Div::set_attribute_str怎么用?PHP HTMLTags_Div::set_attribute_str使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTMLTags_Div的用法示例。


在下文中一共展示了HTMLTags_Div::set_attribute_str方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render_body_div_content

 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();
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:27,代码来源:VideoLibrary_ThumbnailsPage.inc.php

示例2: get_content_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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:9,代码来源:VideoLibrary_TagsPage.inc.php

示例3: get_widget_content

 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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:7,代码来源:RSS_RSSHelper.inc.php

示例4: get_feed_div

 public static function get_feed_div($feeds, $number_of_items_per_feed, $options = array('length' => 'summaries'))
 {
     $div = new HTMLTags_Div();
     $div->set_attribute_str('class', 'feeds-wrapper');
     foreach ($feeds as $feed) {
         // print_r($feed);exit;
         /** 
          * summary_display_quantity_multiplier
          * This multiplier allows us to give some feeds more headlines if they
          * tend to have short summaries
          */
         if ($options['length'] == 'summaries' && isset($feed['summary_display_quantity_multiplier'])) {
             $number_of_items_per_feed = round($number_of_items_per_feed * $feed['summary_display_quantity_multiplier']);
         }
         $feed['items'] = FeedAggregator_DatabaseHelper::get_items_for_feed_id($feed['id'], NULL, 0, $number_of_items_per_feed);
         // print_r($feed);exit;
         switch ($options['length']) {
             case 'summaries':
                 $div->append(FeedAggregator_DisplayHelper::get_feed_summary_div($feed));
                 break;
             case 'headlines':
                 $div->append(FeedAggregator_DisplayHelper::get_feed_headlines_div($feed));
                 break;
             default:
                 $div->append(FeedAggregator_DisplayHelper::get_feed_summary_div($feed));
         }
     }
     return $div;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:29,代码来源:FeedAggregator_PageHelper.inc.php

示例5: get_note_preview_div

 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;
 }
开发者ID:saulhoward,项目名称:oedipus-decision-maker,代码行数:7,代码来源:Oedipus_NotesHelper.inc.php

示例6: __construct

 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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:29,代码来源:HTMLTags_FluidBoxDiv.inc.php

示例7: __construct

 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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:31,代码来源:HTMLTags_HReviewDiv.inc.php

示例8: get_mini_orders_for_current_session_div

 public function get_mini_orders_for_current_session_div()
 {
     $mini_order_div = new HTMLTags_Div();
     $top_right_p = new HTMLTags_P('Shopping Basket');
     $top_right_p->set_attribute_str('class', 'top-right');
     $mini_order_div->append_tag_to_content($top_right_p);
     $mini_order_table = $this->get_mini_orders_for_current_session_table();
     $middle_right_div = new HTMLTags_Div();
     $middle_right_div->set_attribute_str('class', 'middle-right');
     $middle_right_div->append_tag_to_content($mini_order_table);
     $mini_order_div->append_tag_to_content($middle_right_div);
     $bottom_left_div = new HTMLTags_Div();
     $bottom_left_div->set_attribute_str('class', 'bottom-left');
     $bottom_right_p = new HTMLTags_P();
     $bottom_right_p->set_attribute_str('class', 'bottom-right');
     $go_to_basket_link = new HTMLTags_A();
     $go_to_basket_link->set_attribute_str('class', 'add-to-basket-link');
     $go_to_basket_link->set_attribute_str('id', 'add-to-basket-link');
     $go_to_basket_location = new HTMLTags_URL();
     $go_to_basket_location->set_file('/shopping-basket.html');
     $go_to_basket_link->set_href($go_to_basket_location);
     $go_to_basket_link->append_tag_to_content(new HTMLTags_Span('Go to Basket'));
     $bottom_right_p->append_tag_to_content($go_to_basket_link);
     $bottom_left_div->append_tag_to_content($bottom_right_p);
     $mini_order_div->append_tag_to_content($bottom_left_div);
     return $mini_order_div;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:27,代码来源:Shop_OrdersTableRenderer.inc.php

示例9: get_external_links_ul

 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;
 }
开发者ID:saulhoward,项目名称:oedipus-decision-maker,代码行数:7,代码来源:Oedipus_HomePage.inc.php

示例10: get_html_div

 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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:7,代码来源:Payments_OptionButtonsFactory.inc.php

示例11: get_widget_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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:9,代码来源:Admin_StartPageWidget.inc.php

示例12: get_all_dramas_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;
 }
开发者ID:saulhoward,项目名称:oedipus-decision-maker,代码行数:9,代码来源:Oedipus_MyDramasPage.inc.php

示例13: get_tag_cloud_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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:56,代码来源:Shop_ProductTagsTableRenderer.inc.php

示例14: get_link_to_edit_video_admin_page_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;
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:10,代码来源:VideoLibrary_AdminHelper.inc.php

示例15: render_body_div_navigation

 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();
 }
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:10,代码来源:Admin_RestrictedHTMLPage.inc.php


注:本文中的HTMLTags_Div::set_attribute_str方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。