Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
alain
Make it Open Project Site
Commits
a86f70f0
Commit
a86f70f0
authored
Mar 17, 2021
by
alain
🐙
Browse files
use plugin for svg (functions method didn't work for me)
parent
93d7a7aa
Changes
91
Expand all
Hide whitespace changes
Inline
Side-by-side
wordpress/wp-content/plugins/safe-svg/safe-svg.php
0 → 100644
View file @
a86f70f0
This diff is collapsed.
Click to expand it.
wordpress/wp-content/plugins/safe-svg/vendor/autoload.php
0 → 100644
View file @
a86f70f0
<?php
// autoload.php @generated by Composer
require_once
__DIR__
.
'/composer/autoload_real.php'
;
return
ComposerAutoloaderInite8e10821bdd565dee9c75d75521e5f33
::
getLoader
();
wordpress/wp-content/plugins/safe-svg/vendor/composer/ClassLoader.php
0 → 100644
View file @
a86f70f0
This diff is collapsed.
Click to expand it.
wordpress/wp-content/plugins/safe-svg/vendor/composer/LICENSE
0 → 100644
View file @
a86f70f0
Copyright (c) Nils Adermann, Jordi Boggiano
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wordpress/wp-content/plugins/safe-svg/vendor/composer/autoload_classmap.php
0 → 100644
View file @
a86f70f0
<?php
// autoload_classmap.php @generated by Composer
$vendorDir
=
dirname
(
dirname
(
__FILE__
));
$baseDir
=
dirname
(
$vendorDir
);
return
array
(
);
wordpress/wp-content/plugins/safe-svg/vendor/composer/autoload_namespaces.php
0 → 100644
View file @
a86f70f0
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir
=
dirname
(
dirname
(
__FILE__
));
$baseDir
=
dirname
(
$vendorDir
);
return
array
(
);
wordpress/wp-content/plugins/safe-svg/vendor/composer/autoload_psr4.php
0 → 100644
View file @
a86f70f0
<?php
// autoload_psr4.php @generated by Composer
$vendorDir
=
dirname
(
dirname
(
__FILE__
));
$baseDir
=
dirname
(
$vendorDir
);
return
array
(
);
wordpress/wp-content/plugins/safe-svg/vendor/composer/autoload_real.php
0 → 100644
View file @
a86f70f0
This diff is collapsed.
Click to expand it.
wordpress/wp-content/plugins/safe-svg/vendor/composer/autoload_static.php
0 → 100644
View file @
a86f70f0
<?php
// autoload_static.php @generated by Composer
namespace
Composer\Autoload
;
class
ComposerStaticInite8e10821bdd565dee9c75d75521e5f33
{
public
static
function
getInitializer
(
ClassLoader
$loader
)
{
return
\
Closure
::
bind
(
function
()
use
(
$loader
)
{
},
null
,
ClassLoader
::
class
);
}
}
wordpress/wp-content/plugins/safe-svg/vendor/composer/installed.json
0 → 100644
View file @
a86f70f0
[]
wordpress/wp-content/themes/makeitopen/inc/template-functions.php
View file @
a86f70f0
...
...
@@ -12,11 +12,11 @@ function mio_admin_logo() { ?>
add_action
(
'login_enqueue_scripts'
,
'mio_admin_logo'
);
// Allow SVG files
function
cc_mime_types
(
$mimes
)
{
$mimes
[
'svg'
]
=
'image/svg+xml'
;
return
$mimes
;
}
add_filter
(
'upload_mimes'
,
'cc_mime_types'
);
//
function cc_mime_types($mimes) {
//
$mimes['svg'] = 'image/svg+xml';
//
return $mimes;
//
}
//
add_filter('upload_mimes', 'cc_mime_types');
// Custom excerpt length
function
excerpt
(
$string
,
$length
)
{
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment