includes/librairies/dashboard.class.php 1 location
|
@@ 684-693 (lines=10) @@
|
| 681 |
|
echo $output; |
| 682 |
|
} |
| 683 |
|
|
| 684 |
|
function wpshop_dashboard_get_changelog() { |
| 685 |
|
$readme_file = fopen( WPSHOP_DIR.'/readme.txt', 'r' ); |
| 686 |
|
if ( $readme_file ) { |
| 687 |
|
$txt = file_get_contents( WPSHOP_DIR.'/readme.txt' ); |
| 688 |
|
$pre_change_log = explode( '== Changelog ==', $txt ); |
| 689 |
|
$versions = explode( '= Version', $pre_change_log[1] ); |
| 690 |
|
|
| 691 |
|
echo $versions[1]; |
| 692 |
|
} |
| 693 |
|
} |
| 694 |
|
} |
| 695 |
|
?> |
| 696 |
|
|
includes/modules/wps_dashboard/controller/wps_dashboard_ctr.php 1 location
|
@@ 121-130 (lines=10) @@
|
| 118 |
|
echo $output; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
function wpshop_dashboard_get_changelog() { |
| 122 |
|
$readme_file = fopen( WPSHOP_DIR.'/readme.txt', 'r' ); |
| 123 |
|
if ( $readme_file ) { |
| 124 |
|
$txt = file_get_contents( WPSHOP_DIR.'/readme.txt' ); |
| 125 |
|
$pre_change_log = explode( '== Changelog ==', $txt ); |
| 126 |
|
$versions = explode( '= Version', $pre_change_log[1] ); |
| 127 |
|
|
| 128 |
|
echo $versions[1]; |
| 129 |
|
} |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* Add custom metaboxes to WPShop dashboard |