本文整理汇总了PHP中HTMLTags_Div类的典型用法代码示例。如果您正苦于以下问题:PHP HTMLTags_Div类的具体用法?PHP HTMLTags_Div怎么用?PHP HTMLTags_Div使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HTMLTags_Div类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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
示例2: __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
示例3: 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
示例4: 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
示例5: content
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();
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:7,代码来源:UserLogin_RegistrationPage.inc.php
示例6: 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
示例7: 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
示例8: __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
示例9: get_admin_content_div
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;
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:7,代码来源:VideoLibrary_AddExternalVideoAdminPage.inc.php
示例10: content
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();
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:8,代码来源:UserLogin_AccountPage.inc.php
示例11: get_features_navigation_div
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;
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:8,代码来源:LogicalFallacies_HTMLPage.inc.php
示例12: 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
示例13: 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
示例14: 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
示例15: 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
示例16: get_image_feeds_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;
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:10,代码来源:FeedAggregator_PageHelper.inc.php
示例17: 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
示例18: get_admin_header_navigation_link_div
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;
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:10,代码来源:Admin_HTMLPage.inc.php
示例19: 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
示例20: render_body_div_footer_nav
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();
}
开发者ID:saulhoward,项目名称:haddock-cms,代码行数:11,代码来源:VideoLibrary_FullPage.inc.php
注:本文中的HTMLTags_Div类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论