<?php
$str='<div class="class-name">Как-то так</div>';
if(!stristr($str, 'class-name')){
add_action( 'woocommerce_before_shop_loop_item_title', "my_acf_load_value", 10 );
function my_acf_load_value( $value) {
if ( get_field('tab_number') )
echo '<h2>'.get_field('tab_number').'</h2>';
}
}
?>
<video autoplay="autoplay" loop="loop" preload="auto" poster>
<source src="video/forest-webm.webm" type="video/webm" media="all and (min-width:960px)">
<source src="video/forest-mp4.mp4" type="video/mp4" media="all and (min-width:960px)">
</video>
public function getGroupUser($id_user,$token){
$method='https://api.vk.com/method/groups.get?';
$data=[
'count'=>200,
'user_id'=>$id_user,
'extended'=>1,
'filter'=>'admin',
'access_token'=>$token,
];
return json_decode(file_get_contents($method.urldecode(http_build_query($data))),true);
}
public $params;
$this->params=123;
echo $this->params;
$sql='UPDATE users SET last_update='.time().' where id_user='.Yii::app()->user->id;
Yii::app()->db->createCommand($sql)->execute();
$users=Users::model()->findAll([
'condition'=>'t.last_update > :time',
'params'=>[':time'=>time()-(60*60*15)], // 15 минут
]);