Visual fixes
This commit is contained in:
parent
90619eab09
commit
7efaeae322
|
@ -1,4 +1,4 @@
|
||||||
$(function(){
|
jQuery(function($){
|
||||||
$(".circle-1").height($(".circle-1").width())
|
$(".circle-1").height($(".circle-1").width())
|
||||||
$(".small-circle").height($(".small-circle").width())
|
$(".small-circle").height($(".small-circle").width())
|
||||||
$(".circle-2").height($(".circle-2").width())
|
$(".circle-2").height($(".circle-2").width())
|
||||||
|
|
|
@ -85,9 +85,9 @@ left: 53%;
|
||||||
z-index:0;
|
z-index:0;
|
||||||
-webkit-animation:humanreverse 100s linear infinite;
|
-webkit-animation:humanreverse 100s linear infinite;
|
||||||
animation:humanreverse 100s linear infinite
|
animation:humanreverse 100s linear infinite
|
||||||
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.all{
|
.all{
|
||||||
height:650px;
|
height:650px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -123,7 +123,7 @@ left: 53%;
|
||||||
border:5px solid white;
|
border:5px solid white;
|
||||||
}
|
}
|
||||||
.circle-1{
|
.circle-1{
|
||||||
width:43%;
|
width:80%;
|
||||||
margin:3% auto;
|
margin:3% auto;
|
||||||
position:relative;
|
position:relative;
|
||||||
}
|
}
|
||||||
|
|
14
userlist.php
14
userlist.php
|
@ -46,17 +46,17 @@ function imbb_register_metabox() {
|
||||||
|
|
||||||
function imbb_usergalaxy() {
|
function imbb_usergalaxy() {
|
||||||
wp_enqueue_style( 'imbb_style', plugin_dir_url( __FILE__ ) . '/style.css' );
|
wp_enqueue_style( 'imbb_style', plugin_dir_url( __FILE__ ) . '/style.css' );
|
||||||
$query = new WP_Query(array(
|
$query = get_posts(array(
|
||||||
'post_type' => 'team',
|
'post_type' => 'team',
|
||||||
'post_status' => 'publish',
|
'post_status' => 'publish',
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => 10,
|
||||||
));
|
));
|
||||||
?>
|
?>
|
||||||
<div class="all">
|
<div class="all">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="circles circle-1">
|
<div class="circles circle-1">
|
||||||
<?php
|
<?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>
|
<div class="small-circle small-<?php echo $i ?>"></div>
|
||||||
<?php
|
<?php
|
||||||
|
@ -65,14 +65,14 @@ function imbb_usergalaxy() {
|
||||||
<div class="avatars">
|
<div class="avatars">
|
||||||
<?php
|
<?php
|
||||||
$i = 1;
|
$i = 1;
|
||||||
while ($query->have_posts()) {
|
foreach ($query as $post) {
|
||||||
?>
|
?>
|
||||||
<a href="#" id="human-<?php echo $i ?>" target="_blank" class="humans">
|
<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">
|
<div class="texts box">
|
||||||
<?php echo $query->the_post(); ?>
|
<?php echo $post->post_content; ?>
|
||||||
<span class="name">
|
<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>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in a new issue