Flight HTML – Changelog: Version 2.5

Version 2.5Released 08-13-13

    1. Added default API keys for twitter feed, also added code to check if keys are left empty to index.php
      $items       = array("consumer_key", "consumer_secret", "user_token", "user_secret");
      		$not_all_set = false;
      
      		foreach($items as $item){
      			if(empty($this->$item)){
      				 $not_all_set = true;
      			}
      		}
    2. Added code to check if keys are empty in twitter_feed.js
      $(document).ready(function() {
      	$.post('js/social/index.php', { test: "vars" }, function(data) {
      	  obj = JSON.parse(data);
      
      	  if(obj.message != "not_set"){
      		  // Footer Twitter Feed
      		  if($('#tweetFeed-footer').length){
      			  $('#tweetFeed-footer').tweet({
      				  modpath: 'js/social/index.php',
      				  count: 2,
      				  loading_text: 'loading twitter feed...',
      				  username: 'themesuite'
      			  });
      		  }
      
      		  // Blog Twitter Feed
      		  if($('#tweetFeed-blog').length){
      			  $('#tweetFeed-blog').tweet({
      				  modpath: 'js/social/index.php',
      				  count: 2,
      				  loading_text: 'loading twitter feed...',
      				  username: 'themesuite'
      			  });
      		  }
      	  }
      	});
        });

       

0