Plugin Directory

Changeset 1784752


Ignore:
Timestamp:
12/11/2017 01:34:55 PM (8 years ago)
Author:
chartspms
Message:

iframeResizer ScrollToTop, reviews widget fix limit

Location:
chartsbeds/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chartsbeds/trunk/chartsbeds-widget-review.php

    r1761625 r1784752  
    2121    if(!$cba['key']){
    2222        $thekey = htmlspecialchars_decode (get_option("charts_key"));
    23         $json = file_get_contents('http://dashboard.chartspms.com/REVIEWS.json.php?apiKey='.$thekey.'', true, $Context);
     23        $json = file_get_contents('http://dashboard.chartspms.com/REVIEWS.json.php?apiKey='.$thekey.'&limit='.esc_attr($cba['limit']).'', true, $Context);
    2424    }else{
    2525        $ekey = 'http://dashboard.chartspms.com/REVIEWS.json.php?apiKey='.$cba['key'].'&limit='.esc_attr($cba['limit']).'';
  • chartsbeds/trunk/hotelrev.php

    r1784638 r1784752  
    2727
    2828function cbeds_add_header_mc() {
    29     wp_enqueue_style( 'rvmain-css', plugins_url( 'styles/style.css', __FILE__ ) );
     29    wp_enqueue_style( 'rvmain-css', plugins_url( 'styles/style.css', __FILE__ ) );
    3030    wp_register_style( 'rvmain-css', plugins_url( 'styles/style.css', __FILE__ ) );
    31    
    32     if(get_option("dark_on")){
    33         wp_enqueue_style( 'rvdark-css', plugins_url( 'styles/dark.css', __FILE__ ) );
    34         wp_register_style( 'rvdark-css', plugins_url( 'styles/dark.css', __FILE__ ) );
    35     }
     31   
     32    if(get_option("dark_on")){
     33        wp_enqueue_style( 'rvdark-css', plugins_url( 'styles/dark.css', __FILE__ ) );
     34        wp_register_style( 'rvdark-css', plugins_url( 'styles/dark.css', __FILE__ ) );
     35    }
    3636    wp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
    37    
    38     if(get_option("bootstrap_on")){
    39         wp_enqueue_style( 'bootstrapcdn', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' );
    40     }
    41    
     37   
     38    if(get_option("bootstrap_on")){
     39        wp_enqueue_style( 'bootstrapcdn', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' );
     40    }
     41   
    4242    wp_enqueue_script( 'circles', plugins_url( 'scripts/circles.js', __FILE__ ) );
    4343    wp_enqueue_script( 'shorten', plugins_url( 'scripts/shorten.js', __FILE__ ) );
     
    5252add_action( 'wp_footer', function () {
    5353?>
    54    
     54   
    5555    <script language="javascript" type="text/javascript">
    56         iFrameResize({log:false, checkOrigin: false, heightCalculationMethod:'min'});
     56        iFrameResize({log:false, checkOrigin: false, heightCalculationMethod:'min',
     57            initCallback: function(){
     58                window.scrollTo(0, 0);
     59            }
     60        });
    5761    </script>
    5862
Note: See TracChangeset for help on using the changeset viewer.