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


PHP Theme::admin_link方法代码示例

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


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

示例1:

 <b class="caret"></b></a>
                    	<ul class="dropdown-menu">
                            <?php 
    echo Theme::admin_link(__('Category'), 'category', 'create');
    ?>
                            <?php 
    echo Theme::admin_link(__('Location'), 'location', 'create');
    ?>
                            <?php 
    echo Theme::admin_link(__('Blog post'), 'blog', 'create');
    ?>
                            <?php 
    echo Theme::admin_link(__('FAQ'), 'content', 'create?type=help&locale_select=' . core::config('i18n.locale'), 'oc-panel');
    ?>
                            <?php 
    echo Theme::admin_link(__('Page'), 'content', 'create?type=page&locale_select=' . core::config('i18n.locale'), 'oc-panel');
    ?>
                            <?php 
    if (Core::config('advertisement.only_admin_post') != 1 or Auth::instance()->get_user()->id_role == Model_Role::ROLE_ADMIN) {
        ?>
                            <li class="divider"></li>
                    		<li><a href="<?php 
        echo Route::url('post_new');
        ?>
">
                    			<i class="glyphicon  glyphicon-pencil"></i> <?php 
        echo __('Publish new');
        ?>
</a>	</li>
                            <?php 
    }
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:31,代码来源:header.php

示例2: __

?>
</td></tr>
                                        <tr><td class="br"><?php 
echo Theme::admin_link(__('My Payments'), 'profile', 'orders', 'oc-panel', 'glyphicon glyphicon-shopping-cart', NULL, FALSE);
?>
</td></tr>
                                        <tr><td class="br"><?php 
echo Theme::admin_link(__('My Favorites'), 'profile', 'favorites', 'oc-panel', 'glyphicon glyphicon-heart', NULL, FALSE);
?>
</td></tr>
                                        <tr><td class="br"><?php 
echo Theme::admin_link(__('Stats'), 'myads', 'stats', 'oc-panel', 'glyphicon glyphicon-align-left', NULL, FALSE);
?>
</td></tr>
                                        <tr><td class="br"><?php 
echo Theme::admin_link(__('Subscriptions'), 'profile', 'subscriptions', 'oc-panel', 'glyphicon glyphicon-envelope', NULL, FALSE);
?>
</td></tr>
                                        <tr><td class="br">
                                            <li>
                                                <a href="<?php 
echo Route::url('profile', array('seoname' => $user->seoname));
?>
">
                                                    <i class="glyphicon glyphicon-user"></i>
                                                    <span class="side-name-link"><?php 
echo __('Public profile');
?>
</span>
                                                </a>
                                            </li>
开发者ID:pyrotoxin,项目名称:openclassifieds2,代码行数:31,代码来源:sidebar.php

示例3:

?>
</span></a>
                        </li>
                        <li class="hidden">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="linecon li_settings"></i><span class="hidden-xs hidden-sm hidden-md">Quick settings</span><i class="fa fa-angle-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <?php 
echo Theme::admin_link(__('Cache'), 'tools', 'cache', 'oc-panel', 'glyphicon glyphicon-cog');
?>
                                <?php 
echo Theme::admin_link(__('Delete all'), 'tools', 'cache?force=1', 'oc-panel', 'glyphicon glyphicon-remove-sign');
?>
                                <?php 
echo Theme::admin_link(__('Delete expired'), 'tools', 'cache?force=2', 'oc-panel', 'glyphicon glyphicon-remove-circle');
?>
                                     
                            </ul>
                        </li>
                    </ul>
                    <?php 
echo View::factory('oc-panel/widget_login');
?>
                </nav>
                <a href="http://open-classifieds.com/support/" target="_blank" class="help-link hidden-xs">Need help?</a>
            </div>
        </div>
    </div>
</header>
开发者ID:ThomWensink,项目名称:openclassifieds2,代码行数:30,代码来源:header.php

示例4: __

<div class="divider"></div>
				<li class="nav-header"><i class="glyphicon glyphicon-user"></i><?php 
    echo __('Profile');
    ?>
</li>
				<?php 
    Theme::admin_link(__('Edit profile'), 'profile', 'edit');
    ?>
                <?php 
    Theme::admin_link(__('My Advertisements'), 'profile', 'ads');
    ?>
                <?php 
    Theme::admin_link(__('Stats'), 'profile', 'stats');
    ?>
                <?php 
    Theme::admin_link(__('Subscriptions'), 'profile', 'subscriptions');
    ?>
				<li><a
					href="<?php 
    echo Route::url('profile', array('seoname' => $user->seoname));
    ?>
">
					<?php 
    echo __('Public profile');
    ?>
				</a>
				</li>
			<?php 
}
?>
            <div class="divider"></div>
开发者ID:Wildboard,项目名称:WbWebApp,代码行数:31,代码来源:sidebar.php

示例5: __

?>
                    <?if (core::config('general.blog')==1):?>
                        <?php 
echo Theme::admin_link(__('Blog'), 'blog', 'index', 'oc-panel');
?>
                    <?endif?>
                    <?php 
echo Theme::admin_link(__('Email'), 'content', 'email', 'oc-panel');
?>
                    <?if (core::config('general.faq')==1):?>
                        <?php 
echo Theme::admin_link(__('FAQ'), 'content', 'help', 'oc-panel');
?>
                    <?endif?>
                    <?php 
echo Theme::admin_link(__('Media'), 'cmsimages', 'index', 'oc-panel');
?>
                    <li <?php 
echo Request::current()->controller() == 'map' ? 'class="active"' : '';
?>
 >
                        <a href="<?php 
echo Route::url('oc-panel', array('controller' => 'map', 'action' => 'index'));
?>
" title="<?php 
echo __('Interactive Map');
?>
">
                            <span class="side-name-link"><?php 
echo __('Interactive Map');
?>
开发者ID:johnulist,项目名称:openclassifieds2,代码行数:31,代码来源:sidebar.php

示例6: __

            		      data-toggle="dropdown"><i class="glyphicon glyphicon-plus"></i> <?php 
    echo __('New');
    ?>
 <b class="caret"></b></a>
                    	<ul class="dropdown-menu">
                            <?php 
    echo Theme::admin_link(__('Bog post'), 'blog', 'create');
    ?>
                            <?php 
    echo Theme::admin_link(__('Category'), 'category', 'create');
    ?>
                            <?php 
    echo Theme::admin_link(__('Location'), 'location', 'create');
    ?>
                            <?php 
    echo Theme::admin_link(__('Page'), 'content', 'create');
    ?>
                    		<li class="divider"></li>
                    		<li><a href="<?php 
    echo Route::url('post_new');
    ?>
">
                    			<i class="glyphicon  glyphicon-pencil"></i> <?php 
    echo __('Publish new');
    ?>
</a>	</li>
                    	</ul>
            	   </li> 
                   <?php 
} else {
    ?>
开发者ID:Wildboard,项目名称:WbWebApp,代码行数:31,代码来源:header.php

示例7:

    echo Theme::admin_link(__('Purchases'), 'profile', 'orders', 'oc-panel', 'glyphicon glyphicon-shopping-cart');
    ?>
</td></tr>
                                        <tr><td class="br"><?php 
    echo Theme::admin_link(__('Support'), 'support', 'index', 'oc-panel', 'glyphicon glyphicon-comment');
    ?>
</td></tr>
                                        <tr><td class="br"><?php 
    echo Theme::admin_link(__('Edit profile'), 'profile', 'edit', 'oc-panel', 'glyphicon glyphicon-user');
    ?>
</td></tr>
                                        <?php 
    if (Core::config('affiliate.active') == 1 and Theme::get('premium') == 1) {
        ?>
                                        <tr><td class="br"><?php 
        echo Theme::admin_link(__('Affiliates'), 'profile', 'affiliate', 'oc-panel', 'glyphicon glyphicon-usd');
        ?>
</td></tr>
                                        <?php 
    }
    ?>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <?php 
}
?>
                        
                        <div class="panel panel-sidebar collapse-menu">
                            <div class="panel-heading">
开发者ID:alirezadamash,项目名称:open-eshop,代码行数:31,代码来源:sidebar.php


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