YOOtheme Pro 1.9 released

This YOOtheme Pro release is another massive one! In the latest UIkit Beta 26 release we introduced the new Lightbox component. We are happy to tell you that this powerful feature is now also available in YOOtheme Pro for the Grid and Gallery elements. The 1.9 release brings other great improvements like a Modal mode for image and button elements, advanced child theme features and more.


Lightbox for Gallery and Grid element

The new lightbox option brings great image and video galleries to your sites. It allows you to open links, images or videos inside a lightbox by clicking an item from a gallery or grid and even to navigate between items from within the lightbox. There are three basic effects available to create smooth transitions: Slide, Fade and Scale. It doesn’t matter what device you use, the lightbox is fully responsive.

Lightbox

Modal for Image and Button element

You can now set the link target to Modal mode for any link inside a Button or Image element. Linked media files are displayed inside a modal without leaving the page. Regular links will show in an iframe inside the modal.

Modal

Enhanced link picker

The link picker has received an update. Apart from system links you can now also pick files, like a PDF for example. Both options can be found side by side as icons inside the link field in the element’s content tab.

Link Picker

Section Title

We have added the new title setting to sections within the Page Builder. Align the title to different positions on the right and left sides of your sections and rotate it 90 degrees clockwise or counterclockwise. This new option is great for pages with many content sections – for example one pager websites.

Section Title

Vertical alignment option

This new option aligns the section content vertically, if the section height is larger than the content itself. To use this option, make sure to actually set a section height, otherwise it will be exactly as high as its content.

Section Alignment

Mixed image orientation mode

Photographers in particular will be happy about this feature. It ensures that photo galleries with portrait as well as landscape format look good. Just enter width and height values. YOOtheme Pro automatically detects the format and aligns the images accordingly while preserving image proportions.

Gallery Mixed Image Orientation Mode

Enhanced overlay and gallery options

The Overlay and Gallery elements have been extended with more advanced options. You can now set a min height for images. This prevents images from becoming too small on mobile devices.The image will be cropped automatically, if necessary. Another addition is the option to choose only a hover image for gallery or overlay items. This means that no primary picture needs to be picked. So basically the gallery looks like the section background and only reveals its image content on hover. This produces a nice effect that we used in our latest theme release Jack Baker.

Gallery Overlay

Center option for toolbar

We've added a center option for the toolbar. All content inside that position will be centered when you activate it.

Centered Toolbar

Child Theme

Here is another big thing that is particularly interesting for all developers. A child theme allows to store custom code (like JavaScript, CSS, Less or layout files) in a separate theme folder so that they are preserved during YOOtheme Pro updates. Child themes have been supported for a while already. With the 1.9 release, you can now do even more:

Add custom elements

You can now add custom Builder elements using child themes. Add a /builder directory inside the child theme and every subfolder will be available as a new Builder element inside the browser. You can copy the default Builder elements in here as a starter or create completely new content elements.

Overwrite index.php

Along with existing layout files you could overwrite, you can now also place an index.php in your child theme to overwrite the main layout file of the theme.

Register custom modules

For the really advanced developers out there, we have added support to place a config.php inside your child theme. This allows you to register custom modules and therefore extend the theme with any kind of custom PHP code you want.

For detailed explanations of these advanced features, check out the new child theme documentation.

Wrapping up

This was the third huge update for YOOtheme Pro in a row. With the lightbox and advanced child theme features we have addressed some of the most frequent requests. We want to thank you for your feedback and ideas that we have been receiving. Obviously, we are constantly working on YOOtheme Pro. Stay tuned and give us your feedback in the comments below.

jQuery(function($) { var gifs = $('img.gif'), scrolled=false; $(document).on('scroll', function() { scrolled = true; }); setInterval(function check() { if (!scrolled) return; gifs.each(function() { if (isInview(this)) { if (!this.playing) play(this); } else { stop(this); } }); scrolled = false; }, 25); function play(element) { element.playing = element.src = element.src; } function stop(element) { element.playing = false; } function isInview(element, options) { var $element = $(element), $win = $(window); if (!$element.is(':visible')) { return false; } options = $.extend({topoffset:0, leftoffset:0}, options); var wl = $win.scrollLeft(), wt = $win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top; return (top + $element.height() >= wt && top - options.topoffset <= wt + $win.height() && left + $element.width() >= wl && left - options.leftoffset <= wl + $win.width()); } });</script>

Read more

UIkit 3 Beta 26 released

Today we are excited to announce the release of UIkit 3 Beta 26. This also marks the moment many of you have been waiting for: We are introducing the new Lightbox component! It includes various features to create visually more powerful galleries.


Lightbox

The new Lightbox component is a comprehensive feature to quickly create image and video galleries. Visitors can scroll through pictures using a touch and swipe navigation, while on non-touch devices they can apply regular mouse drag. Alternatively, the keyboard navigation can be used just as easily. Thanks to hardware accelerated CSS3 transitions, you can choose from three basic effects to create smooth animations when clicking through the Lightbox gallery: Slide, Fade and Scale.

When using devices with mobile data, smart preloading comes in handy as only 3 images are loaded at a time, reducing the data volume consumption to a minimum.

In addition to this, when transitioning from one image to the next, each click is automatically counted leading you to your desired image, no matter how fast you click. Animations even accelerate to keep up with your pace. Images and videos inside the Lightbox gallery are fully responsive, meaning that they are resized automatically to fit the viewport when being used on mobile devices.

Lightbox image gallery

Video support

Apart from images, it is also possible to include HTML5, YouTube or Vimeo videos in the lightbox. As you scroll through them, they are individually paused and continue to play where you left off. So, whenever you close the lightbox or switch to a different slide, the current video will pause and resume at the same spot as soon as it is reopened.

The new uk-video attribute from the Utility component achieves the same thing. The autoplay and automute options can be used to automatically start and mute background videos. This is useful in combination with the Cover component, but will also come to effect in the future slideshow.

These are the main innovations of this UIkit release. We are really happy with how the Lightbox component turned out. Feel free to leave your feedback in the comments section and let us know which new feature you are the most excited about.

jQuery(function($) { var gifs = $('img.gif'), scrolled=false; $(document).on('scroll', function() { scrolled = true; }); setInterval(function check() { if (!scrolled) return; gifs.each(function() { if (isInview(this)) { if (!this.playing) play(this); } else { stop(this); } }); scrolled = false; }, 25); function play(element) { element.playing = element.src = element.src; } function stop(element) { element.playing = false; } function isInview(element, options) { var $element = $(element), $win = $(window); if (!$element.is(':visible')) { return false; } options = $.extend({topoffset:0, leftoffset:0}, options); var wl = $win.scrollLeft(), wt = $win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top; return (top + $element.height() >= wt && top - options.topoffset <= wt + $win.height() && left + $element.width() >= wl && left - options.leftoffset <= wl + $win.width()); } });</script>

Read more

EasyArticles Community Preview

​After months of toiling and multitasking along with EasySocial 2.1, the team managed to put together our very first version of EasyArticles. Since the initial introduction of EasyArticles, we have been receiving positive feedback and inquiries, which were very encouraging for the team and we greatly appreciate it.

The idea behind EasyArticles is to simplify your day to day operations when dealing with articles on Joomla. Hit the brakes to read more about the highlights & functionalities of EasyArticles, the next generation article management for Joomla.


Read more

Facebook has become one of the most used methods to get users to sign-in to your application, in today’s post we’ll set up the Facebook native plugin through Ionic Native.

That way we can use the Facebook app to sign-in our users, instead of having them log in through a browser.

To make things easier, we’re going to break down the process into three different parts:

  • Step #1: We’ll log into our Facebook developer account, create a new app and get the credentials.
  • Step #2: We’ll go into our Firebase console and enable Facebook Sign-In with the credentials from the first step.
  • Step #3: We’ll write the code to authorize the user through Facebook and then authenticate that user into our Firebase app.

By the way, at the end of this post, I’m going to link a Starter Template that already has Google & Facebook authentication ready to go, all you’d need to do is add your credentials and run npm install.

With that in mind, let’s start!

Step #1: Facebook Developer Console

The first thing we need to do is to create a new application in Facebook’s developer dashboard, and this app is the one that Facebook will use to ask our users for their permission when we try to log them into our Ionic application.

For that you’ll need to go to https://developers.facebook.com/apps and create a new app.

facebook create app

Once you click on the button, you’ll get a short form pop up, add the name you want for your app and the contact email that will be public to users.

facebook create app form

Once we finish creating our app, it will take you to the app’s dashboard, where you can see the app’s ID, take note of that ID, we’ll need it when it’s time to install the Facebook plugin.

Facebook console app id

Install the Cordova Plugin

Now that you created your app on Facebook, we need to install the Cordova plugin in our Ionic app so we can have our app calling the Facebook Sign-In widget.

For that, open your terminal and type (All in the same line):

$ ionic plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"

You’ll need to replace the values or APP_ID and APP_NAME for your real credentials. You can find both of those inside your Facebook Developers Dashboard.

It’s a bit of a pain to work with Cordova plugins, luckily the great Ionic Team created Ionic Native, which is a wrapper for the Cordova plugins so we can use them in a more “Angular/Ionic” way.

So the next thing we need to do is install the facebook package from Ionic Native, open your terminal again and type:

$ npm install --save @ionic-native/facebook

After we finish installing it, we need to tell our app to use it, that means, we need to import it in our app.module.ts file

import { SplashScreen } from '@ionic-native/splash-screen';import { StatusBar } from '@ionic-native/status-bar'import { Facebook } from '@ionic-native/facebook'@NgModule({  ...,  providers: [ SplashScreen, StatusBar, Facebook ]})export class AppModule {}

Add your Platforms to Facebook

Once everything is set up in our development environment, we need to let Facebook know which platforms we’ll be using (if it’s just web, iOS, or Android).

In our case, we want to add two platforms, iOS and Android.

To add the platforms, go ahead and inside your Facebook dashboard click on settings, then, right below the app’s information you’ll see a button that says Add Platform, click it.

facebook add platform button

Once you click the button, you’ll see several options for the platforms you’re creating, let’s start with iOS, you’ll see a form asking you for some information, right now we just need the Bundle ID.

Facebook console add ios app

If you don’t know where to get the Bundle ID, it’s the same as the package name when you create an Ionic app, it’s inside your config.xml file:

<widget id="co.ionic.facebook435" version="0.0.1" xmlns="https://www.w3.org/ns/widgets" xmlns:cdv="https://cordova.apache.org/ns/1.0">

Please, I beg you, change co.ionic.facebook435 (or what you got there) for something that’s more “on brand” with your app or your business.

NOTE: Not kidding, go to Google Play and do a search for “ionicframework” you’ll see a couple of hundred apps that didn’t change the default package name ????

Once you add the Bundle ID, just follow the process to create the app and then do the same for Android, the difference is that instead of Bundle ID, Android calls it “Google Play Package Name.”

facebook platform android

Step #2: Enable Facebook Sign-In in Firebase.

Now that everything is set up on Facebook’s side, we need to go into our Firebase console and enable Facebook authentication for our app.

To enable Facebook, you’ll need to go to your Firebase Console and locate the app you’re using.

Once you’re inside the app’s dashboard, you’re going to go into Authentication > Sign-In Method > Facebook and are going to click the Enable toggle.

firebase auth enable facebook

Once you do, it’s going to ask you for some information, specifically your Facebook app ID and secret key, you’ll find both of those inside your Facebook console, under your app’s settings.

Step #3: Authenticate Users.

It is entirely up to you in which step of your app’s process you want to authenticate your users, so I’m going to give you the code so you can just copy it into whichever Page you’re using.

The first thing we need to do is to get the authorization from Facebook, to do that, we need to import Facebook plugin from Ionic Native and ask our user to log in.

import { Facebook } from '@ionic-native/facebook'constructor(public facebook: Facebook){}facebookLogin(): Promise<any> {  return this.facebook.login(['email']);}

That function right there takes care of opening the Facebook native widget and ask our user to authorize our application to use their data for login purposes.

Now we need to handle the response. The function response will provide us with a Facebook access token we can then pass to Firebase.

import firebase from 'firebase';import { Facebook } from '@ionic-native/facebook'constructor(public facebook: Facebook){}facebookLogin(): Promise<any> {  return this.facebook.login(['email'])    .then( response => {      const facebookCredential = firebase.auth.FacebookAuthProvider        .credential(response.authResponse.accessToken);      firebase.auth().signInWithCredential(facebookCredential)        .then( success => {           console.log("Firebase success: " + JSON.stringify(success));         });    }).catch((error) => { console.log(error) });}

Let’s break down the code above.

const facebookCredential = firebase.auth.FacebookAuthProvider  .credential(response.authResponse.accessToken);

First, we’re using the line above to create a credential object we can pass to Firebase, then we need to pass that credential object to Firebase:

facebookLogin(): Promise<any> {  return this.facebook.login(['email'])    .then( response => {      const facebookCredential = firebase.auth.FacebookAuthProvider        .credential(response.authResponse.accessToken);      firebase.auth().signInWithCredential(facebookCredential)        .then( success => {           console.log("Firebase success: " + JSON.stringify(success));         });    }).catch((error) => { console.log(error) });}

This bit of code firebase.auth().signInWithCredential(facebookCredential) makes sure your user creates a new account in your Firebase app and then authenticates the user into the Ionic app, storing some authentication information (like tokens, email, provider info, etc.) in local storage.

Next Steps

By now you have a fully working sign-in process with Facebook using Firebase, I know it’s a lot of configuration, but it’s because we want our users to have an amazing experience using our apps.

Now I want you to download a Starter Template I built it has both Facebook and Google Sign-In working out of the box, all you need to do is add your credentials from Facebook and Google ???? (If the link doesn’t show the price as $0 just use the discount code IonicBlog to manually set it as $0)


GET THE TEMPLATE

Read more

YOOtheme Pro 1.8 released

A couple of days ago we released what is one of the major updates to YOOtheme Pro since it was first introduced last year: The Style library! With its huge range of color variations it is a powerful feature for customizing your web projects. But of course that is not all you can expect this month. The YOOtheme Pro 1.8 release also holds another big improvement. We reworked the whole element settings user interface inside the Page Builder and enhanced many features.


Style Library

The new Style library of YOOtheme Pro allows you to quickly change the appearance of your entire website. It has access to all Pro styles that have been released so far. Just navigate to the Style section of the Pro administration and hit the Style select field. Thanks to the intuitive interface you can browse around and easily find exactly what you need. Filter the available styles by background, primary color, type and theme to find the best fit for your website. You can switch styles at any time, the content itself will be preserved and only the look changes. If necessary, you can customize colors, fonts, margins and all other style related properties of your website in the Style section afterwards. New color variations will be added with every theme release. Also take a look at our 45 New Styles blog post where you can get a quick overview of all new styles.

YOOtheme Pro 1.8 Style Library

Reworked element options

This update brings the usability of YOOtheme Pro to the next level! We reworked the whole element settings UI inside the Page Builder. The new administration interface will give you a better overview when editing the settings of any element.

Tabs

We updated all tabs and their related settings for Page Builder elements. From now on, every element has the same three tabs: Content, Settings and Advanced. The first tab provides all content related options like title, meta or text. Under the Settings tab most of the element’s settings are listed. The Advanced tab allows you to add a name, ID or class to the element and to enter your own CSS.

YOOtheme Pro 1.8 Element Tabs

Group options

The Settings tabs benefits the most from the new UI layout. It is organized in group options labeled by headlines and subdivided into two columns with a label on the left and an option field on the right hand site. This helps to keep a good overview of the complex settings structure.

YOOtheme Pro 1.8 Element Group Options

Disabled options

Settings will no longer disappear when they are not available. Instead, they are only disabled, so that you always see what’s possible for this element.

YOOtheme Pro 1.8 Element Disabled Options

Link picker

The link picker is a minor feature that will be a major timesaver for you. YOOtheme Pro now offers a native link picker, like you might be familiar with from WordPress and Joomla, to ensure a smoother workflow.

YOOtheme Pro 1.8 Link Picker

Wrapping up

These were the three main additions in YOOtheme Pro 1.8. A lot more has happened, for example the modal displaying the Layout and Style libraries will in future remember your last browsed folder upon opening. Furthermore, we included range pickers in the Map element. This makes it a lot easier to determine the right value for settings like lightness, saturation or gamma.

As always, we are happy to hear your ideas on this release. So, tell us what you think in the comments below.

jQuery(function($) { var gifs = $('img.gif'), scrolled=false; $(document).on('scroll', function() { scrolled = true; }); setInterval(function check() { if (!scrolled) return; gifs.each(function() { if (isInview(this)) { if (!this.playing) play(this); } else { stop(this); } }); scrolled = false; }, 25); function play(element) { element.playing = element.src = element.src; } function stop(element) { element.playing = false; } function isInview(element, options) { var $element = $(element), $win = $(window); if (!$element.is(':visible')) { return false; } options = $.extend({topoffset:0, leftoffset:0}, options); var wl = $win.scrollLeft(), wt = $win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top; return (top + $element.height() >= wt && top - options.topoffset <= wt + $win.height() && left + $element.width() >= wl && left - options.leftoffset <= wl + $win.width()); } });</script>

Read more

© 2019 Extly, CB - All rights reserved.