Skip to content

Commit

Permalink
https://github.com/cabinetsbay/core/issues/6
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 7, 2024
1 parent 373aec4 commit 408fcb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/Sharapov/Cabinetsbay/Block/Category/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ function images():array {$r = []; /** @var array(string => string) $r */
* 2024-03-13 Dmitrii Fediuk https://upwork.com/fl/mage2pro
* 1) "Refactor the `Sharapov_Cabinetsbay` module": https://github.com/cabinetsbay/site/issues/98
* 2) I use `(int)` because @uses \Magento\Framework\Model\AbstractModel::getId() return a string.
* @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml
* @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml
*/
function isPA():bool {return 4036 === (int)$this->getCurrentCategory()->getId();}

/**
* 2024-03-13 Dmitrii Fediuk https://upwork.com/fl/mage2pro
* 1) "Refactor the `Sharapov_Cabinetsbay` module": https://github.com/cabinetsbay/site/issues/98
* 2) I use `(int)` because @uses \Magento\Framework\Model\AbstractModel::getId() return a string.
* @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml
* @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml
*/
function isRTA():bool {return 3411 === (int)$this->getCurrentCategory()->getId();}

/**
* 2024-03-10 Dmitrii Fediuk https://upwork.com/fl/mage2pro
* "Refactor the `Sharapov_Cabinetsbay` module": https://github.com/cabinetsbay/site/issues/98
* @see cb_category_is_l2()
* @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml
* @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml
*/
function level():int {return df_category_level($this->getCurrentCategory());}

Expand All @@ -63,7 +63,7 @@ function level():int {return df_category_level($this->getCurrentCategory());}
* @used-by self::images()
* @used-by self::l3a()
* @used-by self:l3p()
* @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml
* @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml
* @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/tabs/overview.phtml (https://github.com/cabinetsbay/site/issues/105)
*/
function l3():?C {return dfc($this, function() {return df_category_ancestor_at_level($this->getCurrentCategory(), 3);});}
Expand Down

0 comments on commit 408fcb2

Please sign in to comment.