PHP:

<?php

if ( function_exists( 'oxygen_vsb_register_condition' ) ) {

	global $oxy_condition_operators;

	oxygen_vsb_register_condition(
		// Condition Name
		'Current Post ID',

		// Values: The array of pre-set values the user can choose from.
		// Set the custom key's value to true to allow users to input custom values.
		array( 
			'options' => array(),
			'custom' => true
		),

		// Operators
		$oxy_condition_operators['int'],
		
		// Callback Function: Name of function that will be used to handle the condition
		'ex_condition_post_id_callback',

		// Condition Category: Default ones are Archive, Author, Other, Post, User
		'Post'
	);

}

/**
 * Callback function to handle the condition.
 * @param  mixed 	$value    	Input value - in this case, ID of a Post entered by the user.
 * @param  string 	$operator 	Comparison operator selected by the user.
 *
 * @return boolean 				true or false.
 */
function ex_condition_post_id_callback( $value, $operator ) {

	$current_post_id = get_the_ID();
	
	// return the integer value of $value
	$value = intval( $value );

	return oxy_condition_eval_int( $current_post_id, $value, $operator );

}

CSS:

.page-template-custom_blog .entry-footer {
	border-bottom: none !important;
	padding-top: 10px;
	padding-bottom: 0;
	margin-top: auto;
}

.page-template-custom_blog .entry-footer a.more-link {
	display: inline-block;
	margin: 0;
}

.page-template-custom_blog .content .entry {
	display: flex;
	flex-direction: column;
}

This is Atomic.

All the pages you see here are built with the sections & elements included with Atomic. Import any page or this entire site to your own Oxygen installation in one click.
GET OXYGEN
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram