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


PHP theme_path函数代码示例

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


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


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