"> <?php } else { ?> <img class="tz_more_conten_comment_imgs" src="<?php echo JUri::root() . '/components/com_tz_pinboard/images/avata.jpg'; ?> "> <?php } ?> <a rel="nofollow" href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($Pins->showcomment[$i]->id_user)); ?> "> <p class="tz_more_conten_comment_p_names"> <?php echo $Pins->showcomment[$i]->user_name; ?> </p> </a> <p class="tz_more_conten_comment_ps"> <?php echo $Pins->showcomment[$i]->content_cm; ?> </p> <?php
} else { ?> <img class="tz_pin_following_left_img" src="<?php echo JUri::root() . '/components/com_tz_pinboard/images/avata.jpg'; ?> "> <?php } ?> </div> <div class="tz_pin_following_right"> <ul> <li class="tz_pin_following_right_li1"> <a href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($followers->thongtin->uid)); ?> " rel="nofollow"> <?php echo $followers->thongtin->uname; ?> </a> <?php if ($followers->thongtin->uid != $this->sosanhuser) { if ($followers->followCheck['f'] == '0' || $followers->followCheck['f'] == '') { ?> <button class="tz_pin_following_button btn tz_followers" data-option-id="<?php echo $followers->thongtin->uid; ?>
"> <?php } else { ?> <img class="tz_comment_imgs" src="<?php echo JUri::root() . '/components/com_tz_pinboard/images/avata.jpg'; ?> "> <?php } ?> <p class="tz_detail_name_d"> <a class="tz_comment_name" href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($this->ShowCommnet[$i]->id_user)); ?> "> <?php $name = $this->ShowCommnet[$i]->user_name; echo ucwords($name); ?> </a> <?php if (isset($this->show_date) && $this->show_date == 1) { ?> <span class="tz_comment_dt"> <?php echo date(JText::_('TZ_PINBOARD_DATE_FOMAT_COMMENT'), strtotime($this->ShowCommnet[$i]->dates)); ?> </span>
case 'f': echo JText::_('MOD_TZ_PINBOARD_ACTIVE_FOLLOW'); break; case 'uf': echo JText::_('MOD_TZ_PINBOARD_ACTIVE_UNFOLLOW'); break; case 'c': echo JText::_('MOD_TZ_PINBOARD_ACTIVE_COMMENT'); break; default: break; } ?> </span> <span> <?php if ($this->data[$i]->a_active == 'f' || $this->data[$i]->a_active == 'uf') { echo "<a href='" . JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($this->data[$i]->a_target)) . "'>" . $this->data[$i]->follow->u_name . "</a>"; } else { echo "<a href='" . JRoute::_('index.php?option=com_tz_pinboard&view=detail&id_pins=' . $this->data[$i]->a_target) . "'>" . $this->data[$i]->p_title . "</a>"; } ?> </span> </p> <div class="cler"></div> </li> <?php } }
?> <div class="tz_detail_pl"> <span class="tz_button_repin tz_repin" data-option-id="<?php echo $this->show_detail->content_id; ?> "> <?php echo JText::_('COM_TZ_PINBOARD_MANAGERUSER_REPIN'); ?> </span> <span class="tz_pinboard_sp">/</span> <?php if ($this->show_detail->id_user == $this->sosanhuser) { ?> <a href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute('', $this->show_detail->content_id)); ?> " rel="nofollow"> <span class="tz_button_repin "> <?php echo JText::_('COM_TZ_PINBOARD_MANAGERUSER_EDITS'); ?> </span> </a> <?php } else { ?> <span class="tz_button_repin <?php if ($this->show_detail->check_like['p'] == '1') { echo "tz_check_like";
<td> <a style="cursor: pointer;" class="pointer" onclick="if (window.parent) window.parent.<?php echo $this->escape($function); ?> ('<?php echo $item->id; ?> ', '<?php echo $this->escape(addslashes($item->title)); ?> ', '<?php echo $this->escape($item->catid); ?> ', null, '<?php echo $this->escape(TZ_PinboardHelperRoute::getArticleRoute($item->id)); ?> ');"> <?php echo $this->escape($item->title); ?> </a> </td> <td class="center small"> <?php echo $this->escape($item->access_level); ?> </td> <td class="center small"> <?php echo $this->escape($item->category_title);
<?php echo $this->loadtemplate('menu'); ?> <div class="cler"></div> </div> <div id="tz_conten_board"> <div id="tz_conten_board_1"> <?php if (isset($this->Boarpin)) { foreach ($this->Boarpin as $rowname) { ?> <div class="tz_conten_board_class"> <div class="tz_board_class"> <h6 class="tz_conten_board_class_h5"> <a href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManagetuset2('', $rowname->created_user_id, $rowname->id_board)); ?> " rel="nofollow"> <?php echo $rowname->name_board; ?> </a> <span> <?php echo $rowname->countpins->numberpin; ?> <?php echo JText::_('COM_TZ_PINBOARD_SUBMENU_PINS_NUMBER'); ?> </span>
?> "> <?php } else { ?> <img class="tz_pin_img_user" src="<?php echo JUri::root() . '/components/com_tz_pinboard/images/avata.jpg'; ?> "> <?php } ?> <a class="tz_pin_name_user" href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($Pins->id_user)); ?> " rel="nofollow"> <?php echo $Pins->user_name; ?> <?php if (isset($Pins->name_user_repin) && !empty($Pins->name_user_repin)) { ?> <strong class="tz_by"> <?php echo JText::_('COM_TZ_PINBOARD_MANAGERUSER_REPIN_BY'); ?> </strong> <?php
case 'uf': echo JText::_('MOD_TZ_PINBOARD_ACTIVE_UNFOLLOW'); break; case 'c': echo JText::_('MOD_TZ_PINBOARD_ACTIVE_COMMENT'); break; default: break; } ?> </span> <?php if ($row->a_active == 'f' || $row->a_active == 'uf') { echo "<a href='" . JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($row->a_target)) . "'>" . $row->follow . "</a>"; } else { echo "<a href='" . JRoute::_('index.php?option=com_tz_pinboard&view=detail&id_pins=' . $row->a_target) . "'>" . $row->p_title . "</a>"; } ?> </p> <div class="cler"></div> </li> <?php } } else { echo "<li class='tz_active_not'><span>" . JText::_("MOD_TZ_PINBOARD_ACTIVE_NOT_ACTIVE") . "<span></li>"; } ?>
function UpdatePinss() { $id_board = $this->model->updatePins(); $url = JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute()); $red = JFactory::getApplication(); $red->redirect($url); }
function InsertCategory_board() { $this->model->InsertCategory(); $url = JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute()); $red = JFactory::getApplication(); $red->redirect($url); }
function TzSendEmail($id) { $title = "Add Pinboard"; $url_Detal = JRoute::_(TZ_PinboardHelperRoute::getPinboardDetailRoute($id), true, -1); $doc = JFactory::getConfig(); $arr = $doc->toArray(); $body = JText::sprintf("TZ_PINBOARD_SEND_EMAIL", $arr['fromname'], '<a href="' . $url_Detal . '">' . $url_Detal . '</a>'); $contact = $arr['mailfrom']; $mail = JFactory::getMailer(); $mail->addRecipient($contact, 'Admin'); $mail->setSubject($title); $mail->setBody($body); $mail->IsHTML(true); $sent = $mail->Send(); }
echo JUri::root() . '/' . $this->displayComment[$i]->img_user; ?> "> <?php } else { ?> <img class="tz_more_conten_comment_imgs" src="<?php echo JUri::root() . '/components/com_tz_pinboard/images/avata.jpg'; ?> "> <?php } ?> <a rel="nofollow" href="<?php echo JRoute::_(TZ_PinboardHelperRoute::getPinboardManageruserRoute($this->displayComment[$i]->id_user)); ?> "> <p class="tz_more_conten_comment_p_names"> <?php echo $this->displayComment[$i]->user_name; ?> </p> </a> <p class="tz_more_conten_comment_ps"> <?php echo $this->displayComment[$i]->content_cm; ?> </p> <?php if (isset($this->show_date) && $this->show_date == 1) {
protected static function _findItem($needles = null) { $app = JFactory::getApplication(); $menus = $app->getMenu('site'); $active = $menus->getActive(); $component = JComponentHelper::getComponent('com_tz_pinboard'); $items = $menus->getItems('component_id', $component->id); // Prepare the reverse lookup array. if (self::$lookup === null) { self::$lookup = array(); foreach ($items as $item) { if (isset($item->query) && isset($item->query['view'])) { $view = $item->query['view']; if (!isset(self::$lookup[$view])) { self::$lookup[$view] = array(); } if ($active && $active->component == 'com_tz_pinboard') { if (isset($active->query) && isset($active->query['view'])) { if (isset($active->query['id'])) { self::$lookup[$active->query['view']][$active->query['id']] = $active->id; } } } } } } if ($needles) { foreach ($needles as $view => $ids) { if (isset(self::$lookup[$view])) { if ($view == 'manageruser') { foreach ($items as $item) { if ($view == $item->query['view']) { $Itemid = $item->id; return $Itemid; } } } else { if ($view == 'tags') { foreach ($items as $item) { if (isset($item->query['id_tag']) && !empty($item->query['id_tag'])) { foreach ($ids as $id) { if ($id == (int) $item->query['id_tag']) { $Itemid = $item->id; return $Itemid; } } } } return $component->params->get('mymenuitem'); } else { if ($view == 'addpinboards') { foreach ($items as $item) { if ($view == $item->query['view']) { $Itemid = $item->id; return $Itemid; } } } else { if ($view == "detail") { foreach ($items as $item) { if ($view == $item->query['view']) { $Itemid = $item->id; return $Itemid; } } } } } } foreach ($ids as $id) { if (isset(self::$lookup[$view][(int) $id])) { return self::$lookup[$view][(int) $id]; } } } } } else { if ($active && $active->component == 'com_tz_pinboard') { return $active->id; } } return null; }