$all_categories = get_categories();
if( $all_categories ){
echo '<ul>';
foreach( $all_categories as $single_cat ){
echo '<li>' . $single_cat->name . '</li>';
}
echo '</ul>';
}
if( $all_categories ){
echo '<ul >';
foreach( $all_categories as $single_cat ){
echo '<li></li>' . $single_cat->name . '</li>';
}
echo '</ul>';
}
if ( current_user_can('subscriber') ) {
show_admin_bar( false );
}
temp = JSON.stringify(date);
console.log(temp);
function stepOne(i){
const selectors = [ '.addservice', '.addprice' ];
const data = Array.from(
document.querySelectorAll('.addserviceBlock'),
n => selectors.map(m => n.querySelector(m).value)
);
console.log(data);
}
if (current_user_can('contributor') && !current_user_can('upload_files')) :
add_action('admin_init', 'razreshit_uchasnikam_gruzit_faili');
endif;
function razreshit_uchasnikam_gruzit_faili() {
$uchasnik= get_role('contributor');
$uchasnik->add_cap('upload_files');
}
.wrap1 {
position: fixed;
overflow: hidden;
top: 5%; left: 5%;
width: 270px; height: 480px;
display: flex;
align-items: flex-end;
justify-content: center;
}
.wrap2 {
position: fixed;
overflow: hidden;
top: 15%;
right: -5%;
width: 480px; height: 270px;
transform: rotate(-90deg);
display: flex;
align-items: flex-end;
justify-content: center;
}
video {
overflow: hidden;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover
}
.btn1 {
width: 100%;
margin: 0 0 60px;
z-index: 999;
display: inline-block;
background-color: darkred;
color: #fff;
text-align: center;
padding: 15px;
}
.btn2 {
width: 100%;
margin: 0 0 60px;
z-index: 999;
display: inline-block;
position: relative;
background-color: darkred;
color: #fff;
text-align: center;
padding: 15px;
/*transform: rotate(90deg) translate(-50%, -50%);
transform-origin: 100% 100%;*/
}
if ( $price ) {
$args['meta_query'] = array(
'key' => 'price',
'value' => $price;
);
}
if ( $city ) {
$args['meta_query'] = array(
'key' => 'city',
'value' => $city;
);
}