Skip to content

Commit

Permalink
Merge pull request #93 from BenjaminMedia/IVD-550/cxense-shuffle
Browse files Browse the repository at this point in the history
Ivd 550/cxense shuffle
  • Loading branch information
jonastanz authored Dec 20, 2018
2 parents bdd14c7 + 7f0c155 commit eb9b7af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/Services/WidgetDocumentQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ public function byRecentlyViewed()
return $this;
}

/**
* @return $this
*/
public function byShuffle()
{
$this->arrPayload['widgetId'] = WpCxense::instance()->settings->getShuffleWidgetId();
return $this;
}

/**
* @return $this
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Settings/SettingsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ public function getSortbyWidgetId($locale = null)
return $this->getSettingValue('sortby_widget_id', $locale);
}

public function getShuffleWidgetId($locale = null)
{
return $this->getSettingValue('shuffle_widget_id', $locale);
}

public function enableQueryCache($locale = null)
{
return $this->getSettingValue('enable_query_cache', $locale);
Expand Down
2 changes: 1 addition & 1 deletion wp-cxense.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: WP cXense
* Version: 2.4.0
* Version: 2.5.0
* Plugin URI: https://github.com/BenjaminMedia/wp-cxense
* Description: This plugin integrates your site with cXense by adding meta tags and calling the cXense api
* Author: Bonnier - Alf Henderson
Expand Down

0 comments on commit eb9b7af

Please sign in to comment.