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
| <script> | |
| import { mapState } from 'vuex' | |
| import axios from 'axios' | |
| import VueCropper from 'vue-cropperjs' | |
| import 'cropperjs/dist/cropper.css' | |
| export default { | |
| components: { VueCropper }, | |
| props: ['image_name'], | |
| data() { | |
| return { |
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
| <?php | |
| /** | |
| * This method logically validates Turkish VAT number | |
| * | |
| * @param string $taxNumber | |
| * @return bool | |
| */ | |
| public function validateTaxNumber(string $taxNumber): bool | |
| { |
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
| <?php | |
| class WP_HTML_Compression { | |
| protected $compress_css = true; | |
| protected $compress_js = true; | |
| protected $info_comment = true; | |
| protected $remove_comments = true; | |
| protected $html; | |
| public function __construct($html) { | |
| if (!empty($html)) { |
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
| <?php | |
| //----------------------------------------------------------/ | |
| // responsive images [ 1) add img-responsive class 2) remove dimensions ] | |
| //----------------------------------------------------------/ | |
| function bootstrap_responsive_images( $html ){ | |
| $classes = 'img-responsive'; // separated by spaces, e.g. 'img image-link' | |
| // check if there are already classes assigned to the anchor | |
| if ( preg_match('/<img.*? class="/', $html) ) { |
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
| (function($) { | |
| var defaults = {}; | |
| $.fn.fixedscroll = function(opts) { | |
| var options = $.extend(defaults, opts); | |
| var el = $(this); |