Skip to content

Commit 96d0cc6

Browse files
committed
Code style improvements
1 parent 57f478b commit 96d0cc6

File tree

15 files changed

+29
-28
lines changed

15 files changed

+29
-28
lines changed

Model/Post.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ public function getShortFilteredContent($len = null, $endСharacters = null)
519519
}
520520

521521
return $this->getData($key);
522-
;
523522
}
524523

525524
/**

view/frontend/templates/addthis-js.phtml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
* Glory to Ukraine! Glory to the heroes!
77
*/
88
?>
9-
9+
<?php
10+
/** @var $block \Magefan\Blog\Block\Social\AddThis */
11+
?>
1012
<script type="text/javascript">
1113
var addthis_config = {
12-
"ui_language": '<?php echo $this->getAddThisLanguage(); ?>',
14+
"ui_language": '<?php echo $block->getAddThisLanguage() ?>',
1315
"data_track_clickback":false
1416
}
1517
</script>
16-
<script type="text/javascript" async src="<?php echo '/' . '/' ?>s7.addthis.com/js/250/addthis_widget.js#pubid=<?php echo $this->getAddThisPubId(); ?>"></script>
18+
<script type="text/javascript" async src="<?php echo '/' . '/' ?>s7.addthis.com/js/250/addthis_widget.js#pubid=<?php echo $block->getAddThisPubId() ?>"></script>

view/frontend/templates/category/info.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
*/
1515
?>
1616

17-
<?php if ($content = $this->getContent()): ?>
17+
<?php if ($content = $block->getContent()) : ?>
1818
<div class="category-content"><?php echo $content ?></div>
19-
<?php endif; ?>
19+
<?php endif ?>

view/frontend/templates/post/info.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<?php } ?>
3434
</div>
3535
<?php } ?>
36-
<?php if ($this->magefanCommentsEnabled() && $_post->getCommentsCount()) { ?>
36+
<?php if ($block->magefanCommentsEnabled() && $_post->getCommentsCount()) { ?>
3737
<div class="dash">|</div>
3838
<div class="item post-comments">
3939
<span class="label"><?php echo __('Comments:') ?></span>

view/frontend/templates/post/list.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ $_postCollection = $block->getPostCollection();
3737
</div>
3838

3939
<?php echo $block->getToolbarHtml() ?>
40-
<?php echo $this->getChildHtml('addthisJs'); ?>
40+
<?php echo $block->getChildHtml('addthisJs'); ?>
4141
<?php endif; ?>

view/frontend/templates/post/list/item.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
?>
1616
<?php
17-
$_post = $this->getPost();
17+
$_post = $block->getPost();
1818
$_postUrl = $_post->getPostUrl();
1919
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
2020
?>
@@ -42,7 +42,7 @@
4242
</div>
4343
</div>
4444

45-
<?php echo $this->getInfoHtml() ?>
45+
<?php echo $block->getInfoHtml() ?>
4646
</div>
4747

4848
<div class="post-content">

view/frontend/templates/post/view.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
*/
1515
?>
1616
<?php
17-
$_post = $this->getPost();
17+
$_post = $block->getPost();
1818
$_postUrl = $_post->getPostUrl();
19-
$_postName = $block->escapeHtml($_post->getTitle(), null, true);
19+
$_postName = $block->escapeHtml($_post->getTitle(), null);
2020
?>
2121
<div class="post-view">
2222
<div class="post-holder post-holder-<?php echo $_post->getId() ?>">
@@ -27,7 +27,7 @@
2727
<a class="addthis_button_email"></a>
2828
<a class="addthis_button_compact"></a>
2929
</div>
30-
<?php echo $this->getInfoHtml() ?>
30+
<?php echo $block->getInfoHtml() ?>
3131
</div>
3232

3333
<div class="post-content">
@@ -45,7 +45,7 @@
4545
</div>
4646

4747
<div class="post-bottom">
48-
<?php echo $this->getChildHtml('blog.post.bottom') ?>
48+
<?php echo $block->getChildHtml('blog.post.bottom') ?>
4949
</div>
5050
</div>
5151
</div>

view/frontend/templates/post/view/nextprev.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
<?php if ($block->displayLinks()) { ?>
1818
<?php
19-
$prevPost = $this->getPrevPost();
20-
$nextPost = $this->getNextPost();
19+
$prevPost = $block->getPrevPost();
20+
$nextPost = $block->getNextPost();
2121
?>
2222
<?php if ($prevPost || $nextPost) { ?>
2323
<div class="post-nextprev-hld clearfix">

view/frontend/templates/post/view/relatedproducts.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
?>
1616

1717
<?php
18-
if ($exist = $block->getItems()->getSize() && $this->displayProducts()) {
18+
if ($exist = $block->getItems()->getSize() && $block->displayProducts()) {
1919
$type = 'related';
2020
$class = $type;
2121

view/frontend/templates/sidebar/categories.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
?>
1616

17-
<?php $items = $this->getGroupedChilds(); ?>
17+
<?php $items = $block->getGroupedChilds(); ?>
1818

1919
<?php if (count($items)) { ?>
2020

0 commit comments

Comments
 (0)