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


PHP Div::addChildList方法代码示例

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


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

示例1: createGeneralContent

 protected function createGeneralContent()
 {
     $mainTag = new Div();
     $mainTag->addStyleClasses(["map_page", "float_left"]);
     $mainTag->addChildList([$this->getInfoBlock(), $this->getMap()]);
     return $mainTag;
 }
开发者ID:gingerP,项目名称:shop,代码行数:7,代码来源:ContactsPage.php

示例2: getItemInfo

 private function getItemInfo($name, $description)
 {
     $mainTag = new Div();
     $itemTitle = new Div();
     $itemTitle->addStyleClasses(["title", "font_arial"]);
     $itemTitle->addChild($name);
     $itemDescription = new Div();
     $itemDescription->addStyleClasses(["title", "font_arial"]);
     $itemDescription->addChild($description);
     return $mainTag->addChildList([$itemTitle, $itemDescription]);
 }
开发者ID:gingerP,项目名称:shop,代码行数:11,代码来源:SingleItemPage.php

示例3: getDOMForViewMode

 private static function getDOMForViewMode($type)
 {
     $mainDom = new Div();
     $mainDom->addStyleClass($type);
     $mainDom->addAttribute("view_type", $type);
     switch ($type) {
         case "compact":
             $mainDom->addChildList([new Div(), new Div(), new Div(), new Div(), new Div(), new Div()]);
             break;
         case "extend":
             $mainDom->addChildList([new Div(), new Div(), new Div()]);
             break;
         case "metro":
             $mainDom->addChildList([new Div(), new Div()]);
             break;
         default:
             $mainDom->addChildList([new Div(), new Div(), new Div(), new Div(), new Div(), new Div()]);
     }
     return $mainDom;
 }
开发者ID:gingerP,项目名称:shop,代码行数:20,代码来源:PathLinks.php

示例4: createPathLinks

 public function createPathLinks()
 {
     $mainTag = new Div();
     $mainTag->addStyleClasses(["path_link", "f-16"]);
     /*$blockForTree = new Div();
       $blockForTree->addStyleClasses(["w-18p"]);*/
     $blockForCatalog = new Div();
     $blockForCatalog->addStyleClasses(["path_link_chain"]);
     $mainTag->addChildList([$blockForCatalog->addChild($this->getPathLinkForMainBlock()), $this->getViewModeBlock()]);
     return $mainTag;
 }
开发者ID:gingerP,项目名称:shop,代码行数:11,代码来源:APagesCreator.php

示例5: renderGalleryItemWithSingleItem

 private function renderGalleryItemWithSingleItem($data)
 {
     $mainDiv = new Div();
     $mainDiv->addStyleClasses(["main_page_item", "blackout", "catalog_item_button_container"]);
     $container = new Div();
     $container->addStyleClass("main_page_item_sub");
     $urlToItem = URLBuilder::getItemLinkForComplexType("", $data[DB::TABLE_GOODS__KEY_ITEM], 1, 48);
     $itemImagePath = '';
     $itemName = $data[DB::TABLE_GOODS__NAME];
     $images = FileUtils::getFilesByPrefixByDescription(Constants::DEFAULT_ROOT_CATALOG_PATH . DIRECTORY_SEPARATOR . $data[DB::TABLE_GOODS__KEY_ITEM] . DIRECTORY_SEPARATOR, Constants::MEDIUM_IMAGE, 'jpg');
     if ($images[0] == '') {
         $itemImagePath = FileUtils::getCapImage(Labels::CAP_IMAGE_FOR_CLOTHING);
     } else {
         $itemImagePath = $images[0];
     }
     $singleItemView = new Div();
     $singleItemView->addStyleClasses(["main_page_item_sub_single"]);
     $imgView = new Img();
     $noteView = null;
     $imgView->addAttribute("src", $itemImagePath);
     if ($data[DB::TABLE_GOODS__GOD_TYPE] == "HARD") {
         $singleItemView->addStyleClass("cursor_pointer");
         $noteView = TagUtils::createNote($itemName, "");
     } else {
         $noteView = TagUtils::createNote($itemName, "");
     }
     $noteView->addStyleClasses(["f-15"]);
     $container->addChildList([$singleItemView, $noteView, Item::getItemButton($urlToItem)]);
     $singleItemView->addChild($imgView);
     return $mainDiv->addChild($container);
 }
开发者ID:gingerP,项目名称:shop,代码行数:31,代码来源:MainPage.php

示例6: createPriceListLink

 public static function createPriceListLink()
 {
     $pref = new DBPreferencesType();
     $pricesDir = $pref->getPreference(Constants::PRICE_DIRECTORY)[DB::TABLE_PREFERENCES__VALUE];
     $prices = FileUtils::getFilesByDescription($pricesDir, 'xls');
     $descriptions = FileUtils::getFilesByDescription($pricesDir, 'txt');
     $mainTag = new Div();
     $mainTag->addStyleClass("download_table");
     for ($index = 0; $index < count($prices); $index++) {
         $priceItem = new Div();
         $priceIcon = new Div();
         $priceIcon->addStyleClasses(["price_icon", "float_left"]);
         $priceText = new Div();
         $priceText->addStyleClass(["download_description", "float_left"]);
         $priceText->addChild(file_get_contents($descriptions[$index]));
         $priceItem->addChildList([$priceIcon, $priceText]);
         $mainTag->addChild($priceItem);
     }
     return $mainTag;
 }
开发者ID:gingerP,项目名称:shop,代码行数:20,代码来源:TopNavigationLinks.php


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