Set eol-style. see #6015
git-svn-id: http://svn.automattic.com/wordpress/trunk@8541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35f46f0d4b
commit
e61e2610d2
|
@ -1,122 +1,122 @@
|
||||||
/* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
|
/* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
|
||||||
div.star-holder {
|
div.star-holder {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
}
|
}
|
||||||
div.star {
|
div.star {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
letter-spacing: 1ex;
|
letter-spacing: 1ex;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
div.star.select:hover { background-color: #d00; }
|
div.star.select:hover { background-color: #d00; }
|
||||||
.star1 { width: 20%; }
|
.star1 { width: 20%; }
|
||||||
.star2 { width: 40%; }
|
.star2 { width: 40%; }
|
||||||
.star3 { width: 60%; }
|
.star3 { width: 60%; }
|
||||||
.star4 { width: 80%; }
|
.star4 { width: 80%; }
|
||||||
.star5 { width: 100%; }
|
.star5 { width: 100%; }
|
||||||
.star-average, .star.star-rating { background-color: #fc0; } /* TODO: Colour CSS file */
|
.star-average, .star.star-rating { background-color: #fc0; } /* TODO: Colour CSS file */
|
||||||
.star img, div.star a, div.star a:hover, div.star a:visited {
|
.star img, div.star a, div.star a:hover, div.star a:visited {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
border: none;
|
border: none;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
div.star img {
|
div.star img {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
border-left: 1px solid #fff;
|
border-left: 1px solid #fff;
|
||||||
border-right: 1px solid #fff;
|
border-right: 1px solid #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Start custom CSS */
|
/* Start custom CSS */
|
||||||
/* TODO: Move remaining colours to Colours CSS */
|
/* TODO: Move remaining colours to Colours CSS */
|
||||||
/* Header on thickbox */
|
/* Header on thickbox */
|
||||||
#plugin-information-header {
|
#plugin-information-header {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
height: 2.5em;
|
height: 2.5em;
|
||||||
}
|
}
|
||||||
#plugin-information ul#sidemenu {
|
#plugin-information ul#sidemenu {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
bottom: -1px;
|
bottom: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Install sidemenu */
|
/* Install sidemenu */
|
||||||
|
|
||||||
#plugin-information p.action-button {
|
#plugin-information p.action-button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom:0;
|
padding-bottom:0;
|
||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .action-button a {
|
#plugin-information .action-button a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information h2 {
|
#plugin-information h2 {
|
||||||
clear: none !important;
|
clear: none !important;
|
||||||
margin-right: 200px;
|
margin-right: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi {
|
#plugin-information .fyi {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
width: 210px;
|
width: 210px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi h2 {
|
#plugin-information .fyi h2 {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi h2.mainheader {
|
#plugin-information .fyi h2.mainheader {
|
||||||
background-color: #cee1ef; /* TODO: Colour CSS file */
|
background-color: #cee1ef; /* TODO: Colour CSS file */
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi ul {
|
#plugin-information .fyi ul {
|
||||||
background-color: #eaf3fa; /* TODO: Colour CSS file */
|
background-color: #eaf3fa; /* TODO: Colour CSS file */
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
padding-left: 7px;
|
padding-left: 7px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information .fyi li {
|
#plugin-information .fyi li {
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information #section-holder {
|
#plugin-information #section-holder {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plugin-information #section-screenshots li img {
|
#plugin-information #section-screenshots li img {
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
}
|
}
|
||||||
#plugin-information #section-screenshots li p {
|
#plugin-information #section-screenshots li p {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-bottom: 2em;
|
padding-bottom: 2em;
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,53 +1,53 @@
|
||||||
/* Plugin Browser Thickbox related JS*/
|
/* Plugin Browser Thickbox related JS*/
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
var thickDims = function() {
|
var thickDims = function() {
|
||||||
var tbWindow = $('#TB_window');
|
var tbWindow = $('#TB_window');
|
||||||
var width = $(window).width();
|
var width = $(window).width();
|
||||||
var H = $(window).height();
|
var H = $(window).height();
|
||||||
var W = ( 720 < width ) ? 720 : width;
|
var W = ( 720 < width ) ? 720 : width;
|
||||||
|
|
||||||
if ( tbWindow.size() ) {
|
if ( tbWindow.size() ) {
|
||||||
tbWindow.width( W - 50 ).height( H - 45 );
|
tbWindow.width( W - 50 ).height( H - 45 );
|
||||||
$('#TB_iframeContent').width( W - 50 ).height( H - 75 );
|
$('#TB_iframeContent').width( W - 50 ).height( H - 75 );
|
||||||
tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'});
|
tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'});
|
||||||
if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ) )
|
if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ) )
|
||||||
tbWindow.css({'top':'20px','margin-top':'0'});
|
tbWindow.css({'top':'20px','margin-top':'0'});
|
||||||
};
|
};
|
||||||
|
|
||||||
return $('a.thickbox').each( function() {
|
return $('a.thickbox').each( function() {
|
||||||
var href = $(this).attr('href');
|
var href = $(this).attr('href');
|
||||||
if ( ! href )
|
if ( ! href )
|
||||||
return;
|
return;
|
||||||
href = href.replace(/&width=[0-9]+/g, '');
|
href = href.replace(/&width=[0-9]+/g, '');
|
||||||
href = href.replace(/&height=[0-9]+/g, '');
|
href = href.replace(/&height=[0-9]+/g, '');
|
||||||
$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );
|
$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
thickDims().click( function() {
|
thickDims().click( function() {
|
||||||
$('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
|
$('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
|
||||||
$('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).attr('title') );
|
$('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).attr('title') );
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).resize( function() { tb_position() } );
|
$(window).resize( function() { tb_position() } );
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Plugin install related JS*/
|
/* Plugin install related JS*/
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('#install-plugins tbody.plugins tr').click( function() {
|
$('#install-plugins tbody.plugins tr').click( function() {
|
||||||
$(this).find('.action-links a.onclick').click();
|
$(this).find('.action-links a.onclick').click();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#plugin-information #sidemenu a').click( function() {
|
$('#plugin-information #sidemenu a').click( function() {
|
||||||
var tab = $(this).attr('name');
|
var tab = $(this).attr('name');
|
||||||
//Flip the tab
|
//Flip the tab
|
||||||
$('#plugin-information-header a.current').removeClass('current');
|
$('#plugin-information-header a.current').removeClass('current');
|
||||||
$(this).addClass('current');
|
$(this).addClass('current');
|
||||||
//Flip the content.
|
//Flip the content.
|
||||||
$('#section-holder div').hide(); //Hide 'em all
|
$('#section-holder div').hide(); //Hide 'em all
|
||||||
$('#section-' + tab).show();
|
$('#section-' + tab).show();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -1,59 +1,59 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
|
|
||||||
include(ABSPATH . 'wp-admin/includes/plugin-install.php');
|
include(ABSPATH . 'wp-admin/includes/plugin-install.php');
|
||||||
|
|
||||||
$title = __('Install Plugins');
|
$title = __('Install Plugins');
|
||||||
$parent_file = 'plugins.php';
|
$parent_file = 'plugins.php';
|
||||||
|
|
||||||
if ( ! current_user_can('install_plugins') )
|
if ( ! current_user_can('install_plugins') )
|
||||||
wp_die(__('You do not have sufficient permissions to install plugins on this blog.'));
|
wp_die(__('You do not have sufficient permissions to install plugins on this blog.'));
|
||||||
|
|
||||||
wp_reset_vars( array('tab', 'paged') );
|
wp_reset_vars( array('tab', 'paged') );
|
||||||
wp_enqueue_style( 'plugin-install' );
|
wp_enqueue_style( 'plugin-install' );
|
||||||
wp_enqueue_script( 'plugin-install' );
|
wp_enqueue_script( 'plugin-install' );
|
||||||
add_thickbox();
|
add_thickbox();
|
||||||
|
|
||||||
//These are the tabs which are shown on the page, Note that 'install' and 'plugin-information' are valid hooks, but not shown here due to not requiring the header
|
//These are the tabs which are shown on the page, Note that 'install' and 'plugin-information' are valid hooks, but not shown here due to not requiring the header
|
||||||
$tabs = array(
|
$tabs = array(
|
||||||
'search' => __('Search Plugins'),
|
'search' => __('Search Plugins'),
|
||||||
'upload' => __('Upload a Plugin'),
|
'upload' => __('Upload a Plugin'),
|
||||||
'featured' => __('Featured Plugins'),
|
'featured' => __('Featured Plugins'),
|
||||||
'popular' => __('Popular Plugins'),
|
'popular' => __('Popular Plugins'),
|
||||||
'new' => __('Newest Plugins'),
|
'new' => __('Newest Plugins'),
|
||||||
'updated' => __('Recently Updated Plugins')
|
'updated' => __('Recently Updated Plugins')
|
||||||
);
|
);
|
||||||
|
|
||||||
$tabs = apply_filters('install_plugins_tabs', $tabs );
|
$tabs = apply_filters('install_plugins_tabs', $tabs );
|
||||||
|
|
||||||
if( empty($tab) || ( ! isset($tabs[ $tab ]) && ! in_array($tab, array('install', 'plugin-information')) ) ){
|
if( empty($tab) || ( ! isset($tabs[ $tab ]) && ! in_array($tab, array('install', 'plugin-information')) ) ){
|
||||||
$tab_actions = array_keys($tabs);
|
$tab_actions = array_keys($tabs);
|
||||||
$tab = $tab_actions[0];
|
$tab = $tab_actions[0];
|
||||||
}
|
}
|
||||||
if( empty($paged) )
|
if( empty($paged) )
|
||||||
$paged = 1;
|
$paged = 1;
|
||||||
|
|
||||||
$body_id = $tab;
|
$body_id = $tab;
|
||||||
|
|
||||||
do_action('install_plugins_pre_' . $tab);
|
do_action('install_plugins_pre_' . $tab);
|
||||||
|
|
||||||
include('admin-header.php');
|
include('admin-header.php');
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Install Plugins') ?></h2>
|
<h2><?php _e('Install Plugins') ?></h2>
|
||||||
<ul class="subsubsub">
|
<ul class="subsubsub">
|
||||||
<?php
|
<?php
|
||||||
$display_tabs = array();
|
$display_tabs = array();
|
||||||
foreach ( (array)$tabs as $action => $text ) {
|
foreach ( (array)$tabs as $action => $text ) {
|
||||||
$sep = ( end($tabs) != $text ) ? ' | ' : '';
|
$sep = ( end($tabs) != $text ) ? ' | ' : '';
|
||||||
$class = ( $action == $tab ) ? ' class="current"' : '';
|
$class = ( $action == $tab ) ? ' class="current"' : '';
|
||||||
$href = admin_url('plugin-install.php?tab='. $action);
|
$href = admin_url('plugin-install.php?tab='. $action);
|
||||||
echo "\t\t<li><a href='$href'$class>$text</a>$sep</li>\n";
|
echo "\t\t<li><a href='$href'$class>$text</a>$sep</li>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php do_action('install_plugins_' . $tab, $paged); ?>
|
<?php do_action('install_plugins_' . $tab, $paged); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
include('admin-footer.php');
|
include('admin-footer.php');
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue