get_slug();
$open_addon_slug = fs_request_get( 'slug' );
$open_addon = false;
/**
* @var FS_Plugin[]
*/
$addons = $fs->get_addons();
$has_addons = ( is_array( $addons ) && 0 < count( $addons ) );
?>
get_plugin_name() ) ?>
slug ) );
$price = 0;
$plan = null;
$plans_result = $fs->get_api_site_or_plugin_scope()->get( "/addons/{$addon->id}/plans.json" );
if ( ! isset( $plans_result->error ) ) {
$plans = $plans_result->plans;
if ( is_array( $plans ) && 0 < count( $plans ) ) {
$plan = new FS_Plugin_Plan( $plans[0] );
$pricing_result = $fs->get_api_site_or_plugin_scope()->get( "/addons/{$addon->id}/plans/{$plan->id}/pricing.json" );
if ( ! isset( $pricing_result->error ) ) {
// Update plan's pricing.
$plan->pricing = $pricing_result->pricing;
if ( is_array( $plan->pricing ) && 0 < count( $plan->pricing ) ) {
$min_price = 999999;
foreach ( $plan->pricing as $pricing ) {
if ( ! is_null( $pricing->annual_price ) && $pricing->annual_price > 0 ) {
$min_price = min( $min_price, $pricing->annual_price );
} else if ( ! is_null( $pricing->monthly_price ) && $pricing->monthly_price > 0 ) {
$min_price = min( $min_price, 12 * $pricing->monthly_price );
}
}
if ( $min_price < 999999 ) {
$price = $min_price;
}
}
}
}
}
?>
-
',
esc_url( network_admin_url( 'plugin-install.php?tab=plugin-information&parent_plugin_id=' . $fs->get_id() . '&plugin=' . $addon->slug .
'&TB_iframe=true&width=600&height=550' ) ),
esc_attr( sprintf( __fs( 'more-information-about-x', $slug ), $addon->title ) ),
esc_attr( $addon->title )
);
?>
info ) ) {
$addon->info = new stdClass();
}
if ( ! isset( $addon->info->card_banner_url ) ) {
$addon->info->card_banner_url = '//dashboard.freemius.com/assets/img/marketing/blueprint-300x100.jpg';
}
if ( ! isset( $addon->info->short_description ) ) {
$addon->info->short_description = 'What\'s the one thing your add-on does really, really well?';
}
?>
- title ?>
-
has_trial() ? ' - ' . __fs('trial', $slug) : '')) ?>
- info->short_description ) ? $addon->info->short_description : 'SHORT DESCRIPTION' ?>
'addons',
'module_id' => $fs->get_id(),
'module_slug' => $slug,
'module_version' => $fs->get_plugin_version(),
);
fs_require_template( 'powered-by.php', $params );
?>