2018-12-03 13:56:48 +01:00
< div class = " wrap apps-container " >
<!--
< ? php foreach ( $notices as $notice ) : ?>
< div class = " nf-addon-notice " >
< p >
2021-08-04 17:09:29 +02:00
< strong >< ? php echo $notice [ 'title' ]; ?> </strong> <?php esc_html_e( ' requires an update. You have version ', 'ninja-forms' );?><strong><?php echo $notice[ 'old_version' ]; ?></strong><?php esc_html_e( ' installed. The current version is ', 'ninja-forms' ); ?><strong><?php echo $notice[ 'new_version' ]; ?></strong>.
2018-12-03 13:56:48 +01:00
</ p >
</ div >
< ? php endforeach ; ?>
-->
< ? php
$u_id = get_option ( 'nf_aff' , false );
if ( ! $u_id ) $u_id = apply_filters ( 'ninja_forms_affiliate_id' , false );
?>
2021-08-04 17:09:29 +02:00
< ? php foreach ( $groups as $slug => $group ) : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< h3 id = " <?php echo $slug ; ?> " >< ? php echo $group [ 'title' ]; ?> </h2>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< div class = " apps-container " >
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php foreach ( $group [ 'items' ] as $item ) : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php
$link = $item [ 'link' ];
if ( $u_id ) {
$last_slash = strripos ( $link , '/' );
$link = substr ( $link , 0 , $last_slash );
$link = urlencode ( $link );
$link = 'http://www.shareasale.com/r.cfm?u=' . $u_id . '&b=812237&m=63061&afftrack=&urllink=' . $link ;
}
?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< div class = " nf-extend nf-box " >
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< div class = " nf-box-inside " >
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< img src = " <?php echo NF_PLUGIN_URL . $item['image'] ; ?> " />
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< h2 >< ? php echo $item [ 'title' ]; ?> </h2>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< div class = " nf-extend-content " >
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< p >< ? php echo $item [ 'content' ]; ?> </p>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< div class = " nf-extend-buttons " >
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php if ( ! empty ( $item [ 'docs' ] ) ) : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " <?php echo $item['docs'] ; ?> " class = " nf-button secondary nf-doc-button " >< ? php esc_html_e ( 'Docs' , 'ninja-forms' ); ?> </a>
< ? php else : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< p >< a >< ? php esc_html_e ( 'Documentation coming soon.' , 'ninja-forms' ); ?> </a></p>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php endif ; ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php if ( ! empty ( $item [ 'plugin' ] ) && file_exists ( WP_PLUGIN_DIR . '/' . $item [ 'plugin' ] ) ) : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php if ( is_plugin_active ( $item [ 'plugin' ] ) ) : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< span class = " secondary nf-button " >< ? php esc_html_e ( 'Active' , 'ninja-forms' ); ?> </span>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php elseif ( is_plugin_inactive ( $item [ 'plugin' ] ) ) : ?>
< span class = " secondary nf-button " >< ? php esc_html_e ( 'Installed' , 'ninja-forms' ); ?> </span>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php else : ?>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< a target = " _blank " href = " <?php echo $link ; ?> " title = " <?php echo $item['title'] ; ?> " class = " primary nf-button " >< ? php esc_html_e ( 'Learn More' , 'ninja-forms' ); ?> </a>
2018-12-03 13:56:48 +01:00
2021-08-04 17:09:29 +02:00
< ? php endif ; ?>
< ? php else : ?>
< a target = " _blank " href = " <?php echo $link ; ?> " title = " <?php echo $item['title'] ; ?> " class = " primary nf-button " >< ? php esc_html_e ( 'Learn More' , 'ninja-forms' ); ?> </a>
< ? php endif ; ?>
</ div >
2018-12-03 13:56:48 +01:00
</ div >
</ div >
</ div >
2021-08-04 17:09:29 +02:00
< ? php endforeach ; ?>
</ div ><!-- ./ apps - container -->
2018-12-03 13:56:48 +01:00
< ? php endforeach ; ?>
</ div >