Skip to content

Commit 3d8b59e

Browse files
committed
updated escape html code
1 parent d79f7a3 commit 3d8b59e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2552
-2552
lines changed

view/frontend/templates/archive.phtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $archiveblockTitle = $helper->getConfig('sidebar/archiveblock_title');
88
<div class="ves-block block blog-archive">
99
<?php if($archiveblockTitle){ ?>
1010
<div class="block-title">
11-
<strong><?php echo __($archiveblockTitle) ?></strong>
11+
<strong><?= __($archiveblockTitle) ?></strong>
1212
</div>
1313
<?php } ?>
1414
<div class="block-content blog-widget-content">
@@ -20,12 +20,12 @@ $archiveblockTitle = $helper->getConfig('sidebar/archiveblock_title');
2020
$title = $block->escapeHtml($title, null, true);
2121
?>
2222
<div class="item">
23-
<a title="<?php echo __('Archive ') . $title ?>" class="archive-item-link" href="<?php echo $block->getTimeUrl($time['time']) ?>">
24-
<i class="fa fa-angle-right"></i> <?php echo $title; ?>
23+
<a title="<?= __('Archive ') . $title ?>" class="archive-item-link" href="<?= $block->getTimeUrl($time['time']) ?>">
24+
<i class="fa fa-angle-right"></i> <?= $title; ?>
2525
</a>
26-
<span>(<?php echo $time['count']; ?>)</span>
26+
<span>(<?= $time['count']; ?>)</span>
2727
</div>
2828
<?php } ?>
2929
</div>
3030
</div>
31-
<?php } ?>
31+
<?php } ?>
Lines changed: 110 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,110 @@
1-
<?php
2-
$collection = $this->getCollection();
3-
$helper = $this->helper("Ves\Blog\Helper\Data");
4-
$imageHelper = $this->helper("Ves\Blog\Helper\Image");
5-
6-
/** General Settings **/
7-
$maincontainer_selector = $helper->getConfig("general_settings/maincontainer_selector");
8-
$maincontainer_selector = $maincontainer_selector?$maincontainer_selector:'.column.main';
9-
$dateFormat = $this->getConfig("general_settings/dateformat");
10-
$twitterUsername = $this->getConfig("general_settings/twitter_username");
11-
$enableNetworks = $this->getConfig("general_settings/enable_networks");
12-
$networks = array_flip(explode(",", $this->getConfig("general_settings/networks")));
13-
$layout = $this->getConfig("blog_page/layout_type");
14-
$show_toolbartop = $this->getConfig("blog_page/show_toolbartop");
15-
$show_toolbarbottom = $this->getConfig("blog_page/show_toolbarbottom");
16-
$postsStyles = $this->getConfig('blog_page/posts_styles');
17-
18-
$itemsperpage = (int)$this->getConfig('blog_page/item_per_page',20);
19-
$lg_column_item = (int)$this->getConfig('blog_page/lg_column_item',6);
20-
$md_column_item = (int)$this->getConfig('blog_page/md_column_item',6);
21-
$sm_column_item = (int)$this->getConfig('blog_page/sm_column_item',6);
22-
$xs_column_item = (int)$this->getConfig('blog_page/xs_column_item',6);
23-
$lg_column = 12/$lg_column_item;
24-
$md_column = 12/$md_column_item;
25-
$sm_column = 12/$sm_column_item;
26-
$xs_column = 12/$xs_column_item;
27-
28-
/** POST Settings **/
29-
$show_image = $this->getConfig("blog_page/show_image");
30-
$keep_ratio = $this->getConfig("blog_page/keep_ratio");
31-
$keep_frame = $this->getConfig("blog_page/keep_frame");
32-
$image_width = (int)$this->getConfig("blog_page/image_width");
33-
$image_height = (int)$this->getConfig("blog_page/image_height");
34-
$show_title = $this->getConfig("blog_page/show_title");
35-
$show_shortdescription = $this->getConfig("blog_page/show_shortdescription");
36-
$shortdescription_count = $this->getConfig("blog_page/shortdescription_count");
37-
$show_readmorelink = $this->getConfig("blog_page/show_readmorelink");
38-
$show_categories = $this->getConfig("blog_page/show_categories");
39-
$show_author = $this->getConfig("blog_page/show_author");
40-
$show_commentcount = $this->getConfig("blog_page/show_commentcount");
41-
$disable_comment = $this->getConfig('general_settings/disable_comment');
42-
if($disable_comment) {
43-
$show_commentcount = false;
44-
}
45-
$show_updatedtime = $this->getConfig("blog_page/show_updatedtime");
46-
$show_createdtime = $this->getConfig("blog_page/show_createdtime");
47-
$show_hits = $this->getConfig("blog_page/show_hits");
48-
$show_image = $this->getConfig("blog_page/show_image");
49-
$show_tags = $this->getConfig("blog_page/show_tags");
50-
$blockId = 'blog-' . $layout . time();
51-
?>
52-
53-
<?php if($collection->count()){ ?>
54-
<?php $total = count($collection->getItems()); ?>
55-
<div class="ves-blog post-list postsstyle-<?php echo $postsStyles ?>">
56-
<?php if($show_toolbartop){ ?>
57-
<div class="blog-toolbar">
58-
<?php echo $block->getChildHtml('toolbar'); ?>
59-
</div>
60-
<?php } ?>
61-
<div class="blog-<?php echo $layout ?> <?php echo $blockId; ?> blog-posts">
62-
<?php echo $this->getPostsBlock(); ?>
63-
</div>
64-
<?php if($show_toolbarbottom){ ?>
65-
<div class="blog-toolbar">
66-
<?php echo $block->getChildHtml('toolbar'); ?>
67-
</div>
68-
<?php } ?>
69-
</div>
70-
<?php if($layout=='masonry'){ ?>
71-
<script>
72-
function initBlogMasonryLayout($, Masonry){
73-
var width = $(window).width();
74-
var column = <?php echo $lg_column_item ?>;
75-
if(width<480){
76-
column = <?php echo $xs_column_item ?>;
77-
w = w - 20;
78-
}
79-
if(width>=480){
80-
column = <?php echo $sm_column_item ?>;
81-
}
82-
if(width>=992){
83-
column = <?php echo $md_column_item ?>;
84-
}
85-
if(width>=1200){
86-
column = <?php echo $lg_column_item ?>;
87-
}
88-
var w = $('<?php echo $maincontainer_selector ; ?>').width() + 20;
89-
$('.<?php echo $blockId; ?>').css({"width":w+"px"});
90-
var masoW = 100/column;
91-
$('.blog-masonry .post-item').css({"width":masoW+"%","margin-bottom":"20px"});
92-
new Masonry( '.blog-masonry', {
93-
itemSelector: '.post-item'
94-
});
95-
$('.blog-masonry').css('visibility', 'visible');
96-
}
97-
require([
98-
'jquery',
99-
'Ves_Blog/js/masonry.pkgd.min'
100-
], function($, Masonry){
101-
jQuery(document).ready(function($) {
102-
$(window).on("resize", function(){
103-
initBlogMasonryLayout($, Masonry);
104-
}).resize();
105-
});
106-
});
107-
</script>
108-
<?php } ?>
109-
110-
<?php } ?>
1+
<?php
2+
$collection = $this->getCollection();
3+
$helper = $this->helper("Ves\Blog\Helper\Data");
4+
$imageHelper = $this->helper("Ves\Blog\Helper\Image");
5+
6+
/** General Settings **/
7+
$maincontainer_selector = $helper->getConfig("general_settings/maincontainer_selector");
8+
$maincontainer_selector = $maincontainer_selector?$maincontainer_selector:'.column.main';
9+
$dateFormat = $this->getConfig("general_settings/dateformat");
10+
$twitterUsername = $this->getConfig("general_settings/twitter_username");
11+
$enableNetworks = $this->getConfig("general_settings/enable_networks");
12+
$networks = array_flip(explode(",", $this->getConfig("general_settings/networks")));
13+
$layout = $this->getConfig("blog_page/layout_type");
14+
$show_toolbartop = $this->getConfig("blog_page/show_toolbartop");
15+
$show_toolbarbottom = $this->getConfig("blog_page/show_toolbarbottom");
16+
$postsStyles = $this->getConfig('blog_page/posts_styles');
17+
18+
$itemsperpage = (int)$this->getConfig('blog_page/item_per_page',20);
19+
$lg_column_item = (int)$this->getConfig('blog_page/lg_column_item',6);
20+
$md_column_item = (int)$this->getConfig('blog_page/md_column_item',6);
21+
$sm_column_item = (int)$this->getConfig('blog_page/sm_column_item',6);
22+
$xs_column_item = (int)$this->getConfig('blog_page/xs_column_item',6);
23+
$lg_column = 12/$lg_column_item;
24+
$md_column = 12/$md_column_item;
25+
$sm_column = 12/$sm_column_item;
26+
$xs_column = 12/$xs_column_item;
27+
28+
/** POST Settings **/
29+
$show_image = $this->getConfig("blog_page/show_image");
30+
$keep_ratio = $this->getConfig("blog_page/keep_ratio");
31+
$keep_frame = $this->getConfig("blog_page/keep_frame");
32+
$image_width = (int)$this->getConfig("blog_page/image_width");
33+
$image_height = (int)$this->getConfig("blog_page/image_height");
34+
$show_title = $this->getConfig("blog_page/show_title");
35+
$show_shortdescription = $this->getConfig("blog_page/show_shortdescription");
36+
$shortdescription_count = $this->getConfig("blog_page/shortdescription_count");
37+
$show_readmorelink = $this->getConfig("blog_page/show_readmorelink");
38+
$show_categories = $this->getConfig("blog_page/show_categories");
39+
$show_author = $this->getConfig("blog_page/show_author");
40+
$show_commentcount = $this->getConfig("blog_page/show_commentcount");
41+
$disable_comment = $this->getConfig('general_settings/disable_comment');
42+
if($disable_comment) {
43+
$show_commentcount = false;
44+
}
45+
$show_updatedtime = $this->getConfig("blog_page/show_updatedtime");
46+
$show_createdtime = $this->getConfig("blog_page/show_createdtime");
47+
$show_hits = $this->getConfig("blog_page/show_hits");
48+
$show_image = $this->getConfig("blog_page/show_image");
49+
$show_tags = $this->getConfig("blog_page/show_tags");
50+
$blockId = 'blog-' . $layout . time();
51+
?>
52+
53+
<?php if($collection->count()){ ?>
54+
<?php $total = count($collection->getItems()); ?>
55+
<div class="ves-blog post-list postsstyle-<?= $postsStyles ?>">
56+
<?php if($show_toolbartop){ ?>
57+
<div class="blog-toolbar">
58+
<?= $block->getChildHtml('toolbar'); ?>
59+
</div>
60+
<?php } ?>
61+
<div class="blog-<?= $layout ?> <?= $blockId; ?> blog-posts">
62+
<?= $this->getPostsBlock(); ?>
63+
</div>
64+
<?php if($show_toolbarbottom){ ?>
65+
<div class="blog-toolbar">
66+
<?= $block->getChildHtml('toolbar'); ?>
67+
</div>
68+
<?php } ?>
69+
</div>
70+
<?php if($layout=='masonry'){ ?>
71+
<script>
72+
function initBlogMasonryLayout($, Masonry){
73+
var width = $(window).width();
74+
var column = <?= $lg_column_item ?>;
75+
if(width<480){
76+
column = <?= $xs_column_item ?>;
77+
w = w - 20;
78+
}
79+
if(width>=480){
80+
column = <?= $sm_column_item ?>;
81+
}
82+
if(width>=992){
83+
column = <?= $md_column_item ?>;
84+
}
85+
if(width>=1200){
86+
column = <?= $lg_column_item ?>;
87+
}
88+
var w = $('<?= $maincontainer_selector ; ?>').width() + 20;
89+
$('.<?= $blockId; ?>').css({"width":w+"px"});
90+
var masoW = 100/column;
91+
$('.blog-masonry .post-item').css({"width":masoW+"%","margin-bottom":"20px"});
92+
new Masonry( '.blog-masonry', {
93+
itemSelector: '.post-item'
94+
});
95+
$('.blog-masonry').css('visibility', 'visible');
96+
}
97+
require([
98+
'jquery',
99+
'Ves_Blog/js/masonry.pkgd.min'
100+
], function($, Masonry){
101+
jQuery(document).ready(function($) {
102+
$(window).on("resize", function(){
103+
initBlogMasonryLayout($, Masonry);
104+
}).resize();
105+
});
106+
});
107+
</script>
108+
<?php } ?>
109+
110+
<?php } ?>

view/frontend/templates/author/list.phtml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,38 @@ $blockId = 'blog-list'. time();
77
<?php if($collection->count()){ ?>
88
<?php $total = count($collection->getItems()); ?>
99
<div class="ves-blog authors-list">
10-
<div class="blog-list <?php echo $blockId; ?> blog-authors">
10+
<div class="blog-list <?= $blockId; ?> blog-authors">
1111
<!-- List author: name with link, avatar, number posts, social, website -->
1212
<ul class="authors-listing">
1313
<?php $i = 1; ?>
1414
<?php foreach($collection as $author) { ?>
1515
<?php $class = (($i/2)==0)?'list-obb':''; $i++; ?>
16-
<li <?php echo $class?('class="'.$class.'"'):''; ?>>
16+
<li <?= $class?('class="'.$class.'"'):''; ?>>
1717
<div id="author-box">
18-
<div class="block-title"><h2><a href="<?php echo $helper->getAuthorUrl($author); ?>" title="<?php echo $author->getNickName() ?>"><?php echo $author->getNickName(); ?></a></h2></div>
18+
<div class="block-title"><h2><a href="<?= $helper->getAuthorUrl($author); ?>" title="<?= $author->getNickName() ?>"><?= $author->getNickName(); ?></a></h2></div>
1919
<div class="block-content">
2020
<?php if($avatar = $author->getAvatar()){ ?>
2121
<div class="author-avatar">
22-
<a href="<?php echo $helper->getAuthorUrl($author); ?>" title="<?php echo $author->getNickName() ?>">
23-
<img src="<?php echo $imageHelper->resizeImage($avatar, 125, 125) ?>" alt="" height="125" width="125">
22+
<a href="<?= $helper->getAuthorUrl($author); ?>" title="<?= $author->getNickName() ?>">
23+
<img src="<?= $imageHelper->resizeImage($avatar, 125, 125) ?>" alt="" height="125" width="125">
2424
</a>
2525
</div>
2626
<?php } ?>
2727

2828
<?php if($number_posts = $author->getTotalPosts()){ ?>
29-
<div class="author-posts"><a href="<?php echo $helper->getAuthorUrl($author); ?>" title="<?php echo __("View all posts") ?>"><?php echo __("%1 posts", $number_posts); ?></a></div>
29+
<div class="author-posts"><a href="<?= $helper->getAuthorUrl($author); ?>" title="<?= __("View all posts") ?>"><?= __("%1 posts", $number_posts); ?></a></div>
3030
<?php } ?>
3131

3232
<?php if($bio = $author->getDescription()){ ?>
33-
<div class="author-description"><?php echo $helper->filter($bio) ?></div>
33+
<div class="author-description"><?= $helper->filter($bio) ?></div>
3434
<?php } ?>
3535

3636
<?php $authorSocials = unserialize($author->getSocialNetworks()); ?>
3737
<?php if(!empty($authorSocials)){ ?>
3838
<div class="author-social flat-social">
3939
<?php foreach ($authorSocials as $k => $v) { ?>
4040
<?php if(trim($v)!=''){ ?>
41-
<a class="social-<?php echo $k ?>" href="<?php echo $v; ?>"><i class="fa fa-<?php echo $k ?>"></i></a>
41+
<a class="social-<?= $k ?>" href="<?= $v; ?>"><i class="fa fa-<?= $k ?>"></i></a>
4242
<?php } ?>
4343
<?php } ?>
4444
</div>
@@ -50,7 +50,7 @@ $blockId = 'blog-list'. time();
5050
</ul>
5151
</div>
5252
<div class="blog-toolbar">
53-
<?php echo $block->getChildHtml('toolbar'); ?>
53+
<?= $block->getChildHtml('toolbar'); ?>
5454
</div>
5555
</div>
56-
<?php } ?>
56+
<?php } ?>

0 commit comments

Comments
 (0)