Visual fixes

This commit is contained in:
Alexander Yakovlev 2017-06-12 23:10:00 +07:00
parent 90619eab09
commit 7efaeae322
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
$(function(){
jQuery(function($){
$(".circle-1").height($(".circle-1").width())
$(".small-circle").height($(".small-circle").width())
$(".circle-2").height($(".circle-2").width())

View File

@ -85,9 +85,9 @@ left: 53%;
z-index:0;
-webkit-animation:humanreverse 100s linear infinite;
animation:humanreverse 100s linear infinite
box-shadow: none !important;
}
.all{
height:650px;
width: 100%;
@ -123,7 +123,7 @@ left: 53%;
border:5px solid white;
}
.circle-1{
width:43%;
width:80%;
margin:3% auto;
position:relative;
}

View File

@ -46,17 +46,17 @@ function imbb_register_metabox() {
function imbb_usergalaxy() {
wp_enqueue_style( 'imbb_style', plugin_dir_url( __FILE__ ) . '/style.css' );
$query = new WP_Query(array(
$query = get_posts(array(
'post_type' => 'team',
'post_status' => 'publish',
'posts_per_page' => -1,
'posts_per_page' => 10,
));
?>
<div class="all">
<div class="container">
<div class="circles circle-1">
<?php
for ($i = 1; $i <= $query->found_posts; $i++) {
for ($i = 1; $i <= count($query); $i++) {
?>
<div class="small-circle small-<?php echo $i ?>"></div>
<?php
@ -65,14 +65,14 @@ function imbb_usergalaxy() {
<div class="avatars">
<?php
$i = 1;
while ($query->have_posts()) {
foreach ($query as $post) {
?>
<a href="#" id="human-<?php echo $i ?>" target="_blank" class="humans">
<img src="<?php echo get_post_meta( get_the_ID(), 'imbb_image', TRUE ) ?>" alt="<?php the_title() ?>">
<img src="<?php echo get_post_meta( $post->ID, 'imbb_image', TRUE ) ?>" alt="<?php echo $post->post_title ?>">
<div class="texts box">
<?php echo $query->the_post(); ?>
<?php echo $post->post_content; ?>
<span class="name">
<?php echo get_post_meta( get_the_ID(), 'imbb_designation', TRUE ); ?>
<?php echo get_post_meta( $post->ID, 'imbb_designation', TRUE ); ?>
</span>
</div>
</a>