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>';
    }
}
Example #2
0
        ?>
                    </div>
                    <?php 
    }
    ?>
                </aside><!-- /aside -->
                <?php 
}
?>
            </section><!-- /wrapper -->

            <!-- ********** FOOTER ********** -->
            <footer id="dokuwiki__footer" class="hidden-print">
                <ul class="doc breadcrumb pull-right">
                    <li><?php 
tpl_action('top', 1, '');
?>
</li>
                    <li><?php 
tpl_pageinfo();
?>
</li>
                </ul>
                <?php 
tpl_license('button');
?>
            </footer><!-- /footer -->

            <?php 
tpl_includeFile('footer.html');
?>
        <?php 
if (tpl_getConf('tpl_mtb_schotland_2016:showTranslation')) {
    $translation =& plugin_load('helper', 'translation');
    if ($translation) {
        echo $translation->showTranslations();
    }
}
?>

        <ul>
          <?php 
if ($isLoggedIn) {
    tpl_action('recent', 1, 'li');
    tpl_action('media', 1, 'li');
}
tpl_action('index', 1, 'li');
?>
        </ul>
      </div>

    </div>

    <!-- TOPBAR - @tpl_mtb_schotland_2016-template@ -->
    <div class="topbar">
      <?php 
if (tpl_getConf("tpl_mtb_schotland_2016:htmltopbar")) {
    tpl_includeFile('topbar.php');
} else {
    tpl_include_page(tpl_getConf("tpl_mtb_schotland_2016:pagetopbar"), 1, 1);
}
?>
    ?>
      <span class="docInfo">
        <?php 
    bootstrap3_pageinfo();
    ?>
      </span>
      <?php 
}
?>

      <?php 
if (bootstrap3_conf('showLoginOnFooter')) {
    ?>
      <span class="loginLink hidden-print">
        <?php 
    echo tpl_action('login', 1, 0, 1, '<i class="fa fa-sign-in"></i> ');
    ?>
      </span>
      <?php 
}
?>

    </div>

    <?php 
if ($conf['license']) {
    ?>
    <div id="dw__license" class="text-center small" <?php 
    bootstrap3_conf('semantic') ? 'itemprop="license"' : '';
    ?>
>
Example #5
0
?>
            </div></div><!-- /content -->

            <div class="clearer"></div>
            <hr class="a11y" />

        </div><!-- /wrapper -->

        <!-- ********** FOOTER ********** -->
        <div id="dokuwiki__footer"><div class="pad">
            <div class="doc"><?php 
tpl_pageinfo();
?>
</div>
            <?php 
tpl_action('top', 1);
?>
            <div class="clearer"></div>
        </div></div><!-- /footer -->

        <div class="license_footer">
            <?php 
tpl_license('button');
?>
        </div>
        <?php 
@(include dirname(__FILE__) . '/footer.html');
?>
    </div></div><!-- /site -->

    <div class="no"><?php 
Example #6
0
$NS = getNS($ID);
//echo "<br><br><br>";
$helper = plugin_load('helper', 'ateneuplus');
$menuleft = $helper->get_menu($ID, 'm1-menu-left');
//  $titol = $helper->getTitolCurs($ID);
print '<div id="m1-menu-left"><ul>';
print $menuleft;
print '</ul></div>';
//echo "<br><br>";
?>
         
        
         
	 <!-- ********** Mobile-Right ********** -->   
         
      <div id="m1-menu-right">
   	    <ul>       
            <?php 
_tpl_toolsevent('usertools', array('admin' => tpl_action('admin', 1, 'li', 1), 'profile' => tpl_action('profile', 1, 'li', 1), 'register' => tpl_action('register', 1, 'li', 1), 'login' => tpl_action('login', 1, 'li', 1)));
?>
  
            <?php 
_tpl_toolsevent('pagetools', array('edit' => tpl_action('edit', 1, 'li', 1), 'revisions' => tpl_action('revisions', 1, 'li', 1), 'revert' => tpl_action('revert', 1, 'li', 1)));
?>
  
            <?php 
_tpl_toolsevent('sitetools', array('recent' => tpl_action('recent', 1, 'li', 1), 'media' => tpl_action('media', 1, 'li', 1), 'index' => tpl_action('index', 1, 'li', 1)));
?>
        </ul>
	  </div>
    print nl2br(hsc(tpl_img_getTag('simple.title')));
    ?>
</h2>

                    <?php 
    tpl_img_meta();
    ?>
                    <?php 
    //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));
    ?>
                </div>
                <div class="clearer"></div>
            </div><!-- /.content -->

            <p class="back">
                <?php 
    tpl_action('mediaManager', 1);
    ?>
<br />
                <?php 
    tpl_action('img_backto', 1, 0, 0, '<span class="genericon genericon-leftarrow"></span>');
    ?>
            </p>

        <?php 
}
?>
    </div>
</body>
</html>
            }
        }
        ?>
                        </dl>
                    <?php 
    }
    ?>
                    <?php 
    //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));
    ?>
                </div>
            </div><!-- /.content -->

            <p class="back">
                <?php 
    tpl_action('mediaManager', 1);
    ?>
<br />
                &larr; <?php 
    tpl_action('img_backto', 1);
    ?>
            </p>

        <?php 
}
?>
    </div>
    <!--[if lte IE 8 ]></div><![endif]-->
</body>
</html>
Example #9
0
/**
 * Define how the user related content is shown.
 * When not logged in, login / register is shown
 * When logged in the user's name is printed with a dropdown of user related options 
 *
 * @author Paul in 't Hout <*****@*****.**>
 **/
function _tpl_userinfo($element = 'li')
{
    global $INFO;
    if (isset($_SERVER['REMOTE_USER'])) {
        echo '<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">' . hsc($INFO['userinfo']['name']) . '<b class="caret"></b></a>';
        echo '<ul class="dropdown-menu">';
        tpl_action('admin', 1, $element);
        tpl_action('profile', 1, $element);
        tpl_action('login', 1, $element);
        echo '</ul>';
        echo '</li>';
    } else {
        tpl_action('login', 1, $element, 0, '', '', 'Login / Register');
    }
}
Example #10
0
?>
</span></a>
                        </li>
						
						<?php 
tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
tpl_action('backlink', 1, 'li', 0, '<span>', '</span>');
?>
						<li><br><hr></li>
						<?php 
tpl_action('admin', 1, 'li', 0, '<span>', '</span>');
tpl_action('profile', 1, 'li', 0, '<span>', '</span>');
tpl_action('recent', 1, 'li', 0, '<span>', '</span>');
tpl_action('media', 1, 'li', 0, '<span>', '</span>');
tpl_action('index', 1, 'li', 0, '<span>', '</span>');
?>
                    </ul>
                </div>
            </div>
        </div><!-- /wrapper -->

        <?php 
include 'tpl_footer.php';
?>
    </div>	
	<div class="watermark">
		<?php 
if (isset($_SERVER['REMOTE_USER'])) {
    echo 'gedruckt von ' . hsc($INFO['userinfo']['name']);
} else {
Example #11
0
echo $lang['site_tools'];
?>
</h3>
            <?php 
tpl_searchform();
?>
            <div class="mobileTools">
                <?php 
tpl_actiondropdown($lang['tools']);
?>
            </div>
            <ul>
                <?php 
tpl_action('recent', true, 'li');
tpl_action('media', true, 'li');
tpl_action('index', true, 'li');
?>
            </ul>
        </div>

    </div>

    <!-- BREADCRUMBS -->
    <?php 
if ($conf['breadcrumbs'] || $conf['youarehere']) {
    ?>
        <div class="breadcrumbs">
            <?php 
    if ($conf['youarehere']) {
        ?>
                <div class="youarehere"><?php 
    ?>
          <span class="docInfo">
            <?php 
    tpl_pageinfo();
    ?>
          </span>
          <?php 
}
?>

          <?php 
if ($showLoginOnFooter && !$_SERVER['REMOTE_USER']) {
    ?>
          <span class="loginLink hidden-print">
            <?php 
    echo tpl_action('login', 1, 0, 1, '<i class="glyphicon glyphicon-log-in"></i> ');
    ?>
          </span>
          <?php 
}
?>

        </div>

        <?php 
if ($showBadges) {
    ?>
        <div class="text-center hidden-print">
          <p id="dw__license">
            <?php 
    tpl_license('');
Example #13
0
            <h3 class="a11y"><?php 
echo $lang['site_tools'];
?>
</h3>
            <?php 
tpl_searchform();
?>
            <div class="mobileTools">
                <?php 
tpl_actiondropdown($lang['tools']);
?>
            </div>
            <ul>
                <?php 
tpl_action('recent', 1, 'li');
tpl_action('media', 1, 'li');
// traiem l'opció 'Mapa del lloc' perquè és redundant al que ja tenim a sidebar
// tpl_action('index', 1, 'li');
/*
     // AFEGIT Jordi	04/03/2014
		$exporta=str_replace('wikiform/wikiform', 'wikiform/wikiexport', $_SERVER["REQUEST_URI"]) 
		//FI AFEGIT
* 
*/
?>
  
             <!--    <li><a href="<?php 
echo $exporta;
?>
" target= "_new">Exporta</a></li> -->
            </ul>
/**
 * 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 '';
}
Example #15
0
            <!-- PAGE ACTIONS -->
            <div id="dokuwiki__pagetools">
                <h3 class="a11y"><?php 
echo $lang['page_tools'];
?>
</h3>
                <div class="tools">
                    <ul>
                        <?php 
tpl_action('edit', 1, 'li', 0, '<span>', '</span>');
tpl_action('revert', 1, 'li', 0, '<span>', '</span>');
tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
tpl_action('backlink', 1, 'li', 0, '<span>', '</span>');
tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
tpl_action('top', 1, 'li', 0, '<span>', '</span>');
?>
                    </ul>
                </div>
            </div>
        </div><!-- /wrapper -->

        <?php 
include 'tpl_footer.php';
?>
    </div></div><!-- /site -->

    <div class="no"><?php 
tpl_indexerWebBug();
?>
</div>
Example #16
0
?>
            </div></div><!-- /content -->

            <hr class="a11y" />

            <!-- PAGE ACTIONS -->
            <div id="dokuwiki__pagetools">
                <h3 class="a11y"><?php 
echo $lang['page_tools'];
?>
</h3>
                <div class="tools">
                    <ul>
                        <?php 
$exporta = str_replace('wikiform/wikiform', 'wikiform/wikiexport', $_SERVER["REQUEST_URI"]);
$data = array('view' => 'main', 'items' => array('edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 'top' => tpl_action('top', 1, 'li', 1, '<span>', '</span>'), 'export' => '<li><a href="' . $exporta . '" class="action" accesskey="t" rel="nofollow" title="Visualitza pĂ gina a wikiexport (pestanya a part)" target="_new"><span>Exporta</span></a></li>'));
// the page tools can be amended through a custom plugin hook
$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
if ($evt->advise_before()) {
    foreach ($evt->data['items'] as $k => $html) {
        echo $html;
    }
}
$evt->advise_after();
unset($data);
unset($evt);
?>
                    </ul>
                </div>
            </div>
        </div><!-- /wrapper -->
Example #17
0
        tpl_userinfo();
        echo '</div>';
    }
    ?>
                </div><!-- /dokuwiki__usertools -->
                <?php 
}
?>
            </div><!-- /dokuwiki__tools -->

            <div id="sidebar_bg">
            </div>

            <div id="to_top">
                <?php 
tpl_action('top');
?>
            </div>
        </div><!-- /sidebar_wrapper -->

        <div class="wrapper group">
            <!-- ********** CONTENT ********** -->
            <div id="dokuwiki__content"><div class="group">
                <?php 
tpl_flush();
?>
                <?php 
tpl_includeFile('pageheader.html');
?>

                <!-- BREADCRUMBS -->
Example #18
0
?>
                        </ul>
                    </div>

                    <?php 
if ($conf['useacl']) {
    ?>
                        <!-- USER TOOLS -->
                        <div class="user-tools">
                            <h3><?php 
    echo $lang['user_tools'];
    ?>
</h3>
                            <ul>
                                <?php 
    tpl_toolsevent('usertools', array('admin' => tpl_action('admin', 1, 'li', 1, '<span></span> '), 'profile' => tpl_action('profile', 1, 'li', 1, '<span></span> '), 'register' => tpl_action('register', 1, 'li', 1, '<span></span> '), 'login' => tpl_action('login', 1, 'li', 1, '<span></span> ')));
    ?>
                            </ul>
                        </div>

                        <?php 
    if (!empty($_SERVER['REMOTE_USER'])) {
        echo '<p class="user">';
        tpl_userinfo();
        echo '</p>';
    }
    ?>
                    <?php 
}
?>
                </div>
Example #19
0
        <div id="dokuwiki__sitetools">
            <h3 class="a11y"><?php 
echo $lang['site_tools'];
?>
</h3>
            <?php 
tpl_searchform();
?>
            <div class="mobileTools">
                <?php 
tpl_actiondropdown($lang['tools']);
?>
            </div>
            <ul>
                <?php 
tpl_toolsevent('sitetools', array(tpl_action('recent', true, 'li', true), tpl_action('media', true, 'li', true), tpl_action('index', true, 'li', true)));
?>
            </ul>
        </div>

    </div>

    <!-- BREADCRUMBS -->
    <?php 
if ($conf['breadcrumbs'] || $conf['youarehere']) {
    ?>
        <div class="breadcrumbs">
            <?php 
    if ($conf['youarehere']) {
        ?>
                <div class="youarehere"><?php 
Example #20
0
tpl_flush();
?>
            </div></div><!-- /content -->

            <hr class="a11y" />

            <!-- PAGE ACTIONS -->
            <div id="dokuwiki__pagetools">
                <h3 class="a11y"><?php 
echo $lang['page_tools'];
?>
</h3>
                <div class="tools">
                    <ul>
                        <?php 
$data = array('view' => 'main', 'items' => array('edit' => tpl_action('edit', true, 'li', true, '<span>', '</span>'), 'revert' => tpl_action('revert', true, 'li', true, '<span>', '</span>'), 'revisions' => tpl_action('revisions', true, 'li', true, '<span>', '</span>'), 'backlink' => tpl_action('backlink', true, 'li', true, '<span>', '</span>'), 'subscribe' => tpl_action('subscribe', true, 'li', true, '<span>', '</span>'), 'top' => tpl_action('top', true, 'li', true, '<span>', '</span>')));
// the page tools can be amended through a custom plugin hook
$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
if ($evt->advise_before()) {
    foreach ($evt->data['items'] as $k => $html) {
        echo $html;
    }
}
$evt->advise_after();
unset($data);
unset($evt);
?>
                    </ul>
                </div>
            </div>
        </div><!-- /wrapper -->
                <div id="dokuwiki__pagetools">
                    <h3 class="a11y"><?php 
    echo tpl_getLang('page_tools');
    ?>
</h3>
                    <ul>
                        <?php 
    tpl_action('edit', 1, 'li');
    if (tpl_getConf('discussionNS')) {
        _tpl_discussion(tpl_getConf('discussionNS'), 1, 'li', tpl_getConf('discussNSreverse'));
    }
    tpl_action('history', 1, 'li');
    tpl_action('backlink', 1, 'li');
    tpl_action('subscribe', 1, 'li');
    tpl_action('revert', 1, 'li');
    tpl_action('top', 1, 'li');
    ?>
                    </ul>
                </div>
            <?php 
}
?>
        </div><!-- /wrapper -->

        <!-- ********** FOOTER ********** -->
        <div id="dokuwiki__footer"><div class="pad">
            <div class="doc"><?php 
tpl_pageinfo();
?>
</div>
            <?php 
Example #22
0
            <hr class="a11y" />

            <!-- PAGE ACTIONS -->
            <?php 
if (!$ERROR) {
    ?>
                <div id="dokuwiki__pagetools">
                    <h3 class="a11y"><?php 
    echo $lang['page_tools'];
    ?>
</h3>
                    <div class="tools">
                        <ul>
                            <?php 
    $data = array('view' => 'detail', 'items' => array('mediaManager' => tpl_action('mediaManager', true, 'li', true, '<span>', '</span>'), 'img_backto' => tpl_action('img_backto', true, 'li', true, '<span>', '</span>')));
    // the page tools can be amended through a custom plugin hook
    $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
    if ($evt->advise_before()) {
        foreach ($evt->data['items'] as $k => $html) {
            echo $html;
        }
    }
    $evt->advise_after();
    unset($data);
    unset($evt);
    ?>
                        </ul>
                    </div>
                </div>
            <?php 
        ?>
              </div>
              <?php 
    }
    ?>

            </div>
          </div>

        </div>
      </div>

      <hr/>

      <div class="btn-group">
        <?php 
    tpl_action('img_backto', 1);
    ?>
        <?php 
    tpl_action('mediaManager', 1);
    ?>
      </div>

    <?php 
}
?>
  </div>
  <!--[if IE 8 ]></div><![endif]-->
</body>
</html>
					<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 -->

        <?php 
/**
 * 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 '';
}
?>
            <?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';
Example #27
0
">
		<!-- PAGE ACTIONS -->
		<hr />
		<div id="dokuwiki__pagetools">
			<h3 class="a11y"><?php 
echo tpl_getLang('page_tools');
?>
</h3>
			<div class='btn-group'>
				<?php 
tpl_action('edit', 1, 'span class="btn"');
tpl_action('history', 1, 'span class="btn"');
tpl_action('backlink', 1, 'span class="btn"');
tpl_action('subscribe', 1, 'span class="btn"');
tpl_action('revert', 1, 'span class="btn"');
tpl_action('top', 1, 'span class="btn"');
?>
			</div>
		</div>
		<div class="doc"><?php 
tpl_pageinfo();
?>
</div>
		<?php 
tpl_license('button');
?>
		<?php 
tpl_includeFile('footer.html');
?>
	</div>
	</div>