]> git.mxchange.org Git - friendica.git/commitdiff
Merge branch 'pull'
authorfriendica <info@friendica.com>
Wed, 11 Jan 2012 01:48:05 +0000 (17:48 -0800)
committerfriendica <info@friendica.com>
Wed, 11 Jan 2012 01:48:05 +0000 (17:48 -0800)
boot.php
include/conversation.php
include/plugin.php
view/theme/loozah/jot.tpl
view/theme/loozah/search_item.tpl
view/theme/loozah/style.css

index 1ad3249c189753b0ab82062ee405a89ab9bac371..82bd7c364bc0178fe14749cdde245930cd705a70 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
 require_once('include/cache.php');
 
 define ( 'FRIENDICA_PLATFORM',     'Friendica');
-define ( 'FRIENDICA_VERSION',      '2.3.1221' );
+define ( 'FRIENDICA_VERSION',      '2.3.1222' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.22'    );
 define ( 'DB_UPDATE_VERSION',      1115      );
 
index 293c5a84a39d1be96aa6ca5bd8cadebd19dd2656..6f235f701a81c2fb4dcb2df806ef8c6ea266b224 100644 (file)
@@ -170,6 +170,10 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
 
        load_contact_links(local_user());
 
+       $cb = array('items' => $items, 'mode' => $mode, 'update' => $update, 'preview' => $preview);
+       call_hooks('conversation_start',$cb);
+
+       $items = $cb['items'];
 
        $cmnt_tpl    = get_markup_template('comment_item.tpl');
        $tpl         = get_markup_template('wall_item.tpl');
index 9f2832981a85300d343ddc93bb75c870c6f03488..fe325ac3b0db0a20428aa8ecf21666cfdd0ba471 100644 (file)
@@ -19,7 +19,7 @@ function uninstall_plugin($plugin){
 if (! function_exists('install_plugin')){
 function install_plugin($plugin){
        logger("Addons: installing " . $plugin);
-       $t = filemtime('addon/' . $plugin . '/' . $plugin . '.php');
+       $t = @filemtime('addon/' . $plugin . '/' . $plugin . '.php');
        @include_once('addon/' . $plugin . '/' . $plugin . '.php');
        if(function_exists($plugin . '_install')) {
                $func = $plugin . '_install';
@@ -33,6 +33,10 @@ function install_plugin($plugin){
                        $plugin_admin
                );
        }
+       else {
+               logger("Addons: FAILED installing " . $plugin);
+       }
+
 }}
 
 // reload all updated plugins
index 78cbecea81d70b874ebef2c0a1238e9f1657d908..9bda1868e5dfb6849031bb0f3f6b74e6e171541d 100644 (file)
@@ -13,6 +13,7 @@
                <input type="hidden" name="location" id="jot-location" value="$defloc" />
                <input type="hidden" name="coord" id="jot-coord" value="" />
                <input type="hidden" name="title" id="jot-title" value="" />
+               <input type="hidden" name="preview" id="jot-preview" value="0" />
                <input type="hidden" name="post_id" value="$post_id" />
 
                <img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
        <div id="profile-jot-perms" class="profile-jot-perms" style="display: $pvisit;" >
                <a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon $lockstate"  title="$permset" ></a>$bang
        </div>
+
+       <span onclick="preview_post();" id="jot-preview-link" class="fakelink">$preview</span>
+
+
        <div id="profile-jot-perms-end"></div>
+
+       <div id="jot-preview-content" style="display:none;"></div>
        
        <div style="display: none;">
                <div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
index 17dc6233c35d61c8249f5a6c83e9e67c890f564a..5db19b4f802fff6c8270967c78bb9d4b6cdba051 100644 (file)
@@ -1,4 +1,4 @@
-<div class="wall-item-outside-wrapper$indent" id="wall-item-outside-wrapper-$id" >
+<div class="wall-item-outside-wrapper$indent$previewing" id="wall-item-outside-wrapper-$id" >
        <div class="wall-item-content-wrapper$indent" id="wall-item-content-wrapper-$id" >
                <div class="wall-item-info" id="wall-item-info-$id">
                        <div class="wall-item-photo-wrapper" id="wall-item-photo-wrapper-$id" 
index 54f4f24f23a7cef25999eed4578452a9cdd78698..73c8639b1946966a99d86af785282f80168e60da 100644 (file)
@@ -1216,6 +1216,16 @@ padding: 5px 10px 0px;
        font-size: 1.2em;
 }
 
+#jot-preview-link {
+       margin-left: 45px;
+}
+
+.preview {
+       background: #FFFFC8;
+}
+
+
+
 #profile-jot-perms-end {
        clear: both;
 }