двиг Wowonder на главной выводятся все посты с груп страниц и блогов , необходимо скрыть посты с груп на главной
<div class="<?php echo Wo_RightToLeft('pull-right');?>">
<?php if ($wo['story']['admin'] === true || $wo['story']['group_admin'] === true) { ?>
<span class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="caret pointer"></span>
</a>
<ul class="dropdown-menu post-privacy-menu post-options" role="menu">
<?php if ($wo['story']['admin'] === true && empty($wo['story']['product_id'])) { ?>
<li>
<span class="pointer" onclick="Wo_OpenPostEditBox(<?php echo $wo['story']['id']; ?>);">
<i class="fa fa-pencil progress-icon fa-fw" data-icon="pencil"></i>
<?php echo $wo['lang']['edit_post'];?>
</span>
</li>
<li>
<hr>
</li>
<?php } else if (!empty($wo['story']['product_id'])) {
if ($wo['story']['product']['status'] == 0) { ?>
<li>
<span class="pointer mark-as-sold-post" onclick="Wo_MarkAsSold(<?php echo $wo['story']['id']; ?>, <?php echo $wo['story']['product_id']; ?>);">
<i class="fa fa-cart-arrow-down progress-icon fa-fw" data-icon="cart-arrow-down"></i>
<?php echo $wo['lang']['mark_as_sold']?>
</span>
</li>
<li>
<hr>
</li>
<li>
<a class="pointer" href="<?php echo Wo_SeoLink('index.php?link1=edit-product&id=' . $wo['story']['product_id']);?>">
<i class="fa fa-pencil progress-icon fa-fw" data-icon="pencil"></i> <?php echo $wo['lang']['edit_product']?>
</a>
</li>
<li>
<hr>
</li>
<?php } } ?>
<li>
<span class="pointer" onclick="Wo_OpenPostDeleteBox(<?php echo $wo['story']['id']; ?>);">
<i class="fa fa-trash-o progress-icon fa-fw" data-icon="trash-o"></i>
<?php echo $wo['lang']['delete_post'];?>
</span>
</li>
<?php if (empty($wo['story']['recipient']) && $wo['story']['admin'] === true) { ?>
<?php if ($wo['story']['is_group_post'] == false) { ?>
<li>
<hr>
</li>
<li>
<?php
$pin_post_id = $wo['story']['publisher']['id'];
$pin_post_text = 'profile';
if (!empty($wo['story']['page_id'])) {
$pin_post_id = $wo['story']['page_id'];
$pin_post_text = 'page';
} else if (!empty($wo['story']['group_id'])) {
$pin_post_id = $wo['story']['group_id'];
$pin_post_text = 'group';
}
?>
<span class="pin-post pointer" onclick="Wo_PinPost(<?php echo $wo['story']['id']; ?>, <?php echo $pin_post_id;?>, '<?php echo $pin_post_text; ?>');">
<?php if($wo['story']['is_post_pinned'] === true) { ?>
<i class="fa fa-thumb-tack progress-icon pinned-text fa-fw" data-icon="thumb-tack"></i> <?php echo $wo['lang']['unpin_post'];?>
<?php } else { ?>
<i class="fa fa-thumb-tack progress-icon fa-fw" data-icon="thumb-tack"></i> <?php echo $wo['lang']['pin_post'];?>
<?php } ?>
</span>
</li>
<?php } } ?>
<?php if (!empty($wo['story']['album_name']) && ($wo['story']['group_admin'] === false || $wo['story']['admin'] === true)) {?>
<li>
<hr>
</li>
<li>
<a href="<?php echo Wo_SeoLink('index.php?link1=create-album&album=' . $wo['story']['id']);?>" >
<i class="fa fa-camera progress-icon fa-fw" data-icon="camera"></i> <?php echo $wo['lang']['add_photos'];?>
</a>
</li>
<?php } ?>
<li>
<hr>
</li>
<?php $hr = 0; if ($wo['config']['pro'] == 1 && ($wo['story']['group_admin'] === false || $wo['story']['admin'] === true)) { ?>
<li>
<?php if ($wo['user']['is_pro'] == 0) { ?>
<a href="<?php echo Wo_SeoLink('index.php?link1=go-pro');?>" data-ajax="?link1=go-pro">
<i class="fa fa-bolt progress-icon fa-fw" data-icon="bolt"></i> <?php echo $wo['lang']['boost_post']; ?>
</a>
<?php } else if ($wo['user']['is_pro'] == 1 && $wo['user']['pro_type'] == 1) { $hr = 1;?>
<?php } else if ($wo['user']['is_pro'] == 1 && $wo['user']['pro_type'] > 1) { ?>
<?php if ($wo['story']['is_post_boosted'] == 0) { ?>
<span class="boost-post pointer" onclick="Wo_BoostPost(<?php echo $wo['story']['id']; ?>)">
<i class="fa fa-bolt progress-icon fa-fw" data-icon="bolt"></i> <?php echo $wo['lang']['boost_post']; ?>
</span>
<?php } else { ?>
<span class="boost-post pointer" onclick="Wo_BoostPost(<?php echo $wo['story']['id']; ?>)">
<i class="fa fa-bolt boosted-text progress-icon fa-fw" data-icon="bolt"></i> <?php echo $wo['lang']['unboost_post']; ?>
</span>
<?php } ?>
<?php } ?>
</li>
<?php if ($hr == 0) { ?>
<li>
<hr>
</li>
<?php } } ?>
<li>
<a href="<?php echo $wo['story']['url'];?>" target="_blank">
<i class="fa fa-link progress-icon fa-fw" data-icon="link"></i> <?php echo $wo['lang']['open_post_in_new_tab'];?>
</a>
</li>
</ul>
</span>
<?php } elseif ($wo['loggedin'] == true) { ?>
<span class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="pointer">
<span class="caret"></span>
</span>
</a>
<ul class="dropdown-menu post-privacy-menu post-options post-recipient" role="menu" >
<li>
<span class="save-post pointer" class="save-post" onclick="Wo_SavePost(<?php echo $wo['story']['id']; ?>);">
<?php if($wo['story']['is_post_saved'] === true) { ?>
<i class="fa fa-check progress-icon fa-fw" data-icon="check"></i> <?php echo $wo['lang']['unsave_post'];?>
<?php } else { ?>
<i class="fa fa-floppy-o progress-icon fa-fw" data-icon="floppy-o"></i> <?php echo $wo['lang']['save_post'];?>
<?php } ?>
</span>
</li>
<li>
<hr>
</li>
<li>
<span class="report-post pointer" onclick="Wo_ReportPost(<?php echo $wo['story']['id']; ?>);">
<?php if($wo['story']['is_post_reported'] === true) { ?>
<i class="fa fa-check progress-icon fa-fw" data-icon="flag"></i> <?php echo $wo['lang']['unreport_post'];?>
<?php } else { ?>
<i class="fa fa-flag progress-icon fa-fw" data-icon="flag"></i> <?php echo $wo['lang']['report_post'];?>
<?php } ?>
</span>
</li>
<li>
<hr>
</li>
<li>
<a href="<?php echo $wo['story']['url'];?>" target="_blank" >
<i class="fa fa-link progress-icon fa-fw" data-icon="link"></i> <?php echo $wo['lang']['open_post_in_new_tab'];?>
</a>
</li>
</ul>
</span>
<?php } ?>
</div>
<div class="meta">
<div class="title h5">
<span class="user-popover" data-type="<?php echo $wo['story']['publisher']['type']; ?>" data-id="<?php echo $wo['story']['publisher']['id']; ?>">
<a href="<?php echo $wo['story']['publisher']['url']; ?>" data-ajax="?link1=timeline&u=<?php echo $wo['story']['publisher']['username']; ?>"><b><?php echo $wo['story']['publisher']['name']; ?></b></a>
</span><?php if($wo['story']['publisher']['verified'] == 1) { ?><span class="verified-color"><i class="fa fa-check-circle fa-fw" title="<?php echo $wo['lang']['verified_user'];?>" data-toggle="tooltip"></i></span>
<?php } ?>
<?php if (isset($wo['story']['publisher']['is_pro'])) {
if(Wo_IsUserPro($wo['story']['publisher']['is_pro']) === true) { ?>
<?php
$user_pro_type = Wo_GetUserProType($wo['story']['publisher']['pro_type']);
?>
<span style="color:<?php echo $user_pro_type['color_name'];?>"><i class="fa fa-<?php echo $user_pro_type['icon'];?> fa-fw" title="<?php echo $user_pro_type['type_name'];?>" data-toggle="tooltip"></i></span>
<?php } } ?>
<?php if ($wo['story']['recipient_exists'] == true) { ?>
<i class="fa fa-arrow-right"></i>
<span class="user-popover" data-type="<?php echo $wo['story']['recipient']['type']; ?>" data-id='<?php echo $wo['story']['recipient']['id']; ?>'>
<a href="<?php echo $wo['story']['recipient']['url']; ?>" data-ajax="?link1=timeline&u=<?php echo $wo['story']['recipient']['username']; ?>">
<b>
<?php echo $wo['story']['recipient']['name']; ?>
</b>
</a>
<?php if($wo['story']['recipient']['verified'] == 1) { ?> <span class="verified-color"><i class="fa fa-check-circle" title="<?php echo $wo['lang']['verified_user'];?>"></i></span>
<?php } ?>
</span>
<?php } ?>
<?php if ($wo['story']['group_recipient_exists'] == true && $wo['page'] != 'group') { ?>
<i class="fa fa-arrow-right"></i>
<span class="user-popover" data-type="<?php echo $wo['story']['group_recipient']['type']; ?>" data-id='<?php echo $wo['story']['group_recipient']['id']; ?>'>
<a href="<?php echo $wo['story']['group_recipient']['url']; ?>" data-ajax="?link1=timeline&u=<?php echo $wo['story']['group_recipient']['username']; ?>">
<b><?php echo $wo['story']['group_recipient']['name']; ?></b>
</a>
</span>
<?php } ?>
<?php if (!empty($wo['story']['album_name'])) { ?>
<small class="small-text"><?php echo $wo['lang']['added_new_photos_to'];?> <b><a href="<?php echo $wo['story']['url']; ?>" data-ajax="?link1=post&id=<?php echo $wo['story']['id'];?>"><?php echo $wo['story']['album_name']; ?></a></b></small>
<?php } ?>
<?php if (!empty($wo['story']['product_id'])) { ?>
<small class="small-text"><?php echo $wo['lang']['added_new_product_for_sell']; ?></small>
<?php } ?>
<?php
if($wo['story']['postType'] == 'profile_picture') {
$changed_profile_pic_lang = $wo['lang']['changed_profile_picture_male'];
if ($wo['story']['publisher']['gender'] == 'female') {
$changed_profile_pic_lang = $wo['lang']['changed_profile_picture_female'];
} else {
$changed_profile_pic_lang = $wo['lang']['changed_profile_picture_male'];
}
echo $changed_profile_pic_lang;
}
if($wo['story']['postType'] == 'profile_cover_picture') {
$changed_profile_cover_pic_lang = $wo['lang']['changed_profile_cover_picture_male'];
if ($wo['story']['publisher']['gender'] == 'female') {
$changed_profile_cover_pic_lang = $wo['lang']['changed_profile_cover_picture_female'];
} else {
$changed_profile_cover_pic_lang = $wo['lang']['changed_profile_cover_picture_male'];
}
echo $changed_profile_cover_pic_lang;
}
?>
<?php if($wo['story']['via_type'] == 'share') { ?>
<small style="color:#a33e40;"><?php echo $wo['story']['via']['name'];?> <?php echo $wo['lang']['shared_this_post'];?></small>
<?php } ?>
<?php
$extra_exists = 0;
if (!empty($wo['story']['postFeeling'])) {
if (empty($changed_profile_pic_lang)
&& $wo['story']['via_type'] != 'share'
&& $wo['story']['group_recipient_exists'] != true
&& empty($wo['story']['album_name'])) {
?>
<span class="feeling-text"> <?php echo $wo['lang']['is_feeling'];?> <i class="twa-lg twa twa-<?php echo $wo['story']['postFeelingIcon'];?>"></i> <?php echo $wo['lang'][$wo['story']['postFeeling']];?></span>
<?php
} else {
$extra_exists = 1;
}
}
if (!empty($wo['story']['postTraveling'])) {
if (empty($changed_profile_pic_lang)
&& $wo['story']['via_type'] != 'share'
&& $wo['story']['group_recipient_exists'] != true
&& empty($wo['story']['album_name'])) {
?>
<span class="feeling-text"><i class="fa fa-plane"></i> <?php echo $wo['lang']['is_traveling'];?> <?php echo $wo['story']['postTraveling'];?></span>
<?php
} else {
$extra_exists = 1;
}
}
if (!empty($wo['story']['postListening'])) {
if (empty($changed_profile_pic_lang)
&& $wo['story']['via_type'] != 'share'
&& $wo['story']['group_recipient_exists'] != true
&& empty($wo['story']['album_name'])) {
?>
<span class="feeling-text"><i class="fa fa-headphones"></i> <?php echo $wo['lang']['is_listening'];?> <?php echo $wo['story']['postListening'];?></span>
<?php
} else {
$extra_exists = 1;
}
}
if (!empty($wo['story']['postPlaying'])) {
if (empty($changed_profile_pic_lang)
&& $wo['story']['via_type'] != 'share'
&& $wo['story']['group_recipient_exists'] != true
&& empty($wo['story']['album_name'])) {
?>
<span class="feeling-text"><i class="fa fa-gamepad"></i> <?php echo $wo['lang']['is_playing'];?> <?php echo $wo['story']['postPlaying'];?></span>
<?php
} else {
$extra_exists = 1;
}
}
if (!empty($wo['story']['postWatching'])) {
if (empty($changed_profile_pic_lang)
&& $wo['story']['via_type'] != 'share'
&& $wo['story']['group_recipient_exists'] != true
&& empty($wo['story']['album_name'])) {
?>
<span class="feeling-text"><i class="fa fa-eye"></i> <?php echo $wo['lang']['is_watching'];?> <?php echo $wo['story']['postWatching'];?></span>
<?php
} else {
$extra_exists = 1;
}
}
?>
</div>
<h6>
<span class="time" style="color:#9197a3">
<i class="fa fa-clock-o"></i>
<span class="ajax-time" title="<?php echo date('c',$wo['story']['time']); ?>">
<?php echo Wo_Time_Elapsed_String($wo['story']['time']); ?>
</span>
</span>
<?php if ($wo['story']['admin'] === true && $wo['story']['group_recipient_exists'] == false && empty($wo['story']['product_id'])) { ?>
<?php if (empty($wo['story']['page_id'])) { ?>
<span class="dropdown" style="color:#9197a3">
<span class="dropdown-toggle pointer" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="pointer post-privacy" style="color:#9197a3">
<?php if($wo['story']['postPrivacy'] == 0) { ?>
<i class="fa fa-globe progress-icon fa-fw" data-toggle="tooltip" title="<?php echo $wo['lang']['everyone'];?>" data-icon="globe"></i>
<?php } ?>
<?php if($wo['story']['postPrivacy'] == 1) { ?>
<i class="fa fa-users progress-icon fa-fw" data-toggle="tooltip" title="<?php echo ($wo['config']['connectivitySystem'] == 1) ? $wo['lang']['my_friends'] : $wo['lang']['people_i_follow'];?>" data-icon="user"></i>
<?php } ?>
<?php if($wo['story']['postPrivacy'] == 2) { ?>
<i class="fa fa-user progress-icon fa-fw" data-toggle="tooltip" title="<?php echo ($wo['config']['connectivitySystem'] == 1) ? $wo['lang']['my_friends'] : $wo['lang']['people_follow_me'];?>" data-icon="users"></i>
<?php } ?>
<?php if($wo['story']['postPrivacy'] == 3) { ?>
<i class="fa fa-lock progress-icon fa-fw" data-toggle="tooltip" title="<?php echo $wo['lang']['only_me'];?>" data-icon="lock"></i>
<?php } ?>
</span>
<span class="caret" style="color:#9197a3"></span>
</span>
<ul class="dropdown-menu post-privacy-menu" role="menu">
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,3,event);">
<i class="fa fa-lock progress-icon fa-fw" data-toggle="tooltip" data-icon="lock"></i>
<?php echo $wo['lang']['only_me'];?>
</span>
</li>
<li>
<hr>
</li>
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,0,event);">
<i class="fa fa-globe progress-icon fa-fw" data-toggle="tooltip" data-icon="pencil"></i> <?php echo $wo['lang']['everyone'];?>
</span>
</li>
<li>
<hr>
</li>
<?php if ($wo['config']['connectivitySystem'] == 1) { ?>
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,1,event);">
<i class="fa fa-users progress-icon fa-fw" data-toggle="tooltip" data-icon="pencil"></i> <?php echo $wo['lang']['my_friends'];?>
</span>
</li>
<?php } else { ?>
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,1,event);">
<i class="fa fa-user progress-icon fa-fw" data-toggle="tooltip" data-icon="pencil"></i>
<?php echo $wo['lang']['people_i_follow'];?>
</span>
</li>
<li>
<hr>
</li>
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,2,event);">
<i class="fa fa-users progress-icon fa-fw" data-toggle="tooltip" data-icon="pencil"></i> <?php echo $wo['lang']['people_follow_me'];?>
</span>
</li>
<?php } ?>
</ul>
</span>
<?php } else { ?>
<span class="dropdown">
<span class="dropdown-toggle pointer" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="pointer post-privacy" style="color:#9197a3">
<?php if($wo['story']['postPrivacy'] == 0) { ?>
<i class="fa fa-globe progress-icon " data-toggle="tooltip" title="<?php echo $wo['lang']['everyone'];?>" data-icon="globe"></i>
<?php } ?>
<?php if($wo['story']['postPrivacy'] == 2) { ?>
<i class="fa fa-thumbs-up progress-icon" data-toggle="tooltip" title="Liked My Page" data-icon="thumbs-up"></i>
<?php } ?>
</span>
<span class="caret"></span>
</span>
<ul class="dropdown-menu post-privacy-menu" role="menu">
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,0,event);">
<i class="fa fa-globe progress-icon" data-toggle="tooltip" data-icon="pencil"></i> <?php echo $wo['lang']['everyone'];?>
</span>
</li>
<li>
<hr>
</li>
<li>
<span class="pointer" onclick="Wo_UpdatePostPrivacy(<?php echo $wo['story']['id']; ?>,2,event);">
<i class="fa fa-thumbs-up progress-icon" data-toggle="tooltip" data-icon="thumbs-up"></i> Liked My Page
</span>
</li>
</ul>
</span>
<?php } ?>
<?php } ?>
Айфон мало держит заряд, разбираемся с проблемой вместе с AppLab
Перевод документов на английский язык: Важность и ключевые аспекты
Не пойму, создал же переменные перед запуском каждого аджакса, и теперь когда кликаю, хочу прервать их, однако, они все равно работают, а в консоли...
Привет! Я питонист, но из приличия решил заботать с++Задание: есть класс Foo с private конструктором