03/11/2014 at 9:01 am
#281910
Keymaster
@ Bree
Assuming you modding the Default Card template … Change all 4 instances of CN_Card_Template to CN_Custom_Template (or other unique name). Then update the following as needed with your details:
$atts = array(
'class' => 'CN_Card_Template',
'name' => 'Default Entry Card',
'slug' => 'card',
'type' => 'all',
'version' => '2.0',
'author' => 'Steven A. Zahm',
'authorURL' => 'connections-pro.com',
'description' => 'This is the default template.',
'custom' => FALSE,
'path' => plugin_dir_path( __FILE__ ),
'url' => plugin_dir_url( __FILE__ ),
'thumbnail' => 'thumbnail.png',
'parts' => array(),
);
I would not change this line at all … only the tweak the code within the function to meet your needs:
$template->part( array( 'tag' => 'card', 'type' => 'action', 'callback' => array( $this, 'card' ) ) );
Hope that helps.
