Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JamiesonRoberts/1f17d3f99e10be4928ff4cf97dbfd63e to your computer and use it in GitHub Desktop.
Save JamiesonRoberts/1f17d3f99e10be4928ff4cf97dbfd63e to your computer and use it in GitHub Desktop.
$header_crop = ingenious_get_option('header_crop');
$header_crop_array = is_array($header_crop) ? $header_crop : array($header_crop);
$header_crop_value = !empty($header_crop_array) ? $header_crop_array : array('left_crop');
$header_left_crop = in_array( 'left_crop', $header_crop_value) ? true : false;
$header_right_crop = in_array( 'right_crop', $header_crop_value) ? true : false;
$header_center_crop = in_array( 'center_crop', $header_crop_value) ? true : false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment