This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- http://therunapp.co/wp-content/uploads/2018/06/simple-website-download-sample-html-page-template-login-free.jpg --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sample Page</title> | |
| </head> | |
| <body> | |
| <!-- Header --> | |
| <div style="background-color:#12ac90;height: 200px;"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>GIT Home</title> | |
| </head> | |
| <body > | |
| <h1>Welcome to GIT</h1> | |
| <br/> | |
| <hr/> | |
| <br/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package in.rishirajpurohit.android.fileaccess; | |
| import android.Manifest; | |
| import android.content.ContentResolver; | |
| import android.content.pm.PackageManager; | |
| import android.database.Cursor; | |
| import android.graphics.Color; | |
| import android.net.Uri; | |
| import android.os.Environment; | |
| import android.provider.MediaStore; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void checkPerms(){ | |
| if (ContextCompat.checkSelfPermission(MainActivity.this, | |
| Manifest.permission.READ_EXTERNAL_STORAGE) | |
| != PackageManager.PERMISSION_GRANTED) { | |
| // Should we show an explanation? | |
| if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, | |
| Manifest.permission.READ_EXTERNAL_STORAGE)) { | |
| // Show an explanation to the user *asynchronously* -- don't block |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global $woocommerce; | |
| //Get url of cart page | |
| $cart_url = WC_Cart::get_cart_url(); //one way to do it | |
| $checkout_url = WC_Cart::get_checkout_url(); | |
| //Get total value of cart | |
| $cart_total = $woocommerce->cart->get_cart_total(); //other way to do it | |
| //Get number of cart items |
NewerOlder