Какво липсва, за да стане в кода?

Post Reply
qnkov90
Нов
Нов
Posts: 35
Joined: Sun Mar 26, 2017 6:05 pm

Какво липсва, за да стане в кода?

Post by qnkov90 » Mon Jan 14, 2019 8:13 pm

Има още едно нещо, което се опитвам да оправя. Като цяло е един скин за плъгин.

http://prntscr.com/m7681s

Както се вжида, броя на коментарите не е срещу иконата му, която също се измества, когато коментарите надвишат бройка. Какво трябва да се допълни в стила му, за да стане като хората. Иконата да не мърда и коментарите да са срещу нея, както е Like бутона горе.

Това е стиле файла.

Code: Select all

.pracia a,
.pracia a:active,
.pracia a:focus,
.pracia .tg-item-title,
.pracia .tg-item-media-holder,
.pracia .tg-item-content-holder {
	text-decoration: none;
    border: none;
	-webkit-box-shadow: none;
    box-shadow: none;
	-webkit-transition: all 0.25s ease-in-out;
	-moz-transition: all 0.25s ease-in-out;
	-ms-transition: all 0.25s ease-in-out;
	-o-transition: all 0.25s ease-in-out;
	transition: all 0.25s ease-in-out;
}
.pracia.tg-item,
.pracia .tg-center-holder {
	overflow: hidden;
}
.pracia .tg-center-holder {
	text-align: center;
}
.pracia .tg-item-media-holder {
	bottom: 60px;
	height: auto;
}
.tg-layout-justified .pracia .tg-item-media-holder {
	bottom: 0;
}
.pracia .tg-item-link {
	position: absolute;
    display: block;
    top: -1000%;
    left: 0;
    width: 100%;
    height: 2000%;
}
.pracia .tg-item-content-holder,
.pracia .tg-item-overlay {
	position: absolute;
	display: block;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.tg-layout-justified .pracia .tg-center-holder {
	padding-bottom: 60px;
}
.tg-layout-justified .pracia .tg-item-content-holder,
.pracia .tg-item-overlay {
	opacity: 0;
	visibility: hidden;
}
.tg-layout-justified .pracia:not(.tg-is-playing):not(.tg-force-play):hover .tg-item-content-holder,
.pracia:not(.tg-is-playing):not(.tg-force-play):hover .tg-item-overlay {
	opacity: 1;
	visibility: visible;
}
.pracia .tg-item-content-holder {
	height: 60px;
	padding: 10px 14px;
	background: #ffffff;
}
.pracia .tg-item-title,
.pracia .tg-item-title a {
	position: relative;
    font-size: 16px !important;
	line-height: 20px !important;
	font-weight: 600;
	margin: 0 !important;
	padding: 0 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pracia .tg-item-title {
	padding: 0 2px !important;
	margin: 0 40px 2px 0 !important;
}
.pracia .tg-cats-holder {
	position: relative;
	display: block;
	margin: 0 40px 0 0;
	padding: 0 2px;
	font-size: 13px;
	line-height: 18px;
	font-style: italic;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pracia .tg-cats-holder * {
	position: relative;
}
.pracia .tg-link-button,
.pracia .tg-media-button {
    position: relative;
    display: inline-block;
	vertical-align: top;
    margin: 10px !important;
	padding: 0 !important;
    top: 0;
    right: 0;
    width: 35px;
    height:35px;
    cursor: pointer;
    text-align: center;
	opacity: 0;
}
.pracia .tg-link-button i,
.pracia .tg-media-button i {
	position: relative;
	display: block;
	width: 35px;
	height: 35px;
    font-size: 22px;
	line-height: 35px;
	cursor: pointer;
}
.pracia .tg-media-button .tg-icon-add {
    font-size: 28px;
}
.pracia .tg-media-button {	
	-webkit-transform: translate3d(-40px,0,0);
	-moz-transform: translate3d(-40px,0,0);
	-ms-transform: translate3d(-40px,0,0);
	-o-transform: translate3d(-40px,0,0);
	transform: translate3d(-40px,0,0);
}
.pracia .tg-link-button {
	-webkit-transform: translate3d(40px,0,0);
	-moz-transform: translate3d(40px,0,0);
	-ms-transform: translate3d(40px,0,0);
	-o-transform: translate3d(40px,0,0);
	transform: translate3d(40px,0,0);
}
.pracia:hover .tg-link-button,
.pracia:hover .tg-media-button {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	-moz-transform: translate3d(0,0,0);
	-ms-transform: translate3d(0,0,0);
	-o-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
.pracia .tg-item-title:hover,
.pracia .tg-link-button:hover,
.pracia .tg-cats-holder a:hover,
.pracia .tg-media-button:hover {
	opacity: 0.75;
}
.pracia .to-post-like {
	position: absolute;
    display: block;
    right: 14px;
    top: 12px;
	margin: 0;
    font-size: 14px;
    line-height: 14px;   
}
.pracia .tg-item-comment {
position: relative;
    display: inline-block;
	float: right;
	font-size: 13px;
}
.pracia .tg-item-comment i {
	position: relative;
    padding: 0 4px 0 6px;
    top: -10px;
    font-size: 14px;
}
А това е пхп файла, ако ви трябва.

Code: Select all

<?php
/**
 * @package   The_Grid
 * @author    Themeone <themeone.master@gmail.com>
 * @copyright 2015 Themeone
 *
 * Skin&#58; Pracia
 *
 */
 
// Exit if accessed directly
if &#40;!defined&#40;'ABSPATH'&#41;&#41; &#123; 
	exit;
&#125;

$tg_el = The_Grid_Elements&#40;&#41;;

$terms_args = array&#40;
	'color' => 'color',
	'separator' => ', '
&#41;;
$com_args = array&#40;
	'icon' => '<i class="tg-icon-chat"></i>'
&#41;;

$media_args = array&#40;
	'icons' => array&#40;
		'image' => '<i class="tg-icon-add"></i>',
			&#41;
&#41;;

$permalink    = $tg_el->get_the_permalink&#40;&#41;;
$target       = $tg_el->get_the_permalink_target&#40;&#41;;
$media_button = $tg_el->get_media_button&#40;&#41;;
$link_button  = $tg_el->get_link_button&#40;&#41;;

$output = $tg_el->get_media_wrapper_start&#40;&#41;;
	$output .= $tg_el->get_media&#40;&#41;;
	$output .= $tg_el->get_overlay&#40;&#41;;
	$output .= $tg_el->get_center_wrapper_start&#40;&#41;;	
		$output .= &#40;$link_button && $media_button&#41; ? '<a class="tg-item-link" href="'.$permalink .'" target="'.$target.'"></a>' &#58; null;
		$output .= $media_button;
		$output .= $link_button;
	$output .= $tg_el->get_center_wrapper_end&#40;&#41;;
$output .= $tg_el->get_media_wrapper_end&#40;&#41;;
$output .= $tg_el->get_content_wrapper_start&#40;&#41;;
	$output .= $tg_el->get_the_title&#40;&#41;;	
	$output .= $tg_el->get_the_terms&#40;$terms_args&#41;;
	$output .= $tg_el->get_the_likes_number&#40;&#41;;
	$output .= $tg_el->get_the_comments_number&#40;$com_args&#41;;
$output .= $tg_el->get_content_wrapper_end&#40;&#41;;	
		
return $output;


User avatar
Fakeheal
Гуру
Гуру
Posts: 2664
Joined: Sat Apr 17, 2010 6:37 am
Answers: 350

Post by Fakeheal » Wed Jan 16, 2019 3:03 pm

Мисъл.

qnkov90
Нов
Нов
Posts: 35
Joined: Sun Mar 26, 2017 6:05 pm

Post by qnkov90 » Wed Jan 16, 2019 4:53 pm

Не се сетих за това... Явно тук ще си останете тия 10 човека, а какъв форум беше навремето. :cry:

Post Reply