diff --git a/css/profile-pages.css b/css/profile-pages.css index 44d9a6c..c8175b3 100644 --- a/css/profile-pages.css +++ b/css/profile-pages.css @@ -674,6 +674,29 @@ table.no-bgcolor tr{ margin: 3px 0 0; } +.widget_download .nc_tweetContainer{ + height: 35px !important; +} +.widget_download .button.download{ + padding: 8px 6px 0 !important; + border-radius: 2px; + position: absolute; + right: 215px; +} +.widget_download a.download span{ + display: none; +} + +.widget_download a.download:hover{ + right: 215px; +} +.widget_download a.download:hover span{ + display: initial; +} +.widget_download a.download i{ + margin-right: 5px; + margin-left: 5px; + .full-width-content ul{ padding: 5px 0; } @@ -764,5 +787,5 @@ table.no-bgcolor tr{ .single #post-content .selected_option_ha, .single #post-content .selected_option_per{ border: none; - padding: 0; + padding: 0; } diff --git a/post-types/templates/single-profiles.php b/post-types/templates/single-profiles.php index 2bf07db..cd0d393 100644 --- a/post-types/templates/single-profiles.php +++ b/post-types/templates/single-profiles.php @@ -30,6 +30,7 @@ $ckan_dataset_exploded_by_dataset = explode('/dataset/', $ckan_dataset ); $ckan_dataset_exploded_by_resource = explode('/resource/', $ckan_dataset_exploded_by_dataset[1]); $ckan_dataset_id = $ckan_dataset_exploded_by_resource[0]; + $dataset = wpckan_api_package_show(wpckan_get_ckan_domain(),$ckan_dataset_id); } @@ -46,21 +47,31 @@
- + is_mobile()): ?> + if(!empty($dataset) && odm_screen_manager()->is_mobile()): ?>
is_desktop()): ?> -
-
- -
-
+ elseif (!empty($dataset) && odm_screen_manager()->is_desktop()): ?> +
+
+
+ + + +
+
+ +
+
+
diff --git a/utils/utils.php b/utils/utils.php index 41e80f0..f0153fe 100644 --- a/utils/utils.php +++ b/utils/utils.php @@ -270,16 +270,19 @@ function echo_metadata_button($dataset){ } function echo_download_button_link_to_datapage($dataset_id){ - ?> - /dataset/?id="> - - is_desktop()): - _e('Download and Metadata', 'wp-odm_profile_pages'); - endif; ?> - + ?> +
+
+ /dataset/?id="> + + is_desktop()): + _e('Download and Metadata', 'wp-odm_profile_pages'); + endif; ?> + + +
+
diff --git a/wp-odm_profile_pages.php b/wp-odm_profile_pages.php index cdb287e..b6dcd0a 100644 --- a/wp-odm_profile_pages.php +++ b/wp-odm_profile_pages.php @@ -3,7 +3,7 @@ * Plugin Name: ODM Profile Pages * Plugin URI: http://github.com/OpenDevelopmentMekong/odm_profile_pages * Description: Internal wordpress plugin for exposing custom content type for profile pages - * Version: 2.4.3 + * Version: 2.4.4 * Author: Alex Corbi (mail@lifeformapps.com) * Author URI: http://www.lifeformapps.com * License: GPLv3.