Make WordPress Core

Changeset 5631


Ignore:
Timestamp:
06/02/2007 12:37:51 AM (19 years ago)
Author:
rob1n
Message:

Move JavaScript to js subfolder, and CSS to css subfolder. see #4334

Location:
trunk
Files:
2 added
6 edited
16 moved

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r5268 r5631  
    1818<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    1919<title><?php bloginfo('name') ?> &rsaquo; <?php echo wp_specialchars( strip_tags( $title ) ); ?> &#8212; WordPress</title>
    20 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     20<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/css/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2121<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    22 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     22<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/css/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2323<?php endif; ?>
    2424<script type="text/javascript">
  • trunk/wp-admin/includes/upload.php

    r5628 r5631  
    338338function wp_upload_admin_head() {
    339339        global $wp_locale;
    340         echo "<link rel='stylesheet' href='" . get_option('siteurl') . '/wp-admin/upload.css?version=' . get_bloginfo('version') . "a' type='text/css' />\n";
     340        echo "<link rel='stylesheet' href='" . get_bloginfo('wpurl') . '/wp-admin/css/upload.css?version=' . get_bloginfo('version') . "a' type='text/css' />\n";
    341341        if ( 'rtl' == $wp_locale->text_direction )
    342                 echo "<link rel='stylesheet' href='" . get_option('siteurl') . '/wp-admin/upload-rtl.css?version=' . get_bloginfo('version') . "a' type='text/css' />\n";
     342                echo "<link rel='stylesheet' href='" . get_bloginfo('wpurl') . '/wp-admin/css/upload-rtl.css?version=' . get_bloginfo('version') . "a' type='text/css' />\n";
    343343        if ( 'inline' == @$_GET['style'] ) {
    344344                echo "<style type='text/css' media='screen'>\n";
  • trunk/wp-admin/install.php

    r5542 r5631  
    2020        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    2121        <title><?php _e('WordPress &rsaquo; Installation'); ?></title>
    22         <link rel="stylesheet" href="install.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     22        <link rel="stylesheet" href="css/install.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2323        <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    24         <link rel="stylesheet" href="install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     24        <link rel="stylesheet" href="css/install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2525        <?php endif; ?>
    2626</head>
  • trunk/wp-admin/upload.php

    r5542 r5631  
    6464<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    6565<title><?php bloginfo('name') ?> &rsaquo; <?php _e('Uploads'); ?> &#8212; WordPress</title>
    66 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     66<link rel="stylesheet" href="<?php bloginfo( 'wpurl' ); ?>/wp-admin/css/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    6767<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    68 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     68<link rel="stylesheet" href="<?php bloginfo( 'wpurl' ); ?>/wp-admin/css/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    6969<?php endif; ?>
    7070<script type="text/javascript">
  • trunk/wp-admin/widgets.php

    r5520 r5631  
    1515        define( 'WP_WIDGETS_HEIGHT', 35 * ( count( $wp_registered_widgets ) ) );
    1616?>
    17         <link rel="stylesheet" href="widgets.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     17        <link rel="stylesheet" href="<?php bloginfo( 'wpurl' ); ?>/wp-admin/css/widgets.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    1818        <!--[if IE 7]>
    1919        <style type="text/css">
    20         #palette {float:left;}
     20                #palette { float:left; }
    2121        </style>
    2222        <![endif]-->
    … …  
    2828        if ( get_bloginfo( 'text_direction' ) == 'rtl' ) {
    2929?>
    30         <link rel="stylesheet" href="widgets-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     30        <link rel="stylesheet" href="<?php bloginfo( 'wpurl' ); ?>/wp-admin/css/widgets-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    3131<?php
    3232        }
  • trunk/wp-includes/script-loader.php

    r5629 r5631  
    9494                        endswitch;
    9595                        if ( $man ) {
    96                                 $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key.js', array('dbx'), '20070417' );
     96                                $this->add( 'dbx-admin-key', '/wp-admin/js/dbx-admin-key.js', array('dbx'), '20070417' );
    9797                                $this->localize( 'dbx-admin-key', 'dbxL10n', array(
    9898                                        'manager' => $man,
    … …  
    105105                                ) );
    106106                        }
    107                         $this->add( 'ajaxcat', '/wp-admin/cat.js', array('listman'), '20070417' );
     107                        $this->add( 'ajaxcat', '/wp-admin/js/cat.js', array('listman'), '20070417' );
    108108                        $this->localize( 'ajaxcat', 'catL10n', array(
    109109                                'add' => attribute_escape(__('Add')),
    110110                                'how' => __('Separate multiple categories with commas.')
    111111                        ) );
    112                         $this->add( 'admin-categories', '/wp-admin/categories.js', array('listman'), '3684' );
    113                         $this->add( 'admin-custom-fields', '/wp-admin/custom-fields.js', array('listman'), '3733' );
    114                         $this->add( 'admin-comments', '/wp-admin/edit-comments.js', array('listman'), '20070327' );
    115                         $this->add( 'admin-users', '/wp-admin/users.js', array('listman'), '4583' );
    116                         $this->add( 'xfn', '/wp-admin/xfn.js', false, '3517' );
    117                         $this->add( 'upload', '/wp-admin/upload.js', array('jquery'), '20070518' );
     112                        $this->add( 'admin-categories', '/wp-admin/js/categories.js', array('listman'), '3684' );
     113                        $this->add( 'admin-custom-fields', '/wp-admin/js/custom-fields.js', array('listman'), '3733' );
     114                        $this->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('listman'), '20070327' );
     115                        $this->add( 'admin-users', '/wp-admin/js/users.js', array('listman'), '4583' );
     116                        $this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' );
     117                        $this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' );
    118118                        $this->localize( 'upload', 'uploadL10n', array(
    119119                                'browseTitle' => attribute_escape(__('Browse your files')),
Note: See TracChangeset for help on using the changeset viewer.