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