$field .= ' (<span class="little">' . $add . '</span>)'; } } echo <<<OUT \t\t\t\t\t\t<tr> \t\t\t\t\t\t\t<td width="160" align="right"> \t\t\t\t\t\t\t\t<label for="{$option['key']}" {$tooltip}>{$option->title}:</label> \t\t\t\t\t\t\t</td> \t\t\t\t\t\t\t<td>{$field}</td> \t\t\t\t\t\t</tr> OUT; # Is this a directory path we're expecting? if ($option->isDir) { # Write with javascript to hide from non-js browsers $write = jsWrite('(<a style="cursor:pointer;" onclick="test' . $option['key'] . '.changed()">try again</a>)'); echo <<<OUT \t\t\t\t\t\t<tr> \t\t\t\t\t\t\t<td> </td> \t\t\t\t\t\t\t<td> \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t<span id="dircheck_{$option['key']}"></span> \t\t\t\t\t\t\t\t{$write} \t\t\t\t\t\t\t</td> \t\t\t\t\t\t</tr> OUT; $output->addDomReady("window.test{$option['key']} = new testDir('{$option['key']}');test{$option['key']}.changed();"); } } echo '</table>';
<?php echo jsWrite('<canvas id="' . $id . '" width="100" height="15"></canvas>');
use_helper('VoUser'); use_helper('I18N'); use_helper('SfReview'); ?> <?php if ($sf_user->isAuthenticated() && $sf_user->getProfile()->getFacebookUid() && $sf_user->getProfile()->getFacebookUid() != '') { ?> <h3> <img src="/images/icoFacebookPref.png" alt="Facebook Connect" /> <?php echo __('Conectado a Facebook como:'); ?> <strong><?php echo jsWrite('fb:name', array('uid' => $sf_user->getProfile()->getFacebookUid(), 'useyou' => 'false', 'linked' => 'false')); ?> </strong> (<a id="facebook-disconnect" href="#"><?php echo __('Desconectar'); ?> </a>) <script type="text/javascript"> <?php if (SfVoUtil::isCanonicalVootaUser($sf_user->getGuardUser())) { ?> $('#facebook-disconnect').click(function() { facebookDisconnectAccount('<?php echo url_for('@usuario_fb_edit?op=dis'); ?> ');
<?php use_helper('VoSmartJS'); ?> <?php echo jsWrite("canvas", array("class" => "sparkline", "width" => "100", "height" => "25", "id" => "{$id}"));
function vo_facebook_connect_ajax_button($box, $func_name) { // FIXME: ¿Nos hace falta para algo más que para asociar el usuario? Si no, eliminar $func = $func_name . '("' . url_for('@usuario_fb_edit') . '", "' . $box . '")'; #return "<a id='fbc_button_c' onclick=\"return $func\" href='#'>". image_tag('/sfFacebookConnectPlugin/images/fb_light_medium_short.gif', 'alt="Facebook Connect"') . "</a>"; return jsWrite('fb:login-button', array('id' => 'fbc_button_c', 'v' => 2, 'size' => 'medium', 'perms' => 'publish_stream', 'onlogin' => $func), __('Connect')); }
echo url_for("@usuario_edit#facebook-connect"); ?> '; //--> </script> <?php } else { ?> <div id="fb_confirm_box"> <h3> <img src="/images/icoFacebook.png" alt="Facebook Connect" /> <?php echo __('Conectado a Facebook como:'); ?> <strong><?php echo jsWrite('fb:name', array('uid' => $faceBookUid, 'useyou' => 'false', 'linked' => 'false')); ?> </strong> </h3> <p> <?php echo __('Ojo, ahora tienes otra cuenta asociada a tu perfil de Facebook. Unificando las dos todo será más sencillo. ¿Cómo lo ves?'); ?> </p> <form action="#"> <input onclick="return facebookLoadPreferences('<?php echo url_for('sfGuardAuth/confirmMerge'); ?> ', 'fb_confirm_box');" type="submit" value="Ok, unificar cuentas"> </form> </div>