Commit 1b153223 authored by lucha's avatar lucha

[auto] Plugin: wordpress-popular-posts 3.0.3

parent 1c8808f7
<?php // Silence is golden ?>
\ No newline at end of file
(function ($) {
"use strict";
$(function () {
// STATISTICS TABS
$("#wpp-stats-tabs a").click(function(e){
var activeTab = $(this).attr("rel");
$(this).removeClass("button-secondary").addClass("button-primary").siblings().removeClass("button-primary").addClass("button-secondary");
$(".wpp-stats:visible").hide("fast", function(){
$("#"+activeTab).slideDown("fast");
});
e.preventDefault();
});
$(".wpp-stats").each(function(){
if ($("li", this).length == 1) {
$("li", this).addClass("wpp-stats-last-item");
} else {
$("li:last", this).addClass("wpp-stats-last-item");
}
});
// TOOLS
// thumb source selection
$("#thumb_source").change(function() {
if ($(this).val() == "custom_field") {
$("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").show();
} else {
$("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").hide();
}
});
// file upload
$('#upload_thumb_button').click(function(e) {
tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
e.preventDefault();
});
window.send_to_editor = function(html) {
var image_url = $('img',html).attr('src');
$('#upload_thumb_src').val(image_url);
var img = new Image();
img.src = image_url;
$("#thumb-review").html( img );
$("#thumb-review").parent().show();
tb_remove();
};
// cache interval
$("#cache").change(function() {
if ($(this).val() == 1) {
$("#cache_refresh_interval").show();
} else {
$("#cache_refresh_interval, #cache_too_long").hide();
}
});
// interval
$("#cache_interval_time").change(function() {
var value = parseInt( $("#cache_interval_value").val() );
var time = $(this).val();
console.log(time + " " + value);
if ( time == "hour" && value > 72 ) {
$("#cache_too_long").show();
} else if ( time == "day" && value > 3 ) {
$("#cache_too_long").show();
} else if ( time == "week" && value > 1 ) {
$("#cache_too_long").show();
} else if ( time == "month" && value >= 1 ) {
$("#cache_too_long").show();
} else if ( time == "year" && value >= 1 ) {
$("#cache_too_long").show();
} else {
$("#cache_too_long").hide();
}
});
$("#cache_interval_value").change(function() {
var value = parseInt( $(this).val() );
var time = $("#cache_interval_time").val();
if ( time == "hour" && value > 72 ) {
$("#cache_too_long").show();
} else if ( time == "day" && value > 3 ) {
$("#cache_too_long").show();
} else if ( time == "week" && value > 1 ) {
$("#cache_too_long").show();
} else if ( time == "month" && value >= 1 ) {
$("#cache_too_long").show();
} else if ( time == "year" && value >= 1 ) {
$("#cache_too_long").show();
} else {
$("#cache_too_long").hide();
}
});
});
}(jQuery));
\ No newline at end of file
<?php // Silence is golden ?>
\ No newline at end of file
jQuery(document).ready(function($) {
$('#upload_thumb_button').click(function(e) {
e.preventDefault();
tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
});
window.send_to_editor = function(html) {
var image_url = $('img',html).attr('src');
$('#upload_thumb_src').val(image_url);
var img = new Image();
img.src = image_url;
$("#thumb-review").html( img );
$("#thumb-review").parent().show();
tb_remove();
};
});
\ No newline at end of file
<?php // Silence is golden ?>
\ No newline at end of file
This diff is collapsed.
.wpp_boxes {
display:none;
overflow:hidden;
width:100%;
}
/* Stats */
#wpp-stats-tabs {
padding:2px 0;
}
#wpp-stats-canvas {
overflow:hidden;
padding:2px 0;
width:100%;
}
.wpp-stats {
display:none;
width:96%px;
padding:1% 0;
font-size:8px;
background:#fff;
border:#999 3px solid;
}
.wpp-stats-active {
display:block;
}
.wpp-stats ol {
margin:0;
padding:0;
}
.wpp-stats ol li {
overflow:hidden;
margin:0 8px 10px 8px!important;
padding:0 0 2px 0!important;
font-size:12px;
line-height:12px;
color:#999;
border-bottom:#eee 1px solid;
}
.wpp-post-title {
display:inline;
float:left;
font-weight:bold;
}
.post-stats {
display:inline;
float:right;
font-size:0.9em!important;
text-align:right;
color:#999;
}
.wpp-stats-unique-item, .wpp-stats-last-item {
margin:0!important;
padding:0!important;
border:none!important;
}
.wpp-stats p {
margin:0;
padding:0 8px;
font-size:12px;
}
/* FAQ */
#wpp_faq {
}
#wpp_faq h4 {
margin:18px 0 0 0;
}
#wpp_faq h4 a.active { color:#d74e21; }
.wpp-ans {
/*display:none;*/
margin:5px 0 0 0;
width:96%;
padding:1% 2%;
background:#e5e5e5;
}
.wpp-ans p {
margin:0 0 0 0;
padding:0;
}
\ No newline at end of file
<?php // Silence is golden ?>
\ No newline at end of file
/*
Wordpress Popular Posts plugin stylesheet
Developed by Hector Cabrera
Use the following classes to style your popular posts list as you like.
*/
.wpp-list { /* UL element */
}
.wpp-list li { /* LI - post container */
/*display:inline-block;*/ /* <-- uncommenting this line is recommended when using post thumbnails */
float:none;
clear:left;
}
/* title styles */
.wpp-post-title {
}
/* thumbnail styles */
.wpp-thumbnail {
display:inline;
float:left;
margin:0 5px 0 0;
border:none;
}
/* excerpt styles */
.wpp-excerpt {
}
/* Stats tag styles */
.post-stats {
display:block;
font-size:9px;
font-weight:bold;
}
.wpp-comments {
}
.wpp-views {
}
.wpp-author {
}
.wpp-date {
}
/* WP-PostRatings styles */
.wpp-rating {
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?php // Silence is golden ?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment