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


PHP mosHTML::PrintIcon方法代码示例

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


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

示例1: show

    /**
     * Show a content item
     * @param object An object with the record data
     * @param boolean If <code>false</code>, the print button links to a popup window.  If <code>true</code> then the print button invokes the browser print method.
     */
    function show(&$row, &$params, &$access, $page = 0)
    {
        global $mainframe, $hide_js;
        global $mosConfig_live_site;
        global $_MAMBOTS;
        $mainframe->appendMetaTag('description', $row->metadesc);
        $mainframe->appendMetaTag('keywords', $row->metakey);
        // adds mospagebreak heading or title to <site> Title
        if (isset($row->page_title) && $row->page_title) {
            $mainframe->setPageTitle($row->title . ' ' . $row->page_title);
        }
        // calculate Itemid
        HTML_content::_Itemid($row);
        // determines the link and `link text` of the readmore button & linked title
        HTML_content::_linkInfo($row, $params);
        // link used by print button
        $print_link = $mosConfig_live_site . '/index2.php?option=com_content&amp;task=view&amp;id=' . $row->id . '&amp;pop=1&amp;page=' . $page . $row->Itemid_link;
        // process the new bots
        $_MAMBOTS->loadBotGroup('content');
        $results = $_MAMBOTS->trigger('onPrepareContent', array(&$row, &$params, $page), true);
        if ($params->get('item_title') || $params->get('pdf') || $params->get('print') || $params->get('email')) {
            ?>
			<table class="contentpaneopen<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
			<tr>
				<?php 
            // displays Item Title
            HTML_content::Title($row, $params, $access);
            // displays PDF Icon
            HTML_content::PdfIcon($row, $params, $hide_js);
            // displays Print Icon
            mosHTML::PrintIcon($row, $params, $hide_js, $print_link);
            // displays Email Icon
            HTML_content::EmailIcon($row, $params, $hide_js);
            ?>
			</tr>
			</table>
			<?php 
        } else {
            if ($access->canEdit) {
                // edit icon when item title set to hide
                ?>
			<table class="contentpaneopen<?php 
                echo $params->get('pageclass_sfx');
                ?>
">
 			<tr>
 				<td>
	 				<?php 
                HTML_content::EditIcon($row, $params, $access);
                ?>
 				</td>
 			</tr>
 			</table>
 			<?php 
            }
        }
        if (!$params->get('intro_only')) {
            $results = $_MAMBOTS->trigger('onAfterDisplayTitle', array(&$row, &$params, $page));
            echo trim(implode("\n", $results));
        }
        $results = $_MAMBOTS->trigger('onBeforeDisplayContent', array(&$row, &$params, $page));
        echo trim(implode("\n", $results));
        ?>

		<table class="contentpaneopen<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
		<?php 
        // displays Section & Category
        HTML_content::Section_Category($row, $params);
        // displays Author Name
        HTML_content::Author($row, $params);
        // displays Created Date
        HTML_content::CreateDate($row, $params);
        // displays Urls
        HTML_content::URL($row, $params);
        ?>
		<tr>
			<td valign="top" colspan="2">
				<?php 
        // displays Table of Contents
        HTML_content::TOC($row);
        // displays Item Text
        echo ampReplace($row->text);
        ?>
			</td>
		</tr>
		<?php 
        // displays Modified Date
        HTML_content::ModifiedDate($row, $params);
        // displays Readmore button
//.........这里部分代码省略.........
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:101,代码来源:content.html.php

示例2: show

    /**
     * Show a content item
     * @param object An object with the record data
     * @param boolean If <code>false</code>, the print button links to a popup window.  If <code>true</code> then the print button invokes the browser print method.
     */
    function show($row, $params, $access, $page = 0, $option, $ItemidCount = NULL)
    {
        global $mainframe, $my, $hide_js, $database, $acl;
        global $mosConfig_absolute_path, $mosConfig_sitename, $Itemid, $mosConfig_live_site, $task;
        global $_MAMBOTS;
        //print_r( $params );
        $mainframe->appendMetaTag('description', $row->metadesc);
        $mainframe->appendMetaTag('keywords', $row->metakey);
        $gid = $my->gid;
        $template = $mainframe->getTemplate();
        $_Itemid = $Itemid;
        $link_on = '';
        $link_text = '';
        // process the new bots
        $_MAMBOTS->loadBotGroup('content');
        $results = $_MAMBOTS->trigger('onPrepareContent', array(&$row, &$params, $page), true);
        // determines the link and link text of the readmore button
        if ($params->get('intro_only')) {
            // checks if the item is a public or registered/special item
            if ($row->access <= $gid) {
                if ($task != "view") {
                    $_Itemid = $mainframe->getItemid($row->id, 0, 0, $ItemidCount['bs'], $ItemidCount['bc'], $ItemidCount['gbs']);
                }
                $link_on = sefRelToAbs("index.php?option=com_content&amp;task=view&amp;id=" . $row->id . "&amp;Itemid=" . $_Itemid);
                if (strlen(trim($row->fulltext))) {
                    $link_text = _READ_MORE;
                }
            } else {
                $link_on = sefRelToAbs("index.php?option=com_registration&amp;task=register");
                if (strlen(trim($row->fulltext))) {
                    $link_text = _READ_MORE_REGISTER;
                }
            }
        }
        $no_html = mosGetParam($_REQUEST, 'no_html', null);
        if ($params->get('popup') && $no_html == 0) {
            ?>
			<title><?php 
            echo $mosConfig_sitename . ' :: ' . $row->title;
            ?>
</title>
			<?php 
        }
        if ($params->get('item_navigation')) {
            if ($row->prev) {
                $row->prev = sefRelToAbs('index.php?option=com_content&amp;task=view&amp;id=' . $row->prev . '&amp;Itemid=' . $_Itemid);
            } else {
                $row->prev = 0;
            }
            if ($row->next) {
                $row->next = sefRelToAbs('index.php?option=com_content&amp;task=view&amp;id=' . $row->next . '&amp;Itemid=' . $_Itemid);
            } else {
                $row->next = 0;
            }
        }
        if ($params->get('item_title') || $params->get('pdf') || $params->get('print') || $params->get('email')) {
            $print_link = $mosConfig_live_site . '/index2.php?option=com_content&amp;task=view&amp;id=' . $row->id . '&amp;Itemid=' . $Itemid . '&amp;pop=1&amp;page=' . @$page;
            ?>
			<table class="contentpaneopen<?php 
            echo $params->get('pageclass_sfx');
            ?>
">
			<tr>
				<?php 
            // displays Item Title
            HTML_content::Title($row, $params, $link_on, $access);
            // displays PDF Icon
            HTML_content::PdfIcon($row, $params, $link_on, $hide_js);
            // displays Print Icon
            mosHTML::PrintIcon($row, $params, $hide_js, $print_link);
            // displays Email Icon
            HTML_content::EmailIcon($row, $params, $hide_js);
            ?>
			</tr>
			</table>
			<?php 
        }
        if (!$params->get('intro_only')) {
            $results = $_MAMBOTS->trigger('onAfterDisplayTitle', array(&$row, &$params, $page));
            echo trim(implode("\n", $results));
        }
        $results = $_MAMBOTS->trigger('onBeforeDisplayContent', array(&$row, &$params, $page));
        echo trim(implode("\n", $results));
        ?>

		<table class="contentpaneopen<?php 
        echo $params->get('pageclass_sfx');
        ?>
">
		<?php 
        // displays Section & Category
        HTML_content::Section_Category($row, $params);
        // displays Author Name
        HTML_content::Author($row, $params);
        // displays Created Date
//.........这里部分代码省略.........
开发者ID:cwcw,项目名称:cms,代码行数:101,代码来源:content.html.php

示例3: _writeContactName

    /**
     * Writes Name & Position
     */
    function _writeContactName(&$contact, &$params)
    {
        global $mosConfig_live_site, $Itemid, $hide_js;
        global $mosConfig_absolute_path, $cur_template;
        if ($contact->name || $contact->con_position) {
            if ($contact->name && $params->get('name')) {
                ?>
				<tr>
					<td width="100%" class="contentheading<?php 
                echo $params->get('pageclass_sfx');
                ?>
">
					<?php 
                echo $contact->name;
                ?>
					</td>
					<?php 
                // displays Print Icon
                $print_link = $mosConfig_live_site . '/index2.php?option=com_contact&amp;task=view&contact_id=' . $contact->id . '&amp;Itemid=' . $Itemid . '&amp;pop=1';
                mosHTML::PrintIcon($contact, $params, $hide_js, $print_link);
                ?>
				</tr>
				<?php 
            }
            if ($contact->con_position && $params->get('position')) {
                ?>
				<tr>
					<td colspan="2">
					<?php 
                echo $contact->con_position;
                ?>
					<br /><br />
					</td>
				</tr>
				<?php 
            }
        }
    }
开发者ID:jwest00724,项目名称:mambo,代码行数:41,代码来源:contact.html.php

示例4: _writeContactName

    /**
     * Writes Name & Position
     */
    public static function _writeContactName(&$contact, &$params, &$menu_params)
    {
        global $Itemid, $hide_js, $mosConfig_live_site;
        if ($contact->name || $contact->con_position) {
            if ($contact->name && $params->get('name')) {
                ?>
				<tr>
					<td class="contentheading<?php 
                echo $menu_params->get('pageclass_sfx');
                ?>
" width="100%">
						<table width="100%">
						<tr>
							<td width="100%">
								<?php 
                echo $contact->name;
                ?>
							</td>
							<?php 
                // displays Print Icon
                $print_link = $mosConfig_live_site . '/index2.php?option=com_contact&amp;task=view&amp;contact_id=' . $contact->id . '&amp;Itemid=' . $Itemid . '&amp;pop=1';
                mosHTML::PrintIcon($contact, $params, $hide_js, $print_link);
                ?>
						</tr>
						</table>
					</td>
				</tr>
				<?php 
            }
            if ($contact->con_position && $params->get('position')) {
                ?>
				<tr>
					<td width="100%">
					<?php 
                echo $contact->con_position;
                ?>
					<br /><br />
					</td>
				</tr>
				<?php 
            }
        }
    }
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:46,代码来源:contact.html.php


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