コード例 #1
0
    ?>
</h3>
					<ul>
						<?php 
    /* the optional second parameter of tpl_action() switches between a link and a button,
    		 e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
    if ($_SERVER['REMOTE_USER']) {
        echo '<li class="user">';
        tpl_userinfo();
        /* 'Logged in as ...' */
        echo '</li>';
    }
    tpl_action('admin', 1, 'li');
    _tpl_action('userpage', 1, 'li');
    tpl_action('profile', 1, 'li');
    _tpl_action('register', 1, 'li');
    /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */
    tpl_action('login', 1, 'li');
    ?>
					</ul>
				</div>
			<?php 
}
?>
            <?php 
tpl_license('button');
?>
            
        </div>
                
        </div><!-- /footer -->
コード例 #2
0
?>
            <?php 
tpl_includeFile('pagefooter.html');
?>
        </div><!-- /.pad -->
    </div><!-- /#dokuwiki__content -->
    <!--<div class="clearer"></div>-->
    <hr class="a11y" />
    <!-- PAGE ACTIONS -->
    <?php 
if ($showTools) {
    ?>
        <div id="dokuwiki__pagetools">
            <h3 class="a11y"><?php 
    echo $lang['page_tools'];
    ?>
</h3>
            <ul>
                <?php 
    tpl_toolsevent('pagetools', array('edit' => tpl_action('edit', 1, 'li', 1), 'discussion' => _tpl_action('discussion', 1, 'li', 1), 'revisions' => tpl_action('revisions', 1, 'li', 1), 'backlink' => tpl_action('backlink', 1, 'li', 1), 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 'revert' => tpl_action('revert', 1, 'li', 1), 'top' => tpl_action('top', 1, 'li', 1)));
    ?>
            </ul>
        </div><!-- /#dokuwiki__pagetools -->
    <?php 
}
?>
<!--</div>--><!-- /.wrapper -->
</div>

<?php 
include 'tpl_site_footer.php';
コード例 #3
0
if ($conf['useacl'] && $showTools) {
    ?>
                    <div id="dokuwiki__usertools">
                        <h3 class="a11y"><?php 
    echo tpl_getLang('user_tools');
    ?>
</h3>
                        <?php 
    if ($_SERVER['REMOTE_USER']) {
        ?>
                            <ul>
                                <?php 
        tpl_action('login', 1, 'li');
        tpl_action('profile', 1, 'li');
        tpl_action('admin', 1, 'li');
        _tpl_action('userpage', 1, 'li');
        ?>
                            </ul>
                            <div class="user"><?php 
        tpl_userinfo();
        ?>
</div>
                        <?php 
    } else {
        html_login();
    }
    ?>
                    </div>
                <?php 
}
?>
コード例 #4
0
/**
 * Include action link with font-icon
 *
 * @author  Giuseppe Di Terlizzi <*****@*****.**>
 * 
 * @param   string   $action
 * @param   string   $icon class
 * @param   boolean  $linkonly
 * @return  string
 */
function _tpl_action_item($action, $icon, $linkonly = false)
{
    global $ACT;
    if ($action == 'discussion') {
        if (tpl_getConf('showDiscussion')) {
            ob_start();
            _tpl_action('discussion', 1, 'li', $icon);
            $out = ob_get_clean();
            $out = str_replace(array('<bdi>', '</bdi>'), '', $out);
            return preg_replace('/(<a (.*?)>)/m', '$1<i class="' . $icon . '"></i> ', $out);
        }
        return '';
    }
    if ($link = tpl_action($action, 1, 0, 1, '<i class="' . $icon . '"></i> ')) {
        if ($linkonly) {
            return $link;
        }
        return '<li' . ($ACT == $action ? ' class="active"' : '') . '>' . $link . '</li>';
    }
    return '';
}
コード例 #5
0
/**
 * Include action link with font-icon
 *
 * @author  Giuseppe Di Terlizzi <*****@*****.**>
 *
 * @param   string   $action
 * @param   string   $icon class
 * @param   boolean  $return
 * @return  string
 */
function bootstrap3_action_item($action, $icon, $return = false)
{
    global $ACT;
    if ($action == 'discussion') {
        if (bootstrap3_conf('showDiscussion')) {
            $out = _tpl_action('discussion', 1, 'li', 1);
            $out = str_replace(array('<bdi>', '</bdi>'), '', $out);
            return preg_replace('/(<a (.*?)>)/m', '$1<i class="' . $icon . '"></i> ', $out);
        }
        return '';
    }
    if ($link = tpl_action($action, 1, 0, 1, '<i class="' . $icon . '"></i> ')) {
        if ($return) {
            if ($ACT == $action) {
                $link = str_replace('class="action ', 'class="action active ', $link);
            }
            return $link;
        }
        return '<li' . ($ACT == $action ? ' class="active"' : '') . '>' . $link . '</li>';
    }
    return '';
}
コード例 #6
0
											<div class="inner-wrapper">
												<div id="dokuwiki__usertools" class="inner-inner" style="border: medium none; position: relative;">
													<div class="block-icon pngfix"></div>
													<!-- USER TOOLS -->
													<h2 class="title block-title a11y"><?php echo tpl_getLang('user_tools') ?></h2>
													<ul class="menu">
														<?php if ($_SERVER['REMOTE_USER']): ?>
														<li class="user">
															<?php tpl_userinfo(); ?>
														</li>
														<?php endif ?>
														<?php
															 tpl_action('admin',    1, 'li');
															_tpl_action('userpage', 1, 'li');
															 tpl_action('profile',  1, 'li');
															_tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */
															 tpl_action('login',    1, 'li');
														?>
													</ul>
												</div><!-- /inner-inner -->
											</div><!-- /inner-wrapper -->
											<div class="corner-bottom"><div class="corner-bottom-right corner"></div><div class="corner-bottom-left corner"></div></div>
										</div><!-- /inner -->
									</div><!-- /block -->
									<?php endif ?>
								</div>
							</div><!-- /sidebar-first-inner -->
						</div><!-- /sidebar-first -->

						<!-- main group: width = grid_width - sidebar_first_width -->
						<div class="main-group row nested grid16-12" id="main-group">
コード例 #7
0
function _tpl_output_page_tools($showTools = true, $element = 'li')
{
    global $lang;
    $textonly = true;
    $spandivider = '';
    $elementbegin = "<{$element}>";
    $elementend = "</{$element}>";
    if ($showTools) {
        echo '<ul class="nav navbar-nav">';
        //echo '<li>'.$lang['page_tools'].$spandivider;
        $content = tpl_action('edit', $textonly, '', true);
        if ($content != '') {
            echo $elementbegin . $content . $spandivider . $elementend;
        }
        echo $elementbegin;
        //Notice the use of _tpl_action instead of tpl_action. This doesn't
        //actully return the string and instead automatically prints it
        //out.
        _tpl_action('discussion', $textonly, '', true);
        echo $spandivider;
        echo $elementend;
        $content = tpl_action('revisions', $textonly, '', true);
        if ($content != '') {
            echo $elementbegin . $content . $spandivider . $elementend;
        }
        $content = tpl_action('backlink', $textonly, '', true);
        if ($content != '') {
            echo $elementbegin . $content . $spandivider . $elementend;
        }
        $content = tpl_action('subscribe', $textonly, '', true);
        if ($content != '') {
            echo $elementbegin . $content . $spandivider . $elementend;
        }
        $content = tpl_action('revert', $textonly, '', true);
        if ($content != '') {
            echo $elementbegin . $content . $spandivider . $elementend;
        }
        echo $elementbegin;
        $content = tpl_action('top', $textonly, '', true);
        echo $content;
        echo $elementend;
        echo '</ul>';
    }
}