Comments (3)
Something along these lines...
function region_has_block($test_region) {
$number_of_blocks = count(block_list($test_region));
if ($number_of_blocks > 0) {
return TRUE;
}
else {
return FALSE;
}
}
from open_framework.
We also probably don't want to call it more than twice per template (once for each of the left and right regions in the template), and rename it?
from open_framework.
Good catch! I'll test it out your suggestion locally.
from open_framework.
Related Issues (20)
- Remove top margin from headers other than H2 in postcard layouts HOT 1
- Subtheme Problems HOT 1
- 4 grid layout goes from 4 to 3 in a row after 28th item
- Add accessibility examples to Open Framework website
- .pullquote class (which has background color) overlaps with text/images
- Fontawesome not working HOT 2
- Increase contrast for .caption class to meet WCAG AA 1.4.3
- Two regions missing from .info file in subtheming kit
- Footer content blocks have incorrect responsive widths HOT 1
- .views-grid-four styles only targets through the 28th item HOT 1
- drupal-8.x version of open_framework?
- views-row-5 only displaying 4 items
- Separate out template file for stanford_person from open_framework and put into stanford_person HOT 3
- Turn off responsive views for one type of content
- Helpful to have WYSIWYG configurations for theme
- Drop down menu over slideshow
- margins on mobile
- Context Module Error HOT 3
- some css won't show for non-admin users HOT 1
- php 7.4 incompatible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open_framework.