PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
devicing
/
wp-content
/
themes
/
agile
/
framework
/
functions
<?php if (!function_exists('mo_get_image_size')) { function mo_get_image_size($wp_thumb_name) { global $mo_theme; $image_size_key = 'current_image_size'; $image_size_attr_key = 'current_image_size_attr'; if (mo_get_cached_value($image_size_key) == $wp_thumb_name) return mo_get_cached_value($image_size_attr_key); mo_set_cached_value($image_size_key, $wp_thumb_name); // set current image size mo_set_cached_value($image_size_attr_key, array()); // reset the old value $image_sizes = $mo_theme->get_image_sizes(); if (array_key_exists($wp_thumb_name, $image_sizes)) { $image_size = $image_sizes[$wp_thumb_name]; $current_image_size_attr = array('width' => $image_size[0], 'height' => $image_size[1]); mo_set_cached_value($image_size_attr_key, $current_image_size_attr); return $current_image_size_attr; } return null; } } if (!function_exists('mo_get_wp_thumb_name')) { function mo_get_wp_thumb_name($easy_name, $default = 'medium') { global $mo_theme; $image_size = null; $easy_name_map = $mo_theme->get_easy_image_name_map(); if (array_key_exists($easy_name, $easy_name_map)) { $image_size = $easy_name_map [$easy_name]; } elseif ($default != null) $image_size = $easy_name_map [$default]; return $image_size; } } if (!function_exists('mo_get_image_size_array')) { function mo_get_image_size_array($easy_thumb_name, $default = 'medium') { $wp_thumb_name = mo_get_wp_thumb_name($easy_thumb_name, $default); $image_size = mo_get_image_size($wp_thumb_name); return $image_size; } } if (!function_exists('mo_get_thumbnail_args_for_singular')) { function mo_get_thumbnail_args_for_singular() { $layout_manager = mo_get_layout_manager(); /* Set the default arguments. */ $args = array('wrapper' => true, 'size' => 'full', 'before_html' => '<span>', 'after_html' => '</span>', 'image_scan' => false, /* Do not scan content for images - do not want to duplicate the image in content. Use featured image only */ 'attachment' => false /* Show only featured images as post image on the top */ ); $retain_image_height = mo_get_theme_option('mo_retain_image_height'); if ($layout_manager->is_full_width_layout()) { $args['image_size'] = 'full'; $args['image_class'] = 'featured thumbnail full-1c'; } else { $args['image_size'] = 'large'; $args['image_class'] = 'featured thumbnail full'; } if ($retain_image_height) { if ($layout_manager->is_full_width_layout()) $args['image_size'] = array('width' => 1140, 'height' => 0); else $args['image_size'] = array('width' => 820, 'height' => 0); } return $args; } } if (!function_exists('mo_is_youtube')) { function mo_is_youtube($video_url) { if (strpos($video_url, "youtube.com") || strpos($video_url, "youtu.be")) return true; else return false; } } if (!function_exists('mo_is_vimeo')) { function mo_is_vimeo($video_url) { if (strpos($video_url, "vimeo.com")) return true; else return false; } } if (!function_exists('mo_get_youtube_id')) { function mo_get_youtube_id($video_url) { preg_match('#(?:https?(?:a|vh?)?://)?youtu\.be/([A-Za-z0-9\-_]+)#', $video_url, $matches); return $matches[1]; } } if (!function_exists('mo_get_vimeo_id')) { function mo_get_vimeo_id($video_url) { preg_match('#(?:http://)?(?:www\.)?vimeo\.com/([A-Za-z0-9\-_]+)#', $video_url, $matches); return $matches[1]; } }
[-] header-title-area.php
[open]
[-] thumbnail-functions.php
[open]
[-] commenting.php
[open]
[-] post-functions.php
[open]
[-] page-customization.php
[open]
[-] gallery-functions.php
[open]
[+]
..
[-] utility-functions.php
[open]
[-] images-videos.php
[open]
[-] portfolio-functions.php
[open]
[-] breadcrumbs.php
[open]
[-] blog-content.php
[open]