private static function intro() { self::$rsnum[] = $rsnum = CRUD::dataFetch('intro', array('langtag' => CORE::$langtag, 'status' => '1', 'custom' => "(subject like '%" . self::$kw . "%' or content like '%" . self::$kw . "%')")); if (!empty($rsnum)) { $dataRow = CRUD::$data; foreach ($dataRow as $key => $row) { VIEW::newBlock("TAG_SEARCH_LIST"); VIEW::assign(array("VALUE_SUBJECT" => $row["subject"], "VALUE_CONTENT" => mb_substr(strip_tags($row["content"]), 0, 50, 'UTF-8'), "VALUE_LINK" => CORE::$root . 'intro/' . SEO::link($row) . '/')); } } }
private static function nav() { VIEW::assignGlobal("NAV_CATE_TITLE", 'ABOUT'); $rsnum = CRUD::dataFetch('intro', array('status' => '1', 'langtag' => CORE::$langtag), false, array('sort' => CORE::$cfg["sort"])); if (!empty($rsnum)) { $dataRow = CRUD::$data; foreach ($dataRow as $key => $row) { VIEW::newBlock("TAG_NAV_LIST"); VIEW::assign(array("VALUE_NAV_SUBJECT" => $row["subject"], "VALUE_NAV_LINK" => CORE::$root . 'intro/' . SEO::link($row) . '/', "VALUE_NAV_CURRENT" => empty(self::$id) && ++$i == 1 || self::$id == $row["id"] ? 'active' : '')); } } }
public static function nav() { list($cate) = CORE::$args; VIEW::assignGlobal("NAV_CATE_TITLE", 'PRODUCTS CATE'); $rsnum = CRUD::dataFetch('products_cate', array('status' => '1', 'parent' => 'null', 'langtag' => CORE::$langtag), false, array('sort' => CORE::$cfg["sort"])); if (!empty($rsnum)) { $dataRow = CRUD::$data; foreach ($dataRow as $key => $row) { VIEW::newBlock("TAG_NAV_LIST"); VIEW::assign(array("VALUE_NAV_SUBJECT" => $row["subject"], "VALUE_NAV_LINK" => CORE::$root . 'products/' . SEO::link($row) . '/', "VALUE_NAV_CURRENT" => $cate == $row["id"] ? 'current' : '')); } } }
public static function dataLink($parent, $data = false) { $rsnum = CRUD::dataFetch('news_cate', array('id' => $parent)); if (!empty($rsnum)) { list($cate) = CRUD::$data; $parentLink = SEO::link($cate); } if (!$data) { return CORE::$root . "news/{$parentLink}/"; } else { $link = SEO::link($data); return CORE::$root . "news/{$parentLink}/{$link}/"; } }
private static function nav() { VIEW::assignGlobal("NAV_CATE_TITLE", 'GALLERY'); $rsnum = CRUD::dataFetch('gallery_cate', array('status' => '1', 'langtag' => CORE::$langtag), false, array('sort' => CORE::$cfg["sort"])); if (!empty($rsnum)) { $dataRow = CRUD::$data; foreach ($dataRow as $key => $row) { VIEW::newBlock("TAG_NAV_LIST"); VIEW::assign(array("VALUE_NAV_SUBJECT" => $row["subject"], "VALUE_NAV_LINK" => CORE::$root . 'gallery/' . SEO::link($row) . '/', "VALUE_NAV_CURRENT" => self::$cate == $row["id"] ? 'current' : '')); } } }
private static function faqFetch($row = false) { self::make(CORE::$lang["faq"], CORE::$root . 'faq/'); if (is_array($row)) { self::make($row["subject"], CORE::$root . 'faq/' . SEO::link($row) . '/'); } }