', 95 | 'after_title' => '
' 96 | ]; 97 | register_sidebar([ 98 | 'name' => __('Primary', 'sage'), 99 | 'id' => 'sidebar-primary' 100 | ] + $config); 101 | register_sidebar([ 102 | 'name' => __('Footer', 'sage'), 103 | 'id' => 'sidebar-footer' 104 | ] + $config); 105 | }); 106 | 107 | /** 108 | * Updates the `$post` variable on each iteration of the loop. 109 | * Note: updated value is only available for subsequently loaded views, such as partials 110 | */ 111 | add_action('the_post', function ($post) { 112 | sage('blade')->share('post', $post); 113 | }); 114 | 115 | /** 116 | * Setup Sage options 117 | */ 118 | add_action('after_setup_theme', function () { 119 | /** 120 | * Add JsonManifest to Sage container 121 | */ 122 | sage()->singleton('sage.assets', function () { 123 | return new JsonManifest(config('assets.manifest'), config('assets.uri')); 124 | }); 125 | 126 | /** 127 | * Add Blade to Sage container 128 | */ 129 | sage()->singleton('sage.blade', function (Container $app) { 130 | $cachePath = config('view.compiled'); 131 | if (!file_exists($cachePath)) { 132 | wp_mkdir_p($cachePath); 133 | } 134 | (new BladeProvider($app))->register(); 135 | return new Blade($app['view']); 136 | }); 137 | 138 | /** 139 | * Create @asset() Blade directive 140 | */ 141 | sage('blade')->compiler()->directive('asset', function ($asset) { 142 | return "= " . __NAMESPACE__ . "\\asset_path({$asset}); ?>"; 143 | }); 144 | }); 145 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "8bit-echo/sage-vite", 3 | "version": "9.0.9", 4 | "type": "wordpress-theme", 5 | "license": "MIT", 6 | "description": "WordPress starter theme with Vite workflow", 7 | "homepage": "https://roots.io/sage/", 8 | "authors": [ 9 | { 10 | "name": "Ben Word", 11 | "email": "ben@benword.com", 12 | "homepage": "https://github.com/retlehs" 13 | }, 14 | { 15 | "name": "Scott Walkinshaw", 16 | "email": "scott.walkinshaw@gmail.com", 17 | "homepage": "https://github.com/swalkinshaw" 18 | }, 19 | { 20 | "name": "QWp6t", 21 | "email": "hi@qwp6t.me", 22 | "homepage": "https://github.com/qwp6t" 23 | }, 24 | { 25 | "name": "Matt Dickey", 26 | "email": "mdickey46@gmail.com", 27 | "homepage": "https://github.com/8bit-echo" 28 | } 29 | ], 30 | "keywords": ["wordpress", "sage", "vite"], 31 | "support": { 32 | "issues": "https://github.com/8bit-echo/sage-starter/issues", 33 | "forum": "https://discourse.roots.io/" 34 | }, 35 | "autoload": { 36 | "psr-4": { 37 | "App\\": "app/" 38 | } 39 | }, 40 | "require": { 41 | "php": ">=7.1", 42 | "composer/installers": "~1.0", 43 | "illuminate/support": "5.6.*", 44 | "roots/sage-lib": "~9.0.9", 45 | "soberwp/controller": "~2.1.0", 46 | "vlucas/phpdotenv": "^5.3", 47 | "oscarotero/env": "^2.1" 48 | }, 49 | "require-dev": { 50 | "squizlabs/php_codesniffer": "^2.8.0" 51 | }, 52 | "scripts": { 53 | "test": ["phpcs"] 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "158edb5e55cb89785b79cac2968dfd00", 8 | "packages": [ 9 | { 10 | "name": "brain/hierarchy", 11 | "version": "2.5.0", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/Brain-WP/Hierarchy.git", 15 | "reference": "d5d46c6a44f84e59384b0d4d61b27cb5b91bc523" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/Brain-WP/Hierarchy/zipball/d5d46c6a44f84e59384b0d4d61b27cb5b91bc523", 20 | "reference": "d5d46c6a44f84e59384b0d4d61b27cb5b91bc523", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "php": ">=5.6" 25 | }, 26 | "require-dev": { 27 | "brain/monkey": "^2", 28 | "gmazzap/andrew": "~1.0", 29 | "mockery/mockery": "^1", 30 | "phpunit/phpunit": "^5.7", 31 | "symfony/finder": "~2.7.0" 32 | }, 33 | "suggest": { 34 | "symfony/finder": "Allows loading of templates using Symfony finder component." 35 | }, 36 | "type": "library", 37 | "extra": { 38 | "branch-alias": { 39 | "dev-master": "2.x-dev" 40 | } 41 | }, 42 | "autoload": { 43 | "psr-4": { 44 | "Brain\\Hierarchy\\": "src/" 45 | } 46 | }, 47 | "notification-url": "https://packagist.org/downloads/", 48 | "license": [ 49 | "MIT" 50 | ], 51 | "authors": [ 52 | { 53 | "name": "Giuseppe Mazzapica", 54 | "email": "giuseppe.mazzapica@gmail.com" 55 | } 56 | ], 57 | "description": "No-dependencies package that embodies WordPress template hierarchy", 58 | "keywords": [ 59 | "wordpress" 60 | ], 61 | "support": { 62 | "issues": "https://github.com/Brain-WP/Hierarchy/issues", 63 | "source": "https://github.com/Brain-WP/Hierarchy/Hierarchy" 64 | }, 65 | "time": "2020-10-14T20:27:51+00:00" 66 | }, 67 | { 68 | "name": "composer/installers", 69 | "version": "v1.11.0", 70 | "source": { 71 | "type": "git", 72 | "url": "https://github.com/composer/installers.git", 73 | "reference": "ae03311f45dfe194412081526be2e003960df74b" 74 | }, 75 | "dist": { 76 | "type": "zip", 77 | "url": "https://api.github.com/repos/composer/installers/zipball/ae03311f45dfe194412081526be2e003960df74b", 78 | "reference": "ae03311f45dfe194412081526be2e003960df74b", 79 | "shasum": "" 80 | }, 81 | "require": { 82 | "composer-plugin-api": "^1.0 || ^2.0" 83 | }, 84 | "replace": { 85 | "roundcube/plugin-installer": "*", 86 | "shama/baton": "*" 87 | }, 88 | "require-dev": { 89 | "composer/composer": "1.6.* || ^2.0", 90 | "composer/semver": "^1 || ^3", 91 | "phpstan/phpstan": "^0.12.55", 92 | "phpstan/phpstan-phpunit": "^0.12.16", 93 | "symfony/phpunit-bridge": "^4.2 || ^5", 94 | "symfony/process": "^2.3" 95 | }, 96 | "type": "composer-plugin", 97 | "extra": { 98 | "class": "Composer\\Installers\\Plugin", 99 | "branch-alias": { 100 | "dev-main": "1.x-dev" 101 | } 102 | }, 103 | "autoload": { 104 | "psr-4": { 105 | "Composer\\Installers\\": "src/Composer/Installers" 106 | } 107 | }, 108 | "notification-url": "https://packagist.org/downloads/", 109 | "license": [ 110 | "MIT" 111 | ], 112 | "authors": [ 113 | { 114 | "name": "Kyle Robinson Young", 115 | "email": "kyle@dontkry.com", 116 | "homepage": "https://github.com/shama" 117 | } 118 | ], 119 | "description": "A multi-framework Composer library installer", 120 | "homepage": "https://composer.github.io/installers/", 121 | "keywords": [ 122 | "Craft", 123 | "Dolibarr", 124 | "Eliasis", 125 | "Hurad", 126 | "ImageCMS", 127 | "Kanboard", 128 | "Lan Management System", 129 | "MODX Evo", 130 | "MantisBT", 131 | "Mautic", 132 | "Maya", 133 | "OXID", 134 | "Plentymarkets", 135 | "Porto", 136 | "RadPHP", 137 | "SMF", 138 | "Starbug", 139 | "Thelia", 140 | "Whmcs", 141 | "WolfCMS", 142 | "agl", 143 | "aimeos", 144 | "annotatecms", 145 | "attogram", 146 | "bitrix", 147 | "cakephp", 148 | "chef", 149 | "cockpit", 150 | "codeigniter", 151 | "concrete5", 152 | "croogo", 153 | "dokuwiki", 154 | "drupal", 155 | "eZ Platform", 156 | "elgg", 157 | "expressionengine", 158 | "fuelphp", 159 | "grav", 160 | "installer", 161 | "itop", 162 | "joomla", 163 | "known", 164 | "kohana", 165 | "laravel", 166 | "lavalite", 167 | "lithium", 168 | "magento", 169 | "majima", 170 | "mako", 171 | "mediawiki", 172 | "miaoxing", 173 | "modulework", 174 | "modx", 175 | "moodle", 176 | "osclass", 177 | "phpbb", 178 | "piwik", 179 | "ppi", 180 | "processwire", 181 | "puppet", 182 | "pxcms", 183 | "reindex", 184 | "roundcube", 185 | "shopware", 186 | "silverstripe", 187 | "sydes", 188 | "sylius", 189 | "symfony", 190 | "tastyigniter", 191 | "typo3", 192 | "wordpress", 193 | "yawik", 194 | "zend", 195 | "zikula" 196 | ], 197 | "support": { 198 | "issues": "https://github.com/composer/installers/issues", 199 | "source": "https://github.com/composer/installers/tree/v1.11.0" 200 | }, 201 | "funding": [ 202 | { 203 | "url": "https://packagist.com", 204 | "type": "custom" 205 | }, 206 | { 207 | "url": "https://github.com/composer", 208 | "type": "github" 209 | }, 210 | { 211 | "url": "https://tidelift.com/funding/github/packagist/composer/composer", 212 | "type": "tidelift" 213 | } 214 | ], 215 | "time": "2021-04-28T06:42:17+00:00" 216 | }, 217 | { 218 | "name": "doctrine/inflector", 219 | "version": "1.4.4", 220 | "source": { 221 | "type": "git", 222 | "url": "https://github.com/doctrine/inflector.git", 223 | "reference": "4bd5c1cdfcd00e9e2d8c484f79150f67e5d355d9" 224 | }, 225 | "dist": { 226 | "type": "zip", 227 | "url": "https://api.github.com/repos/doctrine/inflector/zipball/4bd5c1cdfcd00e9e2d8c484f79150f67e5d355d9", 228 | "reference": "4bd5c1cdfcd00e9e2d8c484f79150f67e5d355d9", 229 | "shasum": "" 230 | }, 231 | "require": { 232 | "php": "^7.1 || ^8.0" 233 | }, 234 | "require-dev": { 235 | "doctrine/coding-standard": "^8.0", 236 | "phpstan/phpstan": "^0.12", 237 | "phpstan/phpstan-phpunit": "^0.12", 238 | "phpstan/phpstan-strict-rules": "^0.12", 239 | "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" 240 | }, 241 | "type": "library", 242 | "extra": { 243 | "branch-alias": { 244 | "dev-master": "2.0.x-dev" 245 | } 246 | }, 247 | "autoload": { 248 | "psr-4": { 249 | "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector", 250 | "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" 251 | } 252 | }, 253 | "notification-url": "https://packagist.org/downloads/", 254 | "license": [ 255 | "MIT" 256 | ], 257 | "authors": [ 258 | { 259 | "name": "Guilherme Blanco", 260 | "email": "guilhermeblanco@gmail.com" 261 | }, 262 | { 263 | "name": "Roman Borschel", 264 | "email": "roman@code-factory.org" 265 | }, 266 | { 267 | "name": "Benjamin Eberlei", 268 | "email": "kontakt@beberlei.de" 269 | }, 270 | { 271 | "name": "Jonathan Wage", 272 | "email": "jonwage@gmail.com" 273 | }, 274 | { 275 | "name": "Johannes Schmitt", 276 | "email": "schmittjoh@gmail.com" 277 | } 278 | ], 279 | "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", 280 | "homepage": "https://www.doctrine-project.org/projects/inflector.html", 281 | "keywords": [ 282 | "inflection", 283 | "inflector", 284 | "lowercase", 285 | "manipulation", 286 | "php", 287 | "plural", 288 | "singular", 289 | "strings", 290 | "uppercase", 291 | "words" 292 | ], 293 | "support": { 294 | "issues": "https://github.com/doctrine/inflector/issues", 295 | "source": "https://github.com/doctrine/inflector/tree/1.4.4" 296 | }, 297 | "funding": [ 298 | { 299 | "url": "https://www.doctrine-project.org/sponsorship.html", 300 | "type": "custom" 301 | }, 302 | { 303 | "url": "https://www.patreon.com/phpdoctrine", 304 | "type": "patreon" 305 | }, 306 | { 307 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", 308 | "type": "tidelift" 309 | } 310 | ], 311 | "time": "2021-04-16T17:34:40+00:00" 312 | }, 313 | { 314 | "name": "graham-campbell/result-type", 315 | "version": "v1.0.1", 316 | "source": { 317 | "type": "git", 318 | "url": "https://github.com/GrahamCampbell/Result-Type.git", 319 | "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb" 320 | }, 321 | "dist": { 322 | "type": "zip", 323 | "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/7e279d2cd5d7fbb156ce46daada972355cea27bb", 324 | "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb", 325 | "shasum": "" 326 | }, 327 | "require": { 328 | "php": "^7.0|^8.0", 329 | "phpoption/phpoption": "^1.7.3" 330 | }, 331 | "require-dev": { 332 | "phpunit/phpunit": "^6.5|^7.5|^8.5|^9.0" 333 | }, 334 | "type": "library", 335 | "extra": { 336 | "branch-alias": { 337 | "dev-master": "1.0-dev" 338 | } 339 | }, 340 | "autoload": { 341 | "psr-4": { 342 | "GrahamCampbell\\ResultType\\": "src/" 343 | } 344 | }, 345 | "notification-url": "https://packagist.org/downloads/", 346 | "license": [ 347 | "MIT" 348 | ], 349 | "authors": [ 350 | { 351 | "name": "Graham Campbell", 352 | "email": "graham@alt-three.com" 353 | } 354 | ], 355 | "description": "An Implementation Of The Result Type", 356 | "keywords": [ 357 | "Graham Campbell", 358 | "GrahamCampbell", 359 | "Result Type", 360 | "Result-Type", 361 | "result" 362 | ], 363 | "support": { 364 | "issues": "https://github.com/GrahamCampbell/Result-Type/issues", 365 | "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.1" 366 | }, 367 | "funding": [ 368 | { 369 | "url": "https://github.com/GrahamCampbell", 370 | "type": "github" 371 | }, 372 | { 373 | "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", 374 | "type": "tidelift" 375 | } 376 | ], 377 | "time": "2020-04-13T13:17:36+00:00" 378 | }, 379 | { 380 | "name": "illuminate/config", 381 | "version": "v5.6.39", 382 | "source": { 383 | "type": "git", 384 | "url": "https://github.com/illuminate/config.git", 385 | "reference": "61f4eb8145a1473577a9876471c92fa4de4718a7" 386 | }, 387 | "dist": { 388 | "type": "zip", 389 | "url": "https://api.github.com/repos/illuminate/config/zipball/61f4eb8145a1473577a9876471c92fa4de4718a7", 390 | "reference": "61f4eb8145a1473577a9876471c92fa4de4718a7", 391 | "shasum": "" 392 | }, 393 | "require": { 394 | "illuminate/contracts": "5.6.*", 395 | "illuminate/support": "5.6.*", 396 | "php": "^7.1.3" 397 | }, 398 | "type": "library", 399 | "extra": { 400 | "branch-alias": { 401 | "dev-master": "5.6-dev" 402 | } 403 | }, 404 | "autoload": { 405 | "psr-4": { 406 | "Illuminate\\Config\\": "" 407 | } 408 | }, 409 | "notification-url": "https://packagist.org/downloads/", 410 | "license": [ 411 | "MIT" 412 | ], 413 | "authors": [ 414 | { 415 | "name": "Taylor Otwell", 416 | "email": "taylor@laravel.com" 417 | } 418 | ], 419 | "description": "The Illuminate Config package.", 420 | "homepage": "https://laravel.com", 421 | "support": { 422 | "issues": "https://github.com/laravel/framework/issues", 423 | "source": "https://github.com/laravel/framework" 424 | }, 425 | "time": "2017-11-07T20:23:51+00:00" 426 | }, 427 | { 428 | "name": "illuminate/container", 429 | "version": "v5.6.39", 430 | "source": { 431 | "type": "git", 432 | "url": "https://github.com/illuminate/container.git", 433 | "reference": "779b56b37396b888414622d5667d3bcc205964ab" 434 | }, 435 | "dist": { 436 | "type": "zip", 437 | "url": "https://api.github.com/repos/illuminate/container/zipball/779b56b37396b888414622d5667d3bcc205964ab", 438 | "reference": "779b56b37396b888414622d5667d3bcc205964ab", 439 | "shasum": "" 440 | }, 441 | "require": { 442 | "illuminate/contracts": "5.6.*", 443 | "php": "^7.1.3", 444 | "psr/container": "~1.0" 445 | }, 446 | "type": "library", 447 | "extra": { 448 | "branch-alias": { 449 | "dev-master": "5.6-dev" 450 | } 451 | }, 452 | "autoload": { 453 | "psr-4": { 454 | "Illuminate\\Container\\": "" 455 | } 456 | }, 457 | "notification-url": "https://packagist.org/downloads/", 458 | "license": [ 459 | "MIT" 460 | ], 461 | "authors": [ 462 | { 463 | "name": "Taylor Otwell", 464 | "email": "taylor@laravel.com" 465 | } 466 | ], 467 | "description": "The Illuminate Container package.", 468 | "homepage": "https://laravel.com", 469 | "support": { 470 | "issues": "https://github.com/laravel/framework/issues", 471 | "source": "https://github.com/laravel/framework" 472 | }, 473 | "time": "2018-05-24T13:16:56+00:00" 474 | }, 475 | { 476 | "name": "illuminate/contracts", 477 | "version": "v5.6.39", 478 | "source": { 479 | "type": "git", 480 | "url": "https://github.com/illuminate/contracts.git", 481 | "reference": "66b653fd430bf06f59cef1112197d009bd02da84" 482 | }, 483 | "dist": { 484 | "type": "zip", 485 | "url": "https://api.github.com/repos/illuminate/contracts/zipball/66b653fd430bf06f59cef1112197d009bd02da84", 486 | "reference": "66b653fd430bf06f59cef1112197d009bd02da84", 487 | "shasum": "" 488 | }, 489 | "require": { 490 | "php": "^7.1.3", 491 | "psr/container": "~1.0", 492 | "psr/simple-cache": "~1.0" 493 | }, 494 | "type": "library", 495 | "extra": { 496 | "branch-alias": { 497 | "dev-master": "5.6-dev" 498 | } 499 | }, 500 | "autoload": { 501 | "psr-4": { 502 | "Illuminate\\Contracts\\": "" 503 | } 504 | }, 505 | "notification-url": "https://packagist.org/downloads/", 506 | "license": [ 507 | "MIT" 508 | ], 509 | "authors": [ 510 | { 511 | "name": "Taylor Otwell", 512 | "email": "taylor@laravel.com" 513 | } 514 | ], 515 | "description": "The Illuminate Contracts package.", 516 | "homepage": "https://laravel.com", 517 | "support": { 518 | "issues": "https://github.com/laravel/framework/issues", 519 | "source": "https://github.com/laravel/framework" 520 | }, 521 | "time": "2018-07-31T12:49:53+00:00" 522 | }, 523 | { 524 | "name": "illuminate/events", 525 | "version": "v5.6.39", 526 | "source": { 527 | "type": "git", 528 | "url": "https://github.com/illuminate/events.git", 529 | "reference": "c702e65fe37458fece6ae87ce7906aaa614383d6" 530 | }, 531 | "dist": { 532 | "type": "zip", 533 | "url": "https://api.github.com/repos/illuminate/events/zipball/c702e65fe37458fece6ae87ce7906aaa614383d6", 534 | "reference": "c702e65fe37458fece6ae87ce7906aaa614383d6", 535 | "shasum": "" 536 | }, 537 | "require": { 538 | "illuminate/container": "5.6.*", 539 | "illuminate/contracts": "5.6.*", 540 | "illuminate/support": "5.6.*", 541 | "php": "^7.1.3" 542 | }, 543 | "type": "library", 544 | "extra": { 545 | "branch-alias": { 546 | "dev-master": "5.6-dev" 547 | } 548 | }, 549 | "autoload": { 550 | "psr-4": { 551 | "Illuminate\\Events\\": "" 552 | } 553 | }, 554 | "notification-url": "https://packagist.org/downloads/", 555 | "license": [ 556 | "MIT" 557 | ], 558 | "authors": [ 559 | { 560 | "name": "Taylor Otwell", 561 | "email": "taylor@laravel.com" 562 | } 563 | ], 564 | "description": "The Illuminate Events package.", 565 | "homepage": "https://laravel.com", 566 | "support": { 567 | "issues": "https://github.com/laravel/framework/issues", 568 | "source": "https://github.com/laravel/framework" 569 | }, 570 | "time": "2018-07-23T01:01:28+00:00" 571 | }, 572 | { 573 | "name": "illuminate/filesystem", 574 | "version": "v5.6.39", 575 | "source": { 576 | "type": "git", 577 | "url": "https://github.com/illuminate/filesystem.git", 578 | "reference": "b25940b428c9fd284feaad20e176ace8d780973b" 579 | }, 580 | "dist": { 581 | "type": "zip", 582 | "url": "https://api.github.com/repos/illuminate/filesystem/zipball/b25940b428c9fd284feaad20e176ace8d780973b", 583 | "reference": "b25940b428c9fd284feaad20e176ace8d780973b", 584 | "shasum": "" 585 | }, 586 | "require": { 587 | "illuminate/contracts": "5.6.*", 588 | "illuminate/support": "5.6.*", 589 | "php": "^7.1.3", 590 | "symfony/finder": "~4.0" 591 | }, 592 | "suggest": { 593 | "league/flysystem": "Required to use the Flysystem local and FTP drivers (~1.0).", 594 | "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", 595 | "league/flysystem-cached-adapter": "Required to use the Flysystem cache (~1.0).", 596 | "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", 597 | "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (~1.0)." 598 | }, 599 | "type": "library", 600 | "extra": { 601 | "branch-alias": { 602 | "dev-master": "5.6-dev" 603 | } 604 | }, 605 | "autoload": { 606 | "psr-4": { 607 | "Illuminate\\Filesystem\\": "" 608 | } 609 | }, 610 | "notification-url": "https://packagist.org/downloads/", 611 | "license": [ 612 | "MIT" 613 | ], 614 | "authors": [ 615 | { 616 | "name": "Taylor Otwell", 617 | "email": "taylor@laravel.com" 618 | } 619 | ], 620 | "description": "The Illuminate Filesystem package.", 621 | "homepage": "https://laravel.com", 622 | "support": { 623 | "issues": "https://github.com/laravel/framework/issues", 624 | "source": "https://github.com/laravel/framework" 625 | }, 626 | "time": "2018-08-13T14:51:11+00:00" 627 | }, 628 | { 629 | "name": "illuminate/support", 630 | "version": "v5.6.39", 631 | "source": { 632 | "type": "git", 633 | "url": "https://github.com/illuminate/support.git", 634 | "reference": "e2fce24254b8f60a2f92a3ab485799b372625a06" 635 | }, 636 | "dist": { 637 | "type": "zip", 638 | "url": "https://api.github.com/repos/illuminate/support/zipball/e2fce24254b8f60a2f92a3ab485799b372625a06", 639 | "reference": "e2fce24254b8f60a2f92a3ab485799b372625a06", 640 | "shasum": "" 641 | }, 642 | "require": { 643 | "doctrine/inflector": "~1.1", 644 | "ext-mbstring": "*", 645 | "illuminate/contracts": "5.6.*", 646 | "nesbot/carbon": "1.25.*", 647 | "php": "^7.1.3" 648 | }, 649 | "conflict": { 650 | "tightenco/collect": "<5.5.33" 651 | }, 652 | "suggest": { 653 | "illuminate/filesystem": "Required to use the composer class (5.6.*).", 654 | "ramsey/uuid": "Required to use Str::uuid() (^3.7).", 655 | "symfony/process": "Required to use the composer class (~4.0).", 656 | "symfony/var-dumper": "Required to use the dd function (~4.0)." 657 | }, 658 | "type": "library", 659 | "extra": { 660 | "branch-alias": { 661 | "dev-master": "5.6-dev" 662 | } 663 | }, 664 | "autoload": { 665 | "psr-4": { 666 | "Illuminate\\Support\\": "" 667 | }, 668 | "files": [ 669 | "helpers.php" 670 | ] 671 | }, 672 | "notification-url": "https://packagist.org/downloads/", 673 | "license": [ 674 | "MIT" 675 | ], 676 | "authors": [ 677 | { 678 | "name": "Taylor Otwell", 679 | "email": "taylor@laravel.com" 680 | } 681 | ], 682 | "description": "The Illuminate Support package.", 683 | "homepage": "https://laravel.com", 684 | "support": { 685 | "issues": "https://github.com/laravel/framework/issues", 686 | "source": "https://github.com/laravel/framework" 687 | }, 688 | "time": "2018-09-06T13:37:53+00:00" 689 | }, 690 | { 691 | "name": "illuminate/view", 692 | "version": "v5.6.39", 693 | "source": { 694 | "type": "git", 695 | "url": "https://github.com/illuminate/view.git", 696 | "reference": "60fd8f12340417a4312e5d90961510333d4f1d46" 697 | }, 698 | "dist": { 699 | "type": "zip", 700 | "url": "https://api.github.com/repos/illuminate/view/zipball/60fd8f12340417a4312e5d90961510333d4f1d46", 701 | "reference": "60fd8f12340417a4312e5d90961510333d4f1d46", 702 | "shasum": "" 703 | }, 704 | "require": { 705 | "illuminate/container": "5.6.*", 706 | "illuminate/contracts": "5.6.*", 707 | "illuminate/events": "5.6.*", 708 | "illuminate/filesystem": "5.6.*", 709 | "illuminate/support": "5.6.*", 710 | "php": "^7.1.3", 711 | "symfony/debug": "~4.0" 712 | }, 713 | "type": "library", 714 | "extra": { 715 | "branch-alias": { 716 | "dev-master": "5.6-dev" 717 | } 718 | }, 719 | "autoload": { 720 | "psr-4": { 721 | "Illuminate\\View\\": "" 722 | } 723 | }, 724 | "notification-url": "https://packagist.org/downloads/", 725 | "license": [ 726 | "MIT" 727 | ], 728 | "authors": [ 729 | { 730 | "name": "Taylor Otwell", 731 | "email": "taylor@laravel.com" 732 | } 733 | ], 734 | "description": "The Illuminate View package.", 735 | "homepage": "https://laravel.com", 736 | "support": { 737 | "issues": "https://github.com/laravel/framework/issues", 738 | "source": "https://github.com/laravel/framework" 739 | }, 740 | "time": "2018-10-02T13:27:20+00:00" 741 | }, 742 | { 743 | "name": "kylekatarnls/update-helper", 744 | "version": "1.2.1", 745 | "source": { 746 | "type": "git", 747 | "url": "https://github.com/kylekatarnls/update-helper.git", 748 | "reference": "429be50660ed8a196e0798e5939760f168ec8ce9" 749 | }, 750 | "dist": { 751 | "type": "zip", 752 | "url": "https://api.github.com/repos/kylekatarnls/update-helper/zipball/429be50660ed8a196e0798e5939760f168ec8ce9", 753 | "reference": "429be50660ed8a196e0798e5939760f168ec8ce9", 754 | "shasum": "" 755 | }, 756 | "require": { 757 | "composer-plugin-api": "^1.1.0 || ^2.0.0", 758 | "php": ">=5.3.0" 759 | }, 760 | "require-dev": { 761 | "codeclimate/php-test-reporter": "dev-master", 762 | "composer/composer": "2.0.x-dev || ^2.0.0-dev", 763 | "phpunit/phpunit": ">=4.8.35 <6.0" 764 | }, 765 | "type": "composer-plugin", 766 | "extra": { 767 | "class": "UpdateHelper\\ComposerPlugin" 768 | }, 769 | "autoload": { 770 | "psr-0": { 771 | "UpdateHelper\\": "src/" 772 | } 773 | }, 774 | "notification-url": "https://packagist.org/downloads/", 775 | "license": [ 776 | "MIT" 777 | ], 778 | "authors": [ 779 | { 780 | "name": "Kyle", 781 | "email": "kylekatarnls@gmail.com" 782 | } 783 | ], 784 | "description": "Update helper", 785 | "support": { 786 | "issues": "https://github.com/kylekatarnls/update-helper/issues", 787 | "source": "https://github.com/kylekatarnls/update-helper/tree/1.2.1" 788 | }, 789 | "funding": [ 790 | { 791 | "url": "https://github.com/kylekatarnls", 792 | "type": "github" 793 | }, 794 | { 795 | "url": "https://opencollective.com/Carbon", 796 | "type": "open_collective" 797 | }, 798 | { 799 | "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", 800 | "type": "tidelift" 801 | } 802 | ], 803 | "time": "2020-04-07T20:44:10+00:00" 804 | }, 805 | { 806 | "name": "nesbot/carbon", 807 | "version": "1.25.3", 808 | "source": { 809 | "type": "git", 810 | "url": "https://github.com/briannesbitt/Carbon.git", 811 | "reference": "ad6afecd38ce2d7f7bd1b5d47ffd8e93ebbd3ed8" 812 | }, 813 | "dist": { 814 | "type": "zip", 815 | "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/ad6afecd38ce2d7f7bd1b5d47ffd8e93ebbd3ed8", 816 | "reference": "ad6afecd38ce2d7f7bd1b5d47ffd8e93ebbd3ed8", 817 | "shasum": "" 818 | }, 819 | "require": { 820 | "kylekatarnls/update-helper": "^1.1", 821 | "php": ">=5.3.9", 822 | "symfony/translation": "~2.6 || ~3.0 || ~4.0" 823 | }, 824 | "require-dev": { 825 | "composer/composer": "^1.2", 826 | "friendsofphp/php-cs-fixer": "~2", 827 | "phpunit/phpunit": "^4.8.35 || ^5.7" 828 | }, 829 | "bin": [ 830 | "bin/upgrade-carbon" 831 | ], 832 | "type": "library", 833 | "extra": { 834 | "update-helper": "Carbon\\Upgrade" 835 | }, 836 | "autoload": { 837 | "psr-4": { 838 | "Carbon\\": "src/Carbon/" 839 | } 840 | }, 841 | "notification-url": "https://packagist.org/downloads/", 842 | "license": [ 843 | "MIT" 844 | ], 845 | "authors": [ 846 | { 847 | "name": "Brian Nesbitt", 848 | "email": "brian@nesbot.com", 849 | "homepage": "http://nesbot.com" 850 | } 851 | ], 852 | "description": "A simple API extension for DateTime.", 853 | "homepage": "http://carbon.nesbot.com", 854 | "keywords": [ 855 | "date", 856 | "datetime", 857 | "time" 858 | ], 859 | "support": { 860 | "issues": "https://github.com/briannesbitt/Carbon/issues", 861 | "source": "https://github.com/briannesbitt/Carbon" 862 | }, 863 | "time": "2019-06-03T17:56:44+00:00" 864 | }, 865 | { 866 | "name": "oscarotero/env", 867 | "version": "v2.1.0", 868 | "source": { 869 | "type": "git", 870 | "url": "https://github.com/oscarotero/env.git", 871 | "reference": "0da22cadc6924155fa9bbea2cdda2e84ab7cbdd3" 872 | }, 873 | "dist": { 874 | "type": "zip", 875 | "url": "https://api.github.com/repos/oscarotero/env/zipball/0da22cadc6924155fa9bbea2cdda2e84ab7cbdd3", 876 | "reference": "0da22cadc6924155fa9bbea2cdda2e84ab7cbdd3", 877 | "shasum": "" 878 | }, 879 | "require": { 880 | "ext-ctype": "*", 881 | "php": ">=7.1" 882 | }, 883 | "require-dev": { 884 | "friendsofphp/php-cs-fixer": "^2.16", 885 | "phpunit/phpunit": "^7.0" 886 | }, 887 | "type": "library", 888 | "autoload": { 889 | "psr-4": { 890 | "Env\\": "src/" 891 | }, 892 | "files": [ 893 | "src/env_function.php" 894 | ] 895 | }, 896 | "notification-url": "https://packagist.org/downloads/", 897 | "license": [ 898 | "MIT" 899 | ], 900 | "authors": [ 901 | { 902 | "name": "Oscar Otero", 903 | "email": "oom@oscarotero.com", 904 | "homepage": "http://oscarotero.com", 905 | "role": "Developer" 906 | } 907 | ], 908 | "description": "Simple library to consume environment variables", 909 | "homepage": "https://github.com/oscarotero/env", 910 | "keywords": [ 911 | "env" 912 | ], 913 | "support": { 914 | "email": "oom@oscarotero.com", 915 | "issues": "https://github.com/oscarotero/env/issues", 916 | "source": "https://github.com/oscarotero/env/tree/v2.1.0" 917 | }, 918 | "time": "2020-06-11T10:59:27+00:00" 919 | }, 920 | { 921 | "name": "phpoption/phpoption", 922 | "version": "1.7.5", 923 | "source": { 924 | "type": "git", 925 | "url": "https://github.com/schmittjoh/php-option.git", 926 | "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525" 927 | }, 928 | "dist": { 929 | "type": "zip", 930 | "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525", 931 | "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525", 932 | "shasum": "" 933 | }, 934 | "require": { 935 | "php": "^5.5.9 || ^7.0 || ^8.0" 936 | }, 937 | "require-dev": { 938 | "bamarni/composer-bin-plugin": "^1.4.1", 939 | "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0" 940 | }, 941 | "type": "library", 942 | "extra": { 943 | "branch-alias": { 944 | "dev-master": "1.7-dev" 945 | } 946 | }, 947 | "autoload": { 948 | "psr-4": { 949 | "PhpOption\\": "src/PhpOption/" 950 | } 951 | }, 952 | "notification-url": "https://packagist.org/downloads/", 953 | "license": [ 954 | "Apache-2.0" 955 | ], 956 | "authors": [ 957 | { 958 | "name": "Johannes M. Schmitt", 959 | "email": "schmittjoh@gmail.com" 960 | }, 961 | { 962 | "name": "Graham Campbell", 963 | "email": "graham@alt-three.com" 964 | } 965 | ], 966 | "description": "Option Type for PHP", 967 | "keywords": [ 968 | "language", 969 | "option", 970 | "php", 971 | "type" 972 | ], 973 | "support": { 974 | "issues": "https://github.com/schmittjoh/php-option/issues", 975 | "source": "https://github.com/schmittjoh/php-option/tree/1.7.5" 976 | }, 977 | "funding": [ 978 | { 979 | "url": "https://github.com/GrahamCampbell", 980 | "type": "github" 981 | }, 982 | { 983 | "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", 984 | "type": "tidelift" 985 | } 986 | ], 987 | "time": "2020-07-20T17:29:33+00:00" 988 | }, 989 | { 990 | "name": "psr/container", 991 | "version": "1.1.1", 992 | "source": { 993 | "type": "git", 994 | "url": "https://github.com/php-fig/container.git", 995 | "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" 996 | }, 997 | "dist": { 998 | "type": "zip", 999 | "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", 1000 | "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", 1001 | "shasum": "" 1002 | }, 1003 | "require": { 1004 | "php": ">=7.2.0" 1005 | }, 1006 | "type": "library", 1007 | "autoload": { 1008 | "psr-4": { 1009 | "Psr\\Container\\": "src/" 1010 | } 1011 | }, 1012 | "notification-url": "https://packagist.org/downloads/", 1013 | "license": [ 1014 | "MIT" 1015 | ], 1016 | "authors": [ 1017 | { 1018 | "name": "PHP-FIG", 1019 | "homepage": "https://www.php-fig.org/" 1020 | } 1021 | ], 1022 | "description": "Common Container Interface (PHP FIG PSR-11)", 1023 | "homepage": "https://github.com/php-fig/container", 1024 | "keywords": [ 1025 | "PSR-11", 1026 | "container", 1027 | "container-interface", 1028 | "container-interop", 1029 | "psr" 1030 | ], 1031 | "support": { 1032 | "issues": "https://github.com/php-fig/container/issues", 1033 | "source": "https://github.com/php-fig/container/tree/1.1.1" 1034 | }, 1035 | "time": "2021-03-05T17:36:06+00:00" 1036 | }, 1037 | { 1038 | "name": "psr/log", 1039 | "version": "1.1.4", 1040 | "source": { 1041 | "type": "git", 1042 | "url": "https://github.com/php-fig/log.git", 1043 | "reference": "d49695b909c3b7628b6289db5479a1c204601f11" 1044 | }, 1045 | "dist": { 1046 | "type": "zip", 1047 | "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", 1048 | "reference": "d49695b909c3b7628b6289db5479a1c204601f11", 1049 | "shasum": "" 1050 | }, 1051 | "require": { 1052 | "php": ">=5.3.0" 1053 | }, 1054 | "type": "library", 1055 | "extra": { 1056 | "branch-alias": { 1057 | "dev-master": "1.1.x-dev" 1058 | } 1059 | }, 1060 | "autoload": { 1061 | "psr-4": { 1062 | "Psr\\Log\\": "Psr/Log/" 1063 | } 1064 | }, 1065 | "notification-url": "https://packagist.org/downloads/", 1066 | "license": [ 1067 | "MIT" 1068 | ], 1069 | "authors": [ 1070 | { 1071 | "name": "PHP-FIG", 1072 | "homepage": "https://www.php-fig.org/" 1073 | } 1074 | ], 1075 | "description": "Common interface for logging libraries", 1076 | "homepage": "https://github.com/php-fig/log", 1077 | "keywords": [ 1078 | "log", 1079 | "psr", 1080 | "psr-3" 1081 | ], 1082 | "support": { 1083 | "source": "https://github.com/php-fig/log/tree/1.1.4" 1084 | }, 1085 | "time": "2021-05-03T11:20:27+00:00" 1086 | }, 1087 | { 1088 | "name": "psr/simple-cache", 1089 | "version": "1.0.1", 1090 | "source": { 1091 | "type": "git", 1092 | "url": "https://github.com/php-fig/simple-cache.git", 1093 | "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" 1094 | }, 1095 | "dist": { 1096 | "type": "zip", 1097 | "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", 1098 | "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", 1099 | "shasum": "" 1100 | }, 1101 | "require": { 1102 | "php": ">=5.3.0" 1103 | }, 1104 | "type": "library", 1105 | "extra": { 1106 | "branch-alias": { 1107 | "dev-master": "1.0.x-dev" 1108 | } 1109 | }, 1110 | "autoload": { 1111 | "psr-4": { 1112 | "Psr\\SimpleCache\\": "src/" 1113 | } 1114 | }, 1115 | "notification-url": "https://packagist.org/downloads/", 1116 | "license": [ 1117 | "MIT" 1118 | ], 1119 | "authors": [ 1120 | { 1121 | "name": "PHP-FIG", 1122 | "homepage": "http://www.php-fig.org/" 1123 | } 1124 | ], 1125 | "description": "Common interfaces for simple caching", 1126 | "keywords": [ 1127 | "cache", 1128 | "caching", 1129 | "psr", 1130 | "psr-16", 1131 | "simple-cache" 1132 | ], 1133 | "support": { 1134 | "source": "https://github.com/php-fig/simple-cache/tree/master" 1135 | }, 1136 | "time": "2017-10-23T01:57:42+00:00" 1137 | }, 1138 | { 1139 | "name": "roots/sage-lib", 1140 | "version": "9.0.9", 1141 | "source": { 1142 | "type": "git", 1143 | "url": "https://github.com/roots/sage-lib.git", 1144 | "reference": "b9adfbd72faf997b226d5a9f06b8ea74260e72fd" 1145 | }, 1146 | "dist": { 1147 | "type": "zip", 1148 | "url": "https://api.github.com/repos/roots/sage-lib/zipball/b9adfbd72faf997b226d5a9f06b8ea74260e72fd", 1149 | "reference": "b9adfbd72faf997b226d5a9f06b8ea74260e72fd", 1150 | "shasum": "" 1151 | }, 1152 | "require": { 1153 | "composer/installers": "~1.0", 1154 | "illuminate/config": "~5.6", 1155 | "illuminate/view": "~5.6", 1156 | "php": ">=7.1" 1157 | }, 1158 | "require-dev": { 1159 | "squizlabs/php_codesniffer": "~3.3.1" 1160 | }, 1161 | "type": "library", 1162 | "autoload": { 1163 | "psr-4": { 1164 | "Roots\\Sage\\": "" 1165 | } 1166 | }, 1167 | "notification-url": "https://packagist.org/downloads/", 1168 | "license": [ 1169 | "MIT" 1170 | ], 1171 | "authors": [ 1172 | { 1173 | "name": "Ben Word", 1174 | "email": "ben@benword.com", 1175 | "homepage": "https://github.com/retlehs" 1176 | }, 1177 | { 1178 | "name": "QWp6t", 1179 | "email": "hi@qwp6t.me", 1180 | "homepage": "https://github.com/qwp6t" 1181 | } 1182 | ], 1183 | "description": "Library files for Sage Starter Theme", 1184 | "homepage": "https://roots.io/sage/", 1185 | "keywords": [ 1186 | "wordpress" 1187 | ], 1188 | "support": { 1189 | "forum": "https://discourse.roots.io/", 1190 | "issues": "https://github.com/roots/sage-lib/issues", 1191 | "source": "https://github.com/roots/sage-lib/tree/master" 1192 | }, 1193 | "time": "2018-12-28T01:46:28+00:00" 1194 | }, 1195 | { 1196 | "name": "soberwp/controller", 1197 | "version": "2.1.3", 1198 | "source": { 1199 | "type": "git", 1200 | "url": "https://github.com/soberwp/controller.git", 1201 | "reference": "af84ce8357a5112c93f68826793fc512ba5d1792" 1202 | }, 1203 | "dist": { 1204 | "type": "zip", 1205 | "url": "https://api.github.com/repos/soberwp/controller/zipball/af84ce8357a5112c93f68826793fc512ba5d1792", 1206 | "reference": "af84ce8357a5112c93f68826793fc512ba5d1792", 1207 | "shasum": "" 1208 | }, 1209 | "require": { 1210 | "brain/hierarchy": "^2.4.0", 1211 | "php": ">=5.6.0" 1212 | }, 1213 | "require-dev": { 1214 | "squizlabs/php_codesniffer": "^3.2" 1215 | }, 1216 | "type": "package", 1217 | "autoload": { 1218 | "psr-4": { 1219 | "Sober\\Controller\\": "src/" 1220 | }, 1221 | "files": [ 1222 | "controller.php" 1223 | ] 1224 | }, 1225 | "notification-url": "https://packagist.org/downloads/", 1226 | "license": [ 1227 | "MIT" 1228 | ], 1229 | "authors": [ 1230 | { 1231 | "name": "Darren Jacoby", 1232 | "email": "darren@jacoby.co.za", 1233 | "homepage": "https://github.com/darrenjacoby" 1234 | } 1235 | ], 1236 | "description": "WordPress package to enable a basic controller when using Blade with Sage 9", 1237 | "homepage": "https://github.com/soberwp", 1238 | "keywords": [ 1239 | "wordpress" 1240 | ], 1241 | "support": { 1242 | "issues": "https://github.com/soberwp/controller/issues", 1243 | "source": "https://github.com/soberwp/controller/tree/2.1.3" 1244 | }, 1245 | "time": "2021-05-27T14:42:31+00:00" 1246 | }, 1247 | { 1248 | "name": "symfony/debug", 1249 | "version": "v4.4.22", 1250 | "source": { 1251 | "type": "git", 1252 | "url": "https://github.com/symfony/debug.git", 1253 | "reference": "45b2136377cca5f10af858968d6079a482bca473" 1254 | }, 1255 | "dist": { 1256 | "type": "zip", 1257 | "url": "https://api.github.com/repos/symfony/debug/zipball/45b2136377cca5f10af858968d6079a482bca473", 1258 | "reference": "45b2136377cca5f10af858968d6079a482bca473", 1259 | "shasum": "" 1260 | }, 1261 | "require": { 1262 | "php": ">=7.1.3", 1263 | "psr/log": "~1.0", 1264 | "symfony/polyfill-php80": "^1.15" 1265 | }, 1266 | "conflict": { 1267 | "symfony/http-kernel": "<3.4" 1268 | }, 1269 | "require-dev": { 1270 | "symfony/http-kernel": "^3.4|^4.0|^5.0" 1271 | }, 1272 | "type": "library", 1273 | "autoload": { 1274 | "psr-4": { 1275 | "Symfony\\Component\\Debug\\": "" 1276 | }, 1277 | "exclude-from-classmap": [ 1278 | "/Tests/" 1279 | ] 1280 | }, 1281 | "notification-url": "https://packagist.org/downloads/", 1282 | "license": [ 1283 | "MIT" 1284 | ], 1285 | "authors": [ 1286 | { 1287 | "name": "Fabien Potencier", 1288 | "email": "fabien@symfony.com" 1289 | }, 1290 | { 1291 | "name": "Symfony Community", 1292 | "homepage": "https://symfony.com/contributors" 1293 | } 1294 | ], 1295 | "description": "Provides tools to ease debugging PHP code", 1296 | "homepage": "https://symfony.com", 1297 | "support": { 1298 | "source": "https://github.com/symfony/debug/tree/v4.4.22" 1299 | }, 1300 | "funding": [ 1301 | { 1302 | "url": "https://symfony.com/sponsor", 1303 | "type": "custom" 1304 | }, 1305 | { 1306 | "url": "https://github.com/fabpot", 1307 | "type": "github" 1308 | }, 1309 | { 1310 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1311 | "type": "tidelift" 1312 | } 1313 | ], 1314 | "time": "2021-04-02T07:50:12+00:00" 1315 | }, 1316 | { 1317 | "name": "symfony/finder", 1318 | "version": "v4.4.24", 1319 | "source": { 1320 | "type": "git", 1321 | "url": "https://github.com/symfony/finder.git", 1322 | "reference": "a96bc19ed87c88eec78e1a4c803bdc1446952983" 1323 | }, 1324 | "dist": { 1325 | "type": "zip", 1326 | "url": "https://api.github.com/repos/symfony/finder/zipball/a96bc19ed87c88eec78e1a4c803bdc1446952983", 1327 | "reference": "a96bc19ed87c88eec78e1a4c803bdc1446952983", 1328 | "shasum": "" 1329 | }, 1330 | "require": { 1331 | "php": ">=7.1.3" 1332 | }, 1333 | "type": "library", 1334 | "autoload": { 1335 | "psr-4": { 1336 | "Symfony\\Component\\Finder\\": "" 1337 | }, 1338 | "exclude-from-classmap": [ 1339 | "/Tests/" 1340 | ] 1341 | }, 1342 | "notification-url": "https://packagist.org/downloads/", 1343 | "license": [ 1344 | "MIT" 1345 | ], 1346 | "authors": [ 1347 | { 1348 | "name": "Fabien Potencier", 1349 | "email": "fabien@symfony.com" 1350 | }, 1351 | { 1352 | "name": "Symfony Community", 1353 | "homepage": "https://symfony.com/contributors" 1354 | } 1355 | ], 1356 | "description": "Finds files and directories via an intuitive fluent interface", 1357 | "homepage": "https://symfony.com", 1358 | "support": { 1359 | "source": "https://github.com/symfony/finder/tree/v4.4.24" 1360 | }, 1361 | "funding": [ 1362 | { 1363 | "url": "https://symfony.com/sponsor", 1364 | "type": "custom" 1365 | }, 1366 | { 1367 | "url": "https://github.com/fabpot", 1368 | "type": "github" 1369 | }, 1370 | { 1371 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1372 | "type": "tidelift" 1373 | } 1374 | ], 1375 | "time": "2021-05-16T12:27:45+00:00" 1376 | }, 1377 | { 1378 | "name": "symfony/polyfill-ctype", 1379 | "version": "v1.23.0", 1380 | "source": { 1381 | "type": "git", 1382 | "url": "https://github.com/symfony/polyfill-ctype.git", 1383 | "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" 1384 | }, 1385 | "dist": { 1386 | "type": "zip", 1387 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", 1388 | "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", 1389 | "shasum": "" 1390 | }, 1391 | "require": { 1392 | "php": ">=7.1" 1393 | }, 1394 | "suggest": { 1395 | "ext-ctype": "For best performance" 1396 | }, 1397 | "type": "library", 1398 | "extra": { 1399 | "branch-alias": { 1400 | "dev-main": "1.23-dev" 1401 | }, 1402 | "thanks": { 1403 | "name": "symfony/polyfill", 1404 | "url": "https://github.com/symfony/polyfill" 1405 | } 1406 | }, 1407 | "autoload": { 1408 | "psr-4": { 1409 | "Symfony\\Polyfill\\Ctype\\": "" 1410 | }, 1411 | "files": [ 1412 | "bootstrap.php" 1413 | ] 1414 | }, 1415 | "notification-url": "https://packagist.org/downloads/", 1416 | "license": [ 1417 | "MIT" 1418 | ], 1419 | "authors": [ 1420 | { 1421 | "name": "Gert de Pagter", 1422 | "email": "BackEndTea@gmail.com" 1423 | }, 1424 | { 1425 | "name": "Symfony Community", 1426 | "homepage": "https://symfony.com/contributors" 1427 | } 1428 | ], 1429 | "description": "Symfony polyfill for ctype functions", 1430 | "homepage": "https://symfony.com", 1431 | "keywords": [ 1432 | "compatibility", 1433 | "ctype", 1434 | "polyfill", 1435 | "portable" 1436 | ], 1437 | "support": { 1438 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" 1439 | }, 1440 | "funding": [ 1441 | { 1442 | "url": "https://symfony.com/sponsor", 1443 | "type": "custom" 1444 | }, 1445 | { 1446 | "url": "https://github.com/fabpot", 1447 | "type": "github" 1448 | }, 1449 | { 1450 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1451 | "type": "tidelift" 1452 | } 1453 | ], 1454 | "time": "2021-02-19T12:13:01+00:00" 1455 | }, 1456 | { 1457 | "name": "symfony/polyfill-mbstring", 1458 | "version": "v1.23.0", 1459 | "source": { 1460 | "type": "git", 1461 | "url": "https://github.com/symfony/polyfill-mbstring.git", 1462 | "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1" 1463 | }, 1464 | "dist": { 1465 | "type": "zip", 1466 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1", 1467 | "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1", 1468 | "shasum": "" 1469 | }, 1470 | "require": { 1471 | "php": ">=7.1" 1472 | }, 1473 | "suggest": { 1474 | "ext-mbstring": "For best performance" 1475 | }, 1476 | "type": "library", 1477 | "extra": { 1478 | "branch-alias": { 1479 | "dev-main": "1.23-dev" 1480 | }, 1481 | "thanks": { 1482 | "name": "symfony/polyfill", 1483 | "url": "https://github.com/symfony/polyfill" 1484 | } 1485 | }, 1486 | "autoload": { 1487 | "psr-4": { 1488 | "Symfony\\Polyfill\\Mbstring\\": "" 1489 | }, 1490 | "files": [ 1491 | "bootstrap.php" 1492 | ] 1493 | }, 1494 | "notification-url": "https://packagist.org/downloads/", 1495 | "license": [ 1496 | "MIT" 1497 | ], 1498 | "authors": [ 1499 | { 1500 | "name": "Nicolas Grekas", 1501 | "email": "p@tchwork.com" 1502 | }, 1503 | { 1504 | "name": "Symfony Community", 1505 | "homepage": "https://symfony.com/contributors" 1506 | } 1507 | ], 1508 | "description": "Symfony polyfill for the Mbstring extension", 1509 | "homepage": "https://symfony.com", 1510 | "keywords": [ 1511 | "compatibility", 1512 | "mbstring", 1513 | "polyfill", 1514 | "portable", 1515 | "shim" 1516 | ], 1517 | "support": { 1518 | "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0" 1519 | }, 1520 | "funding": [ 1521 | { 1522 | "url": "https://symfony.com/sponsor", 1523 | "type": "custom" 1524 | }, 1525 | { 1526 | "url": "https://github.com/fabpot", 1527 | "type": "github" 1528 | }, 1529 | { 1530 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1531 | "type": "tidelift" 1532 | } 1533 | ], 1534 | "time": "2021-05-27T09:27:20+00:00" 1535 | }, 1536 | { 1537 | "name": "symfony/polyfill-php80", 1538 | "version": "v1.23.0", 1539 | "source": { 1540 | "type": "git", 1541 | "url": "https://github.com/symfony/polyfill-php80.git", 1542 | "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0" 1543 | }, 1544 | "dist": { 1545 | "type": "zip", 1546 | "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0", 1547 | "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0", 1548 | "shasum": "" 1549 | }, 1550 | "require": { 1551 | "php": ">=7.1" 1552 | }, 1553 | "type": "library", 1554 | "extra": { 1555 | "branch-alias": { 1556 | "dev-main": "1.23-dev" 1557 | }, 1558 | "thanks": { 1559 | "name": "symfony/polyfill", 1560 | "url": "https://github.com/symfony/polyfill" 1561 | } 1562 | }, 1563 | "autoload": { 1564 | "psr-4": { 1565 | "Symfony\\Polyfill\\Php80\\": "" 1566 | }, 1567 | "files": [ 1568 | "bootstrap.php" 1569 | ], 1570 | "classmap": [ 1571 | "Resources/stubs" 1572 | ] 1573 | }, 1574 | "notification-url": "https://packagist.org/downloads/", 1575 | "license": [ 1576 | "MIT" 1577 | ], 1578 | "authors": [ 1579 | { 1580 | "name": "Ion Bazan", 1581 | "email": "ion.bazan@gmail.com" 1582 | }, 1583 | { 1584 | "name": "Nicolas Grekas", 1585 | "email": "p@tchwork.com" 1586 | }, 1587 | { 1588 | "name": "Symfony Community", 1589 | "homepage": "https://symfony.com/contributors" 1590 | } 1591 | ], 1592 | "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", 1593 | "homepage": "https://symfony.com", 1594 | "keywords": [ 1595 | "compatibility", 1596 | "polyfill", 1597 | "portable", 1598 | "shim" 1599 | ], 1600 | "support": { 1601 | "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0" 1602 | }, 1603 | "funding": [ 1604 | { 1605 | "url": "https://symfony.com/sponsor", 1606 | "type": "custom" 1607 | }, 1608 | { 1609 | "url": "https://github.com/fabpot", 1610 | "type": "github" 1611 | }, 1612 | { 1613 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1614 | "type": "tidelift" 1615 | } 1616 | ], 1617 | "time": "2021-02-19T12:13:01+00:00" 1618 | }, 1619 | { 1620 | "name": "symfony/translation", 1621 | "version": "v4.4.24", 1622 | "source": { 1623 | "type": "git", 1624 | "url": "https://github.com/symfony/translation.git", 1625 | "reference": "424d29dfcc15575af05196de0100d7b52f650602" 1626 | }, 1627 | "dist": { 1628 | "type": "zip", 1629 | "url": "https://api.github.com/repos/symfony/translation/zipball/424d29dfcc15575af05196de0100d7b52f650602", 1630 | "reference": "424d29dfcc15575af05196de0100d7b52f650602", 1631 | "shasum": "" 1632 | }, 1633 | "require": { 1634 | "php": ">=7.1.3", 1635 | "symfony/polyfill-mbstring": "~1.0", 1636 | "symfony/translation-contracts": "^1.1.6|^2" 1637 | }, 1638 | "conflict": { 1639 | "symfony/config": "<3.4", 1640 | "symfony/dependency-injection": "<3.4", 1641 | "symfony/http-kernel": "<4.4", 1642 | "symfony/yaml": "<3.4" 1643 | }, 1644 | "provide": { 1645 | "symfony/translation-implementation": "1.0|2.0" 1646 | }, 1647 | "require-dev": { 1648 | "psr/log": "~1.0", 1649 | "symfony/config": "^3.4|^4.0|^5.0", 1650 | "symfony/console": "^3.4|^4.0|^5.0", 1651 | "symfony/dependency-injection": "^3.4|^4.0|^5.0", 1652 | "symfony/finder": "~2.8|~3.0|~4.0|^5.0", 1653 | "symfony/http-kernel": "^4.4", 1654 | "symfony/intl": "^3.4|^4.0|^5.0", 1655 | "symfony/service-contracts": "^1.1.2|^2", 1656 | "symfony/yaml": "^3.4|^4.0|^5.0" 1657 | }, 1658 | "suggest": { 1659 | "psr/log-implementation": "To use logging capability in translator", 1660 | "symfony/config": "", 1661 | "symfony/yaml": "" 1662 | }, 1663 | "type": "library", 1664 | "autoload": { 1665 | "psr-4": { 1666 | "Symfony\\Component\\Translation\\": "" 1667 | }, 1668 | "exclude-from-classmap": [ 1669 | "/Tests/" 1670 | ] 1671 | }, 1672 | "notification-url": "https://packagist.org/downloads/", 1673 | "license": [ 1674 | "MIT" 1675 | ], 1676 | "authors": [ 1677 | { 1678 | "name": "Fabien Potencier", 1679 | "email": "fabien@symfony.com" 1680 | }, 1681 | { 1682 | "name": "Symfony Community", 1683 | "homepage": "https://symfony.com/contributors" 1684 | } 1685 | ], 1686 | "description": "Provides tools to internationalize your application", 1687 | "homepage": "https://symfony.com", 1688 | "support": { 1689 | "source": "https://github.com/symfony/translation/tree/v4.4.24" 1690 | }, 1691 | "funding": [ 1692 | { 1693 | "url": "https://symfony.com/sponsor", 1694 | "type": "custom" 1695 | }, 1696 | { 1697 | "url": "https://github.com/fabpot", 1698 | "type": "github" 1699 | }, 1700 | { 1701 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1702 | "type": "tidelift" 1703 | } 1704 | ], 1705 | "time": "2021-05-16T09:52:47+00:00" 1706 | }, 1707 | { 1708 | "name": "symfony/translation-contracts", 1709 | "version": "v2.4.0", 1710 | "source": { 1711 | "type": "git", 1712 | "url": "https://github.com/symfony/translation-contracts.git", 1713 | "reference": "95c812666f3e91db75385749fe219c5e494c7f95" 1714 | }, 1715 | "dist": { 1716 | "type": "zip", 1717 | "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/95c812666f3e91db75385749fe219c5e494c7f95", 1718 | "reference": "95c812666f3e91db75385749fe219c5e494c7f95", 1719 | "shasum": "" 1720 | }, 1721 | "require": { 1722 | "php": ">=7.2.5" 1723 | }, 1724 | "suggest": { 1725 | "symfony/translation-implementation": "" 1726 | }, 1727 | "type": "library", 1728 | "extra": { 1729 | "branch-alias": { 1730 | "dev-main": "2.4-dev" 1731 | }, 1732 | "thanks": { 1733 | "name": "symfony/contracts", 1734 | "url": "https://github.com/symfony/contracts" 1735 | } 1736 | }, 1737 | "autoload": { 1738 | "psr-4": { 1739 | "Symfony\\Contracts\\Translation\\": "" 1740 | } 1741 | }, 1742 | "notification-url": "https://packagist.org/downloads/", 1743 | "license": [ 1744 | "MIT" 1745 | ], 1746 | "authors": [ 1747 | { 1748 | "name": "Nicolas Grekas", 1749 | "email": "p@tchwork.com" 1750 | }, 1751 | { 1752 | "name": "Symfony Community", 1753 | "homepage": "https://symfony.com/contributors" 1754 | } 1755 | ], 1756 | "description": "Generic abstractions related to translation", 1757 | "homepage": "https://symfony.com", 1758 | "keywords": [ 1759 | "abstractions", 1760 | "contracts", 1761 | "decoupling", 1762 | "interfaces", 1763 | "interoperability", 1764 | "standards" 1765 | ], 1766 | "support": { 1767 | "source": "https://github.com/symfony/translation-contracts/tree/v2.4.0" 1768 | }, 1769 | "funding": [ 1770 | { 1771 | "url": "https://symfony.com/sponsor", 1772 | "type": "custom" 1773 | }, 1774 | { 1775 | "url": "https://github.com/fabpot", 1776 | "type": "github" 1777 | }, 1778 | { 1779 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1780 | "type": "tidelift" 1781 | } 1782 | ], 1783 | "time": "2021-03-23T23:28:01+00:00" 1784 | }, 1785 | { 1786 | "name": "vlucas/phpdotenv", 1787 | "version": "v5.3.0", 1788 | "source": { 1789 | "type": "git", 1790 | "url": "https://github.com/vlucas/phpdotenv.git", 1791 | "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56" 1792 | }, 1793 | "dist": { 1794 | "type": "zip", 1795 | "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b3eac5c7ac896e52deab4a99068e3f4ab12d9e56", 1796 | "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56", 1797 | "shasum": "" 1798 | }, 1799 | "require": { 1800 | "ext-pcre": "*", 1801 | "graham-campbell/result-type": "^1.0.1", 1802 | "php": "^7.1.3 || ^8.0", 1803 | "phpoption/phpoption": "^1.7.4", 1804 | "symfony/polyfill-ctype": "^1.17", 1805 | "symfony/polyfill-mbstring": "^1.17", 1806 | "symfony/polyfill-php80": "^1.17" 1807 | }, 1808 | "require-dev": { 1809 | "bamarni/composer-bin-plugin": "^1.4.1", 1810 | "ext-filter": "*", 1811 | "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1" 1812 | }, 1813 | "suggest": { 1814 | "ext-filter": "Required to use the boolean validator." 1815 | }, 1816 | "type": "library", 1817 | "extra": { 1818 | "branch-alias": { 1819 | "dev-master": "5.3-dev" 1820 | } 1821 | }, 1822 | "autoload": { 1823 | "psr-4": { 1824 | "Dotenv\\": "src/" 1825 | } 1826 | }, 1827 | "notification-url": "https://packagist.org/downloads/", 1828 | "license": [ 1829 | "BSD-3-Clause" 1830 | ], 1831 | "authors": [ 1832 | { 1833 | "name": "Graham Campbell", 1834 | "email": "graham@alt-three.com", 1835 | "homepage": "https://gjcampbell.co.uk/" 1836 | }, 1837 | { 1838 | "name": "Vance Lucas", 1839 | "email": "vance@vancelucas.com", 1840 | "homepage": "https://vancelucas.com/" 1841 | } 1842 | ], 1843 | "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", 1844 | "keywords": [ 1845 | "dotenv", 1846 | "env", 1847 | "environment" 1848 | ], 1849 | "support": { 1850 | "issues": "https://github.com/vlucas/phpdotenv/issues", 1851 | "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.0" 1852 | }, 1853 | "funding": [ 1854 | { 1855 | "url": "https://github.com/GrahamCampbell", 1856 | "type": "github" 1857 | }, 1858 | { 1859 | "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", 1860 | "type": "tidelift" 1861 | } 1862 | ], 1863 | "time": "2021-01-20T15:23:13+00:00" 1864 | } 1865 | ], 1866 | "packages-dev": [ 1867 | { 1868 | "name": "squizlabs/php_codesniffer", 1869 | "version": "2.9.2", 1870 | "source": { 1871 | "type": "git", 1872 | "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", 1873 | "reference": "2acf168de78487db620ab4bc524135a13cfe6745" 1874 | }, 1875 | "dist": { 1876 | "type": "zip", 1877 | "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", 1878 | "reference": "2acf168de78487db620ab4bc524135a13cfe6745", 1879 | "shasum": "" 1880 | }, 1881 | "require": { 1882 | "ext-simplexml": "*", 1883 | "ext-tokenizer": "*", 1884 | "ext-xmlwriter": "*", 1885 | "php": ">=5.1.2" 1886 | }, 1887 | "require-dev": { 1888 | "phpunit/phpunit": "~4.0" 1889 | }, 1890 | "bin": [ 1891 | "scripts/phpcs", 1892 | "scripts/phpcbf" 1893 | ], 1894 | "type": "library", 1895 | "extra": { 1896 | "branch-alias": { 1897 | "dev-master": "2.x-dev" 1898 | } 1899 | }, 1900 | "autoload": { 1901 | "classmap": [ 1902 | "CodeSniffer.php", 1903 | "CodeSniffer/CLI.php", 1904 | "CodeSniffer/Exception.php", 1905 | "CodeSniffer/File.php", 1906 | "CodeSniffer/Fixer.php", 1907 | "CodeSniffer/Report.php", 1908 | "CodeSniffer/Reporting.php", 1909 | "CodeSniffer/Sniff.php", 1910 | "CodeSniffer/Tokens.php", 1911 | "CodeSniffer/Reports/", 1912 | "CodeSniffer/Tokenizers/", 1913 | "CodeSniffer/DocGenerators/", 1914 | "CodeSniffer/Standards/AbstractPatternSniff.php", 1915 | "CodeSniffer/Standards/AbstractScopeSniff.php", 1916 | "CodeSniffer/Standards/AbstractVariableSniff.php", 1917 | "CodeSniffer/Standards/IncorrectPatternException.php", 1918 | "CodeSniffer/Standards/Generic/Sniffs/", 1919 | "CodeSniffer/Standards/MySource/Sniffs/", 1920 | "CodeSniffer/Standards/PEAR/Sniffs/", 1921 | "CodeSniffer/Standards/PSR1/Sniffs/", 1922 | "CodeSniffer/Standards/PSR2/Sniffs/", 1923 | "CodeSniffer/Standards/Squiz/Sniffs/", 1924 | "CodeSniffer/Standards/Zend/Sniffs/" 1925 | ] 1926 | }, 1927 | "notification-url": "https://packagist.org/downloads/", 1928 | "license": [ 1929 | "BSD-3-Clause" 1930 | ], 1931 | "authors": [ 1932 | { 1933 | "name": "Greg Sherwood", 1934 | "role": "lead" 1935 | } 1936 | ], 1937 | "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", 1938 | "homepage": "http://www.squizlabs.com/php-codesniffer", 1939 | "keywords": [ 1940 | "phpcs", 1941 | "standards" 1942 | ], 1943 | "support": { 1944 | "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", 1945 | "source": "https://github.com/squizlabs/PHP_CodeSniffer", 1946 | "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" 1947 | }, 1948 | "time": "2018-11-07T22:31:41+00:00" 1949 | } 1950 | ], 1951 | "aliases": [], 1952 | "minimum-stability": "stable", 1953 | "stability-flags": [], 1954 | "prefer-stable": false, 1955 | "prefer-lowest": false, 1956 | "platform": { 1957 | "php": ">=7.1" 1958 | }, 1959 | "platform-dev": [], 1960 | "plugin-api-version": "2.0.0" 1961 | } 1962 | -------------------------------------------------------------------------------- /config/assets.php: -------------------------------------------------------------------------------- 1 | get_theme_file_path() . '/dist/assets.json', 18 | 19 | /* 20 | |-------------------------------------------------------------------------- 21 | | Assets Path URI 22 | |-------------------------------------------------------------------------- 23 | | 24 | | The asset manifest contains relative paths to your assets. This URI will 25 | | be prepended when using Sage's asset management system. Change this if 26 | | you are using a CDN. 27 | | 28 | */ 29 | 30 | 'uri' => get_theme_file_uri() . '/dist', 31 | ]; 32 | -------------------------------------------------------------------------------- /config/theme.php: -------------------------------------------------------------------------------- 1 | get_theme_file_path(), 18 | 19 | /* 20 | |-------------------------------------------------------------------------- 21 | | Theme Directory URI 22 | |-------------------------------------------------------------------------- 23 | | 24 | | This is the web server URI to your theme directory. 25 | | 26 | | Example: 27 | | https://example.com/app/themes/sage 28 | | 29 | */ 30 | 31 | 'uri' => get_theme_file_uri(), 32 | ]; 33 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 16 | get_theme_file_path() . '/resources/views', 17 | get_parent_theme_file_path() . '/resources/views', 18 | ], 19 | 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Compiled View Path 24 | |-------------------------------------------------------------------------- 25 | | 26 | | This option determines where all the compiled Blade templates will be 27 | | stored for your application. Typically, this is within the uploads 28 | | directory. However, as usual, you are free to change this value. 29 | | 30 | */ 31 | 32 | 'compiled' => wp_upload_dir()['basedir'] . '/cache', 33 | 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | View Namespaces 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Blade has an underutilized feature that allows developers to add 41 | | supplemental view paths that may contain conflictingly named views. 42 | | These paths are prefixed with a namespace to get around the conflicts. 43 | | A use case might be including views from within a plugin folder. 44 | | 45 | */ 46 | 47 | 'namespaces' => [ 48 | /* Given the below example, in your views use something like: @include('WC::some.view.or.partial.here') */ 49 | // 'WC' => WP_PLUGIN_DIR.'/woocommerce/templates/', 50 | ], 51 | ]; 52 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sage-vite", 3 | "version": "9.0.9", 4 | "authors": [ 5 | "Roots9 | 16 |
5 | 6 |
{$title}
{$subtitle}
{$message}
{$footer}
"; 20 | wp_die($message, $title); 21 | }; 22 | 23 | /** 24 | * Ensure compatible version of PHP is used 25 | */ 26 | if (version_compare('7.1', phpversion(), '>=')) { 27 | $sage_error(__('You must be using PHP 7.1 or greater.', 'sage'), __('Invalid PHP version', 'sage')); 28 | } 29 | 30 | /** 31 | * Ensure compatible version of WordPress is used 32 | */ 33 | if (version_compare('4.7.0', get_bloginfo('version'), '>=')) { 34 | $sage_error(__('You must be using WordPress 4.7.0 or greater.', 'sage'), __('Invalid WordPress version', 'sage')); 35 | } 36 | 37 | /** 38 | * Ensure dependencies are loaded 39 | */ 40 | if (!class_exists('Roots\\Sage\\Container')) { 41 | if (!file_exists($composer = __DIR__ . '/../vendor/autoload.php')) { 42 | $sage_error( 43 | __('You must runcomposer install
from the Sage directory.', 'sage'),
44 | __('Autoloader not found.', 'sage')
45 | );
46 | }
47 | require_once $composer;
48 | }
49 |
50 | /**
51 | * Sage required files
52 | *
53 | * The mapped array determines the code library included in your theme.
54 | * Add or remove files to the array as needed. Supports child theme overrides.
55 | */
56 | array_map(function ($file) use ($sage_error) {
57 | $file = "../app/{$file}.php";
58 | if (!locate_template($file, true, true)) {
59 | $sage_error(sprintf(__('Error locating %s
for inclusion.', 'sage'), $file), 'File not found');
60 | }
61 | }, ['helpers', 'setup', 'filters', 'admin']);
62 |
63 | /**
64 | * Here's what's happening with these hooks:
65 | * 1. WordPress initially detects theme in themes/sage/resources
66 | * 2. Upon activation, we tell WordPress that the theme is actually in themes/sage/resources/views
67 | * 3. When we call get_template_directory() or get_template_directory_uri(), we point it back to themes/sage/resources
68 | *
69 | * We do this so that the Template Hierarchy will look in themes/sage/resources/views for core WordPress themes
70 | * But functions.php, style.css, and index.php are all still located in themes/sage/resources
71 | *
72 | * This is not compatible with the WordPress Customizer theme preview prior to theme activation
73 | *
74 | * get_template_directory() -> /srv/www/example.com/current/web/app/themes/sage/resources
75 | * get_stylesheet_directory() -> /srv/www/example.com/current/web/app/themes/sage/resources
76 | * locate_template()
77 | * ├── STYLESHEETPATH -> /srv/www/example.com/current/web/app/themes/sage/resources/views
78 | * └── TEMPLATEPATH -> /srv/www/example.com/current/web/app/themes/sage/resources
79 | */
80 | array_map(
81 | 'add_filter',
82 | ['theme_file_path', 'theme_file_uri', 'parent_theme_file_path', 'parent_theme_file_uri'],
83 | array_fill(0, 4, 'dirname')
84 | );
85 | Container::getInstance()
86 | ->bindIf('config', function () {
87 | return new Config([
88 | 'assets' => require dirname(__DIR__) . '/config/assets.php',
89 | 'theme' => require dirname(__DIR__) . '/config/theme.php',
90 | 'view' => require dirname(__DIR__) . '/config/view.php',
91 | ]);
92 | }, true);
93 |
94 | include __DIR__ . '/functions-default.php';
95 | include __DIR__ . '/functions-app.php';
96 |
--------------------------------------------------------------------------------
/resources/index.php:
--------------------------------------------------------------------------------
1 |
8 | 404
9 | {{ __('Sorry, but the page you were trying to view was not found.', 'sage') }}
10 | {!! get_search_form(false) !!}
11 | @endif
12 | @endsection
13 |
--------------------------------------------------------------------------------
/resources/views/front-page.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 | @while(have_posts()) @php the_post() @endphp
5 | @include('partials.content-page')
6 |
{!! sprintf(_nx('One response to “%2$s”', '%1$s responses to “%2$s”', get_comments_number(), 'comments title', 'sage'), number_format_i18n(get_comments_number()), '' . get_the_title() . '') !!} 11 |
12 | 13 |{!! wp_list_comments(['style' => 'ol', 'short_ping' => true]) !!} 14 |
15 | 16 | @if (get_comment_pages_count() > 1 && get_option('page_comments')) 17 | 27 | @endif 28 | @endif 29 | 30 | @if (!comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments')) 31 |