PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / classes / Functions.php

Functions.php in Post Grid Gutenberg Blocks – PostX 2.2.5, at classes/Functions.php

540 lines 23.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ULTP;
3
4 defined('ABSPATH') || exit;
5
6 class Functions{
7
8 public function __construct(){
9 $GLOBALS['ultp_settings'] = get_option('ultp_options');
10 }
11
12 public function get_premium_link( $url = 'https://www.wpxpo.com/postx/' ) {
13 $affiliate_id = apply_filters( 'ultp_affiliate_id', FALSE );
14 $arg = array( 'utm_source' => 'go_premium' );
15 if ( ! empty( $affiliate_id ) ) {
16 $arg[ 'ref' ] = esc_attr( $affiliate_id );
17 }
18 return add_query_arg( $arg, $url );
19 }
20
21
22 // Get Size of the Image
23 public function get_size($name = ''){
24 global $_wp_additional_image_sizes;
25 $image_size = $name ? ( isset($_wp_additional_image_sizes[$name]) ? $_wp_additional_image_sizes[$name] : array_values($_wp_additional_image_sizes)[0] ) : array_values($_wp_additional_image_sizes)[0];
26
27 return ' width="'.$image_size['width'].'" height="'.$image_size['height'].'" ';
28 }
29
30 // Image Placeholder
31 public function img_placeholder($type = 'small') {
32 switch ($type) {
33 case 'small':
34 return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAABLAQMAAACr9CA9AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABZJREFUOI1jYMADmEe5o9xR7iiXQi4A4BsA388WUyMAAAAASUVORK5CYII=';
35 break;
36
37 case 'wide':
38 return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAKCAYAAADVTVykAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB9JREFUeNpi/P//P8NAAiaGAQajDhh1wKgDRh0AEGAAQTcDEcKDrpMAAAAASUVORK5CYII=';
39 break;
40
41 case 'square':
42 return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAApJREFUCJljYAAAAAIAAfRxZKYAAAAASUVORK5CYII=';
43 break;
44
45 case 'slider':
46 return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKYAAABkCAMAAAA7drv6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////AAAAVcLTfgAAAAF0Uk5TAEDm2GYAAAAqSURBVHja7MEBDQAAAMKg909tDjegAAAAAAAAAAAAAAAAAAAAAH5NgAEAQTwAAWZtItYAAAAASUVORK5CYII=';
47 break;
48
49 default:
50 return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAADcAQMAAABOLJSDAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACJJREFUaIHtwTEBAAAAwqD1T20ND6AAAAAAAAAAAAAA4N8AKvgAAUFIrrEAAAAASUVORK5CYII=';
51 break;
52 }
53 }
54
55 // Quick Query
56 public function get_quick_query($prams, $args) {
57 switch ($prams['queryQuick']) {
58 case 'sticky_posts':
59 $args['post__in'] = get_option('sticky_posts');
60 break;
61 case 'latest_post_published':
62 $args['orderby'] = 'date';
63 $args['order'] = 'DESC';
64 break;
65 case 'latest_post_modified':
66 $args['orderby'] = 'modified';
67 $args['order'] = 'DESC';
68 break;
69 case 'oldest_post_published':
70 $args['orderby'] = 'date';
71 $args['order'] = 'ASC';
72 break;
73 case 'oldest_post_modified':
74 $args['orderby'] = 'modified';
75 $args['order'] = 'ASC';
76 break;
77 case 'alphabet_asc':
78 $args['orderby'] = 'title';
79 $args['order'] = 'ASC';
80 break;
81 case 'alphabet_desc':
82 $args['orderby'] = 'title';
83 $args['order'] = 'DESC';
84 break;
85 case 'random_post':
86 $args['orderby'] = 'rand';
87 $args['order'] = 'ASC';
88 break;
89 case 'random_post_7_days':
90 $args['orderby'] = 'rand';
91 $args['order'] = 'ASC';
92 $args['date_query'] = array( array( 'after' => '1 week ago') );
93 break;
94 case 'random_post_30_days':
95 $args['orderby'] = 'rand';
96 $args['order'] = 'ASC';
97 $args['date_query'] = array( array( 'after' => '1 month ago') );
98 break;
99 case 'most_comment':
100 $args['orderby'] = 'comment_count';
101 $args['order'] = 'DESC';
102 break;
103 case 'most_comment_1_day':
104 $args['orderby'] = 'comment_count';
105 $args['order'] = 'DESC';
106 $args['date_query'] = array( array( 'after' => '1 day ago') );
107 break;
108 case 'most_comment_7_days':
109 $args['orderby'] = 'comment_count';
110 $args['order'] = 'DESC';
111 $args['date_query'] = array( array( 'after' => '1 week ago') );
112 break;
113 case 'most_comment_30_days':
114 $args['orderby'] = 'comment_count';
115 $args['order'] = 'DESC';
116 $args['date_query'] = array( array( 'after' => '1 month ago') );
117 break;
118 case 'popular_post_1_day_view':
119 $args['meta_key'] = '__post_views_count';
120 $args['orderby'] = 'meta_value meta_value_num';
121 $args['order'] = 'DESC';
122 $args['date_query'] = array( array( 'after' => '1 day ago') );
123 break;
124 case 'popular_post_7_days_view':
125 $args['meta_key'] = '__post_views_count';
126 $args['orderby'] = 'meta_value meta_value_num';
127 $args['order'] = 'DESC';
128 $args['date_query'] = array( array( 'after' => '1 week ago') );
129 break;
130 case 'popular_post_30_days_view':
131 $args['meta_key'] = '__post_views_count';
132 $args['orderby'] = 'meta_value meta_value_num';
133 $args['order'] = 'DESC';
134 $args['date_query'] = array( array( 'after' => '1 month ago') );
135 break;
136 case 'popular_post_all_times_view':
137 $args['meta_key'] = '__post_views_count';
138 $args['orderby'] = 'meta_value meta_value_num';
139 $args['order'] = 'DESC';
140 break;
141 default:
142 # code...
143 break;
144 }
145 return $args;
146 }
147
148 public function reusable_id($post_id){
149 $reusable_id = array();
150 if($post_id){
151 $post = get_post($post_id);
152 if (has_blocks($post->post_content)) {
153 $blocks = parse_blocks($post->post_content);
154 foreach ($blocks as $key => $value) {
155 if(isset($value['attrs']['ref'])) {
156 $reusable_id[] = $value['attrs']['ref'];
157 }
158 }
159 }
160 }
161 return $reusable_id;
162 }
163
164 public function set_css_style($post_id){
165 if( $post_id ){
166 $upload_dir_url = wp_get_upload_dir();
167 $upload_css_dir_url = trailingslashit( $upload_dir_url['basedir'] );
168 $css_dir_path = $upload_css_dir_url . "ultimate-post/ultp-css-{$post_id}.css";
169
170 $css_dir_url = trailingslashit( $upload_dir_url['baseurl'] );
171 if (is_ssl()) {
172 $css_dir_url = str_replace('http://', 'https://', $css_dir_url);
173 }
174
175 // Reusable CSS
176 $reusable_id = ultimate_post()->reusable_id($post_id);
177 foreach ( $reusable_id as $id ) {
178 $reusable_dir_path = $upload_css_dir_url."ultimate-post/ultp-css-{$id}.css";
179 if (file_exists( $reusable_dir_path )) {
180 $css_url = $css_dir_url . "ultimate-post/ultp-css-{$id}.css";
181 wp_enqueue_style( "ultp-post-{$id}", $css_url, array(), ULTP_VER, 'all' );
182 }else{
183 $css = get_post_meta($id, '_ultp_css', true);
184 if( $css ) {
185 wp_enqueue_style("ultp-post-{$id}", $css, false, ULTP_VER);
186 }
187 }
188 }
189
190 if ( file_exists( $css_dir_path ) ) {
191 $css_url = $css_dir_url . "ultimate-post/ultp-css-{$post_id}.css";
192 wp_enqueue_style( "ultp-post-{$post_id}", $css_url, array(), ULTP_VER, 'all' );
193 } else {
194 $css = get_post_meta($post_id, '_ultp_css', true);
195 if( $css ) {
196 wp_enqueue_style("ultp-post-{$post_id}", $css, false, ULTP_VER);
197 }
198 }
199 }
200 }
201
202 public function get_setting($key = ''){
203 $data = $GLOBALS['ultp_settings'];
204 if ($key != '') {
205 return isset($data[$key]) ? $data[$key] : '';
206 } else {
207 return $data;
208 }
209 }
210
211 public function set_setting($key = '', $val = '') {
212 if($key != ''){
213 $data = $GLOBALS['ultp_settings'];
214 $data[$key] = $val;
215 update_option('ultp_options', $data);
216 $GLOBALS['ultp_settings'] = $data;
217 }
218 }
219
220 public function get_image_html($url = '', $size = 'full', $class = '', $alt = ''){
221 $alt = $alt ? ' alt="'.$alt.'" ' : '';
222 if( function_exists('ultimate_post_pro') ){
223 $addon_enable = ultimate_post()->get_setting('addons_imageloading');
224 if($addon_enable == 'true'){
225 $class = $class ? ' class="ultp-lazy '.$class.'" ' : ' class="ultp-lazy" ';
226 return '<img loading="lazy" loading="lazy" '.$class.$alt.' '.ultimate_post()->get_size($size).' src="'.ultimate_post()->img_placeholder($size).'" data-src="'.$url.'"/>';
227 }else{
228 $class = $class ? ' class="'.$class.'" ' : '';
229 return '<img loading="lazy" '.$class.$alt.' src="'.$url.'" />';
230 }
231 } else {
232 $class = $class ? ' class="'.$class.'" ' : '';
233 return '<img loading="lazy" '.$class.$alt.' src="'.$url.'" />';
234 }
235 }
236
237 public function get_image($attach_id, $size = 'full', $class = '', $alt = ''){
238 $alt = $alt ? ' alt="'.$alt.'" ' : '';
239 $size = ( ultimate_post()->get_setting('disable_image_size') == 'yes' && strpos($size, 'ultp_layout_') !== false ) ? 'full' : $size;
240 if( function_exists('ultimate_post_pro') ){
241 $addon_enable = ultimate_post()->get_setting('addons_imageloading');
242 if ($addon_enable == 'true') {
243 $class = $class ? ' class="ultp-lazy '.$class.'" ' : ' class="ultp-lazy" ';
244 return '<img loading="lazy" '.$class.$alt.' '.ultimate_post()->get_size($size).' src="'.ultimate_post()->img_placeholder($size).'" data-src="'.wp_get_attachment_image_url( $attach_id, $size ).'"/>';
245 } else {
246 $class = $class ? ' class="'.$class.'" ' : '';
247 return '<img loading="lazy" '.$class.$alt.' src="'.wp_get_attachment_image_url( $attach_id, $size ).'" />';
248 }
249 } else {
250 $class = $class ? ' class="'.$class.'" ' : '';
251 return '<img loading="lazy" '.$class.$alt.' src="'.wp_get_attachment_image_url( $attach_id, $size ).'" />';
252 }
253 }
254
255 // Init data
256 public function init_set_data(){
257 $data = get_option( 'ultp_options', array() );
258 $init_data = array(
259 'css_save_as' => 'wp_head',
260 'preloader_style' => 'style1',
261 'preloader_color' => '#1740f5',
262 'container_width' => '1140',
263 'editor_container' => 'full_width',
264 'hide_import_btn' => '',
265 'disable_image_size'=> '',
266 'ultp_templates' => 'true',
267 'ultp_elementor' => 'true'
268 );
269 if (empty($data)) {
270 update_option('ultp_options', $init_data);
271 $GLOBALS['wopb_settings'] = $init_data;
272 } else {
273 foreach ($init_data as $key => $single) {
274 if (!isset($data[$key])) {
275 $data[$key] = $single;
276 }
277 }
278 update_option('ultp_options', $data);
279 $GLOBALS['wopb_settings'] = $data;
280 }
281 }
282
283 // Excerpt
284 public function excerpt( $post_id, $limit = 55 ) {
285 return apply_filters( 'the_excerpt', wp_trim_words( get_the_content( $post_id ) , $limit ) );
286 }
287
288 // Query Builder
289 public function get_query($attr) {
290 $query_args = array(
291 'posts_per_page' => isset($attr['queryNumber']) ? $attr['queryNumber'] : 3,
292 'post_type' => isset($attr['queryType']) ? $attr['queryType'] : 'post',
293 'orderby' => isset($attr['queryOrderBy']) ? $attr['queryOrderBy'] : 'date',
294 'order' => isset($attr['queryOrder']) ? $attr['queryOrder'] : 'desc',
295 'paged' => isset($attr['paged']) ? $attr['paged'] : 1,
296 'post_status' => 'publish'
297 );
298
299 if(isset($attr['queryOrderBy']) && isset($attr['metaKey'])){
300 if($attr['queryOrderBy'] == 'meta_value_num') {
301 $query_args['meta_key'] = $attr['metaKey'];
302 }
303 }
304
305 if(isset($attr['queryInclude']) && $attr['queryInclude']){
306 $query_args['post__in'] = explode(',', $attr['queryInclude']);
307 $query_args['ignore_sticky_posts'] = 1;
308 $query_args['orderby'] = 'post__in';
309 }
310
311 if(isset($attr['queryExclude']) && $attr['queryExclude']){
312 $query_args['post__not_in'] = explode(',', $attr['queryExclude']);
313 }
314
315 if(isset($attr['queryTax'])){
316 if(isset($attr['queryTaxValue'])){
317
318 $tax_value = (strlen($attr['queryTaxValue']) > 2) ? $attr['queryTaxValue'] : ($attr['queryTax'] == 'category' ? $attr['queryCat'] : $attr['queryTag']);
319
320 if(strlen($tax_value) > 2){
321 $var = array('relation'=>'OR');
322 foreach (json_decode($tax_value) as $val) {
323 $tax_name = $attr['queryTax'] == 'tag' ? 'post_tag' : $attr['queryTax']; // for compatibility
324 $var[] = array('taxonomy'=> $tax_name, 'field' => 'slug', 'terms' => $val );
325 }
326 if(count($var) > 1){
327 $query_args['tax_query'] = $var;
328 }
329 }
330 }
331 }
332
333 if(isset($attr['queryQuick'])){
334 if($attr['queryQuick'] != ''){
335 $query_args = ultimate_post()->get_quick_query($attr, $query_args);
336 }
337 }
338
339 if(isset($attr['queryOffset']) && $attr['queryOffset'] ){
340 if($query_args['paged'] > 1){
341 $offset_post = wp_get_recent_posts($query_args, OBJECT);
342 if( count($offset_post) > 0 ){
343 $offset = array();
344 for($x = count($offset_post); $x > count($offset_post) - $attr['queryOffset']; $x--){
345 $offset[] = $offset_post[$x-1]->ID;
346 }
347 $query_args['post__not_in'] = $offset;
348 }
349 }else{
350 $query_args['offset'] = isset($attr['queryOffset']) ? $attr['queryOffset'] : 0;
351 }
352 }
353
354 $query_args['wpnonce'] = wp_create_nonce( 'ultp-nonce' );
355
356 return $query_args;
357 }
358
359
360 public function get_page_number($attr, $post_number) {
361 if($post_number > 0){
362 $post_per_page = isset($attr['queryNumber']) ? $attr['queryNumber'] : 3;
363 $pages = ceil($post_number/$post_per_page);
364 return $pages ? $pages : 1;
365 }else{
366 return 1;
367 }
368 }
369
370 public function get_image_size() {
371 $sizes = get_intermediate_image_sizes();
372 $filter = array('full' => 'Full');
373 foreach ($sizes as $value) {
374 $filter[$value] = ucwords(str_replace(array('_', '-'), array(' ', ' '), $value));
375 }
376 return $filter;
377 }
378
379
380 public function get_post_type() {
381 $post_type = get_post_types( '', 'names' );
382 return array_diff($post_type, array( 'attachment', 'revision', 'nav_menu_item', 'custom_css', 'customize_changeset', 'oembed_cache', 'user_request', 'wp_block' ));
383 }
384
385
386 // Pagination
387 public function pagination($pages = '', $paginationNav, $range = 1) {
388 $html = '';
389 $showitems = 3;
390 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
391 $paged = $paged ? $paged : 1;
392 if($pages == '') {
393 global $wp_query;
394 $pages = $wp_query->max_num_pages;
395 if(!$pages) {
396 $pages = 1;
397 }
398 }
399 $data = ($paged>=3?[($paged-1),$paged,$paged+1]:[1,2,3]);
400
401
402 if(1 != $pages) {
403 $html .= '<ul class="ultp-pagination">';
404 $display_none = 'style="display:none"';
405 if($pages > 4) {
406 $html .= '<li class="ultp-prev-page-numbers" '.($paged==1?$display_none:"").'><a href="'.get_pagenum_link($paged-1).'">'.ultimate_post()->svg_icon('leftAngle2').' '.($paginationNav == 'textArrow'?__("Previous", "ultimate-post"):"").'</a></li>';
407 }
408 if($pages > 4){
409 $html .= '<li class="ultp-first-pages" '.($paged<2?$display_none:"").' data-current="1"><a href="'.get_pagenum_link(1).'">1</a></li>';
410 }
411 if($pages > 4){
412 $html .= '<li class="ultp-first-dot" '.($paged<2? $display_none : "").'><a href="#">...</a></li>';
413 }
414 foreach ($data as $i) {
415 if($pages >= $i){
416 $html .= ($paged == $i) ? '<li class="ultp-center-item pagination-active" data-current="'.$i.'"><a href="'.get_pagenum_link($i).'">'.$i.'</a></li>':'<li class="ultp-center-item" data-current="'.$i.'"><a href="'.get_pagenum_link($i).'">'.$i.'</a></li>';
417 }
418 }
419 if($pages > 4){
420 $html .= '<li class="ultp-last-dot" '.($pages<=$paged+1?$display_none:"").'><a href="#">...</a></li>';
421 }
422 if($pages > 4){
423 $html .= '<li class="ultp-last-pages" '.($pages<=$paged+1?$display_none:"").' data-current="'.$pages.'"><a href="'.get_pagenum_link($pages).'">'.$pages.'</a></li>';
424 }
425 if ($paged != $pages) {
426 $html .= '<li class="ultp-next-page-numbers"><a href="'.get_pagenum_link($paged + 1).'">'.($paginationNav == 'textArrow' ? __("Next", "ultimate-post") : "").ultimate_post()->svg_icon('rightAngle2').'</a></li>';
427 }
428 $html .= '</ul>';
429 }
430 return $html;
431 }
432
433 public function excerpt_word($charlength = 200) {
434 $html = '';
435 $charlength++;
436 $excerpt = get_the_excerpt();
437 if ( mb_strlen( $excerpt ) > $charlength ) {
438 $subex = mb_substr( $excerpt, 0, $charlength - 5 );
439 $exwords = explode( ' ', $subex );
440 $excut = - ( mb_strlen( $exwords[ count( $exwords ) - 1 ] ) );
441 if ( $excut < 0 ) {
442 $html = mb_substr( $subex, 0, $excut );
443 } else {
444 $html = $subex;
445 }
446 $html .= '...';
447 } else {
448 $html = $excerpt;
449 }
450 return $html;
451 }
452
453
454 public function taxonomy( $prams = 'category' ) {
455 $data = array();
456 $terms = get_terms( $prams, array(
457 'hide_empty' => true,
458 ));
459 if( !empty($terms) ){
460 foreach ($terms as $val) {
461 $data[$val->slug] = $val->name;
462 }
463 }
464 return $data;
465 }
466
467
468 public function next_prev() {
469 $html = '';
470 $html .= '<ul>';
471 $html .= '<li>';
472 $html .= '<a class="ultp-prev-action ultp-disable" href="#">';
473 $html .= ultimate_post()->svg_icon('leftAngle2').'<span class="screen-reader-text">'.__("Previous", "ultimate-post").'</span>';
474 $html .= '</a>';
475 $html .= '</li>';
476 $html .= '<li>';
477 $html .= '<a class="ultp-next-action">';
478 $html .= ultimate_post()->svg_icon('rightAngle2').'<span class="screen-reader-text">'.__("Next", "ultimate-post").'</span>';
479 $html .= '</a>';
480 $html .= '</li>';
481 $html .= '</ul>';
482 return $html;
483 }
484
485 public function loading(){
486 $html = '';
487 $style = ultimate_post()->get_setting('preloader_style');
488 if( $style == 'style2' ){
489 $html .= '<div class="ultp-loading-spinner" style="width:100%;height:100%"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';//ultp-block-items-wrap
490 } else {
491 $html .= '<div class="ultp-loading-blocks" style="width:100%;height:100%;"><div style="left: 0;top: 0;animation-delay:0s;"></div><div style="left: 21px;top: 0;animation-delay:0.125s;"></div><div style="left: 42px;top: 0;animation-delay:0.25s;"></div><div style="left: 0;top: 21px;animation-delay:0.875s;"></div><div style="left: 42px;top: 21px;animation-delay:0.375s;"></div><div style="left: 0;top: 42px;animation-delay:0.75s;"></div><div style="left: 42px;top: 42px;animation-delay:0.625s;"></div><div style="left: 21px;top: 42px;animation-delay:0.5s;"></div></div>';
492 }
493 return '<div class="ultp-loading">'.$html.'</div>';
494 }
495
496 public function filter($filterText = '', $filterType = '', $filterValue = '[]', $filterCat = [], $filterTag = []){
497 $html = '';
498 $html .= '<ul class="ultp-flex-menu">';
499
500 $filterType = $filterType == 'tag' ? 'post_tag' : $filterType; // for compatibility
501
502 $cat = $this->taxonomy($filterType);
503 if($filterText){
504 $html .= '<li class="filter-item"><a data-taxonomy="" href="#">'.$filterText.'</a></li>';
505 }
506
507 $filterValue = strlen($filterValue) > 2 ? $filterValue : ($filterType == 'category' ? $filterCat : $filterTag);
508
509 foreach (json_decode($filterValue) as $val) {
510 $html .= '<li class="filter-item"><a data-taxonomy="'.$val.'" href="#">'.(isset($cat[$val]) ? $cat[$val] : $val).'</a></li>';
511 }
512 $html .= '</ul>';
513 return $html;
514 }
515
516 public function svg_icon($icons = ''){
517
518 $icon_lists = array(
519 'eye' => file_get_contents(ULTP_PATH.'assets/img/svg/eye.svg'),
520 'user' => file_get_contents(ULTP_PATH.'assets/img/svg/user.svg'),
521 'calendar' => file_get_contents(ULTP_PATH.'assets/img/svg/calendar.svg'),
522 'comment' => file_get_contents(ULTP_PATH.'assets/img/svg/comment.svg'),
523 'book' => file_get_contents(ULTP_PATH.'assets/img/svg/book.svg'),
524 'tag' => file_get_contents(ULTP_PATH.'assets/img/svg/tag.svg'),
525 'clock' => file_get_contents(ULTP_PATH.'assets/img/svg/clock.svg'),
526 'leftAngle' => file_get_contents(ULTP_PATH.'assets/img/svg/leftAngle.svg'),
527 'rightAngle' => file_get_contents(ULTP_PATH.'assets/img/svg/rightAngle.svg'),
528 'leftAngle2' => file_get_contents(ULTP_PATH.'assets/img/svg/leftAngle2.svg'),
529 'rightAngle2' => file_get_contents(ULTP_PATH.'assets/img/svg/rightAngle2.svg'),
530 'leftArrowLg' => file_get_contents(ULTP_PATH.'assets/img/svg/leftArrowLg.svg'),
531 'refresh' => file_get_contents(ULTP_PATH.'assets/img/svg/refresh.svg'),
532 'rightArrowLg' => file_get_contents(ULTP_PATH.'assets/img/svg/rightArrowLg.svg'),
533 );
534 if($icons){
535 return $icon_lists[ $icons ];
536 }
537 }
538
539 }
540