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


PHP Settings::getFaviconURL方法代碼示例

本文整理匯總了PHP中thebuggenie\core\framework\Settings::getFaviconURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP Settings::getFaviconURL方法的具體用法?PHP Settings::getFaviconURL怎麽用?PHP Settings::getFaviconURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在thebuggenie\core\framework\Settings的用法示例。


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

示例1: url

              src: url('<?php 
echo $webroot;
?>
fonts/open_sans_bold_italic.eot');
              src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url('<?php 
echo $webroot;
?>
fonts/open_sans_bold_italic.woff') format('woff'), url('<?php 
echo $webroot;
?>
fonts/open_sans_bold_italic.ttf') format('truetype');
            }
        </style>
        <link rel="shortcut icon" href="<?php 
if (\thebuggenie\core\framework\Settings::isUsingCustomFavicon()) {
    echo \thebuggenie\core\framework\Settings::getFaviconURL();
} else {
    echo image_url('favicon.png');
}
?>
">
        <link title="<?php 
echo \thebuggenie\core\framework\Context::isProjectContext() ? __('%project_name search', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())) : __('%site_name search', array('%site_name' => \thebuggenie\core\framework\Settings::getSiteHeaderName()));
?>
" href="<?php 
echo \thebuggenie\core\framework\Context::isProjectContext() ? make_url('project_opensearch', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey())) : make_url('opensearch');
?>
" type="application/opensearchdescription+xml" rel="search">
        <?php 
foreach ($tbg_response->getFeeds() as $feed_url => $feed_title) {
    ?>
開發者ID:ellipsonic,項目名稱:thebuggenige_app,代碼行數:31,代碼來源:layout.php

示例2: runStatus

 public function runStatus(framework\Request $request)
 {
     $status_info = array('api_version' => $this->getApiVersion(), 'version' => framework\Settings::getVersion(), 'version_long' => framework\Settings::getVersion(true, true), 'site_name' => framework\Settings::getSiteHeaderName(), 'host' => framework\Settings::getURLhost(), 'urls' => array('site' => framework\Settings::getHeaderLink() == '' ? framework\Context::getWebroot() : framework\Settings::getHeaderLink(), 'logo' => framework\Settings::getHeaderIconURL(), 'icon' => framework\Settings::getFaviconURL()), 'online' => !(bool) framework\Settings::isMaintenanceModeEnabled());
     if (framework\Settings::hasMaintenanceMessage()) {
         $status_info['maintenance_msg'] = framework\Settings::getMaintenanceMessage();
     }
     $this->status_info = $status_info;
 }
開發者ID:thebuggenie,項目名稱:module-api,代碼行數:8,代碼來源:Main.php

示例3: url

              font-weight: bold;
              src: url('<?php 
echo $webroot;
?>
fonts/open_sans_bold_italic.eot');
              src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url('<?php 
echo $webroot;
?>
fonts/open_sans_bold_italic.woff') format('woff'), url('<?php 
echo $webroot;
?>
fonts/open_sans_bold_italic.ttf') format('truetype');
            }
        </style>
        <link rel="shortcut icon" href="<?php 
echo \thebuggenie\core\framework\Context::isProjectContext() && \thebuggenie\core\framework\Context::getCurrentProject()->hasSmallIcon() ? \thebuggenie\core\framework\Context::getCurrentProject()->getSmallIconName() : (\thebuggenie\core\framework\Settings::isUsingCustomFavicon() ? \thebuggenie\core\framework\Settings::getFaviconURL() : image_url('favicon.png'));
?>
">
        <link title="<?php 
echo \thebuggenie\core\framework\Context::isProjectContext() ? __('%project_name search', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())) : __('%site_name search', array('%site_name' => \thebuggenie\core\framework\Settings::getSiteHeaderName()));
?>
" href="<?php 
echo \thebuggenie\core\framework\Context::isProjectContext() ? make_url('project_opensearch', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey())) : make_url('opensearch');
?>
" type="application/opensearchdescription+xml" rel="search">
        <?php 
foreach ($tbg_response->getFeeds() as $feed_url => $feed_title) {
    ?>
            <link rel="alternate" type="application/rss+xml" title="<?php 
    echo str_replace('"', '\'', $feed_title);
    ?>
開發者ID:nrensen,項目名稱:thebuggenie,代碼行數:31,代碼來源:layout.php

示例4: __

                            <td><label for="profile_enable_desktop_notifications"><?php 
echo __('Enable desktop notifications');
?>
</label></td>
                            <td>
                                <input type="button" class="button button-silver" value="<?php 
echo __('Grant Permission');
?>
" id="profile_enable_desktop_notifications" onclick="TBG.Main.Notifications.Web.GrantPermissionOrSendTest('<?php 
echo __('Test notification');
?>
', '<?php 
echo __('This is a test notification.');
?>
', '<?php 
echo \thebuggenie\core\framework\Settings::isUsingCustomFavicon() ? \thebuggenie\core\framework\Settings::getFaviconURL() : image_url('favicon.png');
?>
');">
                            </td>
                        </tr>
                        <tr>
                            <td class="config_explanation" colspan="2">
                                <?php 
echo __('If your web browser supports desktop notification, The Bug Genie can show a desktop notification whenever a new notification is received. To allow this, please click the "%grant_permission" button', ['%grant_permission' => __('Grant permission')]);
?>
                            </td>
                        </tr>
                    </table>
                    <table class="padded_table desktop-notifications-settings" cellpadding=0 cellspacing=0>
                        <tr>
                            <td><label for="profile_enable_desktop_notifications_new_tab"><?php 
開發者ID:founderio,項目名稱:thebuggenie,代碼行數:31,代碼來源:myaccount.html.php


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