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


PHP GWF_HTML::div方法代码示例

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


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

示例1: array

		<td class="gwf_num"><?php 
        echo $c->getVar('board_postcount');
        ?>
</td>
<?php 
        echo GWF_Table::rowEnd();
    }
    echo GWF_Table::end();
}
?>

<?php 
# SHOUTBOX
if ($b->isRoot()) {
    if (false !== ($mod_shout = GWF_Module::loadModuleDB('Shoutbox'))) {
        echo GWF_HTML::div(Module_Shoutbox::templateBoxS(), 'gwf_forum_shoutbox fl');
    }
}
?>

<div class="cl"></div>

<?php 
echo $tVars['pagemenu_boards'];
?>

<!-- Threads -->
<?php 
if (count($tVars['threads']) > 0) {
    $t_headers = array(array($tLang->lang('th_title'), 'thread_title'), array(''), array($tLang->lang('th_firstposter'), 'thread_firstposter'), array($tLang->lang('th_postcount'), 'thread_postcount'), array($tLang->lang('th_lastposter'), 'thread_lastposter'), array($tLang->lang('th_lastdate'), 'thread_lastdate'), array($tLang->lang('th_thanks'), 'thread_thanks'), array($tLang->lang('th_votes_up'), 'thread_votes_up'), array($tLang->lang('th_thread_viewcount'), 'thread_viewcount'));
    ?>
开发者ID:sinfocol,项目名称:gwf3,代码行数:31,代码来源:forum.php

示例2:

echo $attach;
$sig = $opts->hasSignature() ? GWF_HTML::div($opts->displaySignature(), 'gwf_forum_sig') : '';
echo $sig;
?>
		</div>

		<?php 
$edit_by = GWF_HTML::div($post->displayEditBy($tVars['module']), 'gwf_post_edited');
?>
		<?php 
$action_div = '';
if ($actions) {
    $buttons = '';
    if ($tVars['reply']) {
        $buttons .= GWF_Button::reply($post->getReplyHREF(), $tLang->lang('btn_reply'));
        $buttons .= GWF_Button::quote($post->getQuoteHREF(), $tLang->lang('btn_quote'));
    }
    if ($can_edit) {
        $buttons .= GWF_Button::edit($post->getEditHREF(), $tLang->lang('btn_edit'));
        $buttons .= GWF_Button::generic($tLang->lang('btn_add_attach'), $post->hrefAddAttach());
    }
    $action_div = GWF_HTML::div($buttons, 'gwf_buttons');
}
echo GWF_HTML::div($edit_by . $action_div, 'gwf_post_foot');
# echo GWF_Table::rowEnd();
?>
	</div>
</div>

<div class="cl"></div>
开发者ID:sinfocol,项目名称:gwf3,代码行数:30,代码来源:show_post.php

示例3:

<h1><?php 
echo $tLang->lang('pt_irc_chat') . ' ( ' . GWF_HTML::display($tVars['module']->cfgIRCURL()) . ' )';
?>
</h1>

<?php 
$buttons = '';
if ($tVars['gwf_chat']) {
    $buttons .= GWF_Button::generic($tLang->lang('btn_webchat'), $tVars['href_webchat'], 'generic', '', false);
}
if ($tVars['mibbit']) {
    $mib_url = $tVars['mibbit_url'];
    $onclick = "window.open('{$mib_url}', 'dummyname', 'height=undefined,width=undefined', false);";
    $buttons .= GWF_Button::generic($tLang->lang('btn_ircchat'), $tVars['href_ircchat'], 'generic', '', true);
    $buttons .= GWF_Button::generic($tLang->lang('btn_ircchat_full'), '#', 'generic', '', false, $onclick);
}
if ($buttons !== '') {
    echo '<div class="gwf_buttons_outer">' . GWF_HTML::div($buttons, 'gwf_buttons') . '</div>' . PHP_EOL;
}
?>

<iframe id="gwf_mibbit" src="<?php 
echo $tVars['mibbit_url'];
?>
">
<?php 
echo GWF_HTML::error('Chat', $tLang->lang('err_iframe'), false);
?>
</iframe>
开发者ID:sinfocol,项目名称:gwf3,代码行数:29,代码来源:mibbit.php

示例4: foreach

<?php

$back = '';
foreach ($tVars['tags'] as $tag) {
    $back .= sprintf('<a href="%s">%s&nbsp;(%d)</a>' . PHP_EOL, $tag->hrefOverview(), $tag->displayName(), $tag->getCount());
}
echo GWF_HTML::div($back, 'gwf_tags_outer gwf_tags');
开发者ID:sinfocol,项目名称:gwf3,代码行数:7,代码来源:_cloud.php

示例5: foreach

<div class="cb"></div>

<?php 
# Categories
if (count($tVars['cats'])) {
    ?>
<div>
<?php 
    foreach ($tVars['cats'] as $id => $cat) {
        # CATEGORIES
        ?>
	<div><?php 
        echo $cat;
        ?>
</div>
<?php 
    }
    ?>
</div>
<?php 
}
?>

<div class="cb"></div>
<?php 
if ($is_staff) {
    $buttons = '';
    $buttons .= GWF_Button::add($tLang->lang('btn_add'), $tVars['href_add']);
    $buttons .= GWF_Button::generic($tLang->lang('btn_admin_section'), $tVars['module']->getAdminSectionUrl());
    echo GWF_HTML::div($buttons, 'gwf_buttons');
}
开发者ID:sinfocol,项目名称:gwf3,代码行数:31,代码来源:show.php

示例6: array

    } else {
        //			$buttons .= GWF_Button::prev('#', $tLang->lang('btn_prev'));
    }
    if (!$pm->hasDeleted($u)) {
        $buttons .= GWF_Button::delete($pm->getDeleteHREF($u->getID()), $tLang->lang('btn_delete'));
    } else {
        $buttons .= GWF_Button::restore($pm->getRestoreHREF(), $tLang->lang('btn_restore'));
    }
    if ($pm->canEdit($u)) {
        $buttons .= GWF_Button::edit($pm->getEditHREF(), $tLang->lang('btn_edit'));
    }
    $buttons .= GWF_Button::options($pm->getAutoFolderHREF(), $tLang->lang('btn_autofolder'));
    if (!$pm->isGuestPM()) {
        $buttons .= GWF_Button::reply($pm->getReplyHREF(), $tLang->lang('btn_reply')) . PHP_EOL . GWF_Button::quote($pm->getQuoteHREF(), $tLang->lang('btn_quote'));
    }
    $u2 = $pm->getOtherUser($u);
    $buttons .= GWF_Button::ignore($pm->getIgnoreHREF($pm->getOtherUser($u)), $tLang->lang('btn_ignore', array($u2->display('user_name'))));
    $buttons .= GWF_Button::translate($pm->getTranslateHREF(), $tLang->lang('btn_translate'), '', 'gwfGoogleTrans(\'' . $transid . '\'); return false;');
    if (false !== ($nexts = $pm->getReplyToNext())) {
        foreach ($nexts as $next) {
            $buttons .= GWF_Button::next($next->getDisplayHREF(), $tLang->lang('btn_next'));
        }
    } else {
        //			$buttons .= GWF_Button::next('#', $tLang->lang('btn_next'));
    }
    echo GWF_HTML::div($buttons, 'gwf_pm_foot');
}
?>
</div>
<div class="cl"></div>
开发者ID:sinfocol,项目名称:gwf3,代码行数:30,代码来源:show.php


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