Changeset 5656

Show
Ignore:
Timestamp:
03/27/08 17:53:40 (10 months ago)
Author:
jparker
Message:

#877

Location:
trunk
Files:
77 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/suri.php

    r5548 r5656  
    145145if (defined('__TEXTCUBE_MOBILE__')) { 
    146146    $blogURL .= '/m'; 
     147}else if (defined('__TEXTCUBE_IPHONE__')) { 
     148    $blogURL .= '/iphone'; 
    147149} 
    148150unset($url, $domain); 
  • trunk/plugins/FM_Markdown/ttml.php

    r5285 r5656  
    1818        $postfix = substr($content, $end + 4); 
    1919        $content = $prefix; 
    20         if (defined('__TEXTCUBE_MOBILE__')) { 
     20        if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    2121            $content .= "<div>[$more | $less]<br />$full</div>"; 
    2222        } else { 
     
    130130            if (count($attributes) % 2 == 1) 
    131131                array_pop($attributes); 
    132             if (defined('__TEXTCUBE_MOBILE__')) { 
     132            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    133133                $images = array_slice($attributes, 1, count($attributes) - 2); 
    134134                for ($i = 0; $i < count($images); $i++) { 
     
    258258            } 
    259259        } else if ($attributes[0] == 'iMazing') { 
    260             if (defined('__TEXTCUBE_MOBILE__') || ($bRssMode == true)) { 
     260            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__') || ($bRssMode == true)) { 
    261261                $images = array_slice($attributes, 1, count($attributes) - 3); 
    262262                for ($i = 0; $i < count($images); $i += 2) { 
     
    297297            } 
    298298        } else if ($attributes[0] == 'Jukebox') { 
    299             if (defined('__TEXTCUBE_MOBILE__')) { 
     299            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    300300                $sounds = array_slice($attributes, 1, count($attributes) - 3); 
    301301                for ($i = 0; $i < count($sounds); $i += 2) { 
     
    358358                    list($newProperty, $onclickFlag) = FM_TTML_createNewProperty($attributes[1], $contentWidth, $attributes[2]); 
    359359 
    360                     if (defined('__TEXTCUBE_MOBILE__')) { 
     360                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    361361                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty, $folderPath, $folderURL, 1, $useAbsolutePath) . "</div><div>$attributes[3]</div>"; 
    362362                    } else { 
     
    385385                    list($newProperty1, $onclickFlag1) = FM_TTML_createNewProperty($attributes[1], $eachImageWidth, $attributes[2]); 
    386386                    list($newProperty2, $onclickFlag2) = FM_TTML_createNewProperty($attributes[4], $eachImageWidth, $attributes[5]); 
    387                     if (defined('__TEXTCUBE_MOBILE__')) { 
     387                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    388388                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty1, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[3]</div>"; 
    389389                        $buf .= '<div>' . FM_TTML_getAttachmentBinder($attributes[4], $newProperty2, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[6]</div>"; 
     
    401401                    list($newProperty2, $onclickFlag2) = FM_TTML_createNewProperty($attributes[4], $eachImageWidth, $attributes[5]); 
    402402                    list($newProperty3, $onclickFlag3) = FM_TTML_createNewProperty($attributes[7], $eachImageWidth, $attributes[8]); 
    403                     if (defined('__TEXTCUBE_MOBILE__')) { 
     403                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    404404                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty1, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[3]</div>"; 
    405405                        $buf .= '<div>' . FM_TTML_getAttachmentBinder($attributes[4], $newProperty2, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[6]</div>"; 
     
    441441        case 'jpg':case 'jpeg':case 'gif':case 'png':case 'bmp': 
    442442            $bPassing = false; 
    443             if (defined('__TEXTCUBE_MOBILE__')) { 
     443            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    444444                if (!is_null(getBlogSetting("resamplingDefault"))) { 
    445445                    $waterMarkOn = getBlogSetting("waterMarkDefault", "no"); 
  • trunk/plugins/FM_TTML/ttml.php

    r5285 r5656  
    1818        $postfix = substr($content, $end + 4); 
    1919        $content = $prefix; 
    20         if (defined('__TEXTCUBE_MOBILE__')) { 
     20        if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    2121            $content .= "<div>[$more | $less]<br />$full</div>"; 
    2222        } else { 
     
    130130            if (count($attributes) % 2 == 1) 
    131131                array_pop($attributes); 
    132             if (defined('__TEXTCUBE_MOBILE__')) { 
     132            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    133133                $images = array_slice($attributes, 1, count($attributes) - 2); 
    134134                for ($i = 0; $i < count($images); $i++) { 
     
    258258            } 
    259259        } else if ($attributes[0] == 'iMazing') { 
    260             if (defined('__TEXTCUBE_MOBILE__') || ($bRssMode == true)) { 
     260            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__') || ($bRssMode == true)) { 
    261261                $images = array_slice($attributes, 1, count($attributes) - 3); 
    262262                for ($i = 0; $i < count($images); $i += 2) { 
     
    297297            } 
    298298        } else if ($attributes[0] == 'Jukebox') { 
    299             if (defined('__TEXTCUBE_MOBILE__')) { 
     299            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    300300                $sounds = array_slice($attributes, 1, count($attributes) - 3); 
    301301                for ($i = 0; $i < count($sounds); $i += 2) { 
     
    358358                    list($newProperty, $onclickFlag) = FM_TTML_createNewProperty($attributes[1], $contentWidth, $attributes[2]); 
    359359 
    360                     if (defined('__TEXTCUBE_MOBILE__')) { 
     360                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    361361                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty, $folderPath, $folderURL, 1, $useAbsolutePath) . "</div><div>$attributes[3]</div>"; 
    362362                    } else { 
     
    385385                    list($newProperty1, $onclickFlag1) = FM_TTML_createNewProperty($attributes[1], $eachImageWidth, $attributes[2]); 
    386386                    list($newProperty2, $onclickFlag2) = FM_TTML_createNewProperty($attributes[4], $eachImageWidth, $attributes[5]); 
    387                     if (defined('__TEXTCUBE_MOBILE__')) { 
     387                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    388388                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty1, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[3]</div>"; 
    389389                        $buf .= '<div>' . FM_TTML_getAttachmentBinder($attributes[4], $newProperty2, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[6]</div>"; 
     
    401401                    list($newProperty2, $onclickFlag2) = FM_TTML_createNewProperty($attributes[4], $eachImageWidth, $attributes[5]); 
    402402                    list($newProperty3, $onclickFlag3) = FM_TTML_createNewProperty($attributes[7], $eachImageWidth, $attributes[8]); 
    403                     if (defined('__TEXTCUBE_MOBILE__')) { 
     403                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    404404                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty1, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[3]</div>"; 
    405405                        $buf .= '<div>' . FM_TTML_getAttachmentBinder($attributes[4], $newProperty2, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[6]</div>"; 
     
    441441        case 'jpg':case 'jpeg':case 'gif':case 'png':case 'bmp': 
    442442            $bPassing = false; 
    443             if (defined('__TEXTCUBE_MOBILE__')) { 
     443            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    444444                if (!is_null(getBlogSetting("resamplingDefault"))) { 
    445445                    $waterMarkOn = getBlogSetting("waterMarkDefault", "no"); 
  • trunk/plugins/FM_Textile/ttml.php

    r5285 r5656  
    1818        $postfix = substr($content, $end + 4); 
    1919        $content = $prefix; 
    20         if (defined('__TEXTCUBE_MOBILE__')) { 
     20        if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    2121            $content .= "<div>[$more | $less]<br />$full</div>"; 
    2222        } else { 
     
    130130            if (count($attributes) % 2 == 1) 
    131131                array_pop($attributes); 
    132             if (defined('__TEXTCUBE_MOBILE__')) { 
     132            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    133133                $images = array_slice($attributes, 1, count($attributes) - 2); 
    134134                for ($i = 0; $i < count($images); $i++) { 
     
    258258            } 
    259259        } else if ($attributes[0] == 'iMazing') { 
    260             if (defined('__TEXTCUBE_MOBILE__') || ($bRssMode == true)) { 
     260            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__') || ($bRssMode == true)) { 
    261261                $images = array_slice($attributes, 1, count($attributes) - 3); 
    262262                for ($i = 0; $i < count($images); $i += 2) { 
     
    297297            } 
    298298        } else if ($attributes[0] == 'Jukebox') { 
    299             if (defined('__TEXTCUBE_MOBILE__')) { 
     299            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    300300                $sounds = array_slice($attributes, 1, count($attributes) - 3); 
    301301                for ($i = 0; $i < count($sounds); $i += 2) { 
     
    358358                    list($newProperty, $onclickFlag) = FM_TTML_createNewProperty($attributes[1], $contentWidth, $attributes[2]); 
    359359 
    360                     if (defined('__TEXTCUBE_MOBILE__')) { 
     360                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    361361                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty, $folderPath, $folderURL, 1, $useAbsolutePath) . "</div><div>$attributes[3]</div>"; 
    362362                    } else { 
     
    385385                    list($newProperty1, $onclickFlag1) = FM_TTML_createNewProperty($attributes[1], $eachImageWidth, $attributes[2]); 
    386386                    list($newProperty2, $onclickFlag2) = FM_TTML_createNewProperty($attributes[4], $eachImageWidth, $attributes[5]); 
    387                     if (defined('__TEXTCUBE_MOBILE__')) { 
     387                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    388388                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty1, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[3]</div>"; 
    389389                        $buf .= '<div>' . FM_TTML_getAttachmentBinder($attributes[4], $newProperty2, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[6]</div>"; 
     
    401401                    list($newProperty2, $onclickFlag2) = FM_TTML_createNewProperty($attributes[4], $eachImageWidth, $attributes[5]); 
    402402                    list($newProperty3, $onclickFlag3) = FM_TTML_createNewProperty($attributes[7], $eachImageWidth, $attributes[8]); 
    403                     if (defined('__TEXTCUBE_MOBILE__')) { 
     403                    if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    404404                        $buf = '<div>' . FM_TTML_getAttachmentBinder($attributes[1], $newProperty1, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[3]</div>"; 
    405405                        $buf .= '<div>' . FM_TTML_getAttachmentBinder($attributes[4], $newProperty2, $folderPath, $folderURL, 1, $useAbsolutePath, $bRssMode) . "</div><div>$attributes[6]</div>"; 
     
    441441        case 'jpg':case 'jpeg':case 'gif':case 'png':case 'bmp': 
    442442            $bPassing = false; 
    443             if (defined('__TEXTCUBE_MOBILE__')) { 
     443            if (defined('__TEXTCUBE_MOBILE__') || defined('__TEXTCUBE_IPHONE__')) { 
    444444                if (!is_null(getBlogSetting("resamplingDefault"))) { 
    445445                    $waterMarkOn = getBlogSetting("waterMarkDefault", "no");