In tile-plus.php, I added a short code called “show_family_detail” so I can turn on/off my info in the html.
I added my function “getFamilyMemberDetailBlock” to class.entry-output.php, as instructed above.
I added following to the tile card.php after the series of “if” statements, for the calls to show_phonenumbers, show_emails, etc.
<div style="display: inline-block;"> <?php if ( $atts['show_family_detail'] ) $entry->getFamilyMemberDetailBlock( $atts, $entry ); /*** ADDED BY WHE ***/ ?> </div>
In my function, I added code after the “foreach ( $relations as $relationData )” loop the was enclosed in ”
<
div>” I put some examples to show what I want. See the image of a tile below. Div is boxed is red.
I would like to be able to access the data for each of the relative entries using a series of if stmts like used in card.php, like one following.
if ( $atts['show_phonumbers'] ) $html = $html . $entry->getPhoneNumberBlock( array( 'format' => $atts['phone_format'] , 'type' => $atts['phone_types'] ) );
How would I need to change this to access the data particular to each family member?
I can’t figure that out at this point.
Could you help? Thanks Steve, Bill
-
This reply was modified 10 years ago by
wemmons53.
-
This reply was modified 10 years ago by
wemmons53.
-
This reply was modified 9 years, 10 months ago by
Steven Zahm.
