Skip to content

Commit

Permalink
Merge c178779 into c38d6c1
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz committed Jul 24, 2017
2 parents c38d6c1 + c178779 commit b910e83
Show file tree
Hide file tree
Showing 30 changed files with 233 additions and 82 deletions.
2 changes: 1 addition & 1 deletion assets/css/admin-global.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions assets/css/scss/admin-global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,24 @@
}

// Prevent borders on images in the Getting Started, What's New screens
.post-type-gravityview .about-wrap img {
border: none;
.post-type-gravityview .about-wrap {

.feature-video {
iframe {
width: 100%;
max-width: 560px;
}
.button-hero {
font-size: 22px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
}
.feature-section img {
border: 1px solid #ccc;
max-width: 99%; // Allow for border on the right
}
}

// Form Toolbar for connected views
Expand Down
Binary file added assets/images/gennady.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions gravityview.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: GravityView
* Plugin URI: https://gravityview.co
* Description: The best, easiest way to display Gravity Forms entries on your website.
* Version: 1.21.5.2
* Version: 1.21.5.3
* Author: GravityView
* Author URI: https://gravityview.co
* Text Domain: gravityview
Expand Down Expand Up @@ -79,7 +79,7 @@
*/
final class GravityView_Plugin {

const version = '1.21.5.2';
const version = '1.21.5.3';

private static $instance;

Expand Down
6 changes: 4 additions & 2 deletions includes/class-admin-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@ public function filter_pre_get_posts_by_gravityview_form_id( &$query ) {
return;
}

if( 'edit.php' !== $pagenow || ! rgget( 'gravityview_form_id' ) || ! isset( $query->query_vars[ 'post_type' ] ) ) {
$form_id = isset( $_GET['gravityview_form_id'] ) ? (int) $_GET['gravityview_form_id'] : false;

if( 'edit.php' !== $pagenow || ! $form_id || ! isset( $query->query_vars[ 'post_type' ] ) ) {
return;
}

if ( $query->query_vars[ 'post_type' ] == 'gravityview' ) {
$query->set( 'meta_query', array(
array(
'key' => '_gravityview_form_id',
'value' => rgget( 'gravityview_form_id' ),
'value' => $form_id,
)
) );
}
Expand Down
Loading

0 comments on commit b910e83

Please sign in to comment.