Browse Source

folder

main
Walter Hupfeld 4 months ago
parent
commit
2650438bcf
  1. 0
      css/mastodon-timeline.css
  2. 3
      css/style.css
  3. 0
      js/mastodon-timeline.js
  4. 6
      mastodon-timeline.php

0
mastodon-timeline.css → css/mastodon-timeline.css

3
css/style.css

@ -0,0 +1,3 @@
@media screen and (max-width: 40rem) {
.mt-toot {padding: 5rem 0 2rem 0 !important;}
}

0
mastodon-timeline.js → js/mastodon-timeline.js

6
mastodon-timeline.php

@ -19,9 +19,10 @@ add_action('wp_enqueue_scripts','mas_style_and_script');
function mas_style_and_script()
{
// css
wp_register_style( 'mas-style', plugins_url('mastodon-timeline.css', __FILE__) );
wp_register_style( 'mas-style', plugins_url('css/mastodon-timeline.css', __FILE__) );
wp_register_style( 'style', plugins_url('css/style.css', __FILE__) );
// js
wp_register_script( 'mas-script', plugins_url('mastodon-timeline.js', __FILE__), array('jquery') );
wp_register_script( 'mas-script', plugins_url('js/mastodon-timeline.js', __FILE__), array('jquery') );
}
add_shortcode( 'mastodon-timeline', 'mastodon_timeline' );
@ -35,6 +36,7 @@ function mastodon_timeline($atts,$content=null) {
$param['toots_limit'] = '6';
wp_enqueue_style("mas-style");
wp_enqueue_style("style");
wp_enqueue_script("mas-script");
$strBody = mas_body($param);
return $strBody;

Loading…
Cancel
Save