Пример #1
0
                    $width = intval($_wp_additional_image_sizes[$s]['width']);
                    $height = intval($_wp_additional_image_sizes[$s]['height']);
                } else {
                    $width = get_option($s . '_size_w');
                    $height = get_option($s . '_size_h');
                }
                if ($width && $height) {
                    $size = sanitize_title($s);
                    $size = ucwords(str_replace(array('-', '_'), ' ', $s));
                    $sizes[$s] = $size . ' (' . $width . ' x ' . $height . ')';
                }
            }
            return $sizes;
        }
        /**
         * returns all formats.
         *
         * @since 0.2.1
         *
         * @return array Formats.
         */
        public function get_formats()
        {
            $formats = array('links' => __('Links', 'related-posts-by-taxonomy'), 'posts' => __('Posts', 'related-posts-by-taxonomy'), 'excerpts' => __('Excerpts', 'related-posts-by-taxonomy'), 'thumbnails' => __('Post thumbnails', 'related-posts-by-taxonomy'));
            return $formats;
        }
    }
    // end class
    Related_Posts_By_Taxonomy_Defaults::init();
}
// class exists