Making WordPress.org


Ignore:
Timestamp:
07/01/2014 04:37:08 PM (11 years ago)
Author:
nacin
Message:

Trac: Shift our own CSS files to before Trac's JS files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r732 r733  
    6161?>
    6262
    63 <!--! styles and such -->
    64 <head py:match="head" py:attrs="select('@*')">
    65     ${select('*|comment()|text()')}
     63<!--! Styles and such. Load before first JS file (jquery.js) -->
     64<py:match path="head/script[contains(@src,'jquery.js')]">
    6665    <!--! WP.org Global Header -->
    6766    <xi:include href="wporg-head.html" />
    68 
    6967    <meta name="viewport" content="width=device-width" />
    7068    <link rel='stylesheet' href='//s.w.org/wp-includes/css/dashicons.min.css?20140130' type='text/css' />
    7169    <link rel="stylesheet" type="text/css" href="//s.w.org/style/trac/wp-trac.css?${scripts_version}" />
    7270    <link py:if="req.session['authenticated']" rel="stylesheet" href="//s.w.org/wp-includes/css/wp-auth-check.css?ver=3.9-alpha" type="text/css" media="all" />
    73 </head>
    74 
    75 <!--! Remove Trac logo and footer -->
    76 <div py:match="div[@id='header']" py:strip=""></div>
    77 <div py:match="div[@id='footer']" py:strip=""></div>
    78 
    79 <!--! Notices and instructions when creating a new ticket -->
    80 <py:if test="req.environ['PATH_INFO'] == '/newticket'">
    81 
    82     <!--! Prevent Trac from focusing #field-summary on load, as this can scroll past the instructions -->
    83     <py:match path="head/script[contains(@src,'jquery.js')]">
    84         <script py:attrs="select('@*')"></script>
     71       
     72    <script py:attrs="select('@*')"></script>
     73
     74    <py:if test="req.environ['PATH_INFO'] == '/newticket'">
     75        <!--! Prevent Trac from focusing #field-summary on load, as this can scroll past the instructions -->
    8576        <script>
    8677        jQuery( document ).ready( function( $ ) {
     
    8879        });
    8980        </script>
    90     </py:match>
     81    </py:if>
     82</py:match>
     83
     84<!--! Remove Trac logo and footer -->
     85<div py:match="div[@id='header']" py:strip=""></div>
     86<div py:match="div[@id='footer']" py:strip=""></div>
     87
     88<!--! Notices and instructions when creating a new ticket -->
     89<py:if test="req.environ['PATH_INFO'] == '/newticket'">
    9190
    9291    <py:match path="div[@id='content' and @class='ticket']/form">
Note: See TracChangeset for help on using the changeset viewer.