From 197f2c86f736016ce414976224771ad59cc7193a Mon Sep 17 00:00:00 2001 From: Jon Spriggs Date: Fri, 12 Jan 2024 08:13:32 +0000 Subject: [PATCH 1/2] Updated reveal.js to 5.0.4 --- reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reveal.js b/reveal.js index 3fcf0db..5ee1f72 160000 --- a/reveal.js +++ b/reveal.js @@ -1 +1 @@ -Subproject commit 3fcf0db96e1a65336677e4ff7df813ed9c4a6792 +Subproject commit 5ee1f729bd67e71a53057d29cb56762db8025426 From 3852f3d97b933c96f5704a16ee3d881cbe62e587 Mon Sep 17 00:00:00 2001 From: Jon Spriggs Date: Sun, 14 Jan 2024 01:01:08 +0000 Subject: [PATCH 2/2] Add print view --- presenter.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/presenter.php b/presenter.php index c76137b..e5c6867 100644 --- a/presenter.php +++ b/presenter.php @@ -73,6 +73,14 @@ protected function __construct() { add_action( 'init', array( $this, 'init_locale' ) ); add_shortcode( 'presenter-url', array( $this, 'url_shortcode' ) ); + add_filter('post_row_actions', array($this, 'add_view_links'), 10, 2); + } + + public function add_view_links($actions, $post) { + $permalink = get_permalink($post->ID); + $actions['print_view'] = 'Print View'; + $actions['scroll_view'] = 'Scroll View'; + return $actions; } public function init_locale() { @@ -431,7 +439,14 @@ public function footer() { } public function admin_init() { - add_meta_box( 'slides', 'Slides', array( $this, 'slides_meta_box' ), 'slideshow', 'normal', 'core'); + add_meta_box( + 'slides', + 'Slides', + array( $this, 'slides_meta_box' ), + 'slideshow', + 'normal', + 'core' + ); add_meta_box( 'pageparentdiv', __( 'Slideshow Attributes', $this->_slug ), array( $this, 'slideshow_attributes_meta_box' ), 'slideshow', 'side', 'default' ); }