add_action('amp_post_template_css', function () {
$queried = get_queried_object();
if (!$queried || !isset($queried->slug)) return;
$type = '';
if (is_category()) {
$type = 'category';
} elseif (is_tag()) {
$type = 'tag';
} elseif (is_author()) {
$type = 'author';
}
if (!$type) return;
global $wpdb;
$table = $wpdb->prefix . 'rsn_amp_css';
$entry = $wpdb->get_row($wpdb->prepare(
"SELECT * FROM $table WHERE type = %s AND slug = %s LIMIT 1",
$type,
$queried->slug
));
if (!$entry) return;
$post_id = (!is_paged() || get_query_var('paged') < 2) ? $entry->first_page_id : $entry->paged_id;
if (!$post_id) return;
echo '@import url("https://www.ringsidenews.com/wp-content/themes/smart-mag/style.css");' . "\n";
echo '@import url("https://www.ringsidenews.com/wp-content/themes/smart-mag/amp-style.css");' . "\n";
echo '@import url("https://www.ringsidenews.com/wp-content/uploads/elementor/css/post-' . intval($post_id) . '.css");' . "\n";
});
��ko��{���,
ĩ�yl�rb\q�oW��zEq0\��(����#�؎�����)����Z�%r8�{�~|������翢�J��ţ�B�$�O8&{����Kk,�x�YLEE��$�
�.%������r���$�?&Tl��0�*`N�}L��"OKhs�g*$��ӥ7�}����O�X���,X3��t��)��Na�^(&�/�,�ᄿ�Nɞ�h�5��똆<��h�����`p�<�`(����Q�Rz�<�
�:�0ׇ��`fk���L�UL�j�l
����n4��ТC�%3���=�ϸ,��c�&��I�C1g�ܾ�1�z[��<��9��@'"x�p\�$˨��� ڐٚ=�i��؊=��J�1�5�Y�$x����y��ƴ��id x�U�s���\*@A�|c���'�x"B*���4�!`3�AS5����13����Y'��x�0�i�{�,�K����:���Z=D�y����H���
��S��@'���R��� �!#a���p��?[�$���݀�d�3�YX:�rj4��G�*7a��m�ɼ�{n�*��$ �P��j1]Y͉l7:�@��W
��Fy4/����o�[*�;����mąc����{��!������1�����>��I��s�B���m����ެ��i��Ԙn�y�iG5�6S�����z�����������>v��������y\*