$addressLinks = array(); if ($entity['primary_ext'] == 'Org') { ?> <?php $addresses = Doctrine::getTable('Address')->findByEntityId($entity['id']); ?> <?php foreach ($addresses as $address) { ?> <?php $addressLinks[] = address_link($address); ?> <?php } } ?> <?php $categoryLinks = array(); $categories = OsEntity::getCategoriesForDisplay($entity['id']); foreach ($categories as $category) { ?> <?php $categoryLinks[] = category_link($category); } ?> <?php include_partial('global/datatable', array('data' => array('Aliases' => $aliases = EntityTable::getAliasNamesById($entity['id'], false), 'Networks' => $networkLinks, 'Industries' => $categoryLinks, 'Addresses' => $addressLinks), 'label_width' => '100px')); ?> </div>
$data['title'] = $cont['title']; $item_url = category_link($cont['id']); } ?> <?php } ?> <?php } ?> <?php if (isset($data['content_id']) and intval($data['content_id']) != 0) { $item_url = content_link($data['content_id']); } if (isset($data['categories_id']) and intval($data['categories_id']) != 0) { $item_url = category_link($data['categories_id']); } if (isset($item_url) and $item_url != false and (!isset($data['url']) or trim($data['url']) == '')) { $data['url'] = $item_url; } ?> <div id="custom_link_inline_controller" class="mw-ui-gbox" style="display: none;"> <div id="custom_link_inline_controller_edit_<?php print $data['id']; ?> "> <h4><?php _e("Edit menu item"); ?> </h4>
</div> <div class="mw-ui-box mw-ui-box-content quick-add-post-options-item"> <?php if (isset($data['id']) and $data['id'] != 0) { ?> <div class="mw-ui-field-holder"> <label class="mw-ui-label"> <?php _e("Link"); ?> </label> <small> <a href="<?php print category_link($data['id']); ?> " target="_blank"><?php print category_link($data['id']); ?> </a> </small> </div> <?php } ?> <div class="mw-ui-field-holder"> <label class="mw-ui-label"> <?php _e("Slug"); ?> </label> <input type="text" class="mw-ui-field w100" name="url" value="<?php isset($data['url']) ? print $data['url'] : ''; ?> " />
function cb_list_subs($cid, $type) { global $db; $html = ""; $query = mysql_query("SELECT * FROM " . tbl($this->cat_tbl) . " WHERE parent_id = {$cid}"); if (!empty($query)) { $html .= "<ul id='" . $cid . "_subs' class='sub_categories'>"; while ($result = mysql_fetch_array($query)) { if ($_GET['cat'] == $result['category_id']) { $selected = "selected"; } else { $selected = ""; } $html .= "<li class='" . $selected . "'>"; $html .= "<a href='" . category_link($result, $type) . "' title='" . $result['category_name'] . "'>" . $result['category_name'] . "</a>"; if ($this->is_parent($result['category_id'])) { $html .= $this->cb_list_subs($result['category_id'], $type); } $html .= "</li>"; } $html .= "</ul>"; } return $html; }
/** * Function used to assign link */ function cblink($params) { global $ClipBucket; $name = $params['name']; $ref = $param['ref']; if ($name == 'category') { return category_link($params['data'], $params['type']); } if ($name == 'sort') { return sort_link($params['sort'], 'sort', $params['type']); } if ($name == 'time') { return sort_link($params['sort'], 'time', $params['type']); } if ($name == 'tag') { return BASEURL . '/search_result.php?query=' . urlencode($params['tag']) . '&type=' . $params['type']; } if ($name == 'category_search') { return BASEURL . '/search_result.php?category[]=' . $params['category'] . '&type=' . $params['type']; } if (SEO != 'yes') { preg_match('/http:\\/\\//', $ClipBucket->links[$name][0], $matches); if ($matches) { $link = $ClipBucket->links[$name][0]; } else { $link = BASEURL . '/' . $ClipBucket->links[$name][0]; } } else { preg_match('/http:\\/\\//', $ClipBucket->links[$name][1], $matches); if ($matches) { $link = $ClipBucket->links[$name][1]; } else { $link = BASEURL . '/' . $ClipBucket->links[$name][1]; } } $param_link = ""; if (!empty($params['extra_params'])) { preg_match('/\\?/', $link, $matches); if (!empty($matches[0])) { $param_link = '&' . $params['extra_params']; } else { $param_link = '?' . $params['extra_params']; } } if ($params['assign']) { assign($params['assign'], $link . $param_link); } else { return $link . $param_link; } }
<?php use_helper('LsText'); ?> <?php include_partial('industry/header', array('category' => $category)); ?> <span class="text_big"> <?php include_partial('global/datatable', array('data' => array('Sector' => link_to($sector, 'industry/list?sector=' . $sector), 'Industry' => $industry, 'Category' => category_link($category)))); ?> <br /> <?php if ($type == 'people') { ?> <?php include_partial('global/section', array('title' => 'People')); ?> <?php include_partial('global/table', array('pager' => $person_pager, 'row_partial' => 'industry/listrow')); ?> <?php } elseif ($type == 'orgs') {
$cats = get_categories('order_by=position asc&parent_id=' . $parent); ?> <div class="categories-posts categories-posts-big mw-open-module-settings"> <?php if ($cats != false) { foreach ($cats as $cat) { $latest_product = get_content("order_by=position desc&category=" . $cat['id']); if (isset($latest_product[0]) == false) { continue; } $latest_product = $latest_product[0]; $pic = get_picture($latest_product['id']); ?> <a href="<?php print category_link($cat['id']); ?> "> <span class="bgimg" style="background-image: url(<?php print thumbnail($pic, 1100, 1100); ?> );"></span> <strong><?php print $cat['title']; ?> </strong> </a> <?php } } else { print lnotif('Select category'); } ?>
} ?> <?php if ($category['industry_name'] != $industry_name) { ?> <h3><?php echo $category['industry_name']; ?> </h3> <?php } ?> <?php echo category_link($category); ?> <br /> <?php $category_name = $category['category_name']; ?> <?php $industry_name = $category['industry_name']; ?> <?php $sector_name = $category['sector_name']; } ?> </span>
<div class="hr"> </div> <div class="bluebox"> <div class="bluebox_content"> <? $params= array(); $params['display']= 'post_item_video_sidebar.php'; $params['items_per_page'] = 3; $params['category'] = $active_categories[0]; $params['curent_page'] = rand(1,5); get_posts($params); ?> <a href="<? print category_link($active_categories[0]); ?>" class="more">See more videos</a> </div> </div> </div> <div class="c"> </div> <br /> <? include(TEMPLATE_DIR.'banner_wide.php') ; ?> <br /> <br /> <div class="c"> </div> <h2>Comments</h2> <? comments_list($post['id']) ?> <br /> <div class="c"> </div> <br /> <h2 class="coment-title">Post your comment</h2> <? comment_post_form($post['id']) ?>
/** * Function used to turn db category into links */ function categories($input, $type, $sep = ',', $object_name = null) { global $cbvideo; switch ($type) { case 'video': //default: $obj = $cbvideo; break; case 'group': case 'groups': global $cbgroup; $obj = $cbgroup; break; case 'user': case 'users': global $userquery; $obj = $userquery; break; case 'collection': case 'collections': global $cbcollection; $obj = $cbcollection; break; default: global ${$object_name}; $obj = ${$object_name}; } preg_match_all('/#([0-9]+)#/', $input, $m); $cat_array = array($m[1]); $cat_array = $cat_array[0]; $count = 1; $total = count($cat_array); $cats = ''; foreach ($cat_array as $cat) { $cat_details = $obj->get_category($cat); $params = array('name' => 'category_search', 'category' => $cat_details['category_id'], 'type' => $type); $cats .= '<a href="' . category_link($cat_details, $type) . '">' . $cat_details['category_name'] . '</a>'; if ($count < $total) { $cats .= $sep; } $count++; } return $cats; }
$html = ''; ?> </ol> </div> </div> </section> <section id="taxonomy-listings"> <div class="min-max"> <div class="listing"> <h4>Top Categories</h4> <ul class="links"> <?php $args = array('type' => 'post', 'child_of' => 0, 'parent' => '', 'orderby' => 'count', 'order' => 'desc', 'hide_empty' => 1, 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'number' => 12, 'taxonomy' => 'category', 'pad_counts' => false); $categories = get_categories($args); foreach ($categories as $category) { $html .= category_link($category, true); } echo $html; $html = ''; ?> </ul> </div> <div class="listing"> <h4>Top Tags</h4> <ul class="links"> <?php $args = array('type' => 'post', 'child_of' => 0, 'parent' => '', 'orderby' => 'count', 'order' => 'desc', 'hide_empty' => 1, 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'number' => 12, 'taxonomy' => 'tag', 'pad_counts' => false); $tags = get_tags($args); foreach ($tags as $tag) { $html .= tag_link($tag, true); }