Monthly Archiv: February, 2020

Observable PHP Event Listener and Emitter

Package:
Observable PHP Event Listener and Emitter
Summary:
Listen and emit events handled by callbacks
Groups:
Language, PHP 5
Author:
carlos carvalho
Description:
This package can be used to listen and emit events handled by callbacks...

Read more at https://www.phpclasses.org/package/11549-PHP-Listen-and-emit-events-handled-by-callbacks.html#2020-02-29-16:51:50

PHP Short URL Generator

Package:
PHP Short URL Generator
Summary:
Create short URLs storing them in a XML database
Groups:
Databases, HTTP, PHP 5
Author:
Chouchen
Description:
This package can be used to create short URLs storing them in a XML database...

Read more at https://www.phpclasses.org/package/11548-PHP-Create-short-URLs-storing-them-in-a-XML-database.html#2020-02-28-22:48:29

PHP Windows exe Parser

Package:
PHP Windows exe Parser
Summary:
Parse and extract details from Windows exe files
Groups:
Files and Folders, Parsers, PHP 5, Windows
Author:
peyman
Description:
This class can be used to parse and extract details from Windows exe files...

Read more at https://www.phpclasses.org/package/11540-PHP-Parse-and-extract-details-from-Windows-exe-files.html#2020-02-28-06:14:56

Weekly News for Designers № 529

Envato Elements

Setting Up Tailwind CSS In A React Project – Learn how to use the popular CSS framework in your next project.
Example from Setting Up Tailwind CSS In A React Project

Are Web Browsers Overstepping Boundaries? – Increasingly, web browsers are making more decisions for users in the name of security. Is this a good thing?
Example from Are Web Browsers Overstepping Boundaries?

Iconset – An app for better organizing your SVG icons.
Example from Iconset

Fluiditype – A small CSS library that focuses on pure fluidity in type across all screen sizes.
Example from Fluiditype

The Tuner – How acting like a piano tuner may just help you produce better design work.
Example from The Tuner

A Guide to Console Commands – Learn to use the available console tools in Chrome and Firefox to troubleshoot your projects.
Example from A Guide to Console Commands

CSS Stats – An app that provides analytics and visualizations for your site’s stylesheets.
Example from CSS Stats

10 Free Instagram Story Templates – Templates that will help you create and share your stories in a consistent manner and get them published quickly.
Example from 10 Free Instagram Story Templates

Navigation for Design Systems and Style Guides – A look at different types of navigation and when to use them.
Example from Navigation for Design Systems and Style Guides

When CSS Blocks – Some dated CSS loading practices that can negatively impact load times.
Example from When CSS Blocks

Micromodal.js – A tiny, dependency-free JavaScript library for creating accessible modal dialogs.
Example from Micromodal.js

Top Custom Gutenberg Blocks You Can Add to WordPress – Use these custom block collections to supercharge the Gutenberg editor.
Example from Top Custom Gutenberg Blocks You Can Add to WordPress

Skiff Variable Font Family – Check out this playful and classy free font. Includes two variable versions.
Example from Skiff Variable Font Family

monica.css – A seriously-small CSS framework that contains very basic CSS Flexbox layouts.
Example from

Heroicons – A set of 140+ free MIT-licensed high-quality SVG icons for you to use in your web projects.
Example from Heroicons

Free Neumorphism UI Kit – Take advantage of the latest trend with this free UI kit for Adobe XD.
Example from Free Neumorphism UI Kit

Open Peeps – A free, mix-and-match hand-drawn illustration library.
Example from Open Peeps

The post Weekly News for Designers № 529 appeared first on Speckyboy Design Magazine.

pharaoh PHP Client Detection

Package:
pharaoh PHP Client Detection
Summary:
Detect the current HTTP request browser type
Groups:
HTTP, PHP 5, Wireless and Mobile
Author:
Moamen Eltouny
Description:
This class can detect the current HTTP request browser type

It parses the current HTTP request user agent to detect relevant details...

Read more at https://www.phpclasses.org/package/11547-PHP-Detect-the-current-HTTP-request-browser-type.html#2020-02-27-20:05:12

Site News: Blast from the Past – One Year Ago in PHP (02.27.2020)

Here's what was popular in the PHP community one year ago today:

PHP vCard Library

Package:
PHP vCard Library
Summary:
Import and export contact lists in vCard format
Groups:
Files and Folders, Parsers, PHP 5, User Management
Author:
Stefan Kientzler
Description:
This package can be used to import and export contact lists in vCard format...

Read more at https://www.phpclasses.org/package/11545-PHP-Import-and-export-contact-lists-in-vCard-format.html#2020-02-27-04:33:38

Styling Wide and Full-Width Gutenberg Blocks in WordPress

The Gutenberg block editor for WordPress has changed how we create content within the CMS. But it’s also opened up some new possibilities on the front end as well.

One of the more interesting developments in this area is the ability to add “full” or “wide” blocks to a page or post. This feature adds the potential for a Gutenberg block to break out from the default width of a theme’s content – something that was nearly impossible in the old Classic Editor.

There are a number of possible uses for a full or wide-aligned block. You could, for instance, introduce new page sections with a full-width cover block that overlays text on an image background. Or you might leverage the feature to build a can’t-miss call-to-action area. Just about any type of content could be added here, which is part of the appeal.

However, there is one small caveat: Your theme must support full and wide-aligned blocks. Thankfully, it’s rather easy to do. The following is a quick tutorial for adding wide alignment support to your WordPress theme and styling the blocks via CSS.

Adding Theme Support

The first step involves adding a single line of code to your active theme’s functions.php file. Download this file from your website if you haven’t already done so (it can be found in the /wp-content/themes/yourtheme/ folder – substituting “yourtheme” for the actual name of the folder). Then, copy and paste the following PHP snippet:

add_theme_support( 'align-wide' );

Once you’ve added the code, upload the changed functions.php file back into your theme’s folder.

This code will signify that you want to turn on full and wide-aligned blocks. Now, when you log into WordPress and go to the page/post editor, you should notice that some blocks (not all) have the new “Full” and “Wide” alignment options.

Block alignments within WordPress.

Using a Commercial or Default Theme?
If you’re using a commercial or default WordPress theme, you’ll want to make sure you’re utilizing a child theme. This will let you make changes to the theme without potentially losing them after an update.

Basic Block Styling

Styling a wide or full-aligned block can be a little tricky. And there are a number of different techniques floating around. The one we’ll use here came from this example on CodePen.

@media screen and (min-width: 960px) {
     .alignwide, .alignfull {
          width:  100vw;
          max-width:  100vw;
          margin-left:  calc(50% - 50vw);
     }
}

Notice that we’re using a CSS media query to only integrate this style when the screen size is 960 pixels or wider. That’s because we won’t necessarily want this effect on smaller screens.

In this case, we have used the same styles for both block alignments. Of course, it’s entirely possible to style them separately so that they each offer a unique look on the front end.

It’s also worth noting a potential drawback: A horizontal scrollbar may appear on some layouts when using this technique. That can be taken care of via CSS with the following added to the body element:

body {
     overflow-x:  hidden;
}

The Results

Now that we’ve turned on the ability for full and wide-aligned blocks, it’s time to test things out. Here, we’ve created a page with a cover block, set to a wide alignment.

Creating a wide aligned block within WordPress.

When looking at the front end of the website, the cover block works as intended. The element spans the entire width of the page, while the content below stays within the theme’s predefined 960-pixel width.

The wide-aligned cover block displays on the front end.

Using just the default styles, this element really stands out. Still, there are plenty of opportunities to do more with the design.

By adding extra CSS classes or targeting specific blocks, we have a full arsenal of design possibilities at our disposal. Things like backgrounds, borders or clipping paths can add a unique touch.

Going Wide with WordPress Themes

In a default installation, Gutenberg doesn’t provide all the bells and whistles of a page builder plugin. But block alignments do allow us to dabble in that territory.

That’s a good thing, because web design has evolved from the days when the Classic Editor first appeared. Back then, websites tended to use a uniform content width throughout.

These days, full-width sections are among the more popular and useful layout choices. The ability to take advantage of this without the need for plugins or theme hacks makes WordPress all the better for designers.

The post Styling Wide and Full-Width Gutenberg Blocks in WordPress appeared first on Speckyboy Design Magazine.

OpenStreetMap Nominatim PHP Class

Package:
OpenStreetMap Nominatim PHP Class
Summary:
Search addresses with the OSM Nominatim API
Groups:
Geography, PHP 5, Web services
Author:
Stefan Kientzler
Description:
This class can search addresses with the OSM Nominatim API...

Read more at https://www.phpclasses.org/package/11546-PHP-Search-addresses-with-the-OSM-Nominatim-API.html#2020-02-26-12:30:09
Powered by Gewgley