Browse Source

Issue 1197: New hook for "oembed_fetch_url"

tags/3.3.3
Michael Vogel 4 years ago
parent
commit
cb9196f6d6
3 changed files with 8 additions and 2 deletions
  1. 4
    0
      .gitignore
  2. 2
    0
      include/oembed.php
  3. 2
    2
      view/theme/vier/theme.php

+ 4
- 0
.gitignore View File

@@ -34,7 +34,11 @@ report/
34 34
 #ignore cache folders
35 35
 /privacy_image_cache/
36 36
 /photo/
37
+/proxy/
37 38
 nbproject
38 39
 
39 40
 #ignore vagrant dir
40 41
 .vagrant/
42
+
43
+#ignore test folder
44
+/test/

+ 2
- 0
include/oembed.php View File

@@ -110,6 +110,8 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){
110 110
 		}
111 111
 	}
112 112
 
113
+	call_hooks('oembed_fetch_url', $embedurl, $j);
114
+
113 115
 	return $j;
114 116
 }
115 117
 

+ 2
- 2
view/theme/vier/theme.php View File

@@ -22,14 +22,14 @@ if ($style == "")
22 22
 
23 23
 if ($style == "flat")
24 24
 	$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/flat.css" type="text/css" media="screen"/>'."\n";
25
-if ($style == "dark")
26
-	$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/dark.css" type="text/css" media="screen"/>'."\n";
27 25
 else if ($style == "netcolour")
28 26
 	$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/netcolour.css" type="text/css" media="screen"/>'."\n";
29 27
 else if ($style == "breathe")
30 28
 	$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/breathe.css" type="text/css" media="screen"/>'."\n";
31 29
 else if ($style == "plus")
32 30
 	$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/plus.css" type="text/css" media="screen"/>'."\n";
31
+else if ($style == "dark")
32
+	$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/dark.css" type="text/css" media="screen"/>'."\n";
33 33
 
34 34
 $a->page['htmlhead'] .= <<< EOT
35 35
 <script type="text/javascript">

Loading…
Cancel
Save