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


PHP JHTML::image方法代码示例

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


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

示例1: onAfterDisplayContent

 /**
  * Method is called by the view and the results are imploded and displayed in a placeholder
  *
  * @param       object	The article object. Note $article->text is also available
  * @param       object	The article params
  * @param       int		The 'page' number
  * @return      string
  */
 function onAfterDisplayContent(&$article, &$params, $limitstart)
 {
     $regex = '/{biztweet}([^{]+){\\/biztweet}/i';
     // simple performance check to determine whether bot should process further
     if (strpos($article->text, 'biztweet') !== false and JRequest::getCmd('view') == 'article') {
         $matches = array();
         if (preg_match_all($regex, $article->text, $matches)) {
             //$search = array_pop($matches); // pop from the end
             $count = count($matches[1]);
             $width = floor(100 / $count);
             // now replace it
             $article->text = preg_replace($regex, '', $article->text);
             // build the html
             $tweets = "";
             if ($this->_params->get('title', '')) {
                 $tweets .= "<div class='contentheading'>" . $this->_params->get('title', '') . "</div>";
             }
             foreach ($matches[1] as $search) {
                 $search = preg_replace('/[^A-Za-z0-9_\\s]/', '', $search);
                 $id = preg_replace('/[^A-Za-z0-9_]/', '__', $search);
                 $tweets .= "<div id='btload_" . $id . "' style='text-align:center;'>";
                 $tweets .= JHTML::image(JURI::base() . 'plugins/content/biztweet/loading.gif', JText::_('Loading...'));
                 $tweets .= "</div>";
                 $tweets .= "<ul class='timeline btsearchbox' title='" . $search . "' id='btsearch1'></ul>";
             }
             $tweets .= "<div style='clear:both;'></div>";
             return $tweets;
         }
     } else {
         if (strpos($article->text, 'biztweet') !== false and JRequest::getCmd('view') != 'article') {
             // remove the tag
             $article->text = preg_replace($regex, '', $article->text);
         }
     }
 }
开发者ID:joomux,项目名称:BizTweet,代码行数:43,代码来源:biztweet.php

示例2: getData

 function getData()
 {
     $user = JFactory::getUser();
     if ($this->_id) {
         $query = ' SELECT i.* ' . ' FROM #__tracks_individuals as i ' . ' WHERE i.id = ' . $this->_id;
     } else {
         if ($user->get('id')) {
             $query = ' SELECT i.* ' . ' FROM #__tracks_individuals as i ' . ' WHERE i.user_id = ' . $user->get('id');
         } else {
             JError::raiseError(403, JText::_('COM_TRACKS_ERROR_MUST_BE_LOGGED'));
             return false;
         }
     }
     $this->_db->setQuery($query);
     if ($result = $this->_db->loadObject()) {
         $this->_data = $result;
         $attribs['class'] = "pic";
         if ($this->_data->picture != '') {
             $this->_data->picture = JHTML::image(JURI::root() . $this->_data->picture, $this->_data->first_name . ' ' . $this->_data->last_name, $attribs);
         } else {
             $this->_data->picture = JHTML::image(JURI::root() . 'media/com_tracks/images/misc/tnnophoto.jpg', $this->_data->first_name . ' ' . $this->_data->last_name, $attribs);
         }
         if ($this->_data->picture_small != '') {
             $this->_data->picture_small = JHTML::image(JURI::root() . $this->_data->picture_small, $this->_data->first_name . ' ' . $this->_data->last_name, $attribs);
         } else {
             $this->_data->picture_small = JHTML::image(JURI::root() . 'media/com_tracks/images/misc/tnnophoto.jpg', $this->_data->first_name . ' ' . $this->_data->last_name, $attribs);
         }
     }
     return $this->_data;
 }
开发者ID:julienV,项目名称:Joomla-Tracks,代码行数:30,代码来源:profile.php

示例3: getTables

 function getTables()
 {
     $tables = array();
     $data = array();
     $data[] = array('<b>' . JText::_('URL') . '</b>', $this->_logRecord->url);
     if ($this->_logRecord->ip) {
         $ipBlocked = JD_Block_Helper::isIPBlocked($this->_logRecord->ip);
         $src = $ipBlocked ? JURI::base() . 'components/com_jdefender/images/locked.gif' : JURI::base() . 'components/com_jdefender/images/unlocked.gif';
         $img = JHTML::image($src, JText::_('Block/Unblock user'), array('id' => 'user_ip_img', 'onclick' => 'toggleLockImage(); xajax_jdBlockParam(\'user_ip_img\', \'ip\', \'' . $this->_logRecord->ip . '\')', 'title' => JText::_('Block/Unblock IP'), 'class' => 'hasTip', 'style' => 'cursor: pointer'));
         $data[] = array('<b>' . JText::_('IP Address') . '</b>', $img . ' ' . $this->_logRecord->ip);
     }
     if ($this->_logRecord->user_id) {
         $user =& JFactory::getUser($this->_logRecord->user_id);
         $isUserBlocked = JD_Block_Helper::isUserBlocked($user->get('id'));
         $src = $isUserBlocked ? JURI::base() . 'components/com_jdefender/images/locked.gif' : JURI::base() . 'components/com_jdefender/images/unlocked.gif';
         $img = JHTML::image($src, JText::_('Block/Unblock user'), array('id' => 'user_img_' . $user->get('id'), 'onclick' => 'toggleLockImage(); xajax_jdBlockParam(\'user_img_' . $user->get('id') . '\', \'user\',' . $user->get('id') . ')', 'title' => JText::_('Block/Unblock user'), 'class' => 'hasTip', 'style' => 'cursor: pointer'));
         $userId = $img . ' ' . $user->get('id');
         $data[] = array('<b>' . JText::_('User ID') . '</b>', $userId);
         $data[] = array('<b>' . JText::_('Username') . '</b>', $user->get('username'));
         $data[] = array('<b>' . JText::_('Name') . '</b>', $user->get('name'));
         $data[] = array('<b>' . JText::_('Email') . '</b>', JHTML::_('email.cloak', $user->get('email')));
     }
     // unset($this->_logRecord->status);
     unset($this->_logRecord->url);
     $tables[] = $data;
     return $tables;
 }
开发者ID:alphashuro,项目名称:audeprac,代码行数:27,代码来源:jd_blocked_users_ips_log_reader.php

示例4: getLogo

 function getLogo(&$item, $class)
 {
     $imgtype = $this->params->get('logotype', 'logo_middle');
     $logourl = (!empty($item->{$imgtype}) and file_exists(JPATH_ROOT . DS . str_replace('/', DS, $item->{$imgtype}))) ? $item->{$imgtype} : $this->placeholders[$imgtype];
     //echo $logourl.'<br />';
     $imgtitle = JText::_('View ') . $item->team_name;
     return JHTML::image($logourl, $item->team_name, 'border="0" class="' . $class . '" title="' . $imgtitle . '"');
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:8,代码来源:helper.php

示例5: display

 public function display($tpl = null)
 {
     // Automatically fetch items, total and pagination - and assign them to the template
     $this->setAutoClean(false);
     $this->fetchItems();
     $document =& JFactory::getDocument();
     // Get some variables
     $layout = $this->params->get('layout', 'default');
     $clayout = $this->params->get('clayout', 'default');
     // Load the layout-specific stylesheet
     $this->addCss('view-categories-' . $clayout . '.css');
     // Get the parent-category from our model
     $model =& $this->getModel();
     $parent = $model->getParent();
     // Set the page title
     $page_title = $this->params->get('page_title');
     if ($this->params->get('show_page_title') == 1 && !empty($page_title)) {
         $document->setTitle($page_title);
         $parent->title = $page_title;
     } elseif (!empty($parent->title)) {
         $document->setTitle($parent->title);
     }
     // Loop through the list to set things right
     if (count($this->items) > 0) {
         foreach ($this->items as $id => $item) {
             if ($this->params->get('show_category_title') == 0) {
                 $item->title = null;
             }
             if ($this->params->get('show_category_description') == 0) {
                 $item->description = null;
             }
             $layout = $item->params->get('layout', $layout);
             $needles = array('category_id' => $item->id, 'category_alias' => $item->alias, 'layout' => $layout);
             $item->link = SimplelistsHelper::getUrl($needles);
             // Reinsert this item
             $this->items[$id] = $item;
         }
     } else {
         $this->assignRef('message', JText::_('No categories found'));
     }
     // prepare the image
     if ($this->params->get('show_category_image') && !empty($parent->image)) {
         $parent->image = JHTML::image($parent->image, $parent->title, 'title="' . $parent->title . '" class="simplelists" align="' . $parent->image_position . '"');
     } else {
         $parent->image = null;
     }
     // prepare the title
     if ($this->params->get('show_category_title') == 0) {
         $parent->title = null;
     }
     // prepare the description
     if ($this->params->get('show_category_description') == 0) {
         $parent->description = null;
     }
     $this->assignRef('category', $parent);
     parent::display($tpl);
 }
开发者ID:renekreijveld,项目名称:SimpleLists,代码行数:57,代码来源:view.html.php

示例6: getFUOFBCustomImage

 function getFUOFBCustomImage($image_text, $custom_image)
 {
     $mod_URL = 'media/mod_fuofb/images/';
     $mod_path = 'media/mod_fuofb/images/';
     $img_URL = $mod_URL . $custom_image;
     $img_path = $mod_path . $custom_image;
     $size = getimagesize(JPATH_BASE . '/' . $img_path);
     //get dimensions of image
     $attr = array('title' => $image_text, 'width' => $size[0], 'height' => $size[1]);
     $img = JHTML::image(JURI::base() . $img_URL, 'Find Us On FaceBook - Image', $attr);
     return $img;
 }
开发者ID:Rikisha,项目名称:proj,代码行数:12,代码来源:helper.php

示例7: listMessagesTitle

 static function listMessagesTitle($newsletter, $messages, $linkable)
 {
     $base_jinc = JURI::base() . 'components/com_jinc/assets/images/icons/';
     $options = array('height' => 16, 'width' => 16, 'title' => JText::_('COM_JINC_ATTACHMENT'));
     $attach_img = JHTML::image($base_jinc . 'attachment.png', JText::_('COM_JINC_ATTACHMENT'), $options);
     echo '<table class="tbl_oldmsg" align="center" width="95%">';
     echo '<thead><tr>';
     echo '<th width="65%" align="left">' . JText::_('COM_JINC_SUBJECT') . '</th>';
     echo '<th width="25%" align="center">' . JText::_('COM_JINC_MSGSENT') . '</th>';
     echo '<th width="10%" align="center">' . $attach_img . '</th>';
     echo '</tr></thead>';
     $i = 0;
     foreach ($messages as $message) {
         $subject = $message->subject;
         $body = $message->body . $newsletter->get('disclaimer');
         $body = preg_replace('/\\[SENDER\\]/s', $newsletter->get('sendername'), $body);
         $body = preg_replace('/\\[SENDERMAIL\\]/s', $newsletter->get('senderaddr'), $body);
         $body = preg_replace('/\\[NEWSLETTER\\]/s', $newsletter->get('name'), $body);
         $news_id = $newsletter->get('id');
         $unsub_link = JURI::root() . 'index.php?option=com_jinc&view=newsletter&layout=unsubscription&news_id=' . $news_id;
         $body = preg_replace('/\\[UNSUBSCRIPTIONURL\\]/s', $unsub_link, $body);
         $user = JFactory::getUser();
         if (!$user->guest) {
             $user_mail = $user->get('email');
             $userid = $user->get('username');
             $username = $user->get('name');
             $current = array('usermail' => $user_mail, 'userid' => $userid, 'username' => $username);
             foreach ($current as $key => $value) {
                 $body = preg_replace('/\\[' . strtoupper($key) . '\\]/s', $value, $body);
             }
         }
         $datasent = $message->datasent;
         $attachment = str_replace(DIRECTORY_SEPARATOR, '/', $message->attachment);
         $link_att = JRoute::_('images/' . $attachment);
         echo '<tr class="row' . $i % 2 . '">';
         echo '<td width="50%">';
         if ($linkable) {
             echo '<a href="index.php?option=com_jinc&view=message&id=' . $message->id . '">' . $subject . '</a>';
         } else {
             echo JHTML::tooltip(substr(strip_tags($body), 0, 75) . ' ...', $subject, '', $subject);
         }
         echo '</td>';
         echo '<td width="20%" align="center">' . $datasent . '</td>';
         echo '<td width="8%" align="center">';
         if (strlen($message->attachment) > 0) {
             echo $attach_img;
         }
         echo '</td>';
         echo '</tr>';
         $i++;
     }
     echo '</table>';
 }
开发者ID:sulicz,项目名称:JINC_J30,代码行数:53,代码来源:jincfrontendhelper.php

示例8: getversionlist

    function getversionlist()
    {
        // Check for request forgeries
        JRequest::checkToken('request') or jexit('Invalid Token');
        @ob_end_clean();
        $id = JRequest::getInt('id', 0);
        $active = JRequest::getInt('active', 0);
        if (!$id) {
            return;
        }
        $revert = JHTML::image('administrator/components/com_flexicontent/assets/images/arrow_rotate_anticlockwise.png', JText::_('FLEXI_REVERT'));
        $view = JHTML::image('administrator/components/com_flexicontent/assets/images/magnifier.png', JText::_('FLEXI_VIEW'));
        $comment = JHTML::image('administrator/components/com_flexicontent/assets/images/comment.png', JText::_('FLEXI_COMMENT'));
        $model = $this->getModel('item');
        $model->setId($id);
        $item = $model->getItem($id);
        $cparams = JComponentHelper::getParams('com_flexicontent');
        $versionsperpage = $cparams->get('versionsperpage', 10);
        $currentversion = $item->version;
        $page = JRequest::getInt('page', 0);
        $versioncount = $model->getVersionCount();
        $numpage = ceil($versioncount / $versionsperpage);
        if ($page > $numpage) {
            $page = $numpage;
        } elseif ($page < 1) {
            $page = 1;
        }
        $limitstart = ($page - 1) * $versionsperpage;
        $versions = $model->getVersionList();
        $versions = $model->getVersionList($limitstart, $versionsperpage);
        $jt_date_format = FLEXI_J16GE ? 'FLEXI_DATE_FORMAT_FLEXI_VERSIONS_J16GE' : 'FLEXI_DATE_FORMAT_FLEXI_VERSIONS';
        $df_date_format = FLEXI_J16GE ? "d/M H:i" : "%d/%m %H:%M";
        $date_format = JText::_($jt_date_format);
        $date_format = $date_format == $jt_date_format ? $df_date_format : $date_format;
        $ctrl_task = FLEXI_J16GE ? 'task=items.edit' : 'controller=items&task=edit';
        foreach ($versions as $v) {
            $class = $v->nr == $active ? ' id="active-version"' : '';
            echo '
			<tr' . $class . '>
				<td class="versions">#' . $v->nr . '</td>
				<td class="versions">' . JHTML::_('date', $v->nr == 1 ? $item->created : $v->date, $date_format) . '</td>
				<td class="versions">' . ($v->nr == 1 ? $item->creator : $v->modifier) . '</td>
				<td class="versions" align="center">
					<a href="javascript:;" class="hasTooltip" title="' . JHtml::tooltipText(JText::_('FLEXI_COMMENT'), $v->comment ? $v->comment : 'No comment written', 0, 1) . '">' . $comment . '</a>
				' . ((int) $v->nr == (int) $currentversion ? '<a onclick="javascript:return clickRestore(\'index.php?option=com_flexicontent&' . $ctrl_task . '&cid=' . $item->id . '&version=' . $v->nr . '\');" href="javascript:;">' . JText::_('FLEXI_CURRENT') . '</a>' : '<a class="modal-versions" href="index.php?option=com_flexicontent&view=itemcompare&cid[]=' . $item->id . '&version=' . $v->nr . '&tmpl=component" title="' . JText::_('FLEXI_COMPARE_WITH_CURRENT_VERSION') . '" rel="{handler: \'iframe\', size: {x:window.getSize().scrollSize.x-100, y: window.getSize().size.y-100}}">' . $view . '</a>
					<a onclick="javascript:return clickRestore(\'index.php?option=com_flexicontent&' . $ctrl_task . '&cid=' . $item->id . '&version=' . $v->nr . '&' . JSession::getFormToken() . '=1\');" href="javascript:;" title="' . JText::sprintf('FLEXI_REVERT_TO_THIS_VERSION', $v->nr) . '">' . $revert . '</a>
				') . '
				</td>
			</tr>';
        }
        exit;
    }
开发者ID:khetsothea,项目名称:flexicontent-cck,代码行数:52,代码来源:items.raw.php

示例9: getversionlist

 function getversionlist()
 {
     // Check for request forgeries
     JRequest::checkToken('request') or jexit('Invalid Token');
     @ob_end_clean();
     $id = JRequest::getInt('id', 0);
     $active = JRequest::getInt('active', 0);
     if (!$id) {
         return;
     }
     $revert = JHTML::image('administrator/components/com_flexicontent/assets/images/arrow_rotate_anticlockwise.png', JText::_('FLEXI_REVERT'));
     $view = JHTML::image('administrator/components/com_flexicontent/assets/images/magnifier.png', JText::_('FLEXI_VIEW'));
     $comment = JHTML::image('administrator/components/com_flexicontent/assets/images/comment.png', JText::_('FLEXI_COMMENT'));
     $model = $this->getModel('item');
     $model->setId($id);
     $item = $model->getItem($id);
     $cparams = JComponentHelper::getParams('com_flexicontent');
     $versionsperpage = $cparams->get('versionsperpage', 10);
     $currentversion = $item->version;
     $page = JRequest::getInt('page', 0);
     $versioncount = $model->getVersionCount();
     $numpage = ceil($versioncount / $versionsperpage);
     if ($page > $numpage) {
         $page = $numpage;
     } elseif ($page < 1) {
         $page = 1;
     }
     $limitstart = ($page - 1) * $versionsperpage;
     $versions = $model->getVersionList();
     $versions = $model->getVersionList($limitstart, $versionsperpage);
     $jt_date_format = FLEXI_J16GE ? 'FLEXI_DATE_FORMAT_FLEXI_VERSIONS_J16GE' : 'FLEXI_DATE_FORMAT_FLEXI_VERSIONS';
     $df_date_format = FLEXI_J16GE ? "d/M H:i" : "%d/%m %H:%M";
     $date_format = JText::_($jt_date_format);
     $date_format = $date_format == $jt_date_format ? $df_date_format : $date_format;
     $ctrl_task = FLEXI_J16GE ? 'task=items.edit' : 'controller=items&task=edit';
     foreach ($versions as $v) {
         $class = $v->nr == $active ? ' id="active-version"' : '';
         echo "<tr" . $class . "><td class='versions'>#" . $v->nr . "</td>\n\t\t\t\t<td class='versions'>" . JHTML::_('date', $v->nr == 1 ? $item->created : $v->date, $date_format) . "</td>\n\t\t\t\t<td class='versions'>" . ($v->nr == 1 ? $item->creator : $v->modifier) . "</td>\n\t\t\t\t<td class='versions' align='center'><a href='#' class='hasTip' title='Comment::" . $v->comment . "'>" . $comment . "</a>";
         if ((int) $v->nr == (int) $currentversion) {
             //is current version?
             echo "<a onclick='javascript:return clickRestore(\"index.php?option=com_flexicontent&" . $ctrl_task . "&cid=" . $item->id . "&version=" . $v->nr . "\");' href='#'>" . JText::_('FLEXI_CURRENT') . "</a>";
         } else {
             echo "<a class='modal-versions' href='index.php?option=com_flexicontent&view=itemcompare&cid[]=" . $item->id . "&version=" . $v->nr . "&tmpl=component' title='" . JText::_('FLEXI_COMPARE_WITH_CURRENT_VERSION') . "' rel='{handler: \"iframe\", size: {x:window.getSize().scrollSize.x-100, y: window.getSize().size.y-100}}'>" . $view . "</a><a onclick='javascript:return clickRestore(\"index.php?option=com_flexicontent&" . $ctrl_task . "&cid=" . $item->id . "&version=" . $v->nr . "&" . (FLEXI_J30GE ? JSession::getFormToken() : JUtility::getToken()) . "=1\");' href='#' title='" . JText::sprintf('FLEXI_REVERT_TO_THIS_VERSION', $v->nr) . "'>" . $revert;
         }
         echo "</td></tr>";
     }
     exit;
 }
开发者ID:noxidsoft,项目名称:flexicontent-cck,代码行数:48,代码来源:items.raw.php

示例10: legend

 static function legend($legend_array, $img_base = 'components/com_jinc/assets/images/')
 {
     echo '<table cellspacing="0" cellpadding="4" align="center">';
     echo '<tr align="center">';
     for ($i = 0; $i < count($legend_array); $i++) {
         $element = $legend_array[$i];
         $text = JText::_($element['text']);
         $icon = $element['icon'];
         $alternate = isset($element['alt']) ? $element['alt'] : $text;
         $img_url = JURI::base() . $img_base . $icon;
         $img_options = array("height" => 16, "width" => 16);
         $img = JHTML::image($img_url, $alternate, $img_options);
         echo '<td>' . $img . '&nbsp;&nbsp;';
         echo $text . '&nbsp;&nbsp;&nbsp;&nbsp;</td>';
     }
     echo '</tr></table>';
 }
开发者ID:sulicz,项目名称:JINC_J30,代码行数:17,代码来源:jinchtmlhelper.php

示例11: getIndividuals

 function getIndividuals($project_id = 0)
 {
     if (!$project_id) {
         $this->setError(JText::_('COM_TRACKS_No_project_specified'));
         return null;
     }
     $query = ' SELECT i.id, i.first_name, i.last_name, i.country_code, i.picture, i.picture_small, ' . ' pi.number, pi.team_id, ' . ' t.name as team_name, t.picture_small AS team_logo, ' . ' CASE WHEN CHAR_LENGTH( i.alias ) THEN CONCAT_WS( \':\', i.id, i.alias ) ELSE i.id END AS slug, ' . ' CASE WHEN CHAR_LENGTH( t.alias ) THEN CONCAT_WS( \':\', t.id, t.alias ) ELSE t.id END AS teamslug ' . ' FROM #__tracks_participants as pi ' . ' INNER JOIN #__tracks_individuals as i ON i.id = pi.individual_id ' . ' LEFT JOIN #__tracks_teams as t ON t.id = pi.team_id ' . ' WHERE pi.project_id = ' . $project_id . ' ORDER BY pi.number ASC, i.last_name ASC, i.first_name ASC ';
     $this->_db->setQuery($query);
     $result = $this->_db->loadObjectList();
     $count = count($result);
     for ($i = 0; $i < $count; $i++) {
         $obj =& $result[$i];
         $attribs['class'] = "pic";
         if ($obj->picture != '') {
             $obj->picture = JHTML::image(JURI::root() . $obj->picture, $obj->first_name . ' ' . $obj->last_name, $attribs);
         } else {
             $obj->picture = JHTML::image(JURI::root() . 'media/com_tracks/images/misc/tnnophoto.jpg', $obj->first_name . ' ' . $obj->last_name, $attribs);
         }
     }
     return $result;
 }
开发者ID:julienV,项目名称:Joomla-Tracks,代码行数:21,代码来源:projectindividuals.php

示例12: quickiconButton

    function quickiconButton($link, $image, $text, $id, $path = false, $modalclass = '')
    {
        $app = JFactory::getApplication();
        $lang = JFactory::getLanguage();
        $template = $app->getTemplate();
        if (!$path) {
            $path = 'templates/' . $template . '/images/header/';
        }
        //end if
        $modalref = $modalclass ? ' class="' . $modalclass . '"  rel="{handler: \'iframe\' , size: {x:571, y:400}}"' : '';
        if ($modalref) {
            if (!defined('ADD_MODAL_CLASS')) {
                $doc = JFactory::getDocument();
                $doc->addScriptDeclaration("window.addEvent('domready', function()\n\t\t\t   {\n                    \$\$('a.modal').each(function(el)\n                    {\n                        el.addEvent('click', function()\n                        {\n                            (function()\n                            {\n                                SqueezeBox.overlay.removeEvent('click',SqueezeBox.bound.close);\n                            }).delay(250);\n                        }); \n                    }); \n               });");
                define('ADD_MODAL_CLASS', 1);
            }
        }
        // RENDER BTN
        // the id is for auto firing of the buttons
        ?>
		<a id="jcktaskbtn_<?php 
        echo $id;
        ?>
" href="<?php 
        echo $link;
        ?>
"<?php 
        echo $modalref;
        ?>
>
			<?php 
        echo JHTML::image(JUri::root() . $path . $image, $text);
        ?>
			<div><?php 
        echo $text;
        ?>
</div>
		</a>
		<?php 
    }
开发者ID:scarsroga,项目名称:blog-soa,代码行数:40,代码来源:mod_jckquickicon.php

示例13: show

    /**
     * Display home page
     */
    function show($feed, $logs)
    {
        JHTML::stylesheet('media/com_fabrik/css/admin.css');
        jimport('joomla.html.pane');
        $pane =& JPane::getInstance('Sliders');
        JToolBarHelper::title(JText::_('WELCOME'), 'fabrik.png');
        ?>

<table class="adminForm" style="width: 100%">
	<tbody>
		<tr>
			<td valign="top" style="width: 50%">
			<a href="http://fabrikar.com">
				<?php 
        echo JHTML::image('media/com_fabrik/images/logo.png', 'Fabrik logo');
        ?>
				</a>
			<div style="float:left;width:250px;margin-top:30px;">
			<a href="http://fabrikar.com/index.php?option=com_acctexp&task=register&Itemid=44">
				<?php 
        echo JHTML::image('media/com_fabrik/images/box.png', 'Fabrik');
        ?>
			</a>
			</div>
			<div style="margin-left:200px;margin-top:30px;">
			<h1>Subscribe and get</h1>
			<ul>
				<li>Dedicated support</li>
				<li>Concise and clear documentation</li>
				<li>Video tutorials</li>
			</ul>
			<a href="http://fabrikar.com/index.php?option=com_acctexp&task=register&Itemid=44">
			<?php 
        echo JHTML::image('media/com_fabrik/images/subscribe-now.png', 'Fabrik');
        ?>
			</a><br />
			</div>

			</td>
			<td valign="top"  style="width: 50%"><?php 
        echo $pane->startPane("content-pane");
        echo $pane->startPanel('About', "publish-page");
        echo "<table class='adminlist'>\n\t\t\t<tr><td><p>Fabrik is an open source Joomla application builder\ncomponent.</p>\n<p>Fabrik gives people the power to create forms, tables and visualizations that run inside\nJoomla without requiring knowledge of mySQL and PHP, all from within the\nfamiliar Joomla administration interface.</p>\n<p>With Fabrik you can create\napplications that range in complexity from simple contact forms to\ncomplex applications such as a job application site or bug tracking\nsystems.</p></td></tr></table>";
        echo $pane->endPanel();
        echo $pane->startPanel('News', "publish-page");
        echo $feed;
        echo $pane->endPanel();
        echo $pane->startPanel('Stats', "publish-page");
        ?>
			<table class='adminlist'>
			<thead>
				<tr>
					<th style="width:20%"><?php 
        echo JText::_('DATE');
        ?>
</th>
					<th><?php 
        echo JText::_('ACTION');
        ?>
</th>
				</tr>
			</thead>
			<tbody>
					<?php 
        foreach ($logs as $log) {
            ?>
					<tr>
						<td>
						<?php 
            echo $log->timedate_created;
            ?>
						</td>
						<td>
						<span class="editlinktip hasTip" title="<?php 
            echo $log->message_type . "::" . $log->message;
            ?>
">
							<?php 
            echo $log->message_type;
            ?>
						</span>
						</td>
					</tr>
					<?php 
        }
        ?>
				</tbody>
			</table>
			<?php 
        echo $pane->endPanel();
        echo $pane->startPanel('Useful links', "publish-page");
        ?>
			<table class='adminlist'>
				<tbody>
					<tr>
						<td>
						<ul>
//.........这里部分代码省略.........
开发者ID:romuland,项目名称:khparts,代码行数:101,代码来源:home.php

示例14: onDisplayFieldValue

 function onDisplayFieldValue(&$field, $item, $values = null, $prop = 'display')
 {
     // execute the code only if the field type match the plugin type
     if (!in_array($field->field_type, self::$field_types)) {
         return;
     }
     // Get isMobile / isTablet Flags
     static $isMobile = null;
     static $isTablet = null;
     static $useMobile = null;
     if ($useMobile === null) {
         $cparams = JComponentHelper::getParams('com_flexicontent');
         $force_desktop_layout = $cparams->get('force_desktop_layout', 0);
         //$start_microtime = microtime(true);
         $mobileDetector = flexicontent_html::getMobileDetector();
         $isMobile = $mobileDetector->isMobile();
         $isTablet = $mobileDetector->isTablet();
         $useMobile = $force_desktop_layout ? $isMobile && !$isTablet : $isMobile;
         //$time_passed = round(1000000 * 10 * (microtime(true) - $start_microtime)) / 10;
         //printf('<br/>-- [Detect Mobile: %.3f s] ', $time_passed/1000000);
     }
     $field->label = JText::_($field->label);
     // some parameter shortcuts
     $target = $field->parameters->get('targetblank', 0);
     $target_param = $target ? ' target="_blank"' : '';
     $display_hits = $field->parameters->get('display_hits', 0);
     $add_hits_img = $display_hits == 1 || $display_hits == 3;
     $add_hits_txt = $display_hits == 2 || $display_hits == 3 || $isMobile;
     $rel_nofollow = $field->parameters->get('add_rel_nofollow', 0) ? ' rel="nofollow"' : '';
     // This is field 's MAIN value property
     $link_usage = $field->parameters->get('link_usage', 0);
     $default_link = $link_usage == 2 ? $field->parameters->get('default_value_link', '') : '';
     // Optional value properties
     $usetitle = $field->parameters->get('use_title', 0);
     $title_usage = $field->parameters->get('title_usage', 0);
     $default_title = $title_usage == 2 ? JText::_($field->parameters->get('default_value_title', '')) : '';
     // Get field values
     $values = $values ? $values : $field->value;
     // DO NOT terminate yet if value is empty since a default value on empty may have been defined
     // Handle default value loading, instead of empty value
     if (empty($values) && !strlen($default_link)) {
         $field->{$prop} = '';
         return;
     } else {
         if (empty($values) && strlen($default_link)) {
             $values = array();
             $values[0]['link'] = JText::_($default_link);
             $values[0]['title'] = JText::_($default_title);
             $values[0]['hits'] = 0;
             $values[0] = serialize($values[0]);
         }
     }
     // Value handling parameters
     $multiple = $field->parameters->get('allow_multiple', 1);
     // Prefix - Suffix - Separator parameters, replacing other field values if found
     $remove_space = $field->parameters->get('remove_space', 0);
     $pretext = FlexicontentFields::replaceFieldValue($field, $item, $field->parameters->get('pretext', ''), 'pretext');
     $posttext = FlexicontentFields::replaceFieldValue($field, $item, $field->parameters->get('posttext', ''), 'posttext');
     $separatorf = $field->parameters->get('separatorf', 1);
     $opentag = FlexicontentFields::replaceFieldValue($field, $item, $field->parameters->get('opentag', ''), 'opentag');
     $closetag = FlexicontentFields::replaceFieldValue($field, $item, $field->parameters->get('closetag', ''), 'closetag');
     if ($pretext) {
         $pretext = $remove_space ? $pretext : $pretext . ' ';
     }
     if ($posttext) {
         $posttext = $remove_space ? $posttext : ' ' . $posttext;
     }
     switch ($separatorf) {
         case 0:
             $separatorf = '&nbsp;';
             break;
         case 1:
             $separatorf = '<br />';
             break;
         case 2:
             $separatorf = '&nbsp;|&nbsp;';
             break;
         case 3:
             $separatorf = ',&nbsp;';
             break;
         case 4:
             $separatorf = $closetag . $opentag;
             break;
         case 5:
             $separatorf = '';
             break;
         default:
             $separatorf = '&nbsp;';
             break;
     }
     // Optimization, do some stuff outside the loop
     static $hits_icon = null;
     if ($hits_icon === null && ($display_hits == 1 || $display_hits == 3)) {
         $_attribs = $display_hits == 1 ? 'class="hasTip" title=":: %s ' . JText::_('FLEXI_HITS', true) . '"' : '';
         $hits_icon = FLEXI_J16GE ? JHTML::image('components/com_flexicontent/assets/images/' . 'user.png', JText::_('FLEXI_HITS'), $_attribs) : JHTML::_('image.site', 'user.png', 'components/com_flexicontent/assets/images/', NULL, NULL, JText::_('FLEXI_HITS'), $_attribs);
     }
     // needed for backend display
     //if ($display_hits)
     //	$isAdmin = JFactory::getApplication()->isAdmin();
     // initialise property
//.........这里部分代码省略.........
开发者ID:jakesyl,项目名称:flexicontent,代码行数:101,代码来源:weblink.php

示例15: array

/* TO DO add width and height to the image */
if (!empty($this->product->product_availability)) {
    $stockhandle = VmConfig::get('stockhandle', 'none');
    if ($stockhandle == 'risetime' and $this->product->product_in_stock - $this->product->product_ordered < 1) {
        ?>
	<div class="availability">
			    <?php 
        echo JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . VmConfig::get('rised_availability', '7d.gif'), VmConfig::get('rised_availability', '7d.gif'), array('class' => 'availability'));
        ?>
			</div>
		    <?php 
    } else {
        ?>
			<div class="availability">
			<?php 
        echo JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . $this->product->product_availability, $this->product->product_availability, array('class' => 'availability'));
        ?>
			</div>
			<?php 
    }
}
?>

<?php 
// Ask a question about this product
if (VmConfig::get('ask_question', 1) == '1') {
    ?>
    		<div class="ask-a-question">
    		    <a class="ask-a-question" href="<?php 
    echo $url;
    ?>
开发者ID:joselapria,项目名称:virtuemart,代码行数:31,代码来源:default.php


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