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


PHP hwdMediaShareHelperRoute类代码示例

本文整理汇总了PHP中hwdMediaShareHelperRoute的典型用法代码示例。如果您正苦于以下问题:PHP hwdMediaShareHelperRoute类的具体用法?PHP hwdMediaShareHelperRoute怎么用?PHP hwdMediaShareHelperRoute使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getObjectInfo

 function getObjectInfo($id, $language = null)
 {
     $info = new JCommentsObjectInfo();
     $routerHelper = JPATH_SITE . '/components/com_hwdmediashare/helpers/route.php';
     if (is_file($routerHelper)) {
         require_once $routerHelper;
         $db = JFactory::getDBO();
         $db->setQuery('SELECT id, title, access, created_user_id FROM #__hwdms_media WHERE id = ' . $id);
         $row = $db->loadObject();
         if (!empty($row)) {
             $slug = $row->alias ? $row->id . ':' . $row->alias : $row->id;
             $info->title = $row->title ? 'Unknown hwdMediaShare Content' : $row->title;
             $info->userid = $row->created_user_id;
             $info->access = $row->access;
             $info->link = JRoute::_(hwdMediaShareHelperRoute::getMediaItemRoute($slug));
         }
     }
     return $info;
 }
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:19,代码来源:com_hwdmediashare.plugin.php

示例2: load

 public function load($cid)
 {
     static $instances = array();
     if (!isset($instances[$cid])) {
         // Get a row instance.
         JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_hwdmediashare/tables');
         $table = JTable::getInstance('Media', 'hwdMediaShareTable');
         // Attempt to load the row.
         if ($table->load((int) $cid)) {
             // Convert the JTable to a clean JObject.
             $properties = $table->getProperties(1);
             $this->_item = JArrayHelper::toObject($properties, 'JObject');
         } else {
             return $this->onLoadArticleError($cid);
         }
         $slug = $this->_item->alias ? $this->_item->id . ':' . $this->_item->alias : $this->_item->id;
         $link = hwdMediaShareHelperRoute::getMediaItemRoute($slug);
         $this->_item->permalink = $this->prepareLink($link);
         $instances[$cid] = $this->_item;
     }
     $this->_item = $instances[$cid];
     return $this;
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:23,代码来源:com_hwdmediashare.php

示例3:

	<?php 
    if ($result->section) {
        ?>
	<dd class="result-category"> <span class="small<?php 
        echo $this->pageclass_sfx;
        ?>
"> (<?php 
        echo $this->escape($result->section);
        ?>
) </span> </dd>
	<?php 
    }
    ?>
	<dd class="result-text">
		<div class="image-left" style="max-width:100px;"> <a href="<?php 
    echo JRoute::_(hwdMediaShareHelperRoute::getMediaItemRoute($result->id));
    ?>
"> <img src="<?php 
    echo JRoute::_(hwdMediaShareDownloads::thumbnail($result));
    ?>
" border="0" alt="<?php 
    echo $this->escape($result->title);
    ?>
" style="max-width:100%;" /> </a> </div>
		<?php 
    echo $result->text;
    ?>
		<div class="clear"></div>
	</dd>
	<?php 
    if ($this->params->get('show_date')) {
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:default_related.php

示例4:

        ?>
" />
          </div>
          <?php 
        if ($item->duration > 0) {
            ?>
          <div class="media-duration">
             <?php 
            echo hwdMediaShareMedia::secondsToTime($item->duration);
            ?>
          </div>
          <?php 
        }
        ?>
          <a href="<?php 
        echo JRoute::_(hwdMediaShareHelperRoute::getMediaItemRoute($item->slug));
        ?>
">
             <img src="<?php 
        echo JRoute::_(hwdMediaShareDownloads::thumbnail($item));
        ?>
" border="0" alt="<?php 
        echo $this->escape($item->title);
        ?>
" style="max-width:100%;" />
          </a>
          <?php 
    }
    ?>
        </div>
        <!-- Clears Item and Information -->
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:default_details.php

示例5:

?>
</h2>
      <!-- View Type -->
      <ul class="media-category-ls">
        <li><a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getSelfRoute('details'));
?>
" class="ls-detail" title="<?php 
echo JText::_('COM_HWDMS_DETAILS');
?>
"><?php 
echo JText::_('COM_HWDMS_DETAILS');
?>
</a></li>
        <li><a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getSelfRoute('list'));
?>
" class="ls-list" title="<?php 
echo JText::_('COM_HWDMS_LIST');
?>
"><?php 
echo JText::_('COM_HWDMS_LIST');
?>
</a></li>
        <?php 
if ($canAdd) {
    ?>
        <li><a href="<?php 
    echo JRoute::_('index.php?option=com_hwdmediashare&view=groupform&layout=edit&return=' . base64_encode(JFactory::getURI()));
    ?>
" class="ls-add" title="Add Group">Add Group</a> </li>
开发者ID:gagnonjeanfrancois,项目名称:Projectfork,代码行数:31,代码来源:groups.php

示例6: echo

				</div>
				<div class="span3">
					<ul class="unstyled">
						<li class="article-info-term"><?php 
echo JText::_('COM_HWDMS_DETAILS');
?>
 </li>
						<li class="media-info-count"> <?php 
echo JText::_('COM_HWDMS_MEDIA');
?>
 (<?php 
echo (int) $this->album->nummedia;
?>
)</li>
						<li class="media-info-createdby"> <?php 
echo JText::sprintf('COM_HWDMS_CREATED_BY', '<a href="' . JRoute::_(hwdMediaShareHelperRoute::getUserRoute($this->album->created_user_id)) . '">' . htmlspecialchars($this->album->author, ENT_COMPAT, 'UTF-8') . '</a>');
?>
</li>
						<li class="media-info-created"> <?php 
echo JText::sprintf('COM_HWDMS_CREATED_ON', JHtml::_('date', $this->album->created, $this->params->get('global_list_date_format')));
?>
</li>
						<li class="media-info-hits"> <?php 
echo JText::_('COM_HWDMS_VIEWS');
?>
 (<?php 
echo (int) $this->album->hits;
?>
)</li>
						<li class="media-info-like"> <a href="<?php 
echo JRoute::_('index.php?option=com_hwdmediashare&task=album.like&id=' . $this->album->id . '&return=' . $this->return . '&tmpl=component');
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:default.php

示例7:

                ?>
                <li><?php 
                echo JHtml::_('hwdicon.delete', $this->view_item, $item, $this->params);
                ?>
</li>
                <?php 
            }
            ?>
              </ul>
            </li>
          </ul>
          <?php 
        }
        ?>
          <a href="<?php 
        echo JRoute::_(hwdMediaShareHelperRoute::getPlaylistRoute($item->slug));
        ?>
">
            <?php 
        echo $this->escape($item->title);
        ?>
          </a>          
          </td>
        <?php 
    }
    ?>
        <?php 
    if ($this->params->get('global_list_meta_created') != 'hide') {
        ?>
          <td class="list-date"><?php 
        echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'));
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:default_list.php

示例8: defined

 * @author     Dave Horsfall
 * @since      06-Dec-2011 17:13:47
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
if (count($this->subcategories) > 0) {
    echo JHtml::_('sliders.start', 'media-category-slider', array('startOffset' => 1));
    echo JHtml::_('sliders.panel', JText::_('COM_HWDMS_SUBCATEGORIES'), 'subcategories');
    ?>

<div class="media-categories-lists">
	<ul>
		<?php 
    foreach ($this->subcategories as $id => $item) {
        ?>
		<li><a href="<?php 
        echo JRoute::_(hwdMediaShareHelperRoute::getCategoryRoute($item->id));
        ?>
"><?php 
        echo $this->escape($item->title);
        ?>
</a> </li>
		<?php 
    }
    ?>
	</ul>
	<div class="clear"></div>
</div>
<?php 
    echo JHtml::_('sliders.end');
}
开发者ID:gagnonjeanfrancois,项目名称:Projectfork,代码行数:31,代码来源:default_subcategories.php

示例9: getLink

 public function getLink()
 {
     return JRoute::_(hwdMediaShareHelperRoute::getUserRoute($this->profile->id));
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:4,代码来源:profileVendors.php

示例10: echo

    ?>
        <?php 
    if ($this->params->get('global_list_meta_created') != 'hide') {
        ?>
          <td class="list-date"><?php 
        echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'));
        ?>
</td>
        <?php 
    }
    ?>
        <?php 
    if ($this->params->get('global_list_meta_author') != 'hide') {
        ?>
          <td class="list-author"><a href="<?php 
        echo JRoute::_(hwdMediaShareHelperRoute::getUserRoute($item->created_user_id));
        ?>
"><?php 
        echo $this->escape($item->author);
        ?>
</a></td>
        <?php 
    }
    ?>
        <?php 
    if ($this->params->get('global_list_meta_hits') != 'hide') {
        ?>
          <td class="list-hits"><?php 
        echo (int) $item->hits;
        ?>
</td>
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:default_list.php

示例11: echo

            ?>
                <li><?php 
            echo JHtml::_('hwdicon.delete', 'group', $item, $this->params);
            ?>
</li>
                <?php 
        }
        ?>
              </ul>
            </li>
          </ul>
          <?php 
    }
    ?>
          <a href="<?php 
    echo JRoute::_(hwdMediaShareHelperRoute::getGroupRoute($item->slug));
    ?>
"> <?php 
    echo $this->escape($item->title);
    ?>
 </a></td>
        <td class="list-date"><?php 
    echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'));
    ?>
</td>
        <td class="list-author"><a href="#"><?php 
    echo $this->escape($item->author);
    ?>
</a></td>
        <td class="list-hits"><?php 
    echo (int) $item->hits;
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:groups_list.php

示例12:

$canEditState = $user->authorise('core.edit.state', 'com_hwdmediashare.album.' . $this->item->id) || $user->authorise('core.edit.own', 'com_hwdmediashare') && $item->created_user_id == $user->id;
$canDelete = $user->authorise('core.edit', 'com_hwdmediashare.album.' . $this->item->id);
$hasDownloads = $this->hasDownloads();
$hasQualities = $this->hasQualities();
$hasMeta = $this->hasMeta();
?>

<div id="hwd-container"> <a name="top" id="top" title="top"></a> <?php 
echo hwdMediaShareHelperNavigation::getInternalNavigation();
?>
 
	<!-- Media Header -->
	<div class="media-header">
		<div class="page-header">
			<h2> <a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getMediaItemRoute($this->item->id));
?>
" target="_top"> <?php 
echo $this->escape($this->item->title);
?>
 </a> </h2>
		</div>
		<div class="clear"></div>
	</div>
	<div id="media-item-container" class="media-item-container"> 
		<!-- Item Media -->
		<div class="media-item-full" id="media-item" style="width:100%;"> <?php 
echo hwdMediaShareMedia::get($this->item);
?>
 </div>
		<div class="clear"></div>
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:modal.php

示例13:

echo hwdMediaShareHelperNavigation::getInternalNavigation();
?>
 
		<!-- Media Header -->
		<div class="media-header">
			<div class="pull-right btn-group"> <a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getSelfRoute('details'));
?>
" class="btn" title="<?php 
echo JText::_('COM_HWDMS_DETAILS');
?>
"><i class="icon-file"></i> <?php 
echo JText::_('COM_HWDMS_DETAILS');
?>
</a> <a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getSelfRoute('tree'));
?>
" class="btn" title="<?php 
echo JText::_('COM_HWDMS_TREE');
?>
"><i class="icon-th-list"></i> <?php 
echo JText::_('COM_HWDMS_TREE');
?>
</a> </div>
			<div class="page-header">
				<h2><?php 
echo JText::_('COM_HWDMS_CATEGORIES');
?>
</h2>
			</div>
			<div class="clear"></div>
开发者ID:gagnonjeanfrancois,项目名称:Projectfork,代码行数:31,代码来源:default.php

示例14:

echo JText::_('COM_HWDMS_DETAILS');
?>
"> <i class="icon-file"></i> <?php 
echo JText::_('COM_HWDMS_DETAILS');
?>
</a> <a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getMediaRoute(array('display' => 'gallery')));
?>
" class="btn" title="<?php 
echo JText::_('COM_HWDMS_GALLERY');
?>
"> <i class="icon-th"></i> <?php 
echo JText::_('COM_HWDMS_GALLERY');
?>
</a> <a href="<?php 
echo JRoute::_(hwdMediaShareHelperRoute::getMediaRoute(array('display' => 'list')));
?>
" class="btn" title="<?php 
echo JText::_('COM_HWDMS_LIST');
?>
"> <i class="icon-list"></i> <?php 
echo JText::_('COM_HWDMS_LIST');
?>
</a> </div>
			<div class="page-header">
				<h2><?php 
echo JText::_('COM_HWDMS_MEDIA');
?>
</h2>
			</div>
			<div class="clear"></div>
开发者ID:greyhat777,项目名称:vuslinterliga,代码行数:31,代码来源:default.php


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