• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP theme_path函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中theme_path函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_path函数的具体用法?PHP theme_path怎么用?PHP theme_path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: handle

 /**
  * Class handler.
  *
  * @param array $args query arguments
  * 
  * @return boolean false if user doesn't exist
  */
 function handle($args)
 {
     parent::handle($args);
     $type = $this->trimmed('type');
     $short_name = '';
     if ($type == 'people') {
         $type = 'peoplesearch';
         $short_name = _('People Search');
     } else {
         $type = 'noticesearch';
         $short_name = _('Notice Search');
     }
     header('Content-Type: text/html');
     $this->startXML();
     $this->elementStart('OpenSearchDescription', array('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/'));
     $short_name = common_config('site', 'name') . ' ' . $short_name;
     $this->element('ShortName', null, $short_name);
     $this->element('Contact', null, common_config('site', 'email'));
     $this->element('Url', array('type' => 'text/html', 'method' => 'get', 'template' => str_replace('---', '{searchTerms}', common_local_url($type, array('q' => '---')))));
     $this->element('Image', array('height' => 16, 'width' => 16, 'type' => 'image/vnd.microsoft.icon'), common_path('favicon.ico'));
     $this->element('Image', array('height' => 50, 'width' => 50, 'type' => 'image/png'), theme_path('logo.png'));
     $this->element('AdultContent', null, 'false');
     $this->element('Language', null, common_language());
     $this->element('OutputEncoding', null, 'UTF-8');
     $this->element('InputEncoding', null, 'UTF-8');
     $this->elementEnd('OpenSearchDescription');
     $this->endXML();
 }
开发者ID:Br3nda,项目名称:laconica,代码行数:35,代码来源:opensearch.php


示例2: __toString

 public function __toString()
 {
     $name = $this->getPropertyValue('namePattern');
     $id = $this->getPropertyValue('namePattern');
     $imageHTML = tag('img', array('src' => theme_path('images/callout-left.png'), 'title' => 'Click here to edit', 'alt' => 'Edit', 'class' => 'callout dialogInvoker'));
     $placeholderGetters = $this->getPropertyValue('placeholderGetters');
     $id = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('idPattern'));
     $name = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('namePattern'));
     $comments = $this->getValue();
     $commentExtract = '';
     $allComments = '';
     // show last comment only
     if (count($comments) > 0) {
         foreach ($comments as $comment) {
             $created = new DateTime($comment->getCreated());
             $createdAt = set_datepicker_date_format($created->format('Y-m-d')) . ' ' . $created->format('H:i');
             $formatComment = $createdAt . ' ' . $comment->getCreatedByName() . "\n\n" . $comment->getComments();
             $allComments = $formatComment . "\n\n" . $allComments;
         }
         $lastComment = $comments->getLast();
         $commentExtract = $this->trimComment($lastComment->getComments());
     }
     $commentContainerHTML = content_tag('span', $commentExtract, array('id' => $this->generateAttributeValue($placeholderGetters, 'commentContainer-{id}')));
     $hiddenFieldHTML = tag('input', array('type' => 'hidden', 'id' => $id, 'name' => $name, 'value' => $allComments));
     $commentHTML = content_tag('span', $commentContainerHTML . $imageHTML . $hiddenFieldHTML, array('class' => 'commentContainerLong'));
     if ($this->isHiddenOnCallback()) {
         return ' ';
     }
     return $commentHTML . $this->getHiddenFieldHTML();
 }
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:30,代码来源:LeaveCommentCell.php


示例3: view_path

function view_path($view, $theme = null)
{
    if (is_null($theme)) {
        $theme = ucfirst(config('themes.default'));
    } else {
        $theme = theme_path($theme);
    }
    return $theme . ".views." . $view;
}
开发者ID:lms-laravel,项目名称:lms-laravel,代码行数:9,代码来源:helpers.php


示例4: showStylesheets

 function showStylesheets()
 {
     // Add a timestamp to the file so Facebook cache wont ignore our changes
     $ts = filemtime(INSTALLDIR . '/theme/base/css/display.css');
     $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => theme_path('css/display.css', 'base') . '?ts=' . $ts));
     $theme = common_config('site', 'theme');
     $ts = filemtime(INSTALLDIR . '/theme/' . $theme . '/css/display.css');
     $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => theme_path('css/display.css', null) . '?ts=' . $ts));
     $ts = filemtime(INSTALLDIR . '/theme/base/css/facebookapp.css');
     $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => theme_path('css/facebookapp.css', 'base') . '?ts=' . $ts));
 }
开发者ID:Br3nda,项目名称:laconica,代码行数:11,代码来源:facebookaction.php


示例5: load_lang

function load_lang($manage = false)
{
    $locale = get_locale();
    $langfiles = get_available_langs($manage);
    while ($langfile = array_pop($langfiles)) {
        if ($langfile == $locale || $langfile == substr($locale, 0, 2)) {
            return json_decode(file_get_contents(ABSPATH . '/' . ($manage ? 'manage/' : theme_path()) . 'lang/' . $langfile . '.json'), true);
        } else {
            if (substr_compare($langfile, $locale, 0, 2) == 0) {
                $remember = $langfile;
            }
        }
    }
    return isset($remember) ? json_decode(file_get_contents(ABSPATH . '/' . ($manage ? 'manage/' : theme_path()) . 'lang/' . $remember . '.json'), true) : false;
}
开发者ID:lskstc,项目名称:qchan-lite,代码行数:15,代码来源:functions.language.php


示例6: __toString

 public function __toString()
 {
     $name = $this->getPropertyValue('namePattern');
     $id = $this->getPropertyValue('namePattern');
     $imageHTML = tag('img', array('src' => theme_path('images/callout-left.png'), 'title' => 'Click here to edit', 'alt' => 'Edit', 'class' => 'callout dialogInvoker'));
     $placeholderGetters = $this->getPropertyValue('placeholderGetters');
     $id = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('idPattern'));
     $name = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('namePattern'));
     $hiddenFieldHTML = tag('input', array('type' => 'hidden', 'id' => $id, 'name' => $name, 'value' => $this->getValue()));
     $commentContainerHTML = content_tag('span', $this->trimComment($this->getValue()), array('id' => $this->generateAttributeValue($placeholderGetters, 'commentContainer-{id}')));
     $commentHTML = content_tag('span', $commentContainerHTML . $imageHTML . $hiddenFieldHTML, array('class' => 'commentContainerLong'));
     if ($this->isHiddenOnCallback()) {
         return ' ';
     }
     return $commentHTML . $this->getHiddenFieldHTML();
 }
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:16,代码来源:CommentCell.php


示例7: crunch

 function crunch($dev = false)
 {
     $filename = md5(serialize($this->files)) . '.js';
     $buffer = "";
     if (!file_exists(theme_path() . 'assets/js/' . $filename)) {
         foreach ($this->files as $jsFile) {
             $buffer .= file_get_contents(theme_path() . 'assets/js/' . $jsFile . '.js');
             if ($dev) {
                 echo theme_js($jsFile . '.js', true);
                 continue;
             }
         }
         if ($dev) {
             return;
         }
         file_put_contents(theme_path() . 'assets/js/' . $filename, $buffer);
     }
     echo '<script type="text/javascript" src="' . theme_js($filename) . '"></script>';
     $this->files = [];
 }
开发者ID:lekhangyahoo,项目名称:gonline,代码行数:20,代码来源:crunch.php


示例8: function

<?php

/*
|--------------------------------------------------------------------------
| Custom Theme Routes
|--------------------------------------------------------------------------
|
| In this file you can over ride any routes and add new ones based on your
| needs. For information on routing please see the following documentation:
| http://laravel.com/docs/routing
| http://laravel.com/docs/controllers
|
*/
Route::get('/about', function () {
    return View::make(theme_path('about'));
});
Route::get('/tags', function () {
    return View::make(theme_path('tags'));
});
开发者ID:samimohs,项目名称:wardrobe,代码行数:19,代码来源:routes.php


示例9: view_path

function view_path($view, $theme = 'default')
{
    return theme_path($theme) . ".views." . $view;
}
开发者ID:mrcoco,项目名称:LMS-Laravel,代码行数:4,代码来源:helpers.php


示例10: showLogo

 /**
  * Show configured logo.
  *
  * @return nothing
  */
 function showLogo()
 {
     $this->elementStart('address', array('id' => 'site_contact', 'class' => 'vcard'));
     $this->elementStart('a', array('class' => 'url home bookmark', 'href' => common_local_url('public')));
     if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {
         $this->element('img', array('class' => 'logo photo', 'src' => common_config('site', 'logo') ? common_config('site', 'logo') : theme_path('logo.png'), 'alt' => common_config('site', 'name')));
     }
     $this->element('span', array('class' => 'fn org'), common_config('site', 'name'));
     $this->elementEnd('a');
     $this->elementEnd('address');
 }
开发者ID:Br3nda,项目名称:laconica,代码行数:16,代码来源:action.php


示例11: theme_path

        <link href="<?php 
echo theme_path('css/tipTip.css');
?>
" rel="stylesheet" type="text/css"/>
        <link href="<?php 
echo theme_path('css/jquery/jquery-ui-1.8.21.custom.css');
?>
" rel="stylesheet" type="text/css"/>
        <link href="<?php 
echo theme_path('css/jquery/jquery.autocomplete.css');
?>
" rel="stylesheet" type="text/css"/>
        
        <!-- Custom CSS files -->
        <link href="<?php 
echo theme_path('css/main.css');
?>
" rel="stylesheet" type="text/css"/>
        
        <?php 
// Library JavaScript files
echo javascript_include_tag('jquery/jquery-1.7.2.min.js');
echo javascript_include_tag('jquery/validate/jquery.validate.js');
echo javascript_include_tag('jquery/jquery.ui.core.js');
echo javascript_include_tag('jquery/jquery.autocomplete.js');
echo javascript_include_tag('orangehrm.autocomplete.js');
echo javascript_include_tag('jquery/jquery.ui.datepicker.js');
echo javascript_include_tag('jquery/jquery.form.js');
echo javascript_include_tag('jquery/jquery.tipTip.minified.js');
echo javascript_include_tag('jquery/bootstrap-modal.js');
echo javascript_include_tag('jquery/jquery.clickoutside.js');
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:31,代码来源:_header.php


示例12: defaultImage

 static function defaultImage($size)
 {
     static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile', AVATAR_STREAM_SIZE => 'stream', AVATAR_MINI_SIZE => 'mini');
     return theme_path('default-avatar-' . $sizenames[$size] . '.png');
 }
开发者ID:Br3nda,项目名称:laconica,代码行数:5,代码来源:Avatar.php


示例13: image_tag

                            <?php 
        for ($j = 0; $j < $noOfDays; $j++) {
            ?>
                                <td class="center comments"> <!-- title="<?php 
            echo $row['projectId'] . "##" . $row['activityId'] . "##" . $currentWeekDates[$j] . "##" . $row['timesheetItems'][$currentWeekDates[$j]]->getComment();
            ?>
" -->
                                    <?php 
            echo $timesheetForm['initialRows'][$i][$j]->renderError();
            ?>
                                    <?php 
            echo $timesheetForm['initialRows'][$i][$j]->render(array("class" => $dltClassName . " " . 'timeBox'));
            ?>
<!--                                    <span class="" data-toggle="modal" href="#commentDialog">-->
                                        <?php 
            echo image_tag(theme_path('images/comment.png'), 'id=commentBtn_' . $j . '_' . $i . " class=commentIcon " . $dltClassName);
            ?>
<!--                                    </span>-->
                                    <?php 
            echo $timesheetForm['initialRows'][$i]['TimesheetItemId' . $j];
            ?>
                                </td>
                            <?php 
        }
        ?>
                        </tr>
                        <?php 
        $i++;
        $x++;
    }
}
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:31,代码来源:editTimesheetSuccess.php


示例14: theme_path

		<script src="<?php 
theme_path('js/maplace-0.1.3.min.js');
?>
"></script>
		<script src="<?php 
theme_path('js/responsiveslides.min.js');
?>
"></script>

		<!-- COUNTDOWN
		================================= -->
		<script src="<?php 
theme_path('js/jquery.countdown.min.js');
?>
"></script>

		<!-- DEMO SWITCHER
		================================= -->
		<script src="<?php 
theme_path('js/switcher.js');
?>
"></script>

		<!-- MAIN SCRIPT
		================================= -->
		<script src="<?php 
theme_path('js/script.js');
?>
"></script>
</body>
</html>
开发者ID:iamonuwa,项目名称:ivote,代码行数:31,代码来源:footer.php


示例15: load_footer

function load_footer()
{
    require_once ABSPATH . '/' . theme_path() . 'footer.php';
}
开发者ID:lskstc,项目名称:qchan-lite,代码行数:4,代码来源:functions.theme.php


示例16: get_url

</button>
				</div>
			</section>
		</div>
	</div>

</section>

<!-- File info section -->
<aside id="info_zone" class="hide">
</aside>

<script type="application/javascript" src="<?php 
echo get_url() . theme_path();
?>
js/zepto.min.js"></script>
<?php 
echo embed_script();
?>
<script type="application/javascript" src="<?php 
echo get_url() . theme_path();
?>
js/ui.js"></script>
<script type="application/javascript">
<?php 
echo $results != null ? format_script($results) : '';
?>
</script>

<?php 
load_footer();
开发者ID:lskstc,项目名称:qchan-lite,代码行数:31,代码来源:main.php


示例17: printJavascript

 public function printJavascript()
 {
     $this->addScriptContent("\n            \$('#ohrmTreeViewComponent_Tree').treeview({\n                collapsed: false,\n                control:'#ohrmTreeViewComponent_TreeController',\n                persist: 'location'\n            });\n\n            \$('#ohrmTreeViewComponent_Tree *').css('list-style', 'none'); // TODO: Move this to a stylesheet. Make sure to test in IE\n\n            \$('a[id^=\"treeLink_edit_\"]').click(function() {\n                loadNode(parseInt(\$(this).attr('id').replace('treeLink_edit_', '')));\n                _clearMessage();\n            });\n\n            \$('a[id^=\"treeLink_addChild_\"]').click(function() {\n                addChildToNode(parseInt(\$(this).attr('id').replace('treeLink_addChild_', '')));\n            });\n\n            \$('a[id^=\"treeLink_delete_\"]').click(function() {\n                deleteNode(parseInt(\$(this).attr('id').replace('treeLink_delete_', '')));\n            });\n\n            clearForm();\n");
     $this->addScriptFunction("\n            \$('form[id^=\"ohrmFormComponent_Form\"]').each(function() {\n                \$(this).parent().parent().show();\n            });\n            \$('.requirednotice').show();\n        ", 'showForm');
     $this->addScriptFunction("\n            \$('form[id^=\"ohrmFormComponent_Form\"]').each(function() {\n                \$(this).parent().parent().hide();\n            });\n            \$('.requirednotice').hide();\n        ", 'hideForm');
     $this->addScriptFunction("\n            \$('form[id^=\"ohrmFormComponent_Form\"] :input').filter(':not([type=\"button\"])').val('');\n            \$('.idValueLabel').html('');\n            \$('#lblParentNotice').remove();\n        ", 'clearForm');
     $html = '';
     $html .= javascript_include_tag('jquery/jquery.treeview.min.js');
     if ($this->type == null) {
         $html .= tag('link', array('rel' => 'stylesheet', 'href' => theme_path('css/jquery/jquery-treeview/jquery.treeview.css')));
     } else {
         $html .= tag('link', array('rel' => 'stylesheet', 'href' => theme_path('css/jquery/jquery-treeview/jquery.treeview_1.css')));
     }
     $this->addScriptContent(array('$(document).ready(function() {', '});'), 'wrap');
     $this->addScriptContent($this->getScriptFunctionsString());
     $this->addScriptContent(array('//<![CDATA[', '//]]>'), 'wrap');
     $html .= content_tag('script', $this->scriptContent, array('type' => 'text/javascript'));
     echo $html;
     return true;
 }
开发者ID:abdocmd,项目名称:orangehrm-3.0.1,代码行数:20,代码来源:ohrmTreeViewComponent.php


示例18: theme_path

?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/datepicker/datepicker3.css');
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/daterangepicker/daterangepicker-bs3.css');
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/select2/select2.min.css');
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css');
?>
">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
      <script>
  var BASE_URL = '<?php 
echo base_url();
?>
';
  </script>
开发者ID:iamonuwa,项目名称:ivote,代码行数:31,代码来源:header.php


示例19: url

		(function() {
		if (! 
		/*@cc_on!@*/
		0) return;
		var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video".split(', ');
		var i= e.length;
		while (i=i-1){
			document.createElement(e[i])
		} 
		})();
	</script>
	<![endif]-->
	
	<style>
		#result_zone {background-image: url('<?php 
echo theme_path();
?>
images/tip.<?php 
echo get_locale(true);
?>
.png');}
	</style>
</head>

<body>
<header id="main_header">
	<div id="logo"></div>
	<?php 
if (!is_page()) {
    ?>
	<div id="upload_button_wrap">
开发者ID:lskstc,项目名称:qchan-lite,代码行数:31,代码来源:header.php


示例20: image_tag

?>
            <?php 
echo $form['initialRows'][$num]['projectActivityName']->render(array("class" => "projectActivity"));
?>
            <?php 
echo $form['initialRows'][$num]['projectActivityId'];
?>
        </td>
        <?php 
for ($j = 0; $j < $noOfDays; $j++) {
    ?>
            <td class="center comments">
                <?php 
    echo $form['initialRows'][$num][$j]->renderError();
    ?>
                <?php 
    echo $form['initialRows'][$num][$j]->render(array("class" => "timeBox"));
    ?>
                <?php 
    echo image_tag(theme_path('images/comment.png'), 'id=commentBtn_' . $j . '_' . $num . " class=commentIcon ");
    ?>
                <?php 
    echo $form['initialRows'][$num]['TimesheetItemId' . $j];
    ?>
            </td>
        <?php 
}
?>
    </tr>
</table>
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:30,代码来源:_addRow.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP theme_post_wrapper函数代码示例发布时间:2022-05-23
下一篇:
PHP theme_pagination函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap