{
    "title": "Popup Links",
    "label": "Popup Links",
    "description": "Use the popup plugin in your content to include links that open in popup windows.",
    "image": "macbook.jpg",
    "content": "X3 uses the popup internally for galleries, but it is made available for you to use in your page content also. The X3 popup is perfect for image links, but cant also be used for custom links- and content.\n\n## Usage\nTo use the popup with your links, simply add the `data-popup` attribute to your link.\n<pre data-lang=\"html\"><code><a href=\"ipad.jpg\" data-popup>Click Me<\/a><\/code><\/pre>\n*Popup links use the <i class=\"fa fa-search-plus\"><\/i> zoom-in cursor on mouse-hover to emphasize that the link opens a popup.*\n<a href=\"{{path}}ipad.jpg\" data-popup>Click Me<\/a>\n\n\n## Titles\nTo add a title for the image, just use `data-popup-title=\"title\"`. When using this attribute, you don't need to set the data-popup attribute, because it is implicit.\n<pre data-lang=\"html\"><code>\n<a href=\"macbook.jpg\" data-popup-title=\"Macbook Title\">Click Me<\/a>\n<\/code><\/pre>\n<a href=\"{{path}}macbook.jpg\" data-popup-title=\"Macbook Title\">Click Me<\/a>\n\n\n## Links\nThe popup link feature is practical for loading embeddable content, like Youtube Videos.\n<pre data-lang=\"html\"><code>\n<a href=\"https:\/\/www.youtube.com\/embed\/G46ygBKsTZI\" data-popup>Youtube Video<\/a>\n<\/code><\/pre>\n<a href=\"https:\/\/www.youtube.com\/embed\/G46ygBKsTZI\" data-popup data-popup-ignore-mobile data-popup-class=\"x3-popup-iframe-full\">Youtube Video<\/a>\n\nThe popup is optimized for images and embeddable content, but can also be used to open links.\n<pre data-lang=\"html\"><code>\n<a href=\"https:\/\/flamepix.com\" data-popup>Click Me<\/a>\n<\/code><\/pre>\n<a href=\"https:\/\/flamepix.com\" data-popup-ignore-mobile data-popup>Click Me<\/a>\n\n<div data-alert class=\"alert-box bg2\">\n<h3>Warning!<\/h3>\n<p>Be careful using the X3 popup for full websites. Some websites refuse to load inside an iframe, and you will face problems with scroll and interface on mobile touch devices. The X3 popup should only be used for simple html content, or embeddable content (like video). If you want to open full websites, you should use \"Browser Popup Window\" (see details further down on this page).<\/p>\n<\/div>\n\n## Custom Content\nYou can use the popup to display inline content with the `data-popup-content` tag.\n<pre data-lang=\"html\"><code>\n<!-- Use placeholder href=\"#\" attribute so the link remains valid --><br>\n<a href=\"#\" data-popup-content=\"<h2>Custom Content<\/h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla in lorem vel turpis tincidunt varius. Aenean molestie sem velit, quis accumsan sapien molestie non. In nec quam tortor.<\/p>\">Click Me<\/a>\n<\/code><\/pre>\n<a href=\"#\" data-popup-content=\"<h2>Custom Content<\/h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla in lorem vel turpis tincidunt varius. Aenean molestie sem velit, quis accumsan sapien molestie non. In nec quam tortor.<\/p>\">Click Me<\/a>\n\n## Image Links\nNothing wrong with using images inside your links ...\n<pre data-lang=\"html\"><code>\n<a href=\"iphone.jpg\" data-popup><img src=\"{{path}}iphone.jpg\" \/><\/a><br>\n<br><!-- If you want the cool zoom effect, you need to add width\/height attributes --><br>\n<a href=\"iphone.jpg\" data-popup data-width=1300 data-height=866><img src=\"{{path}}iphone.jpg\" \/><\/a>\n<\/code><\/pre>\n<a href=\"{{path}}iphone.jpg\" data-popup data-width=1300 data-height=866><img class=x3-style-frame src=\"{{path}}iphone.jpg\" \/><\/a>\n\n## Link Groups\nYou can also group links so that you can navigate between them in the same popup.\n<pre data-lang=\"html\"><code>\n<div data-popup-container><br>\n<a href=\"macbook.jpg\">Macbook<\/a><br>\n<a href=\"iphone.jpg\">iPhone<\/a><br>\n<a href=\"ipad.jpg\">iPad<\/a><br>\n<\/div>\n<\/code><\/pre>\n<div data-popup-container>\n<a href=\"{{path}}macbook.jpg\">Macbook<\/a>\n\/ <a href=\"{{path}}iphone.jpg\">iPhone<\/a>\n\/ <a href=\"{{path}}ipad.jpg\">iPad<\/a>\n<\/div>\n\n<br>... Optionally, if you can't or don't want to add all grouped links in the same container, use the ```rel``` attribute to assign a group name.\n<pre data-lang=\"html\"><code>\n<a href=\"macbook.jpg\" rel=\"mypopup\" data-popup>Macbook<\/a><br>\n<a href=\"iphone.jpg\" rel=\"mypopup\" data-popup>iPhone<\/a><br>\n<a href=\"ipad.jpg\" rel=\"mypopup\" data-popup>iPad<\/a><br>\n<\/code><\/pre>\n<a href=\"{{path}}macbook.jpg\" rel=\"mypopup\" data-popup>Macbook<\/a> \/ <a href=\"{{path}}iphone.jpg\" rel=\"mypopup\" data-popup>iPhone<\/a> \/ <a href=\"{{path}}ipad.jpg\" rel=\"mypopup\" data-popup>iPad<\/a>\n\n## Advanced\nA few more attributes for the ambitious.\n<pre data-lang=\"html\"><code>\n<!-- Use data-popup-href to explicitly set the popup link while keeping a different main href link. This is used internally by the X3 gallery to have an image link point to the image landing page for benefit of accessibility, sharing and SEO, while link click will still open the popup. --><br>\n<a href=\"https:\/\/www.photo.gallery\" data-popup-href=\"macbook.jpg\">Macbook<\/a><br>\n<br>\n<!-- Use data-popup-ignore-mobile to bypass the popup link for mobile devices. This is recommended if you are linking to a full scrollable website in the popup, in which case it will instead open in a new window on mobile devices. This is strongly recommended, because websites loaded inside the popup iframe will not scroll properly with touch, and will interfere with the popup interface. --><br>\n<a href=\"https:\/\/www.photo.gallery\" data-popup-ignore-mobile data-popup>www.photo.gallery<\/a><br>\n<br>\n<!-- Use the data-popup-class to define your own custom CSS wrapper class for the popup. Useful if you want to define your own CSS rules for popup-content or popup-links. --><br>\n<a data-popup-content=\"Howdy! This content is wrapped inside an element with a <em>custom_css_class<\/em>.\" data-popup-class=\"custom_class\">Custom<\/a><br>\n<br>\n<!-- Force popup image-type with data-popup-image, when this is not explicit. --><br>\n<a href=\"https:\/\/d.pr\/i\/3SjM+\" data-popup-image>Force popup image-type<\/a>\n<\/code><\/pre>\n\n<a href=\"https:\/\/www.photo.gallery\" data-popup-href=\"{{path}}macbook.jpg\">Macbook.jpg or open www.photo.gallery in new window<\/a>\n<a href=\"https:\/\/www.photo.gallery\" data-popup-ignore-mobile data-popup>www.photo.gallery opens in new window on mobile devices.<\/a>\n<a data-popup-content=\"Howdy! This content is wrapped inside an element with a <em>custom_css_class<\/em>.\" data-popup-class=\"x3-popup-content\">Custom CSS Class<\/a>\n<a href=\"https:\/\/d.pr\/i\/3SjM+\" data-popup-image>Force popup image-type<\/a>\n\n## Browser Popup Window\nYou can also set links to open in *native* brower popup windows. Although not as elegant as the X3 popup, this feature can be useful when loading html pages and\/or when scrollbar is required. The native browser popup method is basically a new browser window, limited only by size and controls.\n\n<a href=\"https:\/\/flamepix.com\" data-popup-window>Flamepix.com in Popup<\/a>\n<pre data-lang=\"html\"><code><a href=\"https:\/\/flamepix.com\" data-popup-window>Flamepix.com in Popup<\/a><\/code><\/pre>\n\nBy default, the popup window is set to open at dimensions 600 x 400 px, but you can set your own size:\n<a href=\"https:\/\/flamepix.com\" data-popup-window=\"name,1100,800\">1100 x 800<\/a>\n<pre data-lang=\"html\"><code>\n<!-- data-popup-window=\"window name, width, height\" --><br><a href=\"https:\/\/flamepix.com\" data-popup-window=\"name,1100,800\">1100 x 800<\/a><\/code><\/pre>\nPopup windows will always be centered, and will never open larger than the visitors screen. Furthermore, \"popup\" windows are not supported on most mobile\/touch devices, and will instead open in a \"new tab\".\n\n\n---\n\n## Native X3 Gallery\nBelow, you can see the native X3 gallery displaying images from within this folder. The X3 gallery also uses a the popup feature, but with a slightly more advanced integration.\n",
    "link": {
        "target": "popup"
    },
    "context": {
        "items": "title,description,preview,content",
        "crop": {
            "enabled": false
        }
    },
    "gallery": {
        "layout": "grid"
    }
}