__( 'Akita Blog', 'akita-blog' ) ) ); } } } add_action( 'init', 'akita_blog_register_block_pattern_category' ); function akita_blog_template_part_areas( array $areas ) { $areas[] = array( 'area' => 'posts', 'area_tag' => 'section', 'label' => __( 'Posts', 'akita-blog' ), 'description' => __( 'Displaying posts.', 'akita-blog' ), 'icon' => 'layout' ); $areas[] = array( 'area' => 'sidebar', 'area_tag' => 'aside', 'label' => __( 'Sidebar', 'akita-blog' ), 'description' => __( 'Sidebar', 'akita-blog' ), 'icon' => 'layout' ); return $areas; } add_filter( 'default_wp_template_part_areas', 'akita_blog_template_part_areas' ); // // Theme dashboard hook // if ( ! function_exists( 'akita_blog_theme_screenshot' ) ) { function akita_blog_theme_screenshot() { return trailingslashit( get_stylesheet_directory_uri() ) . 'screenshot.png'; } } add_filter( 'plover_welcome_theme_screenshot', 'akita_blog_theme_screenshot' ); if ( ! function_exists( 'akita_blog_support_forum_url' ) ) { function akita_blog_support_forum_url() { return 'https://wordpress.org/support/theme/akita-blog/'; } } add_filter( 'plover_theme_support_forum_url', 'akita_blog_support_forum_url' ); if ( ! function_exists( 'akita_blog_rate_us_url' ) ) { function akita_blog_rate_us_url() { return 'https://wordpress.org/support/theme/akita-blog/reviews/?rate=5#new-post'; } } add_filter( 'plover_theme_rate_us_url', 'akita_blog_rate_us_url' ); if ( ! function_exists( 'akita_block_register_block_styles' ) ) { function akita_block_register_block_styles() { if ( function_exists( 'register_block_style' ) ) { register_block_style( 'core/cover', array( 'name' => 'full-width', 'label' => __( 'Full Width', 'akita-blog' ), 'is_default' => true, 'inline_style' => '.wp-block-cover.is-style-full-width { min-width: 100%; }', ) ); } } } add_action( 'init', 'akita_block_register_block_styles' ); if ( ! function_exists( 'akita_particle_presets' ) ) { function akita_particle_presets( $presets ) { $presets['colorful-bubbles'] = [ 'label' => __( 'Colorful Bubbles', 'akita-blog' ), 'options' => '{"interactivity":{"detectsOn":"window","events":{"resize":{"delay":0.5,"enable":true}},"modes":{"trail":{"delay":1,"pauseOnStop":false,"quantity":1},"attract":{"distance":200,"duration":0.4,"easing":"ease-out-quad","factor":1,"maxSpeed":50,"speed":1},"bounce":{"distance":200},"bubble":{"distance":200,"duration":0.4,"mix":false},"connect":{"distance":80,"links":{"opacity":0.5},"radius":60},"grab":{"distance":100,"links":{"blink":false,"consent":false,"opacity":1}},"push":{"default":true,"groups":[],"quantity":4},"remove":{"quantity":2},"repulse":{"distance":200,"duration":0.4,"factor":100,"speed":1,"maxSpeed":50,"easing":"ease-out-quad"},"slow":{"factor":3,"radius":200},"particle":{"replaceCursor":false,"pauseOnStop":false,"stopDelay":0},"light":{"area":{"gradient":{"start":{"value":"#ffffff"},"stop":{"value":"#000000"}},"radius":1000},"shadow":{"color":{"value":"#000000"},"length":2000}}}},"manualParticles":[],"particles":{"bounce":{"horizontal":{"value":1},"vertical":{"value":1}},"color":{"value":["#5bc0eb","#fde74c","#9bc53d","#e55934","#fa7921"]},"effect":{"close":true,"fill":true,"options":{},"type":{}},"move":{"angle":{"offset":0,"value":90},"center":{"x":50,"y":50,"mode":"percent","radius":0},"direction":"top","enable":true,"outModes":{"default":"out","bottom":"out","left":"out","right":"out","top":"out"},"random":true,"size":false,"speed":6,"straight":false,"vibrate":false,"warp":false},"number":{"limit":{"mode":"delete","value":0},"value":8},"opacity":{"value":{"min":0.1,"max":0.2}},"reduceDuplicates":false,"shape":{"close":true,"fill":true,"options":{},"type":["circle","triangle","edge","polygon"]},"size":{"value":{"min":20,"max":40}},"stroke":{"width":0},"zIndex":{"value":0,"opacityRate":1,"sizeRate":1,"velocityRate":1},"destroy":{"bounds":{},"mode":"none","split":{"count":1,"factor":{"value":3},"rate":{"value":{"min":4,"max":9}},"sizeOffset":true,"particles":{}}},"roll":{"mode":"vertical","speed":25},"life":{"count":0,"delay":{"value":0,"sync":false},"duration":{"value":0,"sync":false}},"rotate":{"value":90,"animation":{"enable":true,"speed":6,"decay":0,"sync":true},"direction":"clockwise","path":false}}}', ]; return $presets; } } add_filter( 'plover_core_particle_presets', 'akita_particle_presets' );