Теперь нужно инклудить autoload.php от гугла.Нет, нужно инклудить autoload.php от композера - в этом весь его смысл.
composer require --prefer-dist fr05t1k/esia
<?php
require_once __DIR__ . '/vendor/autoload.php';
$pageText = new Curl\Curl();
$page = $pageText->get_page(URL);
$cat_page = phpQuery::newDocument($page);
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Curl\Curl;
$pageText = new Curl();
$page = $pageText->get_page(URL);
$cat_page = phpQuery::newDocument($page);
<span class="quantity">
<strong>
<?php echo $cart_count_products; ?>
<?php echo \Custom\Helper\CommonHelper::pluralize(
$cart_count_products,
$this->language->get('переменная1'),
$this->language->get('переменная2'),
$this->language->get('переменная3')
); ?>
</strong>
</span>
Route::get('/', function () {return view('form'); });
<html>
<head></head>
<body>
@yield('form')
</body>
</html>
@extends('index')
@section('form')
<p>Привет</p>
@endsection
Route::get('/form', function () {return view('form'); });
<html>
<head></head>
<body>
@yield('content')
</body>
</html>
@extends('layouts.app')
@section('content')
<p>Привет</p>
@endsection
console.log(+0 === -0); // true
console.log(Object.is(+0, -0)); // false
function parent_category_template( $template ) {
if ( is_category() && cat_is_ancestor_of( $parent_category_id, get_queried_object_id() ) ) {
$new_template = locate_template( array( 'category-parent.php' ) );
if ( '' != $new_template ) {
return $new_template;
}
}
return $template;
}
add_filter( 'template_include', 'parent_category_template', 99 );