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��{���,
ĩ�y�-�ĸ�߮�����`�-Q6o%QGR�#��RS%;{=�0K�p8�����������E���G��&I��pL�]JG�����qCI8L�"(�!)`�U�?��T��"��E�*���&�TH�ӧKoz��=�y����y��\O8�G1�❿aaH��,ɸP$U���)b���l�Q����t�mY�6�A��O��Z�{��h�C+�+�$W|E��f��Y�fo��SXѝ�PL�_sY<� 青=3��6k$K�1
y`��dE������y��$P
?#)ޣ��0��y2�u�a�;���ւ���d����0�b)Y��hx��E��Kf�#((7{؟qY0�tM�}�~�b��}Kcf��d%y��s�=��N*8D���|+H�Q�ߧ�!�5{�H5��{dŕ�Ic�k"��I�4{����i����@�8n���s�*c��T��z�� ,
��Oj�D�T`��i�C�f6#��j��
zc:,fj_YQ(�Nk�%`�6��Yt�,�-u��ѵz���c۹��!���ε�N��A��`[kA�CF�P�����a)���*�8�;�rx��T<��uMЙ��I�������M�8P}�?G8tS���3v����2j#��
i�qci~Ą�a����%a9�tY�,G�:��͓N���yϛQk��d1Ut0
U���{+��q�Y��17�u
Q��Nһy4)����zE������ݍ^-F�����݀�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������x��?�\*