Exemple #1
0
              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);
    ?>
              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 
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) {
                            <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