當前位置: 首頁>>代碼示例>>PHP>>正文


PHP tpl_action函數代碼示例

本文整理匯總了PHP中tpl_action函數的典型用法代碼示例。如果您正苦於以下問題:PHP tpl_action函數的具體用法?PHP tpl_action怎麽用?PHP tpl_action使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了tpl_action函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _tpl_output_page_tools

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>';
    }
}
開發者ID:cpolzer,項目名稱:dokutwitterbootstrap,代碼行數:44,代碼來源:tpl_functions.php

示例2: tpl_action

        ?>
                    </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');
?>
開發者ID:n1trux,項目名稱:cw-bootstrap,代碼行數:31,代碼來源:main.php

示例3: plugin_load

        <?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);
}
?>
開發者ID:RobBosman,項目名稱:private.tpl_mtb_schotland_2016,代碼行數:31,代碼來源:tpl_header.php

示例4: bootstrap3_pageinfo

    ?>
      <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"' : '';
    ?>
>
開發者ID:huksley,項目名稱:dokuwiki-template-bootstrap3,代碼行數:31,代碼來源:main.php

示例5: tpl_pageinfo

?>
            </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 
開發者ID:narsis59,項目名稱:dokuwiki_template_ach,代碼行數:31,代碼來源:main.php

示例6: getNS

$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>
開發者ID:projectesIF,項目名稱:Ateneu,代碼行數:30,代碼來源:m1-mobilemenu.php

示例7: nl2br

    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>
開發者ID:posquit0,項目名稱:dokuwiki_template_writr,代碼行數:30,代碼來源:detail.php

示例8: tpl_action

            }
        }
        ?>
                        </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>
開發者ID:atomparticle,項目名稱:dokuwiki_template_starter,代碼行數:30,代碼來源:detail.php

示例9: _tpl_userinfo

/**
 * 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 <badeendjuh@email.com>
 **/
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');
    }
}
開發者ID:ofsole,項目名稱:dokuwiki,代碼行數:22,代碼來源:tpl_functions.php

示例10: tpl_action

?>
</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 {
開發者ID:araname,項目名稱:template-lisps,代碼行數:31,代碼來源:main.php

示例11: tpl_searchform

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 
開發者ID:RnBConsulting,項目名稱:dokuwiki,代碼行數:31,代碼來源:tpl_header.php

示例12: tpl_pageinfo

    ?>
          <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('');
開發者ID:HavocKKS,項目名稱:dokuwiki-template-bootstrap3,代碼行數:31,代碼來源:main.php

示例13: tpl_searchform

            <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>
開發者ID:projectesIF,項目名稱:Ateneu,代碼行數:31,代碼來源:tpl_header.php

示例14: _tpl_action_item

/**
 * Include action link with font-icon
 *
 * @author  Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * 
 * @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 '';
}
開發者ID:HavocKKS,項目名稱:dokuwiki-template-bootstrap3,代碼行數:31,代碼來源:tpl_functions.php

示例15: tpl_action

            <!-- 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>
開發者ID:ngharaibeh,項目名稱:Methodikos,代碼行數:30,代碼來源:main.php


注:本文中的tpl_action函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。